query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
3afe00f6d50611cbf07beb8101a8ef8f
this version of appendList will only insert the given delimiter if it exists in the original text
[ { "docid": "fc0731c65e62e2aeada304a8f1f1c271", "score": "0.51406664", "text": "public Builder appendList( List<? extends Tree> list, TokenType delimiter, boolean includeSpaceAfterDelimiter ) {\n if( list.isEmpty() ) {\n return this;\n }\n\n // append first...
[ { "docid": "c36c3bdc64ebf37289bede597e483ad9", "score": "0.6247272", "text": "void insertions(String s, List<String> currentList, boolean wordsOnly);", "title": "" }, { "docid": "d129edd8bb4a5b7b46f1c972771b5872", "score": "0.5849778", "text": "private void separateString(String stri...
226d65541f0f141a9ab717fcb8f31050
the buildpanel method adds a lable text field, and a button to a panel
[ { "docid": "9e3168f5baeda7065b7c327a9a708a9d", "score": "0.73737687", "text": "private void buildPanel ()\n\n {\n //create a lable to display instructions\n messageLabel_gallons =\n new JLabel (\"Enter number of gallons\");\n gallonsTextField = new JTextField (10);\n\n\n ...
[ { "docid": "31b5e012bf45a7595a8f72458dbd5d7c", "score": "0.79907525", "text": "private void buildPanel(){\r\n\t\t//Create a label to display instructions\r\n\t\tmessageLabel=new JLabel(\"Enter a distance\"+\"in kilometters\");\r\n\t\t//create a textfield 10 characters wide\r\n\t\tkiloTextField=new JText...
9167850b38ad688fe6bd70bd23962175
To wait until element not exist till explicit time
[ { "docid": "c9cc4b08c8b86f9b4e9db7d9e4fd9abc", "score": "0.0", "text": "public static boolean isElementNotExist(BaseElement eLocator) {\n\t\treturn isElementNotExist(eLocator, EXPLICIT_WAIT_TIME);\n\t}", "title": "" } ]
[ { "docid": "9d9fcaf37fa1716b8f76e13a8697ae83", "score": "0.73204947", "text": "public void waitForElementToBeNotPresent(final By\n element, WebDriver driver) {\n long s = System.currentTimeMillis();\n new WebDriverWait(driver, this.explic...
9a2c364be4ff06e6043d84421afafa3e
Called when there is a database version mismatch meaning that the version of the database on disk needs to be upgraded to the current version
[ { "docid": "9fb359554ba0c9be42fdaa2d906735b6", "score": "0.61002284", "text": "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.w(\"DroidMazeDbAdapter\", \"Upgrading from version \"+ oldVersion +\" to \"+ newVersion +\", which will destroy al...
[ { "docid": "6ed40678ccd9d785f43eac8d845fe98d", "score": "0.69513613", "text": "private boolean internalUpgrade( int latestVersion )\n throws DBUpgradeException\n {\n\n ResultSet rs = null;\n Statement statement = null;\n\n try\n {\n sqlexec.getConnection(...
3a75541de40705e2248846b2cbcb431e
Creates the icon url
[ { "docid": "a16e40e5fd969012849a1e48522bbf1a", "score": "0.7309979", "text": "private String getIconURL(String icon) {\n return BASE_IMAGE_URL + icon + BASE_IMAGE_URL_EXTENSION;\n }", "title": "" } ]
[ { "docid": "4a90588740e9895ae3f606cb0317c890", "score": "0.7736767", "text": "String getIconUrl();", "title": "" }, { "docid": "7395e8c63a88dd26bb9815b20ff6015c", "score": "0.7145029", "text": "Uri getSourceIconUri();", "title": "" }, { "docid": "9b42415cfc42617560faf3fef...
ebb856ab6df8120679933f73a404f346
Does this biller authenticators
[ { "docid": "09ea478b65329e2ec639861bdcfd90ce", "score": "0.0", "text": "public List<String> getAuthenticators() {\n return authenticators;\n }", "title": "" } ]
[ { "docid": "e75f39a0399b74fa5fbd161032151b67", "score": "0.6507813", "text": "boolean hasAuthSteam();", "title": "" }, { "docid": "a6c8ad7bcb0701d3a0ce278524df9526", "score": "0.64039063", "text": "boolean hasAuth();", "title": "" }, { "docid": "a6c8ad7bcb0701d3a0ce278524...
b05622e97ae2b445c69e29d2277a4180
This method returns a string representation of the color in the form "RRGGBB" where RR, GG, and BB are the red, green and blue component values expressed as hexidecimal digits.
[ { "docid": "5a6391107a0ffe1b9dd4a33ad2bed388", "score": "0.7936969", "text": "public String toString()\n {\n String redStr; // red component hex value as a string\n String greenStr; // green component hex value as a string\n String blueStr; // blue component hex value as a s...
[ { "docid": "98d8564e37fd512b1dc8b28fcf5cacbb", "score": "0.7701162", "text": "public String getHexString()\n\t{\n\t\tString rrggbb = \"\";\n\t\tint v0;\n\t\tint v1;\n\t\tString hex0;\n\t\tString hex1;\n\t\tv0 = myRed.getShade() / 16;\n\t\tv1 = myRed.getShade() % 16;\n\t\thex0 = decimalToHex(v0);\n\t\the...
841d3b717677ecbac8e85bec32778f77
Convierte un String UTF8 a ISO88591
[ { "docid": "e868ce58176cc109188c0f551a0266c7", "score": "0.6909108", "text": "public static String utf8ToIso(String uft8String) {\n return uft8String\n .replace(\"á\", \"&#225;\")\n .replace(\"�\", \"&#193;\")\n .replace(\"é\", \"&#233;\")\n .replace...
[ { "docid": "64ed13b9c7afacc03d7ba1e4e2c75877", "score": "0.7376169", "text": "private String toUTF8EncodedString(final String str) {\n byte[] bytes = str.getBytes(Charset.forName(\"ISO_8859_1\"));\n return new String(bytes, Charset.forName(\"UTF-8\"));\n }", "title": "" }, { ...
cc3891be1e90bd88f8465f17227e61e5
output a file as a receipt
[ { "docid": "dca084100db35daef2b23e2984baeaee", "score": "0.567236", "text": "private void printFile(String string) throws IOException\r\n {\r\n String file = \"order.txt\";\r\n FileWriter fw = new FileWriter(file);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n ...
[ { "docid": "982ca9fbbf81eed8f2b4b6572c443f51", "score": "0.7026077", "text": "public void printReceipt() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(\"receipt.txt\");\n\n\t\t\t//Write login time\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd MMM yyyy\");\n\t\t\tout.println(df.format(lo...
b6ae63f67698b8ba486716d5d9ec553e
Returns the frequencies of all characters in s.
[ { "docid": "f26cfe270f9dab893709bac3b912a4e9", "score": "0.8109498", "text": "public static int[] frequency(String s) {\n\t\tint[] freq = new int[codex_size];\n\t\tfor (char c: s.toCharArray()) {\n\t\t\tfreq[c]++;\n\t\t}\n\t\treturn freq;\n\t}", "title": "" } ]
[ { "docid": "d0ae9b87150c4c323c53a2f2a6f43c09", "score": "0.7567473", "text": "public int frequency(String s) {\n if(s == null) return 0;\n return frequency(root, s.toCharArray(), 0);\n }", "title": "" }, { "docid": "529833afd254afa9d43cdf1cc04cf13c", "score": "0.7541992", "tex...
c4572a4922ce78d3e35fa0f4c1becbeb
Return the project group of the project.
[ { "docid": "1cd642f8a8c0f74874c888f2947da031", "score": "0.67142713", "text": "ProjectGroup getProjectGroupByProject( Project project )\n throws ContinuumObjectNotFoundException;", "title": "" } ]
[ { "docid": "fde98178437cc0fc7ab36ebf08c338a1", "score": "0.7492636", "text": "public String getGroup() {\n return group;\n }", "title": "" }, { "docid": "895431f5dcd46f875043b9820c98b343", "score": "0.7428593", "text": "public String getGroup() {\n\t\treturn group;\n\t}", ...
337b3895d0a3d5c6cd50f2f5c36c0f7a
Override to focus text or button.
[ { "docid": "c23869a8677fa667f51bad72fdf4a2c9", "score": "0.7289784", "text": "public void requestFocus()\n {\n if (isShowTextField()) getTextField().requestFocus();\n else getButton().requestFocus();\n }", "title": "" } ]
[ { "docid": "95fc6605e9c2a9d631968e0c8702d4c5", "score": "0.7735343", "text": "@Override\r\n\tpublic void setFocus() {\r\n\t}", "title": "" }, { "docid": "95fc6605e9c2a9d631968e0c8702d4c5", "score": "0.7735343", "text": "@Override\r\n\tpublic void setFocus() {\r\n\t}", "title": ""...
f9ef49b1d673a1410631a620ce5d173a
repeated .wire.Value args = 1;
[ { "docid": "385d6a59a43dacfb89c1c46baa0ebe2c", "score": "0.4761299", "text": "int getArgsCount();", "title": "" } ]
[ { "docid": "7cc50f7c08830c584e16faad657d3882", "score": "0.7258729", "text": "godot.wire.Wire.Value getArgs(int index);", "title": "" }, { "docid": "ab7e67bb73550f9bc8ebce2018ea71b3", "score": "0.57480764", "text": "java.util.List<godot.wire.Wire.Value> \n getArgsList();", ...
0baa35ad341542da0e3f4c10dbea5ea9
clase que contiene los procedimientos que se utilizan mediante jpa para gestionar a "categorias"
[ { "docid": "9ea407775a5d69352e75aa4c7180dfb8", "score": "0.59891236", "text": "@Repository\npublic interface RepositorioCategoria extends JpaRepository<Categoria, Long>{\n \n Categoria findByNombre(String nombre);\n \n @Procedure\n void sp_i_categoria(String nombre, String descripcion);\...
[ { "docid": "718e074ecf63d454b7829df57f879276", "score": "0.64428073", "text": "public interface CategorieService {\n\n /**\n * Save a categorie.\n *\n * @param categorie the entity to save\n * @return the persisted entity\n */\n Categorie save(Categorie categorie);\n\n /**\n...
c1a1dcd095ea7dfa034bc30056aa5f44
Returns the OWL Ontology that imports the whole ontology network addressed by this input source.
[ { "docid": "b3fcc407bede25713a2f411d9daf4a31", "score": "0.62556946", "text": "O getRootOntology();", "title": "" } ]
[ { "docid": "3091428c4f4889565dc5d19f2cb7015c", "score": "0.68636733", "text": "public interface OntologyInputSource<O,P> {\n\n /**\n * Gets the ontology network resulting from the transitive closure of import statements on the root\n * ontology. Useful for implementations with a custom manage...
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "5afbd0399e8a3c1130a6c57886eac057", "score": "0.0", "text": "public String m127a(String str, int i) {\n return !mo932a(i) ? str : mo939g();\n }", "title": "" } ]
[ { "docid": "6cff49359236dc9748a42472eaf4954c", "score": "0.63743937", "text": "public interface C35155a {\n /* renamed from: a */\n void mo89459a();\n }", "title": "" }, { "docid": "1ebc1f569daf5575be1aa061331ac667", "score": "0.63378584", "text": "public interface C...
de9095282ef8d71f6d5e9246cb97b107
Gets the standard deviation
[ { "docid": "3d5614d393abd991d042b2883500ec04", "score": "0.7701294", "text": "public double GetStandardDev()\n {\n return standard_dev;\n }", "title": "" } ]
[ { "docid": "705224d701b123ae1f08caf9e6b0c920", "score": "0.8858456", "text": "public double stddev(){\n\t\tstddev = StdStats.stddev(observations);\n\t\treturn stddev;\n\t}", "title": "" }, { "docid": "3662d9edf26d79e4a89d645f561fb464", "score": "0.87375", "text": "public double stdde...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "d4907fdc50ec30a1bb98c2bb431f2749", "score": "0.0", "text": "@Override\r\n public void onClick(View arg0) {\n if(arg0.getId() == R.id.leftmenu_btn) {\r\n if(dragLayout.getStatus() == Status.Close) {\r\n dragLayout.open(); \r\n }\r\n }el...
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cdf542363f5b089e84183e3d9020935f", "score": "0.6697644", "text": "@Override\n\t protected void ramana() {\n\t\t\n\t}", "ti...
3225e9da0a3168bf9c04f2c7dfbf8632
string topicId = 1;
[ { "docid": "17b8218d9f5b5d75e4f8fdd76f1fe55f", "score": "0.77154946", "text": "java.lang.String getTopicId();", "title": "" } ]
[ { "docid": "47d330d9e776cd63afa2b42e14c7534f", "score": "0.7771491", "text": "int getTopicId();", "title": "" }, { "docid": "3504b9eb7e8bef7796d92f54175e4eca", "score": "0.7415286", "text": "public String getTopicId() {\n return topicId;\n }", "title": "" }, { "...
96a5cb84bd2d3374db20152a5e918c9f
Estimates the correlation to the precision of the halfwidth bound The maximum number of replications is set at 20getNumberOfReplications()
[ { "docid": "252edc86041cdcda7451849726ca8890", "score": "0.57022226", "text": "public final double estimateCorrelation(double hwBound, int sampleSize){\n\t\treturn estimateCorrelation(hwBound, sampleSize, 100*getNumberOfReplications());\n\t}", "title": "" } ]
[ { "docid": "903879f158831aea7e1f615f81aef703", "score": "0.59647954", "text": "public final double estimateCorrelation(double hwBound, int sampleSize, int numReps){\n \n if (hwBound <=0)\n throw new IllegalArgumentException(\"Half-width bound must be > 0.\");\n \n\t\tif (sampleSi...
c6ebd602d7de7e9df4f47a8b479ddbc9
Retrieve the uppermost host which has a capability that is a subtype of the parameter type from the hosting stack of a unit. Does not use discovery.
[ { "docid": "523cb44b2ab3a89b43d74b17c60c703e", "score": "0.66395015", "text": "public static Unit findHostInStackWithCapability(Unit unit, EClass capType) {\r\n\t\twhile (unit != null) {\r\n\t\t\tif (ValidatorUtils.getCapability(unit, capType) != null) {\r\n\t\t\t\treturn unit;\r\n\t\t\t}\r\n\t\t\tunit ...
[ { "docid": "ac2c0b773e29060f4b787dbd48f2fe99", "score": "0.65745443", "text": "public static Unit discoverHostInStackWithCapability(Unit unit, EClass capType,\r\n\t\t\tIProgressMonitor monitor) {\r\n\t\tassert CorePackage.eINSTANCE.getCapability().isSuperTypeOf(capType);\r\n\t\tUnit cur = TopologyDiscov...
27ec373a54618751d04eb618992835bb
Modifies the details of an existing item modifier list.
[ { "docid": "ec5335a2ce2e65bf9e15badf5ce05b34", "score": "0.0", "text": "@Deprecated\r\n CompletableFuture<V1ModifierList> updateModifierListAsync(\r\n final String locationId,\r\n final String modifierListId,\r\n final V1UpdateModifierListRequest body);", "title":...
[ { "docid": "62d8e9cf55a882aecf7c6d6c4fd7f74c", "score": "0.6631015", "text": "@Override\n\tpublic void modify(item it) {\n\t\t\n\t}", "title": "" }, { "docid": "d19606f9633969a79d14f83b7dadb59f", "score": "0.61102384", "text": "protected abstract void setSpecificItems(View view, int ...
eff8711c877aaae9e61ba1232dd19c63
This method was generated by MyBatis Generator. This method corresponds to the database table fundManager
[ { "docid": "ba0190805bbe8f59f621deb20c7053ba", "score": "0.0", "text": "int deleteByPrimaryKey(String managerId);", "title": "" } ]
[ { "docid": "f1941c3a9393aa18069526103e119394", "score": "0.6398565", "text": "FundManagerDo selectByPrimaryKey(String managerId);", "title": "" }, { "docid": "1adeac62866cdc0715885093f106ff52", "score": "0.58348197", "text": "@Override\n\tpublic List<Employee_Table> employeeUnderMana...
1dd66b8c3fdf2b58d77d2535b15f4a4f
Used to see if the frog has collided with an object.
[ { "docid": "79f66428f0e9105017b4160dea4ac5cd", "score": "0.0", "text": "public boolean intersectsWith(Point[] points)\r\n\t{\r\n\t\treturn this.hitbox.intersectsWith(points);\r\n\t}", "title": "" } ]
[ { "docid": "527fd4dc618cf586e8c53b84ec4d6813", "score": "0.7291218", "text": "public boolean hasCollided()\n\t{\n\t\tfloat threshold = object1.getSize() + object2.getSize();\n\t\treturn getLateralDistance() < threshold && getVerticalDistance() < threshold;\n\t}", "title": "" }, { "docid": "8...
c9f3dc79354fef0fa2fded4ba1e4cf24
POST Posts a list of Destinations to service/destinationpost/postdestinationswithjsonbody The same as above, however, this version breaks down Client, WebTarget, Invocation and Response objects in order to perform exception handling.
[ { "docid": "a7cd190b2c98b63168cc336be6cf3f5e", "score": "0.77917457", "text": "public static List<Destination> postdestinationswithjsonbodyandexceptions() throws BadClientRequestException {\n Destination newD1 = new Destination();\n\n newD1.setActivity(Activity.hard);\n newD1.setCom...
[ { "docid": "effe39f4def63b2b80ba756c3b910a60", "score": "0.7995296", "text": "public static List<Destination> postdestinationswithjsonbody() {\n Destination newD1 = new Destination();\n\n newD1.setActivity(Activity.hard);\n newD1.setCompanion(Companion.family);\n newD1.setHol...
efa7337d57055c466742cada90a88d08
Checks if Recycler view is empty and sets visibility of emptyView
[ { "docid": "3599710fa86641a902ec282a87a82faa", "score": "0.8539637", "text": "void checkIfEmpty() {\n if (emptyView != null && getAdapter() != null) {\n final boolean emptyViewVisible = getAdapter().getItemCount() == 0;\n emptyView.setVisibility(emptyViewVisible ? VISIBLE : ...
[ { "docid": "eb399adbba69bb77de4af67c35e8e80f", "score": "0.81456685", "text": "private void checkEmptyData() {\n boolean isDataEmpty = (mAdapter.getItemCount() == 0);\n mRecyclerView.setVisibility(isDataEmpty ? View.GONE : View.VISIBLE);\n mEmptyView.setVisibility(isDataEmpty ? View...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "7eeee170a15564b7079d807fbbeee9c2", "score": "0.0", "text": "@Override\n\t\t\t\tpublic void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop,\n\t\t\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\t\tLog.i(TAG, \"view.visiable=\" + v.getVisibility());\n\n\...
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836227", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.66787636", "text": "private void apparence() {\r\n\r\n\t}", "title": "" },...
93e15c1c3bd7716be48b2d722c037e50
Ensures a player is initilaized correctly and has no pokemon, no opponent and is set to the correct turn
[ { "docid": "b646e609c5c0c9d91fa8dadeb64d03a6", "score": "0.6279907", "text": "@Test\n\tpublic void testInitialization()\n\t{\n\t\tPlayer p1 = new Player(0);\n\t\t\n\t\tassertEquals(0, p1.getNumPokemon());\n\t\tassertNull(p1.getActivePokemon());\n\t\tassertNull(p1.getOpponent());\n\t\tassertEquals(0, p1....
[ { "docid": "085bee645e18af2a0bc16337a383bc4a", "score": "0.6732437", "text": "public void initiateTurn() { moves_remaining = initial_moves; }", "title": "" }, { "docid": "43edc7704b70e0f8e018178c9ac88c9d", "score": "0.6613358", "text": "public void checkWinCondition(){\n if (p...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "9a525796db5bb8659ae52037867851bd", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint problems = Integer.parseInt(input.nextLine());\n\t\tArrayList<String> problemList = new ArrayList<String>();\n\n\t\tfor (int x = 0; x < p...
[ { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.69742316", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.68059677", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t...
9d30166cf1558e4491f3aff253db8dbd
/This function is used to read from the file
[ { "docid": "ada5b339b20b7758fc9477a122cb0471", "score": "0.62932295", "text": "private String readFile(String fileName) {\r\n\t\t//StringBuffer to all the lines in stringBuffer\r\n\t\tStringBuffer stringBuffer = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tString readLine = null;\r\n\t\t\t//BufferReader to...
[ { "docid": "d17242fbc99b9abd802283ef12ea4549", "score": "0.7916021", "text": "public void readFromFile();", "title": "" }, { "docid": "91f76a9a758725c65a4da72873b4fc1b", "score": "0.7353089", "text": "public void readFile();", "title": "" }, { "docid": "620411c9e62f513560...
5d30e804d0a22f8fcb03277cbc7bbecc
$ANTLR end "rule__Entity__NameAssignment_2" $ANTLR start "rule__Entity__SuperTypeAssignment_3_1" InternalBlackDog.g:806:1: rule__Entity__SuperTypeAssignment_3_1 : ( ( RULE_ID ) ) ;
[ { "docid": "121bdaf89cf44a160c485d50875b9557", "score": "0.7432835", "text": "public final void rule__Entity__SuperTypeAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:810:1: ( ( ( RULE_ID ) ) )\n...
[ { "docid": "964d1129d491cfa1e83f6597ed1c5cbb", "score": "0.67363024", "text": "public final void rule__Entity__Group_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:572:1: ( ( ( rule__Entity__SuperTy...
b4c3a1d682a996f4e388acabf6190936
$FF: renamed from: a (int, java.util.Map) void
[ { "docid": "1d86d7027564cda23530d2ccb023cf71", "score": "0.0", "text": "public void method_342(int var1, Map var2) {\n if (var1 >= 0 && var1 <= this.field_135.size()) {\n Iterator var3 = var2.entrySet().iterator();\n\n while(var3.hasNext()) {\n Entry var4 = (Entry)var3.ne...
[ { "docid": "c20d18f9a67e49522b0f7ffaade9d208", "score": "0.76647764", "text": "public interface C19627a {\n /* renamed from: a */\n void mo52213a(Map<String, Object> map);\n}", "title": "" }, { "docid": "c64a08f0b6ba5399bedb119c24495159", "score": "0.76379865", "text": "interfa...
08d866aaf412738d5a8b1bbed4a01a58
/ a b c 1 | 2 | | | 2 | | | | 3 | | | 1 | a b c
[ { "docid": "90e4bb710cb14cb83aceecff70c88291", "score": "0.0", "text": "@Test\n public void generateValidPawnMoves_twoDirectionsFree() {\n setUpBoard(QuoridorSettings.defaultTwoPlayer().toBuilder().setBoardSize(3));\n board.movePawn(Player.PLAYER2, Square.at('a', 1));\n board.movePawn(Player.P...
[ { "docid": "efa2fc0fea9b591e8b86922ee1e63a35", "score": "0.5448938", "text": "private static void calculateSubsequences(char[] chars) {\n long a = 0, ab = 0, abc = 0;\n for (char cur : chars) {\n if (cur == 'a') a++;\n if (cur == 'b') ab += a;\n if (cur == ...
142ab2a4ac078dbb69353605b30c494f
Created by daniel on 7/6/17.
[ { "docid": "934b419ac39adf612f42a2b1fa3f761b", "score": "0.0", "text": "public interface Roles extends CrudRepository<UserRoles, Long> {\n //using HQL\n @Query(\"select ur.role from UserRoles ur, User u where u.username=?1 and ur.userId = u.id\")\n public List<String> ofUserWith(String username...
[ { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.6245469", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.55657727", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" ...
70f088b01f93077f10c9bc9d032641c3
Sets the list of user awards.
[ { "docid": "4614d1ccadd3e2a3834606d268d1de03", "score": "0.6490592", "text": "public ProfessionalExperience awards(List<Award> awards) {\n this.awards = awards;\n return this;\n }", "title": "" } ]
[ { "docid": "b7ae0f543bfeab916343477a1b81f4e7", "score": "0.574704", "text": "public void setRewards(List<RewardInfo> values);", "title": "" }, { "docid": "a62e2fa2821f3a0345856627164f2eff", "score": "0.57190496", "text": "public List<Award> awards() {\n return awards;\n }",...
5ae3bcf602ce138bbe9b5f815fe94fba
after specified dialog showing rate option dialog
[ { "docid": "08f53ae7968cdefb8a86e6b6a93f2a46", "score": "0.0", "text": "private AlertDialog createAppRatingDialog(String rateAppTitle, String rateAppMessage) {\n AlertDialog dialog = new AlertDialog.Builder(this).setPositiveButton(getString(R.string.dialog_app_rate), new DialogInterface.OnClickLi...
[ { "docid": "518df17b8c6761978bdad48d67381810", "score": "0.6779212", "text": "private void openRatingDialog(){\n\n rateDialog = new Dialog(this);\n rateDialog.setContentView(R.layout.custom_dialog_rate_user);\n\n final RatingBar rate = rateDialog.findViewById(R.id.rate);\n Bu...
05d182183f69bb69620d15459ae3852e
Get one costoOperacion by id.
[ { "docid": "02559355117649f748fe27892b074a7a", "score": "0.8420433", "text": "@Transactional(readOnly = true)\n public Optional<CostoOperacion> findOne(Long id) {\n log.debug(\"Request to get CostoOperacion : {}\", id);\n return costoOperacionRepository.findById(id);\n }", "title...
[ { "docid": "1f025435d8ab3c58c4ed14ebd4527e36", "score": "0.718105", "text": "@Override\n @Transactional(readOnly = true)\n public Operador findOne(Long id) {\n log.debug(\"Request to get Operador : {}\", id);\n return operadorRepository.findOne(id);\n }", "title": "" }, { ...
518bf5364cda3c6202a1a392996f93d1
Inflate the menu; this adds items to the action bar if it is present.
[ { "docid": "b503fc7fa1f36527045b729accf7ab38", "score": "0.0", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n return true;\n }", "title": "" } ]
[ { "docid": "24b4bc10b078ba60e54d834c5f825280", "score": "0.71203315", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater=getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\...
98d1bffefd2cf851394d16c878ae7e89
Sets work days (it does not set anything else, like hasHoliday, etc.)
[ { "docid": "35b1ee397072482b6dff52f326bb3f2e", "score": "0.7397599", "text": "public void setWorkDays(String work) {\n\t\tusedDays.clear();\n\t\tusedDays = parseDaysFromString(work);\n\t}", "title": "" } ]
[ { "docid": "b7a0ce789c6c233725555dd772059e39", "score": "0.68746215", "text": "void SetWorkingDays(String username, boolean[] workingDays) throws IllegalArgumentException;", "title": "" }, { "docid": "e5c0ce7f3547e5a11d9a3293493ddd56", "score": "0.67847943", "text": "private void bui...
402da8b8fb0f5cc580bc9ce2b6e7350a
Gets the version of the MM7 schema that MMSC used to generate this incoming response.
[ { "docid": "78f7c3fc61750b3b24f80f31b4a88f3b", "score": "0.6992159", "text": "public String getMM7Version() { return mm7Version; }", "title": "" } ]
[ { "docid": "3a35ddcbaad4cf9f13d05d4b6a84ea95", "score": "0.79716355", "text": "protected SpecVersion.VersionFlag getSchemaVersion() {\n return SpecVersion.VersionFlag.V7;\n }", "title": "" }, { "docid": "3c7879f24fee370cfa5c725751f7774a", "score": "0.74229133", "text": "pub...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "c1a604fb9be1aee0db3a89ad63306531", "score": "0.0", "text": "@Override\r\n\tpublic Activity getActivityByPlanId(String planId) {\n\t\treturn activityDao.getActivityWithQuestionByPlanId(Integer.parseInt(planId));\r\n\t}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { ...
88e3acde17db87800a949a01aa10ed31
This method is responsible for printing the vehicle registration number using color.
[ { "docid": "88f1ed15c048ac353cd528d2de7d3900", "score": "0.762419", "text": "public void printRegistrationNumbersByColor(String color);", "title": "" } ]
[ { "docid": "4ac99af0b34cf86f45a0e2de73ee1237", "score": "0.6896849", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"[\" + ph_serial_no + \", \" + color + \"]\";\n\t}", "title": "" }, { "docid": "f7cb80d39d76fd42db30706bfbe5c50d", "score": "0.6815584", "text": "public ...
54564ff139799718f17b87a340de0999
optional string doctor_name = 5;
[ { "docid": "fe5653f0913fce134ad01345b7fb8dc1", "score": "0.0", "text": "public boolean hasDoctorName() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" } ]
[ { "docid": "4a5f82e080502b128f0f1bee689b1bd2", "score": "0.72636646", "text": "java.lang.String getDoctorName1();", "title": "" }, { "docid": "abc3e671e2ec1c673753b69d59735e0a", "score": "0.72127414", "text": "java.lang.String getDoctorName();", "title": "" }, { "docid": ...
ea0aa6e5d69fc3d5ef645cfb0b82bddf
Test of getIdpaciente method, of class Paciente.
[ { "docid": "ec2a0a86b6e96b4ab29bea175a9f9de0", "score": "0.77804875", "text": "@Test\n public void testGetIdpaciente() {\n System.out.println(\"getIdpaciente\");\n Paciente instance = new Paciente();\n int expResult = 0;\n int result = instance.getIdpaciente();\n as...
[ { "docid": "1c9b32f66703c46759aef277eae51c21", "score": "0.72992754", "text": "@Test\r\n\tpublic void testGetByID() {\r\n\t\tPersona p = (Persona) s.get(Persona.class, (long) 1);\r\n\t\tassertEquals(\"dummy\", p.getNombre());\r\n\t\tassertEquals(18, p.getEdad());\r\n\t}", "title": "" }, { "d...
68793d1cc97be57e16c73e5801d00f7e
Verifies that the key and IV are valid
[ { "docid": "f2f0dc9633f8271522dd88c27cbd6bbe", "score": "0.7571859", "text": "private static boolean isValidKeyAndIv(String key, String iv) {\n if(key.length() != KEY_LENGTH || iv.length() != IV_LENGTH) {\n return false;\n }\n for(Character c : key.toCharArray()) {\n ...
[ { "docid": "95e64ca5e5d8b053b198a4f2230f04c9", "score": "0.61618996", "text": "boolean hasIv();", "title": "" }, { "docid": "acda3646f3b4cc654a6cb8802136ec37", "score": "0.6159036", "text": "@java.lang.Override\n public boolean hasIv() {\n return ((bitField0_ & 0x00000001...
5275ae6726cc5c7411b1233d5b46ba31
Agrega producto al layout
[ { "docid": "c210377febc54e0dde4e3c1109f00084", "score": "0.5559936", "text": "private void agregarProducto(String msg, String value) {\n // Obtiene el grupo\n LinearLayout parentLayout = (LinearLayout) findViewById(R.id.root);\n\n // Crea el inflater\n LayoutInflater layoutIn...
[ { "docid": "e3d87cefafa1999ae12832c81eaf571a", "score": "0.64472747", "text": "public AdicionarProdutoCarrinhoVIew() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "d99673b5fafc16605e9662db29acb784", "score": "0.640081", "text": ...
5e185150f8b61ce5105970ef4a853eb6
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
[ { "docid": "e8ef65ed339dabfd156a25e6137c2450", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n j1pohar = new javax.swing.JButton();\n j2poha...
[ { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.73931265", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "156c28fa...
aaee0e6a0063688793ed7707807693d3
Checks if there are error values in the form. If there are errors then puts them in the request and removes it from the form. If there are no error returns the passed model and view value.
[ { "docid": "4c174662b78c71154638296fd711496c", "score": "0.60624945", "text": "private ModelAndView checkErrorValues(HttpServletRequest request, HttpServletResponse response,\n\t\t\tVendorCatalogDataMappingForm vendorCatalogDataMappingForm, ModelAndView modelAndView, String action) {\n\t\tString errorVa...
[ { "docid": "6a612a9afd7fdbea9af0cc34833c9bfe", "score": "0.6020317", "text": "protected ModelAndView showForm(RenderRequest request, RenderResponse response, BindException errors, Map model) throws Exception {\n\t\tModelAndView mav = super.showForm(request, response, errors, model); \n\t\tCollection pet...
fcf697f6965952cf5e3f5a6637593e9e
(pba) Variable length, caption/subtext that describes the 'art preview' image.
[ { "docid": "559360eece3c676a2093a60103c3b5ca", "score": "0.71130484", "text": "@ApiModelProperty(value = \"**(pba)** Variable length, caption/subtext that describes the 'art preview' image.\")\r\n public String getArtPreviewCaption() {\r\n return artPreviewCaption;\r\n }", "title": "" } ]
[ { "docid": "9cc593a03b6948d9550f83461d46055a", "score": "0.60859865", "text": "@VTID(50)\r\n java.lang.String getCaption();", "title": "" }, { "docid": "53b8821a04fffd92d426aa0f2d62e3b7", "score": "0.5839431", "text": "public Caption(){\n\t\t// Initialise the caption paint\n\t\tcapt...
9b72532cf410b8f291621f2545fa2cfd
Sets the isReviewedNaicsDescription value for this AccountCleanInfo.
[ { "docid": "4a9f5da3ddcf4cf19296dd30781b0ee5", "score": "0.7971063", "text": "public void setIsReviewedNaicsDescription(java.lang.Boolean isReviewedNaicsDescription) {\n this.isReviewedNaicsDescription = isReviewedNaicsDescription;\n }", "title": "" } ]
[ { "docid": "5547c693e1b399b42b8ae364d5949d3a", "score": "0.69508755", "text": "public java.lang.Boolean getIsReviewedNaicsDescription() {\n return isReviewedNaicsDescription;\n }", "title": "" }, { "docid": "7c1a1aba5dfd7d8172d7478e8c6c4a3c", "score": "0.6745687", "text": "...
a4090e014583dd1ade9471cf5ff4070f
Writes a tile entity to NBT.
[ { "docid": "51b41eb3769848b7535ee32e540d4a61", "score": "0.584597", "text": "public void writeToNBT(NBTTagCompound var1)\n {\n super.writeToNBT(var1);\n this.storage.writeToNBT(var1);\n }", "title": "" } ]
[ { "docid": "dc0ea0fb5bd96a3ac83f97725e4bc490", "score": "0.7683273", "text": "public void writeEntityToNBT(NBTTagCompound paramfn)\r\n/* 189: */ {\r\n/* 190:204 */ paramfn.setShort(\"xTile\", (short)this.e);\r\n/* 191:205 */ paramfn.setShort(\"yTile\", (short)this.f);\r\n/* 192:206 */ p...
fddef5b415d09317d874b1f21a1a775d
returns a Rectangle that is used in object collisions
[ { "docid": "0c1cd2f35c2f7c8bec52a50ee5f8228a", "score": "0.7173558", "text": "public Rectangle getBound(){\n \tint x = (int)location.getX();\n \tint y = (int)location.getY();\n \t\n \tif(isExploded == false)\n \t\treturn new Rectangle(x, y, image.getWidth(null), image.getHeight(null));\n ...
[ { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.86750346", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.86750346", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid":...
0b8745e68219c2a7fd7e58bb425846b5
Gets all the Nat Gateways in a subscription.
[ { "docid": "95d8ada25d10a4e7cee9bbb33f2b66d9", "score": "0.6348286", "text": "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<NatGateway> list() {\n return this.serviceClient.list();\n }", "title": "" } ]
[ { "docid": "85ea4285c7eeff2a4c464f9e6d4394f8", "score": "0.63745564", "text": "@Override\n\tpublic List<GateWayVO> getAllPaymentGateways() {\n\n\t\tList<GateWayVO> gateWayList = new ArrayList<GateWayVO>();\n\n\t\tList<GatewayTypeEnum> gateways = Arrays.asList(GatewayTypeEnum.values());\n\t\tgateways.str...
7d19d95e2c7567489d9c630465d665df
logService.functionTag("cursorToLichThi", "cursor to lichthi");
[ { "docid": "62d7dbb350ea4df38ff6f6ceaaf89989", "score": "0.0", "text": "private DI__LichThi cursorToLichThi(Cursor cursor) {\n\t\t\tDI__LichThi lt = new DI__LichThi();\r\n\t\t\tif (cursor == null)\r\n\t\t\t\treturn lt;\r\n\r\n\t\t\tlt.mssv = cursor.getString(1);\r\n\t\t\tlt.namhoc = cursor.getInt(2);\r\...
[ { "docid": "4121852c8e9b6880ee27286e87c20330", "score": "0.6021206", "text": "@Override\n public void execute(String tagName, Map<String, Object> parameters) {\n Log.i(\"CuteAnimals\", \"Custom function call tag :\" + tagName + \" is fired.\");\n }", "title": "" }, { "docid": "123...
ba29f3f34e70296037ff2b5ca4fc027c
Auto generated method signature for Asynchronous Invocations
[ { "docid": "bd70f5b510a4ecaff37e2db433d66d80", "score": "0.0", "text": "public void startgetCongressionalDistrictByZip(\n\n com.cdyne.pav3.GetCongressionalDistrictByZip getCongressionalDistrictByZip24,\n\n final com.cdyne.pav3.PavServiceCallbackHandler callback)\n\n ...
[ { "docid": "2bf61740df5f2ebe9b270e25e4d7cbb6", "score": "0.64895827", "text": "public abstract Result asyncExecute(Params... paramsArr);", "title": "" }, { "docid": "09855a4fa55b1ece13b04b77c1c06bac", "score": "0.6296694", "text": "public interface AmazonFPSAsync extends AmazonFPS {\...
00fe57bdf763784fa6c80ad3810f8d1b
Get the name of the type.
[ { "docid": "4de17ce6d9614df8d1bd928b32a6bd32", "score": "0.77471304", "text": "public abstract String getTypeName();", "title": "" } ]
[ { "docid": "ed23d597ee2803646ac2637b82db0faa", "score": "0.8585785", "text": "java.lang.String getTypeName();", "title": "" }, { "docid": "c52bffd72f4eed4b4c1b37f08a28d3ee", "score": "0.854004", "text": "String getTypeName();", "title": "" }, { "docid": "c52bffd72f4eed4b4...
15ad2f0fbbeb3a8b0a478cfae585628b
Adds a new criteria list with the assert type specified.
[ { "docid": "25064f1e4fa13ffe3f4397c3e51224b5", "score": "0.827684", "text": "public final CriteriaList addNewCriteriaList(String assertType) {\n\t\tcriteriaList = new CriteriaList(assertType);\n\t\treturn criteriaList;\n\t}", "title": "" } ]
[ { "docid": "699567d4cf782c04370060479c9e8b99", "score": "0.5612694", "text": "default void add(Criteria... criteria) {\n legacyOperation();\n }", "title": "" }, { "docid": "28e4180c6a098a0c3fe049e38a57bca9", "score": "0.5440775", "text": "Criteria add(Criteria add);", "...
0b349d246bfc8899b61ff8026da6b0ec
Called for every aligned dimension entity.
[ { "docid": "a879c785984815e8d871dcc391a62469", "score": "0.6435071", "text": "abstract void addDimAlign(DL_DimensionData data,\n DL_DimAlignedData edata);", "title": "" } ]
[ { "docid": "1e66704e8b0e060e731eb52d271662d5", "score": "0.6220425", "text": "private void align() {\n\t\tArrayList<Boid> p = parent.content;\n\t\tMathVector adjustment = new MathVector(0d, 0d);\n\t\tfor (int i = 0; i < p.size(); i++)\n\t\t\t// Compiled properly, don't bother\n\t\t\tif (p.get(i) != this...
544616b69ae5e7da117e29fedadff8ec
Sets all the contents based on a JSON container
[ { "docid": "a2ccd28b7e3bccf8720ee5ff7026f990", "score": "0.59195477", "text": "public void setAllContents(Record newContent) {\n\n\t\tif (newContent instanceof JSON) {\n\t\t\tthis.jsonContent = (JSON) newContent;\n\t\t} else {\n\t\t\tthis.jsonContent = new JSON(newContent);\n\t\t}\n\t}", "title": ""...
[ { "docid": "bc7d56041a733a56b8374b689882e22b", "score": "0.6500515", "text": "protected void loadFromString(String json, JSONObject all) throws ContainerConfigException {\r\n try {\r\n JSONObject contents = new JSONObject(json);\r\n JSONArray containers = contents.getJSONArr...
ced3a482f37dbcdc3e8dea284847d247
DP Runtime: 0 ms, faster than 100.00% of Java online submissions for Maximum Subarray. Memory Usage: 37.6 MB, less than 99.06% of Java online submissions for Maximum Subarray.
[ { "docid": "423a0c74742997e742622f9414e26716", "score": "0.63088757", "text": "public int maxSubArray(int[] nums) {\n if (nums.length == 1) {\n return nums[0];\n }\n int sum = nums[0];\n int maxSum = nums[0];\n for (int i = 1; i < nums.length; i++) {\n ...
[ { "docid": "d0e7c26764b1f12dcd4bc9f0f77f4bca", "score": "0.69737095", "text": "public int maxSubArray(int[] a) {\n\n\n return dp(a);\n }", "title": "" }, { "docid": "444869835a1f301d81513be5fdaeaa97", "score": "0.6926154", "text": "public static void main(String[] args) {\n...
405f6dec669c87005c2fbb7a471df044
Copy source directory to the target area.
[ { "docid": "95ad4f7855226bb51d315dc1a88f5ad3", "score": "0.70940447", "text": "public void copyDirectiory(String sourceDir, String targetDir) throws IOException {\n\t\t(new File(targetDir)).mkdirs();\n\t\tFile[] file = (new File(sourceDir)).listFiles();\n\t\tfor (File files : file) {\n\t\t\tif (files.is...
[ { "docid": "71e752d9e63e04f45f59ffe85baa1861", "score": "0.77233076", "text": "private void copyDirectory(File source, File target) throws IOException {\r\n\t if (!target.exists()) {\r\n\t target.mkdir();\r\n\t }\r\n\t for (String f : source.list()) {\r\n\t copy(new File(source, f...
3cc21096b6eca779a688539d1968913e
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
[ { "docid": "2d7d5b9a550bb258b680a9b860c017a8", "score": "0.0", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_settings) {\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": ...
[ { "docid": "c12f9377447ba11f11e99e1c184f2319", "score": "0.7727374", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n//\t\tcase android.R.id.home:\r\n//\t\t\t// go to previous screen when app icon in action bar is clicked\r\n//\t\t\tInten...
87f73b6fd9b006cf9f2148272c6e999d
Convert the given object to string with each line indented by 4 spaces (except the first line).
[ { "docid": "8279fe35d1f3c688ad6983974b78755b", "score": "0.0", "text": "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
[ { "docid": "63c12a4413c6af0d7a213d6c691564e6", "score": "0.75527424", "text": "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n}", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead1...
d3c7a3842a777e414b11d8c89de5d325
Metodo che ritorna l'indirizzo di uno studente.
[ { "docid": "37b1c32849e3ecff86e59d360b87e98e", "score": "0.0", "text": "public String getIndirizzo() {\n\t\treturn indirizzo;\n\t}", "title": "" } ]
[ { "docid": "d6737b3c5e24e211f4774490fde4e135", "score": "0.5944156", "text": "private void obtenerDireccion(){\n // se obtiene una direccion aleatorea entre 1 y 4\n int dir = genererDirecion.nextInt(5);\n \n if(dir>0 || dir<5){\n // se modifica la direccion del fan...
521b75ae5cac3d669cf879a9718c05fd
Tests getting init parameter map.
[ { "docid": "02fa45b6275769e2d033df78bc3d46d5", "score": "0.7814299", "text": "public void testGetInitParameterMap() {\n Map<String, String> initParams = new HashMap<String, String>();\n Vector<String> keys = new Vector<String>();\n keys.add(\"one\");\n keys.add(\"two\");\...
[ { "docid": "b7de2d18affacdeb0cf98a18f23c6f8b", "score": "0.7884221", "text": "@Test\n public final void testInit()\n {\n Params params = new Params();\n params.put(\"a\", \"a value\");\n assertEquals(params.get(\"a\"), \"a value\", \"values are not equal\");\n }", "title": "" }, { ...
59dd0a6c5cf26d61c52f9eb1f558d4f4
Util method to write an attribute without the ns prefix
[ { "docid": "6cf7f91717851719d66f413e948c381e", "score": "0.0", "text": "private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,\n javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.strea...
[ { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7242127", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamE...
48a47a6429db8e036ed611187396e786
Setting on Touch Listener for handling the touch inside ScrollView
[ { "docid": "f3e23441f11908f53380fcc47c473fd8", "score": "0.6683119", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n // Disallow the touch request for parent scroll on touch of child view\n v.getParent().requestDisallowInterceptTouchEve...
[ { "docid": "1c41b103f7ca7f89a809ace6a9ee56f8", "score": "0.72433746", "text": "@Override\n\t\t\t\tpublic void onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\t\t\t\tfloat arg3) {\n\t\t\t\t\tonTouchScroll(arg0,arg1,arg2,arg3);\n\t\t\t\t}", "title": "" }, { "docid": "1c41b103f7c...
d724876238b58b97625136d3c84bc2a7
This methods runs a JDOQL query with an equal operator comparing a field with a domain object navigated from a parameter.
[ { "docid": "04af3440a91f9c739408efc89468f475", "score": "0.55860204", "text": "@SuppressWarnings(\"unchecked\")\n public void testDirtyParameterNavigationToPrimitiveField() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n Full...
[ { "docid": "d955adcc95743b9aa5e698481d17c9f0", "score": "0.6807733", "text": "@SuppressWarnings(\"unchecked\")\n public void testParameterEqual() {\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n try {\n tx.begin();\n\n String filter = \"this.departme...
c6acb567ba479e27ce1b26986a50b82a
Test of calcTeamSize method, of class Logic.
[ { "docid": "acf27b415879fcb5f1a4f641290461ec", "score": "0.74115723", "text": "@Test\r\n public void testCalcTeamSize() {\r\n System.out.println(\"calcTeamSize\");\r\n assertEquals(8, instance.calcTeamSize(30, 4, 3)); \r\n // TODO review the generated test code and remove ...
[ { "docid": "6d67c7aa8ba7da0561134fda0c1e5108", "score": "0.6822673", "text": "public int getSize () {\n\t\treturn teamSize;\n\t}", "title": "" }, { "docid": "07eb4d13dc22b8c6a79ce059a6eddf6d", "score": "0.6379079", "text": "public void testTotalRequiredSize() {\n }", "title": ...
dcd07458ddfca6653f25faffc199722c
Default Constructor for Jackson instantiation
[ { "docid": "a14bf29e3c1ed78de84cd77817d03e67", "score": "0.0", "text": "public BodyPackage() {\n\t\tsuper();\n\t}", "title": "" } ]
[ { "docid": "11aaa6ea9b43f3c4b3603fad33d572b7", "score": "0.7302696", "text": "public TestJackson() {\r\n\t\tmapper = new ObjectMapper();\r\n\t}", "title": "" }, { "docid": "1c775852551161594178ee6264ec0418", "score": "0.6983653", "text": "public JsonDeserializer() {\n }", "tit...
91f1e31c3db686e2de28d0c4a18dfa42
This is a comment
[ { "docid": "b7f07f3a4f4ef78cc36896dee9015317", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello world!\");\n\t\t/*\n\t\t\tThese\n\t\t\tare\n\t\t\tall\n\t\t\tcomments\n\t\t*/\n\t}", "title": "" } ]
[ { "docid": "9e5267aef89625ca24b45239c4dbe524", "score": "0.81619817", "text": "public boolean isComment() {\n/* 91 */ return true;\n/* */ }", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.7878377", "text": "String getComment();", "title": ""...
8581619c03dbd0fcecbb3b14f8cea819
Constructs a floor object
[ { "docid": "8893610df4d1982e93dba3ddedd8fb71", "score": "0.6068754", "text": "public Floor(int datacenterId, int floorId) {\n\t\t// Set IDs\n\t\tthis.id = floorId;\n\t\tthis.datacenterId = datacenterId;\n\n\t\t// Set other values\n\t\tsetProperties();\n\n\t\t// Get racks for floor\n\t\tString url = base...
[ { "docid": "edd8fd7963518b0f84d5410acfab169e", "score": "0.7755339", "text": "public TowerFloor(){\n\t\tthis(0, 0, null);\n\t\tthis.anyFloor = true;\n\t}", "title": "" }, { "docid": "145257819f07fbe69675e4b8fc8adced", "score": "0.729194", "text": "public Floor(int _floorNumber) {\r\n...
241290f771b8f4480e609af35f4c77b5
Gets the "onkeyup" attribute
[ { "docid": "0c80b0e401ac8fc80c9001e1b222dac4", "score": "0.75391126", "text": "public java.lang.String getOnkeyup()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target =...
[ { "docid": "ed76ac40cd9d707574c5f8f9c0dd6051", "score": "0.7868802", "text": "public Object getOnkeyup() {\r\n\t\treturn getOnKeyUp();\r\n\t}", "title": "" }, { "docid": "a3320bf7137182522c71fe4d1ad60f5d", "score": "0.6972149", "text": "public boolean isSetOnkeyup()\n {\n ...
a035cee533fc3e49a1dde7aa7715e0a1
This function get string and split it by Monom pattern, and set Monom params. This function is called only after its pass the validateFormat function
[ { "docid": "5e602ec188c657072fa818c536265ded", "score": "0.56844723", "text": "private void splitMonomByString(String s) {\n\t\tif (s.contains(\"x^\")) {\n\t\t\tString[] splittedStr = s.split(\"x\\\\^\");\n\t\t\tthis.set_coefficient(Double.parseDouble(handleSignOfNumber(splittedStr[0])));\n\t\t\tthis.se...
[ { "docid": "b679f2f406893617a44abee1cfd4d1b5", "score": "0.5940088", "text": "public Monom(String s) {\n\t\tif (s == null)\n\t\t\tthrow new ArithmeticException(\"String cannot be null\");\n\t\ts = s.replaceAll(\" \",\"\");\n\t\t// need to check if comes invalid string (by regex)\n\n\t\tif (!validateForm...
a22d3e1a72a072e0c8a9c342e73bf5aa
Returns a string that when fed into the query parser, produces a QueryFormat equal to this one. The string returned does not contain the FORMAT keyword.
[ { "docid": "f8de92bd534c0938a510c2b7b3410f12", "score": "0.5903866", "text": "public String toQueryString() {\n StrBuilder builder = new StrBuilder();\n List<String> stringList = Lists.newArrayList();\n for (AbstractColumn col : columnPatterns.keySet()) {\n String pattern = columnPatterns....
[ { "docid": "a7d6ec3362f79f8cc9276ee0ee86b835", "score": "0.7188065", "text": "public String getFormatName(Query query);", "title": "" }, { "docid": "609010cdfd16e84c240ad4285223963b", "score": "0.6638406", "text": "public void setFormatName(Query query, String f);", "title": "" ...
388aeabac0866d76869e188717ca0395
set the game speed.
[ { "docid": "c09dd6b46a20025a678ae7b50b9cee43", "score": "0.84590065", "text": "public void setGameSpeed(double speed) {\r\n this.gameSpeed = speed;\r\n }", "title": "" } ]
[ { "docid": "d3cb32029bb8a87628102029fd7e1518", "score": "0.8261233", "text": "void setSpeed(int speed);", "title": "" }, { "docid": "34f6f923ffc672ff3c921a030cce2e33", "score": "0.808403", "text": "public void setSpeed(float speed) {\n loonspeed = speed;\n }", "title": ...
941cdbd3e96c531d50964253d3cc1cb8
La persona de 12 segundos cruza al otro lado del puente.
[ { "docid": "ed3b2b7c113a19fdeac4af90bfc4aed1", "score": "0.54431075", "text": "public boolean P12() {\n if ((_calzada[4] == 1) && ((_calzada[6] - 12) >= 0)) {\n _calzada[4] = 0;\n _calzada[5] = _calzada[5] + 12;\n _calzada[6] = _calzada[6] - 12;\n retur...
[ { "docid": "2be316e0d6bf7941d72cdc11da34629f", "score": "0.6391999", "text": "public void monter() {\n \n\t\t\n\t\tthis.etageCourant = appleAscenseur () ;\n\t\t\n\t\tScanner saisie = new Scanner(System.in);\n\t\tSystem.out.println(\"\\n Veuillez saisir le numero de votre : \");\n\t\tint numEtage = sai...
65fa29e774de01e9563740c21694df33
$ANTLR start "query" /root/Documents/javawork/cassandratrunk/src/antlr/Cql.g:132:1: query returns [CQLStatement.Raw stmnt] : st= cqlStatement ( ';' ) EOF ;
[ { "docid": "29424fb621db7ced3dda3356e17ca10e", "score": "0.77863836", "text": "public final CQLStatement.Raw query() throws RecognitionException {\n\t\tCQLStatement.Raw stmnt = null;\n\n\n\t\tCQLStatement.Raw st =null;\n\n\t\ttry {\n\t\t\t// /root/Documents/java-work/cassandra-trunk/src/antlr/Cql.g:133:...
[ { "docid": "adc6d6b0f5ecc372ed750ebde79ac95e", "score": "0.63998914", "text": "public final CQLStatement query() throws RecognitionException {\n\t\tCQLStatement stmnt = null;\n\n\n\t\tSelectStatement selectStatement1 =null;\n\t\tUpdateStatement insertStatement2 =null;\n\t\tUpdateStatement updateStatemen...
a685ee3e8175c9178f0b162b427ba9c9
super.onListItemClick(l, v, position, id); Displays a message that reads the array and displays the appropriate index with fixed array Toast.makeText(this, attraction[position], Toast.LENGTH_SHORT).show(); Displays a message that reads the array and displays the appropriate index with array list Toast.makeText(this, attractionList.get(position) + ".", Toast.LENGTH_LONG).show(); Displays a message that reads the array and displays the appropriate index with array list and each item's name
[ { "docid": "0f3f28e81d4b379d7f405855c94b8946", "score": "0.76571935", "text": "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n Toast.makeText(this, attractionList.get(position).getName() + \".\", Toast.LENGTH_LONG).show();\n\n// String key = a...
[ { "docid": "b54ef8cb1e9d9736e7fa62c857d73587", "score": "0.76115423", "text": "@Override\n public void onItemClick(AdapterView<?> arrayAdapter, View view, int position, long arg3) {\n clickedListItem = (String) lv.getItemAtPosition(position);\n Log.i(\"\", \"this is the clic...
2de5f8a4ed5236788c660930ef3a7e8c
/ Pattern pattern = Pattern.compile("/blog/([09]+)/([09]+)([09]+)"); Matcher matcher = pattern.matcher(" System.out.println(matcher.matches()); System.out.println(matcher.find()); System.out.println(matcher.group(0)); System.out.println(matcher.group(1)); System.out.println(matcher.group(2)); System.out.println(matcher.group(3));
[ { "docid": "6b3366cf05dcde2240b2e38ef574e7d2", "score": "0.0", "text": "public static void main(String[] args){\n Date date = new Date();\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm\");\n System.out.print(format.format(date));\n\n try {\n Fi...
[ { "docid": "eb5331a9b4a879f1d61031a3bd61be84", "score": "0.55322284", "text": "private static void r13() {\r\n\t\tPattern pattern = Pattern.compile(\"(\\\\d\\\\d)\\\\1\");\r\n\t\t\r\n\t\t//Matcher matcher = pattern.matcher(\"%%\");\r\n\t\tMatcher matcher = pattern.matcher(\"3232\");\r\n\t\t//Matcher mat...
80facb06ddcff8d02019439b7d20f495
Returns a new object of class 'Traced Parameter Set Configuration'.
[ { "docid": "26d4b66ba0a24b36b44d94b0b5100c46", "score": "0.86335635", "text": "TracedParameterSetConfiguration createTracedParameterSetConfiguration();", "title": "" } ]
[ { "docid": "2da8978b3e05a4495e1cca89a7fda25b", "score": "0.7825864", "text": "TracedParameterConfiguration createTracedParameterConfiguration();", "title": "" }, { "docid": "0854923eda1fe521cf9102191e7af625", "score": "0.71099925", "text": "TracedGeneralizationSetConfiguration create...
f35889cde92824678cf29434869c1313
Created by glenn on 30/12/15.
[ { "docid": "c2e15710b41a66dd361e719ba718bb95", "score": "0.0", "text": "public interface AppointmentDetailsView {\n void checkInAppointment(Appointment appointment, List<AppointmentStatus> appointmentStatusList);\n SharedPreferences getUserDetailsSharedPreferences();\n SharedPreferences getBusi...
[ { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.62788177", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.6037928", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }...
e15a22373499261a7d880afe8392fd8f
This method was generated by MyBatis Generator. This method sets the value of the database column T_IM_MATERIALREQBILLENTRY.FCOREBILLNUMBER
[ { "docid": "3052c43ca0e1fbb73c0570f93cc65640", "score": "0.71940935", "text": "public void setFcorebillnumber(String fcorebillnumber) {\n this.fcorebillnumber = fcorebillnumber;\n }", "title": "" } ]
[ { "docid": "ddcbd57affe6e497e668244f505b5bc0", "score": "0.64032626", "text": "public String getFcorebillnumber() {\n return fcorebillnumber;\n }", "title": "" }, { "docid": "4db16785d84c726eda18ffb853de9c10", "score": "0.63771206", "text": "public void setFcorebillid(Strin...
9f4387d25c578159789cd67b925ab920
Creates new form Clock
[ { "docid": "67c2f610855905af8dbbe841cafbfe75", "score": "0.0", "text": "public App() {\n super(\"Timer\");\n try \n {\n alarmImage = ImageIO.read((getClass().getResource(\"image/alarm.jpg\"))); \n } catch (IOException ex) \n {\n Logger.get...
[ { "docid": "5e900a8ccef3081f06e7717462c28fc3", "score": "0.6674927", "text": "public ClockPane() {\r\n setCurrentTime();\r\n }", "title": "" }, { "docid": "ec355b659180b1389e5d3c4e7ac3a067", "score": "0.65563416", "text": "public clock() {\n initComponents();\n }", "...
8c60926d895caefab1594847b186408b
wal = new RandomAccessFile(new File(walDirectory+"/wal.bin"), "rw").getChannel().map(MapMode.READ_WRITE, 0, length);
[ { "docid": "336198fc41e0dbda5127ea991399cfa7", "score": "0.0", "text": "@Override\n\tpublic void start() throws Exception {\n\t}", "title": "" } ]
[ { "docid": "09d2680a2b88745f2aac7d11f44c33df", "score": "0.58629894", "text": "public MMapRandomAccessFile(String location, String mode) throws IOException {\n super(location, mode, 1);\n FileChannel channel = file.getChannel();\n source = channel.map(readonly ? FileChannel.MapMode.READ_ONLY : ...
da7a1724ea320c04d2d8d1570a94f252
/ renamed from: g
[ { "docid": "7273e1f9986c362640b4524041b451fa", "score": "0.0", "text": "public View mo22066g() {\n return this.f24826g;\n }", "title": "" } ]
[ { "docid": "ecbd5c72003b371c39257c60dff55b5d", "score": "0.6781583", "text": "public void g() {\n }", "title": "" }, { "docid": "50f94dedb188a66c9108ceac9f703510", "score": "0.66598725", "text": "public String d()\r\n/* 55: */ {\r\n/* 56:110 */ return this.g;\r\n/* 57:...
d7b52c9f5490a069175fc3514a5b107c
father puede ser null
[ { "docid": "b725c9aafe650af8624b639f3b80851d", "score": "0.0", "text": "public Folder createForNewUser() {\n\t\tfinal Collection<Folder> childFolders = new ArrayList<Folder>();\n\t\tfinal Collection<PrivateMessage> messages = new ArrayList<PrivateMessage>();\n\t\tfinal Folder res = new Folder();\n\t\tre...
[ { "docid": "828d08156134af1f67c0af0a82f44386", "score": "0.6315584", "text": "public Node getFather() {\n\t\treturn father;\n\t}", "title": "" }, { "docid": "cb776126685ec306c90d7a8b29be98aa", "score": "0.63013935", "text": "@Override\n public Optional<Node> getParent() {\n ...
82d0625955891809e841a6e4fded39ad
current size of the queue Constructor to initialize queue
[ { "docid": "fd359618a00314535cd29060ee584f04", "score": "0.7391436", "text": "Queue(int capacity) {\n arr = new int[capacity];\n this.capacity = capacity;\n front = 0;\n rear = -1;\n this.currentSize = 0;\n }", "title": "" } ]
[ { "docid": "3d4e84fa55ff045754b2c40731af516d", "score": "0.8358699", "text": "public Queue(){\n\t this(DEFAULT_CAPACITY);\n }", "title": "" }, { "docid": "928ca0d8df06477bc20b814619b0c7e7", "score": "0.7899546", "text": "public LIFOQueue() {\n this.size = 0;\n }", "ti...
63db6d520fce6fc5622e456765a141e7
Test record folder as user
[ { "docid": "09db19ae7a7e4e7e96488a3420da9fb0", "score": "0.6823591", "text": "public void testRecordFolderAsUser()\r\n {\r\n retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()\r\n {\r\n @Override\r\n public Object execute() throws T...
[ { "docid": "5b1bf3d66b44d1c31951be28e1bc4d54", "score": "0.6375", "text": "public abstract String getUserDirectory();", "title": "" }, { "docid": "41812d4e19ee253321d23edb9b9be5c5", "score": "0.6224122", "text": "public void testRecordFolderAsPowerUser()\r\n {\r\n retryingT...
8cc22562c2bc70c0af0814636b4afbac
Dynamic lineups representing the YouTube content viewed by the audience. repeated .google.ads.googleads.v14.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
[ { "docid": "86784f5c4cb868b8f2aec0d92bf107f7", "score": "0.6865832", "text": "public com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup.Builder addDynamicLineupsBuilder(\n int index) {\n return getDynamicLineupsFieldBuilder().addBuilder(\n index, com.google.ads.goog...
[ { "docid": "7368744ee15a29b0deb897a0dcabc5dc", "score": "0.75583285", "text": "@java.lang.Override\n public com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup getDynamicLineups(int index) {\n return dynamicLineups_.get(index);\n }", "title": "" }, { "docid": "cb287a08aa...
08abbc62bb3efe436172e9a5f6ec513b
Handle updating the time periodically in interactive mode.
[ { "docid": "f33247dc1b30e939d55c6d66970c9a6d", "score": "0.6413278", "text": "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_...
[ { "docid": "0a2ace9bf709e56d3b0ae98befb89f6e", "score": "0.6956422", "text": "@Override\n\tpublic void run() {\n\t\tThread thisThread = Thread.currentThread();\n\t\t\n\t\twhile( updateTime == thisThread ) {\n\t\t\tthis.time = new GregorianCalendar();\n\t\t\tString hour = String.valueOf(time.get(Calendar...
63365decc3616d0b907b988a809463c9
string representation of key value. time complexity is O(N) as we are itearing the whole array.
[ { "docid": "2fae4e894ca7bcbbc687697cba8fb96f", "score": "0.0", "text": "public String display() {\n if (size == 0) {\n return \"{}\";\n }\n String str = \"{\";\n for (String check : keys()) {\n str += check + \":\" + get(check) + \", \";\n }\n ...
[ { "docid": "dc1bc95eb23560c619874e39ed689b56", "score": "0.7374169", "text": "@Override\n public String toString ()\n {\n return Arrays.deepToString (key);\n }", "title": "" }, { "docid": "f1893ae92ac093065e5dadd2a46c1410", "score": "0.71716756", "text...
1e9ba48e54c8195ee80718e3087f1e1d
Draw a picture with a few robots
[ { "docid": "1cd7eba94499bd69da9980ba2ef45aca", "score": "0.7233176", "text": "public static void drawPicture1(Graphics2D g2) {\r\n\r\n\tRobot r1 = new Robot(100,250,50,75);\r\n\tg2.setColor(Color.CYAN); g2.draw(r1);\r\n\t\r\n\t// Make a robot that's half size, \r\n\t// and moved over 150 pixels in x dir...
[ { "docid": "9abd942355ee1e218f57a142ec8ebd46", "score": "0.6861721", "text": "public static void drawPicture2(Graphics2D g2) {\r\n\r\n\t// Draw some AngryRobots\r\n\t\r\n AngryRobot h1 = new AngryRobot(100,250,50,75);\r\n\tg2.setColor(Color.CYAN); g2.draw(h1);\r\n\t\r\n\t// Make a black robot tha...
9e31f5ee9b99c7e8178e797e83229865
required .hbase.pb.UserInformation user_info = 1;
[ { "docid": "f7ba33a3e9e30c4698098dc1284e201d", "score": "0.5765639", "text": "public org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder() {\n return userInfo_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation...
[ { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78403354", "text": "org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();", "title": "" }, { "docid": "e7c9f9c2379ae6c5d51a546cfdae21c1", "score": "0.78402174", "text": "...
d3b91a4738e8d5481652f72d08176067
repeated .prometheus.Label labels = 1;
[ { "docid": "76dacaadfb6ab6251e84d099f09b5cb0", "score": "0.5438029", "text": "public Builder addAllLabels(\n java.lang.Iterable<? extends Prometheus.Label> values) {\n if (labelsBuilder_ == null) {\n ensureLabelsIsMutable();\n com.google.protobuf.AbstractMessageLite.Bui...
[ { "docid": "c67c02831462f1572296ad3b313bdaf3", "score": "0.65489733", "text": "Prometheus.Label getLabels(int index);", "title": "" }, { "docid": "c67c02831462f1572296ad3b313bdaf3", "score": "0.65489733", "text": "Prometheus.Label getLabels(int index);", "title": "" }, { ...
30887f0b28881fcf4c3100f2072260be
Finds the correct Java class for the given parameters PCML Description Object Returned type=char String type=byte byte[] type=int length=2 precision=15 Short type=int length=2 precision=16 Integer type=int length=4 precision=31 Integer type=int length=4 precision=32 Long type=int length=8 precision=63 Long type=int length=8 precision=64 BigInteger type=packed BigDecimal type=zoned BigDecimal type=float length=4 Float type=float length=8 Double type=date java.sql.Date type=time java.sql.Time type=timestamp java.sql.Timestamp
[ { "docid": "bc748a2da7b1f4dc194288e90d4b7252", "score": "0.52898383", "text": "private static Class<?> mapToJavaType(String type, String lengthString, String precisionString) {\n Integer length = lengthString != null && !lengthString.isEmpty() ? Integer.valueOf(lengthString) : 4;\n Integer...
[ { "docid": "f06fc79a0f31e8478eb6a729de8ed3f7", "score": "0.59021366", "text": "static Class getPrimitiveClass(String parameter) {\n\t\tClass clazz = null;\n\t\t\n\t\tswitch (arrayElement(JAVA_PRIMITIVES, parameter)) {\n\t\t\tcase 0: \n\t\t\t\tclazz = int.class;\n\t\t\t\tbreak;\n\t\t\tcase 1: \n\t\t\t\tc...
bccb587290c0907dd2e50059be250a9e
Creates the Minecraft session.
[ { "docid": "de9b84721196b844425076f2e268562a", "score": "0.0", "text": "public OCSession(IoSession session) {\n\t\tthis.session = session;\n\t}", "title": "" } ]
[ { "docid": "838fbdbf2a373635deedd1cf826c0c7f", "score": "0.6503337", "text": "public void startSession(){\n sessionID = client.startSession();\n \n //Get system temporary files path\n String temporaryPath = System.getProperty(\"java.io.tmpdir\").replaceAll(\"\\\\\\\\\",\"/\")...
a3fbadfc7f742a5a130cc481763cd405
Test if a TypeConversion is necessary.
[ { "docid": "c9110a07d63d49eed9f4d7c9f019fd0a", "score": "0.6846964", "text": "private static boolean testCastNeccessary(final Type toType,final Expression expression) {\n\t\tif (toType == null)\treturn (false);\n\t\tType fromType = expression.type;\n\t\tif(fromType==null) {\n\t\t\tUtil.error(\"Expressio...
[ { "docid": "7196973cd73b911398b9328835321c99", "score": "0.6941399", "text": "void checkCast(TypeDesc type);", "title": "" }, { "docid": "f5bebe7115e1b363d07782b15452de7b", "score": "0.6585685", "text": "boolean hasConversionDateTime();", "title": "" }, { "docid": "2d46eb...
f3f6a91f48e1bf6a92e510a89189c689
conditions 0 branches 1
[ { "docid": "595e3be9b65cd611b7f9acff908832a6", "score": "0.0", "text": "public static Node populateCallEvents(CFG R, Node parent){\r\n\t\tAtomicNode atNode1;\r\n\t\r\n\t\t\r\n//\t\tCFG R =new CFG();\r\n\t\tatNode1=new AtomicNode(\"1511#PCE1\",\"Line:1545-Line1566\");\r\n\t\tR.insert(atNode1, parent);\r...
[ { "docid": "507cfd9d5fb77b1270c4383d2bc107a6", "score": "0.6409069", "text": "private static void branchMain(String... args) {\n if (args.length != 2) {\n System.out.println(\"Incorrect operands.\");\n return;\n }\n Command.branch(args[1]);\n }", "title"...
d0939dad549eeeff7d33e0b9215e4568
Detect touch on button
[ { "docid": "6a1d20e08dd9e55861d231c851c32aa6", "score": "0.0", "text": "@Override\n public void onClick(View v) {\n mApp.setGlobalVarValue(Characters.CAT);\n Intent playI = new Intent(MainActivity.this, LevelSelectionActivity.class); //Start next activity\n ...
[ { "docid": "5cdf5a6e5fbf693a8b5bc737aae0e605", "score": "0.7563363", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n switch(event.getAction()){\n case MotionEvent.ACTION_DOWN:\n Log.i(tag, \"testBtn-onTouch-AC...