query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Apply a method to the files under a given directory and perhaps its subdirectories.
public static void processPath(File path, String suffix, boolean recursively, FileProcessor processor) { processPath(path, new ExtensionFileFilter(suffix, recursively), processor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void processDirectory(File directory) {\n FlatFileProcessor processor = new FlatFileProcessor(directory);\n processor.processDirectory();\n }", "public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in a...
[ "0.6369325", "0.60065687", "0.59395814", "0.59317446", "0.58556867", "0.5819506", "0.57662404", "0.57262784", "0.5695847", "0.5679379", "0.56604606", "0.5613325", "0.559833", "0.5545506", "0.5533572", "0.5515005", "0.54799944", "0.544683", "0.543856", "0.5432727", "0.5412891"...
0.0
-1
Apply a function to the files under a given directory and perhaps its subdirectories. If the path is a directory then only files within the directory (perhaps recursively) that satisfy the filter are processed. If the pathis a file, then that file is processed regardless of whether it satisfies the filter. (This semant...
public static void processPath(File path, FileFilter filter, FileProcessor processor) { if (path.isDirectory()) { // if path is a directory, look into it File[] directoryListing = path.listFiles(filter); if (directoryListing == null) { throw new IllegalArgumentException("Directory acc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void process(File path) throws IOException {\n\t\tIterator<File> files = Arrays.asList(path.listFiles()).iterator();\n\t\twhile (files.hasNext()) {\n\t\t\tFile f = files.next();\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tprocess(f);\n\t\t\t} else {\n\t\t\t\tif (startFile != null && startFile.equals(f.getName())...
[ "0.6098271", "0.5833229", "0.5832562", "0.56595874", "0.55420315", "0.5496763", "0.5487928", "0.5475075", "0.54262376", "0.5393107", "0.538713", "0.53790647", "0.5347477", "0.5334595", "0.52863306", "0.5260179", "0.52025324", "0.51826924", "0.51641226", "0.51269376", "0.50944...
0.7327679
0
Compute the next random value using the logarithm algorithm. Requires a uniformlydistributed random value in [0, 1).
public float nextLog () { // Generate a non-zero uniformly-distributed random value. float u; while ((u = GENERATOR.nextFloat ()) == 0) { // try again if 0 } return (float) (-m_fMean * Math.log (u)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double random()\n {\n final int MAX_INT = 2147483647;\n int n = MAX_INT;\n \n // Just to ensure it does not return 1.0\n while(n == MAX_INT)\n \tn = abs (RAND.nextInt());\n \n return n * (1.0 / MAX_INT);\n }", "@Test\n public void testLogP() {\n System.out.pr...
[ "0.6674715", "0.6560467", "0.63992447", "0.63967025", "0.6306545", "0.6300164", "0.62814176", "0.623324", "0.6229974", "0.6167474", "0.61558485", "0.6123276", "0.60354364", "0.5993805", "0.5955757", "0.5947465", "0.5928617", "0.5907119", "0.59045684", "0.59002733", "0.5882771...
0.8298598
0
Compute the next random value using the von Neumann algorithm. Requires sequences of uniformlydistributed random values in [0, 1).
public float nextVonNeumann () { int n; int k = 0; float u1; // Loop to try sequences of uniformly-distributed // random values. for (;;) { n = 1; u1 = GENERATOR.nextFloat (); float u = u1; float uPrev = Float.NaN; // Loop to generate a sequence of random v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int computeNextVal(boolean prediction) {\n\t\treturn (int) (Math.random()*10)%3;\r\n\t}", "private double randn(){\r\n\t\t//* http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html\r\n\t\t//RandomNumber rnd = new RandomNumber(System.currentTimeMillis());\r\n\t\t//return rnd.norma...
[ "0.5933424", "0.58596486", "0.5767073", "0.5703027", "0.5655936", "0.55918765", "0.546833", "0.5429705", "0.5428329", "0.5407123", "0.5378094", "0.5350215", "0.53474814", "0.53419596", "0.5313867", "0.53107095", "0.5303999", "0.5276322", "0.5268558", "0.524724", "0.52329946",...
0.8398103
0
/ 21. Unique Binary Search Trees Given n, how many structurally unique BST's (binary search trees) that store values 1...n? Analysis Let count[i] be the number of unique binary search trees for i. The number of trees are determined by the number of subtrees which have different root node. For example, i=0, count[0]=1 /...
private static int numTrees(int n) { int[] counts = new int[n + 2]; counts[0] = 1; counts[1] = 1; for (int i = 2; i <= n; i++) { for (int j = 0; j < i; j++) { counts[i] += counts[j] * counts[i - j - 1]; } } return counts[n]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int numTrees(int n) {\n\n int[] count = new int[n + 1];\n\n count[0] = 1;\n count[1] = 1;\n count[2] = 2;\n\n if (count[n] != 0) return count[n];\n\n // Get from count[1] to count[n]\n // G(n) = ∑ i=1ton, G(i−1)⋅G(n−i)\n for (int j = 3; j <= n;...
[ "0.7206326", "0.68413526", "0.67393523", "0.6738624", "0.67245436", "0.67118245", "0.6687408", "0.6683837", "0.6642449", "0.6641784", "0.66084045", "0.6551716", "0.6539951", "0.65381515", "0.6495757", "0.6494071", "0.6464921", "0.64583033", "0.64283174", "0.6420229", "0.64195...
0.6986128
1
/ 23. Path Sum II Given a binary tree and a sum, find all roottoleaf paths where each path's sum equals the given sum.
private static List<List<Integer>> pathSum(TreeNode root, int sum) { List<List<Integer>> result = new ArrayList<>(); if (root == null) { return result; } List<Integer> path = new ArrayList<>(); path.add(root.value); dfs(root, sum - root.value, result, path); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int pathSumFrom(TreeNode node, int sum){\n if(node == null){\n return 0;\n }\n if(node.val == sum){\n // if the val in node is equal to sum we have found a path (node only)\n // and we check if we can add more nodes to the left and the right\n ...
[ "0.7764504", "0.76382977", "0.7532619", "0.7503472", "0.75028443", "0.7479113", "0.746596", "0.7441352", "0.74351895", "0.7364985", "0.7252283", "0.7213647", "0.72034866", "0.7066611", "0.7064843", "0.7041113", "0.69406724", "0.6871405", "0.68482155", "0.6823677", "0.6780888"...
0.8122209
0
constructor for the world
public World() { initWorld(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyWorld()\n {\n super(600, 400, 1);\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }", "public GameWorld(){\r\n\t\t\r\n\t}", "public WiuWorld()\n ...
[ "0.80076045", "0.7922803", "0.78934425", "0.77442473", "0.77304244", "0.76869744", "0.76535165", "0.7619856", "0.7520145", "0.74819565", "0.7450172", "0.741644", "0.73763925", "0.73725253", "0.7333329", "0.7291844", "0.72617424", "0.725584", "0.7255125", "0.7225259", "0.72090...
0.84650457
0
loops through each element in the grid and prints it's contents. It prints "[ ]" in place of null values
public void printGrid() { for(int i = 0; i < numRows; i++) { for(int j = 0; j < numColumns; j++) { if(grid[i][j] == null) { System.out.print("[ ]"); } else { System.out.print(grid[i][j]); } } System.out.println("\n"); } System.out.println("\n\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printGrid()\n\t{\n\t\tfor ( int y = 0; y < height; y++)\n\t\t{\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\t// If x & y are the same as the empty tile coordinates, print empty tile\n\t\t\t\tif ( x == x0 && y == y0 ) System.out.print( \" \" );\n\t\t\t\t// Else print element of grid\n\t\t\...
[ "0.79695904", "0.7780036", "0.7741711", "0.76243246", "0.75901204", "0.7545004", "0.75059336", "0.7479323", "0.74427426", "0.73981625", "0.7372304", "0.7364328", "0.732571", "0.7215732", "0.71777844", "0.71481776", "0.7055", "0.7047973", "0.7035531", "0.7013264", "0.69765157"...
0.80836993
0
initialise the grid and place one of each species
public void initWorld() { grid = new Creature[numRows][numColumns]; //place a Species1 object in the top half of the grid int topRowInit = (int)(Math.random()*(numRows/2)); int topColInit = (int)(Math.random()*(numColumns)); grid[topRowInit][topColInit] = new Species1(this, topRowInit, topColInit); grid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}", "private void initGrids() {\n grid0 = new Grid(100f, 50f, 100f, 0);\n grid1 = new Grid(100f, 150f, 100f, 1);\n grid2 = new ...
[ "0.7230912", "0.6898095", "0.67749304", "0.6753901", "0.6713398", "0.6683298", "0.66532373", "0.6580933", "0.656424", "0.656355", "0.6488846", "0.6469358", "0.6434851", "0.6429925", "0.6334116", "0.6314623", "0.6306989", "0.6279395", "0.62758756", "0.62498957", "0.62399876", ...
0.72337556
0
sets the specified position in the grid to null
public void setGridNull(int row, int col) { grid[row][col] = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void positionCleared();", "public void reset() {\n position = 0;\n }", "public void resetPosition()\n {\n resetPosition(false);\n }", "@Override\n\tpublic void reset() {\n\t\tfor (int i = 0; i < _board.length; i++)\n for (int j = 0; j < _board[i].length; j++)\n \t...
[ "0.7136943", "0.6943364", "0.6941786", "0.6832533", "0.67814", "0.6776531", "0.67545795", "0.67533314", "0.67248875", "0.6712512", "0.6707463", "0.6687182", "0.66533715", "0.6609509", "0.65943193", "0.65906465", "0.65825677", "0.6572439", "0.65699077", "0.6565561", "0.6532454...
0.74491
0
adds an existing creature to the specified space on the grid
public void addCreature(Creature child, int row, int col) { grid[row][col] = child; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCreatureToRoom(String creature)\n\t{\n\t\tthingsInColumn.add(creature);\n\t\tupdateButtons();\n\t\t\n\t\tDisplayThreeSQLHandler.changeRoom(\"CREATURE\", creature\n\t\t\t\t\t\t, DisplayThree.getInstance().selectedRoomID);\n\t}", "public abstract void addCreature(Point p, BaseCreature critter);", ...
[ "0.657055", "0.64317405", "0.6227635", "0.6199073", "0.61360216", "0.5945796", "0.58886147", "0.58839625", "0.58815825", "0.5864379", "0.58632267", "0.58523124", "0.58340585", "0.5815399", "0.5799922", "0.5784557", "0.57689244", "0.5744138", "0.57231236", "0.5714343", "0.5692...
0.70505184
0
returns the grid object
public Creature[][] getGrid() { return grid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Grid grid() { return grid; }", "public abstract Grid<?> getGrid();", "public Grid getGrid() {\n return myGrid;\n }", "public Grid getGrid() {\n \t\treturn grid;\n \t}", "public GridPane getGrid(){\n\t\treturn myGrid;\n\t}", "com.ctrip.ferriswheel.proto.v1.Grid getGrid();", "public Grid...
[ "0.8363822", "0.8305082", "0.8151672", "0.81393576", "0.79964423", "0.79867935", "0.7881622", "0.78789634", "0.78473437", "0.7640073", "0.76293564", "0.75674075", "0.7543372", "0.74874204", "0.74234504", "0.7320592", "0.7235353", "0.71955395", "0.7159063", "0.7092262", "0.701...
0.724835
16
Returns the world type. This is overridden by its subclasses
public abstract String getWorldType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n \tpublic static Class getWorldTypeClass() {\n \t\treturn getMinecraftClass(\"WorldType\");\n \t}", "public String getWorldName() {\n\t\treturn world;\n\t}", "public String getWorld() {\r\n\t\treturn mainSpawn.getWorld().toString();\r\n\t}", "public World getWorld();", "pub...
[ "0.8076269", "0.6783247", "0.6728234", "0.6548943", "0.65171134", "0.6460011", "0.64590794", "0.6429828", "0.6424254", "0.6412896", "0.6411795", "0.64091647", "0.63989806", "0.6386867", "0.6386867", "0.63682705", "0.63538885", "0.6313823", "0.62457174", "0.62388045", "0.62388...
0.838152
0
Construct with a table name
public BasicTable(String name) { setId(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TableDefinition(String tableName) {\n this.tableName = tableName;\n }", "String tableName2Name(String name);", "public DatabaseTable(String tableName) {\n this.tableName = tableName;\n }", "public TableCreation(Table table) {\n this.table = table;\n }", "TABLE createTABLE();", ...
[ "0.7044317", "0.69125944", "0.6896801", "0.685326", "0.68430156", "0.67998374", "0.6778999", "0.6746332", "0.67190385", "0.66138154", "0.65603566", "0.65575385", "0.65412253", "0.6479803", "0.6423794", "0.6406857", "0.64052457", "0.6299005", "0.62943333", "0.6242986", "0.6242...
0.62187886
23
TODO Autogenerated method stub
@Override public void run() { logger.info(" reg execute time {} ",System.nanoTime()); try { ipsService.reg(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
/ public static final int isHitWall = 2; public static final int isHitByBullet = 2; public static final int NumEnergyLvl = 3; public static final int NumStates; public static final double FullAngle = 360.0; public static final double NormalizeFactor = 150.0; public static final int stateTable[][][][][][]; public static...
public static double getEnergy(double energy) { double newEnergy; if (energy < 0 ) newEnergy = -1.0; if (energy < 40.0) newEnergy = -0.33; else if (energy >= 40.0 && energy < 80.0) newEnergy = 0.33; else newEnergy = 1.0; r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// ...
[ "0.6555538", "0.65220076", "0.6103182", "0.59364116", "0.58352447", "0.5759297", "0.5735413", "0.57105994", "0.5692221", "0.56345403", "0.56138116", "0.55448955", "0.5536788", "0.54826355", "0.54826194", "0.54709", "0.5448453", "0.5435886", "0.543326", "0.54138064", "0.538618...
0.0
-1
/ get robot headings in degrees; normalize to 45 deg precision
public static double getHeading(double heading) { double newHeading; if (heading >=0.0 && heading < 90.0) newHeading = -1.0; else if (heading >= 90.0 && heading < 180.0) newHeading = -0.33; else if (heading >= 180.0 && heading < 270.0) newHeading = 0.3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getHeadingInDegrees(){\r\n double headingRadians = calculateHeadingRadians();\r\n return headingRadians * 180 / Math.PI;\r\n }", "float getHeading();", "float getHeading();", "float getHeading();", "private float getHeading() {\n Orientation anglesA = robot.imu.getAngu...
[ "0.77920306", "0.7377073", "0.7377073", "0.7377073", "0.7325618", "0.7197416", "0.70059544", "0.6920228", "0.69150484", "0.6741817", "0.6709762", "0.6632816", "0.6599628", "0.6582139", "0.65589225", "0.65589225", "0.65478903", "0.6510513", "0.6510309", "0.6408565", "0.6394113...
0.66324776
12
/ linear quantization of distance
public static double getTargetDistance(double value) { double distance; if (value < 0) distance = -1.0; if (value >= 0 && value < 150) distance = -1.0; else if (value >= 150 && value < 300) distance = 0.0; else distance = 1.0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double distanceFrom(double x, double y);", "public abstract double calculateDistance(double[] x1, double[] x2);", "public double getDistance() { \n\t\treturn Math.pow(input.getAverageVoltage(), exp) * mul; \n\t}", "double getDistance();", "public float getDistance();", "private double di...
[ "0.651003", "0.6479325", "0.6478265", "0.6459637", "0.6372877", "0.633454", "0.6161142", "0.6099021", "0.6093956", "0.60865027", "0.60783607", "0.6019449", "0.59973705", "0.59505606", "0.5942718", "0.5919626", "0.59158045", "0.58816224", "0.58725595", "0.5867494", "0.5863139"...
0.0
-1
TODO Autogenerated method stub
private java.sql.Date convert(Date datet) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Created by Developer Student Club Varshit Ratna(leader) Devaraj Akhil(Core team)
public interface OnClickAddressListener { /** * tell Activity what to do when address is clicked * * @param view */ void onClick(Address addr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "private stendhal() {\n\t}", "public static void main(String[] args) {\n Student sv;\n\n //cap phat bo nho cho bien doi tuong [sv] \n sv = new Student();\n\n //gan gia tri cho cac fields cua bien [sv]\n ...
[ "0.59330577", "0.58082205", "0.571709", "0.56589746", "0.56576574", "0.56576174", "0.56304455", "0.5617025", "0.55885416", "0.5587847", "0.5587585", "0.54966396", "0.5492586", "0.54869026", "0.546897", "0.5465409", "0.54605496", "0.5451478", "0.5444257", "0.5444257", "0.54442...
0.0
-1
tell Activity what to do when address is clicked
void onClick(Address addr);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAddressClicked(int position) {\n }", "private void onContactAddressClicked() {\n Uri geoLocation = Uri.parse(\"geo:0,0?q=\" +\n Uri.encode(this.contact.getStreet()) + \", \" +\n Uri.encode(Integer.toString(this.contact.getZip())) + \" \" +\n ...
[ "0.7923698", "0.74883395", "0.73982275", "0.73935276", "0.7249004", "0.7161193", "0.7158809", "0.6964273", "0.6885226", "0.68795085", "0.6852385", "0.67803556", "0.67753595", "0.6761054", "0.67286634", "0.6710047", "0.66830194", "0.6665029", "0.6644342", "0.6613763", "0.65912...
0.73776734
4
Method that receives the enum and his content
public void setDescriptionClassConverter(Enum descriptionOftheClass) { this.nameOfEnumUsedOfTheClass = descriptionOftheClass.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void visit(EnumDefinition enumDefinition) {\n\r\n\t}", "void visitEnumValue(EnumValue value);", "Enum getType();", "EnumListValue createEnumListValue();", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "com.yahoo.xpathproto.Transf...
[ "0.69990283", "0.66492903", "0.6470705", "0.6373605", "0.634149", "0.634149", "0.634149", "0.63247854", "0.62939024", "0.62729245", "0.6161062", "0.6148115", "0.61424065", "0.61390585", "0.6131945", "0.6123489", "0.61143315", "0.60973644", "0.6069129", "0.6015679", "0.6014054...
0.0
-1
Abstract method that will be implemented in the other classes that extends this class
public abstract double toBasicUnit(double unit);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void method();", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "protected abstract void switchOnCustom();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Ove...
[ "0.70135", "0.6803733", "0.6749476", "0.67359585", "0.6697846", "0.6637227", "0.661667", "0.661667", "0.65362626", "0.6484564", "0.64317715", "0.6429563", "0.6401887", "0.6374649", "0.6333757", "0.63318753", "0.6317384", "0.630441", "0.6272851", "0.6272118", "0.6255981", "0...
0.0
-1
Abstract method that will be implemented in the other classes that extends this class
public abstract double fromBasicUnit(double valueJTextInsert);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void method();", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "protected abstract void switchOnCustom();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Ove...
[ "0.701342", "0.6804414", "0.67500234", "0.6737024", "0.6697738", "0.6637755", "0.661806", "0.661806", "0.6538591", "0.6486208", "0.64339435", "0.6430364", "0.6402677", "0.6376188", "0.6333715", "0.6332605", "0.6317151", "0.6306278", "0.62724966", "0.62724936", "0.62561834", ...
0.0
-1
Method that receives a name of a propertie of enum and get this propertie content and save in a list
public List<MeasureType> getDescriptionClassConverter() { List<MeasureType> list = Arrays.asList(MeasureType.valueOf(nameOfEnumUsedOfTheClass)); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.Enumeration getPropertyNames();", "java.util.List<resources.java.Complex.ComplexMessage.SimpleEnum> getSimpleEnumFieldList();", "EnumListValue createEnumListValue();", "public Object prop(String name, String type);", "public String prop(String name);", "List<? extends T> getPropertiesLike(Strin...
[ "0.60069376", "0.57556844", "0.56122243", "0.5609019", "0.5603726", "0.55579245", "0.544558", "0.5429044", "0.54041994", "0.53488874", "0.5337485", "0.53354275", "0.5295668", "0.5286559", "0.5271891", "0.5257818", "0.5212411", "0.5201729", "0.5198224", "0.51799536", "0.517798...
0.4757689
93
opening the browser and filling the text box
@BeforeClass public void method() { System.setProperty("webdriver.chrome.driver", "./driver/chromedriver.exe"); driver= new ChromeDriver(); driver.get("https://www.facebook.com"); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); log = Logger.getLogge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t @WebTest\n\t public void DemoTest1() throws InterruptedException {\n\t Grid.driver().get(\"http://www.google.com/\");\n\t \n\t TextField field = new TextField(\"id=lst-ib\");\n\n\t //Thread will wait until TextFiled element present in the browser\n\t WebDriverWaitUtils.waitUntilElementIs...
[ "0.64369106", "0.6270882", "0.62475926", "0.6042262", "0.59618676", "0.59328717", "0.59045565", "0.5841921", "0.58026093", "0.580171", "0.57808113", "0.5772564", "0.5754585", "0.57492024", "0.57474834", "0.5745028", "0.57200176", "0.57054263", "0.5702063", "0.56617314", "0.56...
0.0
-1
travserve the input stream turning it into a one string
protected String traverseStream(InputStream stream){ Scanner input = new Scanner(stream); String res = ""; while(input.hasNext()){ res += input.next() + " "; } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String ioStr(InputStream in) throws IOException {\n\t\t// Read input\n\t\tString str = new String();\n\t\tString next = null;\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\twhile ((next = reader.readLine()) != null) {\n\t\t\tstr += next + \"\\n\";\n\t\t}\n\t\tin.clo...
[ "0.65977615", "0.63918734", "0.6390402", "0.6335081", "0.6335081", "0.63111305", "0.63111305", "0.62723726", "0.626015", "0.6031905", "0.6031483", "0.6024277", "0.60187995", "0.60152334", "0.6005299", "0.5998809", "0.5991103", "0.5972585", "0.59606844", "0.5936938", "0.591126...
0.6661125
0
use native class must init lib first
@Test void testGetSet() { SqlClusterExecutor.initJavaSdkLibrary(null); SdkOption option = new SdkOption(); try { SQLRouterOptions co = option.buildSQLRouterOptions(); } catch (SqlException e) { Assert.assertTrue(e.getMessage().contains("empty zk")); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static native void classInitNative();", "private native String native_init();", "protected native void init();", "private static native void init();", "static native void classInitNative();", "private NativeSupport() {\n\t}", "public /*static*/ native void init();", "private static native boo...
[ "0.81232613", "0.811659", "0.80831915", "0.8058596", "0.8054389", "0.7795944", "0.7772397", "0.7744073", "0.75481284", "0.73224044", "0.7319526", "0.7299592", "0.69538146", "0.68750143", "0.67720723", "0.66792756", "0.6649773", "0.6594003", "0.65790856", "0.65737116", "0.6481...
0.0
-1
return second type of critters
public Image spawnCriter(int waveLevel) { // TODO Auto-generated method stub if (waveLevel==2){ Image image1=new ImageIcon("res/Critter2.png").getImage(); return image1; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getCriterionTypeValue();", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = new Criteria();\n criteria.addAnd(SiteConfineArea.PROP_NATION,Operator.EQ,searchObject.getNation()).addAnd(SiteConfineArea.PROP_PROVINCE, Operator.EQ, ...
[ "0.55630535", "0.54695594", "0.5459366", "0.53821206", "0.53708315", "0.53689635", "0.5313161", "0.52098024", "0.50448114", "0.5009259", "0.49987376", "0.4995014", "0.49919182", "0.49876872", "0.49462843", "0.49291027", "0.49155596", "0.49003226", "0.48918745", "0.48840508", ...
0.0
-1
Created by maplesod on 27/06/14.
public interface DeBruijnOptimiserArgs extends AssemblerArgs { GenericDeBruijnOptimiserArgs getDeBruijnOptimiserArgs(); void setDeBruijnOptimiserArgs(GenericDeBruijnOptimiserArgs args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}"...
[ "0.5968907", "0.58772194", "0.585529", "0.5740199", "0.5727219", "0.5727219", "0.57149947", "0.5697147", "0.56956106", "0.5673944", "0.5670786", "0.56332743", "0.5630023", "0.5624176", "0.5613447", "0.5608703", "0.56042147", "0.56010985", "0.5590161", "0.5569694", "0.5560574"...
0.0
-1
TODO Autogenerated method stub
@Override public Object getItem(int arg0) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
La interfaz que define los servicios que van a ofrecerse a los instrumentos formales de ensayos restringidos que tenemos en el sistema.
public interface RestrictedEssayActivityInstrumentService extends EssayActivityInstrumentService<RestrictedEssayActivityInstrument> { /** * La función encargada de cargar el DAO de los instrumentos formales de ensayos restringidos. * * @param restrictedEssayActivityInstrumentDao * el DAO de los in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpub...
[ "0.7244236", "0.6548779", "0.6546034", "0.63242114", "0.629107", "0.62621254", "0.6256427", "0.62449294", "0.61991096", "0.6160477", "0.6080748", "0.60012627", "0.5991961", "0.59887004", "0.597873", "0.596069", "0.5942735", "0.5941592", "0.5935085", "0.59095204", "0.5895371",...
0.0
-1
/ access modifiers changed from: protected
public boolean decodeForConnectwb(int startIndex, int mediaPrefixLength) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.73744047", "0.7040692", "0.692117", "0.69076973", "0.6844561", "0.68277687", "0.68048066", "0.6581614", "0.653803", "0.6500888", "0.64905626", "0.64905626", "0.6471316", "0.64376974", "0.64308083", "0.64308083", "0.642771", "0.6424499", "0.6419003", "0.64083034", "0.640539...
0.0
-1
checks the validity of employee ID
private boolean validityChecker(TextField employeeId) { String empid = employeeId.getValue(); int length = empid.length(); if (empid.matches(".*[A-Za-z].*") || length < minLength || length> maxLength) return false; if(!isNew){ if (EmployeeDAO.getEmployee(empid) == null) return false; } return true;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean validateEmployeeId(String employeeId);", "public boolean validateEmployeeID() {\n if (employeeID.length() - 1 != 6) {\n return false;\n }\n else if (employeeID.toCharArray()[2] != '-') {\n return false;\n }\n else if (Character.isLetter(employeeID....
[ "0.81442904", "0.7906389", "0.7006047", "0.69918764", "0.69238776", "0.6854009", "0.6752947", "0.6724079", "0.671482", "0.6639675", "0.6520555", "0.64777744", "0.64686626", "0.64302486", "0.63918734", "0.6364111", "0.63376886", "0.63376886", "0.63376886", "0.63376886", "0.633...
0.7968055
1
Marshal Java class to XML
public void createFirstXmlFile(ArrayList<Entry> entityList);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "public void dump( Result out ) throws JAXBException;", "public String marshal (Object obj) throws Exception {\n Class thisClass = obj.getClass();\n XmlDescriptor desc = (XmlDescriptor)clas...
[ "0.6701854", "0.6701854", "0.6701854", "0.6559732", "0.6359991", "0.62992924", "0.6176248", "0.6085531", "0.60474044", "0.59837914", "0.5967397", "0.592494", "0.59177417", "0.5916553", "0.589345", "0.58803385", "0.58753836", "0.5854263", "0.5846886", "0.5827165", "0.58057284"...
0.0
-1
Transform XML to other use XLST
public void transformToSecondXml();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Document toXml() throws ParserConfigurationException, TransformerException, IOException;", "Element toXML();", "@Override\n public void toXml(XmlContext xc) {\n\n }", "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "private String transform...
[ "0.6348865", "0.6276281", "0.6187222", "0.6173412", "0.6173412", "0.6173412", "0.60249263", "0.5966884", "0.59602994", "0.59463614", "0.5909519", "0.5865217", "0.5814415", "0.5809283", "0.57856476", "0.57792866", "0.5772107", "0.57427704", "0.57236475", "0.5715007", "0.567641...
0.74970615
0
Unmarshal XML to Java class
public OutEntries getFromSecondXml();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SneakyThrows(value = {JAXBException.class})\n\tpublic static <T> T xml2Java(Class<T> t, String xml) {\n\t\tUnmarshaller unmarshaller = createUnmarshaller(t);\n\n\t\tStringReader stringReader = new StringReader(xml);\n\t\tT result = (T) unmarshaller.unmarshal(new StreamSource(stringReader));\n\t\tstringReader.clos...
[ "0.594206", "0.5846075", "0.57712525", "0.5723247", "0.5720279", "0.56989765", "0.5688776", "0.56711876", "0.56298876", "0.5602576", "0.5554584", "0.552565", "0.5524987", "0.5514261", "0.54867065", "0.547011", "0.5436707", "0.53955626", "0.5346651", "0.53465533", "0.53404343"...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_answer, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
TODO: I'm working here!!
public void downloadWeatherForCurrentLocation() { if(checkConnection()) { LocationManager locationManager = LocationManager.getInstance(this, view); locationManager.getCoordinates(); } else { showNoConnectionDialog(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() ...
[ "0.5872214", "0.5822612", "0.57698727", "0.5695718", "0.5658863", "0.5633096", "0.56328267", "0.56146365", "0.5559346", "0.550976", "0.5508314", "0.54696953", "0.5464915", "0.5452131", "0.5430362", "0.53978384", "0.5383135", "0.5369629", "0.5363123", "0.5363123", "0.53331906"...
0.0
-1
No args constructor for use in serialization
public MonHoc() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MyEncodeableWithoutPublicNoArgConstructor() {}", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "defaultConstructor(){}", "public Data() {}", "private SerializerFactory() {\n ...
[ "0.74630904", "0.7387007", "0.7210724", "0.7029566", "0.7018587", "0.6977819", "0.69339114", "0.6881743", "0.6739828", "0.6727297", "0.6717886", "0.67169136", "0.669586", "0.669586", "0.66750634", "0.66246814", "0.6604095", "0.6532946", "0.65235436", "0.6500072", "0.6466648",...
0.0
-1
after object is constructed above privately, this method provides the single instance of the class
public static GameController getInstance() { return INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static SingleObject getInstance(){\n return instance;\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static SingleObject getInstance(){\n\t\treturn instance;\n\...
[ "0.77697223", "0.76099354", "0.7583441", "0.7544835", "0.7497534", "0.7395211", "0.71140647", "0.7100763", "0.70761365", "0.6922465", "0.6918533", "0.69010574", "0.6897409", "0.68833935", "0.6834146", "0.6805333", "0.6742331", "0.67148525", "0.66911465", "0.6641219", "0.66381...
0.0
-1
method: wait for user input, then send to each Commandable to determine if valid
public void getCommand() { System.out.println("Enter a command:"); String Input = reader.nextLine(); //takes the user's input and places it in String Input //in the collection of commands, will run loop once for each item in that collection and //stores the item it is looking in the variable created fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void acceptCommands() {\n\t\tScanner input = new Scanner(System.in);\n\t\tInteractiveCommandParser commandParser = new InteractiveCommandParser(\n\t\t\t\tinput, this);\n\t\tcommandParser.readCommands(); // blocking command reader\n\t}", "public static boolean commands(String userInput) {\n\t\tboolean isC...
[ "0.67645645", "0.66810614", "0.6668601", "0.66166174", "0.66068906", "0.65694183", "0.65249103", "0.63554925", "0.6309566", "0.6277393", "0.6247326", "0.6220731", "0.6153028", "0.61040723", "0.6064435", "0.6061888", "0.602798", "0.6005227", "0.5988548", "0.5976207", "0.597576...
0.69251287
0
TODO Autogenerated method stub
@Override public String getMessage() { return "홀수입력 !!"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
by default is "na", updated via WordPair.java when target word belongs to a prefix class properties for "Model" tab in GUI
public int getNumSpeakers() { return numSpeakers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void configureWord() {\n }", "void setWord(Word word);", "@Override\r\n\tprotected void getIntentWord() {\n\t\tsuper.getIntentWord();\r\n\t}", "private void addCustomWords() {\r\n\r\n }", "public void getWord() {\n\t\t\n\t}", "void setVersesWithWord(Word word);", "WordConstant createWordCo...
[ "0.6300588", "0.59213936", "0.5858579", "0.57949376", "0.57557154", "0.5722937", "0.56384146", "0.55945504", "0.54954576", "0.548705", "0.54493755", "0.5424506", "0.54053116", "0.54049784", "0.53723055", "0.53722185", "0.5338966", "0.53243333", "0.5315161", "0.5309633", "0.53...
0.0
-1
initial N/V stress state, read from file in main method
public StressChange(long seed) { super(seed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\tparams.set(\"Status\", \"Configuring\");\n\t\tJob.animate();\n\t\t\n\t\tint tsim = params.iget(\"Sim Time\");\n\t\tReadInUtil riu = new ReadInUtil(params.sget(\"Parameter File\"));\n\t\tp2 = riu.getOFCparams();\n\t\tdouble[] av = new double[]{0.1, 0.2, 0.3, 0.4, 0.5, 0...
[ "0.6113667", "0.5858801", "0.5572238", "0.5524503", "0.53820956", "0.53512466", "0.53385234", "0.5335101", "0.53193206", "0.5307737", "0.52901155", "0.5282326", "0.5245557", "0.5239185", "0.5234422", "0.5228224", "0.52134246", "0.51851135", "0.51799434", "0.51430213", "0.5137...
0.0
-1
get options from command line
public static void main(String[] args) throws IOException { CommandLineParser parser = new DefaultParser(); Options options = new Options(); Option optModel = OptionBuilder.withArgName("model") .hasArg() .withDescription("model use...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getOptions() {\n return argv;\n }", "public static Options getCmdLineOptions(){\n\t\tOptions options = new Options();\n\t\t//\t\toptions.addOption(OptionBuilder.withArgName(\"outputPath\").hasArg().withDescription(\"output sequence lengths to a file [if not specified, lengths are prin...
[ "0.7801268", "0.72102183", "0.7053871", "0.7005481", "0.6857774", "0.68331677", "0.6817078", "0.67450917", "0.6708004", "0.6704784", "0.6660932", "0.6608429", "0.6534261", "0.64948124", "0.6479539", "0.6437798", "0.6427279", "0.64245737", "0.64200467", "0.63935184", "0.637448...
0.0
-1
LeadsReducer kMeansReducer; // same for local and federation reducer
public KMeansOperator(Node com, InfinispanManager persistence, LogProxy log, Action action) { super(com, persistence, log, action); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "KmeansReducer(Map<Integer, Vector> centers) {\n this.centers = centers;\n }", "public KMeans() {\n }", "private static void kmeans(int[] rgb, int k) {\n\t\tColor[] rgbColor = new Color[rgb.length];\r\n\t\tColor[] ColorCluster = new Color[rgb.length];\r\n\t\tint[] ColorClusterID = new int[rgb.lengt...
[ "0.64157575", "0.54003537", "0.53672785", "0.5344378", "0.5219351", "0.5048785", "0.50052124", "0.49190813", "0.48936212", "0.4887012", "0.48194063", "0.47574133", "0.47504547", "0.47137466", "0.4698104", "0.46837646", "0.46579012", "0.46453816", "0.46336818", "0.45895132", "...
0.46685806
16
Make it more obvious if we jump backwards
@Test public void pruningAssertAfterRollover() throws Exception { _persistit.getTimestampAllocator().bumpTimestamp(1000000); // Write records until we have enough journal Exchange ex = getExchange(TREE_NAME1); Transaction txn = _persistit.getTransaction(); txn.begin(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canSeekBackwards() {\n/* 131 */ return true;\n/* */ }", "public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}", "public boolean goBack() {\n if(index > 0) {\n index--;\n return true;\n } else {\n return false;\n }\n...
[ "0.69566625", "0.67661566", "0.67614275", "0.67374957", "0.67190826", "0.6712632", "0.6581537", "0.6580277", "0.6531555", "0.6520168", "0.650795", "0.64914477", "0.6484096", "0.6475325", "0.6453414", "0.6452014", "0.6448812", "0.641027", "0.6363305", "0.63513494", "0.6340419"...
0.0
-1
Creates a KDTree with the specified geometry content. This uses a default partitioning strategy.
public KDGeometryContainer(final Geometry... content) { this(new SAHPartitionStrategey(), content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KDTree()\n\t{\n\t}", "private KDTree<BinaryClassificationTarget> buildKDTree() {\n\t\tswitch (kdType) {\n\t\tcase EUCLIDIAN:\n\t\t\treturn new SqrEuclid<BinaryClassificationTarget>(dimension,\n\t\t\t\t\tsizeLimit);\n\t\tcase WEIGHTEDEUCLIDIAN:\n\t\t\treturn new WeightedSqrEuclid<BinaryClassificationTarget...
[ "0.565489", "0.5606969", "0.53161263", "0.5290844", "0.50951874", "0.50823945", "0.50795996", "0.49107566", "0.4898389", "0.48621383", "0.48329422", "0.47436315", "0.4739045", "0.47071487", "0.4637019", "0.4629039", "0.4625729", "0.45939425", "0.45793796", "0.45520216", "0.45...
0.6757306
0
Accessor for the KDTree partition strategy used to subdivide the tree nodes.
public KDPartitionStrategy getPartitionStrategy() { return partitionStrategy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public int getPartition(Text key, Text value, int numPartitions) {\n String decadeStr = key.toString().split(\"\\\\s+\")[0];\r\n int decade = Integer.parseInt(decadeStr) / 10;\r\n return decade % numPartitions;\r\n }", "interface Partitioner {\n ...
[ "0.56680423", "0.5614278", "0.55831575", "0.5509241", "0.5476469", "0.5404085", "0.53876793", "0.5328617", "0.52764106", "0.5264841", "0.52322084", "0.51940995", "0.51316124", "0.5063029", "0.50545615", "0.505447", "0.5042254", "0.5037644", "0.50320417", "0.50238144", "0.4972...
0.7406966
0
Returns the change in string format using fewest number of coins
public static String getChange(int amount){ String result = ""; for (Coins c : Coins.values()) { if(amount >= c.value()){ int numberOfCoins = amount / c.value(); amount = amount % c.value(); result += c + " : " + numberOfCoins + "\n"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n Solution solution = new Solution();\n\n int[] coins = null;\n int amount = 0;\n int expected = 0;\n int answer = 0;\n String format = \"%s, %d -> %d (%d)\";\n\n // [1, 2, 5], 11 -> 3\n coins = new int[]{1, 2, 5};\n...
[ "0.71410954", "0.6492485", "0.6483764", "0.6407681", "0.63871527", "0.63690686", "0.6190565", "0.6107949", "0.60841525", "0.5982337", "0.59709406", "0.596822", "0.59669334", "0.5902251", "0.5858232", "0.5843424", "0.58246744", "0.5774405", "0.5765463", "0.575084", "0.5734841"...
0.74217314
0
Creates new form holdersframe
public holdersframe() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n ...
[ "0.66855675", "0.6339264", "0.6163837", "0.6082234", "0.6056488", "0.6048005", "0.60399044", "0.6010413", "0.59807765", "0.5977786", "0.59293073", "0.5907425", "0.59023243", "0.58942986", "0.5846303", "0.58223724", "0.58154553", "0.5812392", "0.58119845", "0.58061457", "0.578...
0.68126875
0
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.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel18 = new javax.swing.JPanel(); jPanel89 = new javax.swing.JPanel(); jPanel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453...
0.0
-1
Is the view now checked?
public void onCheckboxClicked(View view) { boolean checked = ((CheckBox) view).isChecked(); // Check which checkbox was clicked switch (view.getId()) { case R.id.cb_cod: if (cb_cod.isChecked()) { cod = "1"; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasActiveView();", "boolean isInview();", "void onCheckViewedComplete(boolean isViewed);", "boolean hasClickView();", "boolean isAllInview();", "boolean isChecked();", "boolean isChecked();", "boolean getIsChecked();", "boolean isCheckedOut();", "private boolean checkPropertyUpdateView() ...
[ "0.75501776", "0.74544835", "0.7021176", "0.69602036", "0.68626857", "0.6827037", "0.6827037", "0.6771586", "0.67702115", "0.6595876", "0.65151024", "0.64800894", "0.6469104", "0.63461", "0.632834", "0.6256027", "0.6239415", "0.6226599", "0.6218813", "0.62153125", "0.6206983"...
0.0
-1
TODO Autogenerated method stub
@Override public Member createMember(Member member, String principalId) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public Member updateMember(Member member, String principalId) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean deactivateMember(Long id, String principalId) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public Member getMember(Long id) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Member getMemberByName(String name) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public List<Member> getAllMembers(int start, int numberOfRecords) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String str1 ="fxstvf"; String str2 ="fxstvf"; System.out.println(isPermutation(str1, str2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
subnetList = subnetDao.listSubnets(start, limit); totalCount = subnetDao.getSubnetsCount();
@JSON(serialize=false) public String listShowHuaSanSubnet() throws Exception { return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "int getListSnIdCount();", "public List<Subnet> selectSubnet() {\n\n\t\tList<Subnet> customers = new ArrayList<Subnet>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\...
[ "0.5969783", "0.57738674", "0.5750008", "0.5665161", "0.5654168", "0.5652518", "0.5652518", "0.5652518", "0.5599697", "0.5591864", "0.55839115", "0.5531606", "0.5501066", "0.54697347", "0.5455098", "0.54058784", "0.5385216", "0.5366792", "0.5366792", "0.5360379", "0.53467095"...
0.0
-1
Using this function the message is decrypted back using the shared secret key and returned to the decoder.
public String Decrypt(String Message, int PrimeNo, String EncoderKeyPath) throws IOException { Scanner sc = new Scanner(System.in); Key key1 = new Key(); char[] msg=new char[Message.length()]; int s, x; System.out.println("Enter Your Secret Key To Decode "); x=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String decryptMsg(String msg);", "public static byte[] decrypt(byte[] message, byte[] key) throws Exception {\n byte[] initialValue = new byte[initialValueSize];\r\n System.arraycopy(message, 0, initialValue, 0, initialValueSize);\r\n IvParameterSpec initialValueSpec = new IvParameterSpe...
[ "0.6417802", "0.62720525", "0.6256136", "0.6226051", "0.6140043", "0.6133488", "0.6114281", "0.6078222", "0.6059993", "0.60211664", "0.60205036", "0.5963017", "0.59612983", "0.59507483", "0.59156287", "0.58919215", "0.58658034", "0.5837264", "0.5808111", "0.5796144", "0.57658...
0.64165115
1
Construct an empty Championship class
public Championship() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Championship()\n {\n drivers = new ListOfDrivers();\n venues = new ListOfVenues();\n }", "public DefensivePlayers(){}", "public Challenger() {\r\n\t\tname = \"TBD\";\r\n\t\trank = -1;\r\n\t}", "Classroom() {}", "public BaseballCard(){\r\n\r\n\t}", "public BeanGame () {\n\t}", ...
[ "0.76943076", "0.65417266", "0.6469239", "0.64342695", "0.63944936", "0.6208152", "0.6164633", "0.6164633", "0.6164633", "0.6164633", "0.61624724", "0.61478484", "0.61377656", "0.60893136", "0.60893136", "0.6070356", "0.6055248", "0.60519826", "0.604893", "0.6043335", "0.6031...
0.85245323
0
Used by the OLCUT configuration system, and should not be called by external code.
@Override public void postConfig() { if ((k != SELECT_ALL) && (k < 1)) { throw new PropertyException("","k","k must be -1 to select all features, or a positive number, found " + k); } if (numBins < 2) { throw new PropertyException("","numBins","numBins must be >= 2, f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void config() {\n\t}", "private void getExternalConfig()\n {\n String PREFIX = \"getExternalConfig override name [{}] value [{}]\";\n // Check to see if the ldap host has been overridden by a system property:\n String szValue = System.getProperty( EXT_LDAP_HOST );\n if( Str...
[ "0.7045853", "0.63961256", "0.6259792", "0.6209592", "0.6195203", "0.61761594", "0.6174581", "0.6150871", "0.61485523", "0.6140146", "0.607946", "0.60318017", "0.602004", "0.59724975", "0.59639305", "0.5959717", "0.5947007", "0.5937612", "0.59234494", "0.58939373", "0.5893658...
0.0
-1
int a = 1/0;
@GetMapping("/consumer/hystrix/timeout/{id}") // @HystrixCommand(fallbackMethod = "orderInfo_TimeOutHandler",commandProperties = { // @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "8000") // }) @HystrixCommand public String orderInfo_TimeOut(@PathVariable("i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doStuff() {\n System.out.println(7/0);\r\n }", "public int division(int a, int b) {\n return a / b;\n }", "public static void main(String[] args) {\n\n int a=5;\n int b=0;\n\n System.out.println(\"a/b = \" + a/b);\n\n }", "public static void abc(int a, int b) t...
[ "0.65310943", "0.64259505", "0.6385744", "0.63476974", "0.62813896", "0.62725616", "0.6201653", "0.6199399", "0.61656195", "0.61420083", "0.6124005", "0.6095102", "0.6051479", "0.59800905", "0.59662414", "0.59469974", "0.5930179", "0.5912947", "0.58687913", "0.58682466", "0.5...
0.0
-1
Creates a new instance of ProfessorDepartamentoMBean
public ProfessorDepartamentoMBean() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConsultarVacinacaoMBean() {\r\n }", "public ProduitManagedBean() {\r\n\t\tthis.produit = new Produit();\r\n//\t\tthis.categorie = new Categorie();\r\n\t}", "public Departement() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public NewUserMBean() {\r\n }", "public PersonaBean() {\n ...
[ "0.63126016", "0.5652977", "0.55512947", "0.55277807", "0.5519037", "0.545411", "0.5384018", "0.53312904", "0.5321444", "0.5313232", "0.53038645", "0.5282404", "0.5240213", "0.52345526", "0.5182117", "0.5181243", "0.5162294", "0.50831735", "0.5064435", "0.50591034", "0.505616...
0.8407177
0
Indicate that this provider only supports PreAuthenticatedAuthenticationToken (sub)classes.
public final boolean supports(Class<?> authentication) { return PreAuthenticatedAuthenticationToken.class.isAssignableFrom(authentication); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean supports(AuthenticationToken token) {\n return true;\n }", "@Override\r\n public boolean supports(final Class cls) {\r\n \r\n return UsernamePasswordAuthenticationToken.class.isAssignableFrom(cls);\r\n }", "@Override\n\tpublic boolean supports(Class<?> au...
[ "0.6695665", "0.6640934", "0.6357351", "0.6295239", "0.61887693", "0.6162225", "0.60881275", "0.60776335", "0.60205257", "0.60192347", "0.5978735", "0.5921772", "0.5767981", "0.5743673", "0.56341827", "0.56136864", "0.5609765", "0.55659276", "0.55561167", "0.5507544", "0.5479...
0.6455178
2
save the current specified start date from the UI
@Override protected void onSaveInstanceState(@NonNull Bundle outState) { if (txtv_start_date != null) { outState.putString(KEY_START_DATE, txtv_start_date.getText().toString()); } // save the current specified end date from the UI if (txtv_end_date != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStartDate(Date s);", "void setStartDate(Date startDate);", "public void setStartDate(Date start)\r\n {\r\n this.startDate = start;\r\n }", "public void setStartDate(java.util.Date value);", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "publi...
[ "0.69874436", "0.69574773", "0.6795759", "0.6695753", "0.66409457", "0.6535966", "0.63943785", "0.63734525", "0.6284657", "0.6272397", "0.6272397", "0.6257615", "0.6230032", "0.62039834", "0.62039834", "0.62039834", "0.6191889", "0.61882085", "0.6184073", "0.61277616", "0.611...
0.69029194
2
get the saved start date and update the text view
@Override protected void onRestoreInstanceState(@NonNull Bundle savedInstanceState) { String savedStartDate = savedInstanceState.getString(KEY_START_DATE, null); if (savedStartDate != null) { txtv_start_date.setText(savedStartDate); } // get the saved end date and update ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateText() {\n\n dateText = dateFormat.format(c.getTime());\n timeText = timeFormat.format(c.getTime());\n dateEt.setText(dateText + \" \"+ timeText);\n}", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new Simple...
[ "0.6810126", "0.6725245", "0.65979594", "0.65857506", "0.65591687", "0.65537214", "0.6511159", "0.6485707", "0.6472049", "0.6438129", "0.6434693", "0.6405474", "0.6368971", "0.6331852", "0.6299523", "0.6256162", "0.6214406", "0.6183942", "0.6175227", "0.61579233", "0.614799",...
0.65226156
6
System.out.println("findInternalProducts: " + Thread.currentThread().getName());
public Observable<SearchResult> findInternalProducts(String query) { Observable<Long> productIndexObservable = getProductIndexObservable(query); return productIndexObservable .flatMap(this::productDetails); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printAllProducts()\n {\n manager.printAllProducts();\n }", "private void getAllProducts() {\n }", "Product getPProducts();", "public Product getProductInfo(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.product;\n}\n}\nretur...
[ "0.5850681", "0.56485856", "0.5532794", "0.54994076", "0.5284315", "0.526221", "0.5254483", "0.5174347", "0.51564074", "0.5142737", "0.51135904", "0.5108162", "0.51021427", "0.50920045", "0.507778", "0.5036003", "0.50329375", "0.5032575", "0.50293726", "0.5007744", "0.4998620...
0.0
-1
System.out.println("productDetails: " + Thread.currentThread().getName());
private Observable<SearchResult> productDetails(Long productId) { Observable<Product> productObservable = retrieveProductFromProductSystem(productId); Observable<Long> quantityObservable = retrieveQuantityFromInventoryService(productId); return Observable.zip(p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }", "public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMea...
[ "0.6583843", "0.64686435", "0.6366419", "0.632798", "0.6311851", "0.6191661", "0.61354065", "0.6132241", "0.60391325", "0.5984607", "0.59762025", "0.59468377", "0.5914183", "0.5876388", "0.5859423", "0.5829386", "0.58214253", "0.5766576", "0.569076", "0.56837165", "0.56836015...
0.0
-1
System.out.println("toSearchResult: " + Thread.currentThread().getName());
private SearchResult toSearchResult(Merchant1Product product) { return new SearchResult(new Product(product.getIdentifier(), product.getOrigin()), product.getQuantity()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "void searchStarted (Search search);", "public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n Thread thread = new Thread(threadGroup, searchTask);\n thread.start();\n ...
[ "0.66925234", "0.6025825", "0.5748648", "0.5662231", "0.5560133", "0.55355966", "0.5529224", "0.5528665", "0.5474996", "0.5473295", "0.5470631", "0.54628795", "0.5392084", "0.5384122", "0.53777915", "0.5358175", "0.53164226", "0.53081906", "0.5305032", "0.53015167", "0.529871...
0.0
-1
System.out.println("toSearchResult: " + Thread.currentThread().getName());
private SearchResult toSearchResult(Merchant2Product product) { return new SearchResult(new Product(product.getIdentifier(), product.getOrigin()), product.getQuantity()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "void searchStarted (Search search);", "public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n Thread thread = new Thread(threadGroup, searchTask);\n thread.start();\n ...
[ "0.66892076", "0.6023595", "0.57465863", "0.5659184", "0.5556345", "0.5532011", "0.55261827", "0.5525504", "0.5475144", "0.5471984", "0.54699975", "0.5459457", "0.53890944", "0.53810203", "0.5374496", "0.53551817", "0.53152347", "0.5309679", "0.5301677", "0.5300797", "0.53001...
0.0
-1
System.out.println("retrieveProductFromProductSystem: " + Thread.currentThread().getName());
private Observable<Product> retrieveProductFromProductSystem(Long productId) { return new GetProductCommand(productId, productService).observe(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }", "String getProduct();", "public String getProduct() {\r\n return this.product;\r\n }", "public St...
[ "0.6467457", "0.5928863", "0.5837101", "0.5826282", "0.58239174", "0.5803378", "0.5796728", "0.5782722", "0.5725375", "0.57109475", "0.57102066", "0.57078594", "0.5696753", "0.5696321", "0.5696321", "0.56861264", "0.56861264", "0.56861264", "0.5677826", "0.56219393", "0.56099...
0.54903877
32
System.out.println("retrieveQuantityFromInventoryService: " + Thread.currentThread().getName());
private Observable<Long> retrieveQuantityFromInventoryService(Long productId) { return new GetInventoryCommand(productId, inventoryService).observe(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args)\n {\n Semaphore salesSem = new Semaphore(1);\n Semaphore invSem = new Semaphore(1);\n Inventory inventory = new Inventory();\n inventory.initiateProducts();\n\n System.out.println(inventory.toString());\n\n List<Sale> sales = new A...
[ "0.59917414", "0.59258664", "0.5682427", "0.5611266", "0.5589217", "0.55470866", "0.55470866", "0.55111", "0.5401936", "0.53730935", "0.5360414", "0.5356706", "0.53557813", "0.5348529", "0.5317185", "0.5311692", "0.53053445", "0.5301254", "0.52941453", "0.52808964", "0.526044...
0.54733783
8
Clears current rates table and loads new one from specified file.
public static void reLoadRates(String fileName) throws RateTableEcseption { m_rt.reLoadTable(fileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void load(File filename) throws IOException {\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream ois = new ObjectInputStream(fis);\n HighScoresTable table = (HighScoresTable) ois.readObject();\n ois.close();\n this...
[ "0.57483685", "0.5673907", "0.56607926", "0.56525064", "0.5636148", "0.5576247", "0.541205", "0.5365977", "0.53345174", "0.5325178", "0.52946043", "0.52621996", "0.5259174", "0.52401817", "0.5231781", "0.51952875", "0.51745105", "0.5119607", "0.51082844", "0.509959", "0.50891...
0.75097823
0
Returns new Currency object with type "typeTo" and appropriately converted value
public static Currency convert(Currency cur, String typeTo) throws CurrencyException { Currency.checkType(typeTo); Currency result = new Currency(typeTo); if(cur.getType().equals(typeTo)) { throw new CurrencyException("Can not convert currency " + typeTo + " to itself."); } return result.setV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TokenlyCurrency getCurrencyType();", "private BigDecimal getConversion(String toCurrency) {\n Map<String, String> urlPathVariable = new HashMap<>();\n urlPathVariable.put(\"from\", baseCurrency);\n urlPathVariable.put(\"to\", toCurrency);\n\n ResponseEntity<CurrencyConversion> respons...
[ "0.63783604", "0.628286", "0.6243844", "0.6199834", "0.6055534", "0.60035264", "0.57813716", "0.5778239", "0.57322085", "0.57234466", "0.56900966", "0.5678757", "0.56645894", "0.5639659", "0.5629179", "0.56170917", "0.55669165", "0.5557102", "0.5525597", "0.5513343", "0.55033...
0.7656251
0
Returns new Currency object that contains a sum of 2 currency objects
public static Currency Add(Currency op1, Currency op2) throws CurrencyException { if(!op1.getType().equals(op2.getType())) throw new CurrencyException("Addition: different currency types!"); Currency result = new Currency(op1.getType()); return result.setValue(op1.getValue()+op2.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Fraction add(Fraction f1, Fraction f2)// to construct a new object of the same class and store the value of the sum in that object and then return the object\n\t{\n\t\tint num1= f1.numerator*f2.denominator + f2.numerator*f1.denominator;\n\t\tint den1= f1.denominator*f2.denominator;\n\t\tFraction f3= ...
[ "0.59264445", "0.5872528", "0.582814", "0.57477033", "0.57436305", "0.5742557", "0.57185197", "0.56976026", "0.5599686", "0.5597158", "0.55714333", "0.5530722", "0.55253816", "0.5497655", "0.54693484", "0.5425071", "0.54083794", "0.53859377", "0.5373828", "0.53580564", "0.532...
0.6723115
0
Returns new Currency object that contains a result of subtraction
public static Currency Subtract(Currency op1, Currency op2) throws CurrencyException { if(!op1.getType().equals(op2.getType())) throw new CurrencyException("Subtraction: different currency types!"); Currency result = new Currency(op1.getType()); return result.setValue(op1.getValue()-op2.getValue()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Money subtract(Money input) {\n long newAmount = this.amount - input.getAmount();\n this.amount = newAmount;\n Money subtractedAmount = new Money(currency, newAmount);\n return subtractedAmount;\n }", "public Balance subtract(final BigDecimal subtrahend) {\r\n return ...
[ "0.67580676", "0.67464566", "0.6431859", "0.64294815", "0.61336386", "0.6088866", "0.59486455", "0.588643", "0.5865706", "0.5861485", "0.5849033", "0.58485925", "0.583484", "0.57654154", "0.5737856", "0.57349485", "0.5734419", "0.5726743", "0.56955975", "0.56616336", "0.56456...
0.73873466
0
1 for Configuration.ORIENTATION_PORTRAIT 2 for Configuration.ORIENTATION_LANDSCAPE 0 for Configuration.ORIENTATION_SQUARE
public int getScreenOrientation() { Display getOrient = getWindowManager().getDefaultDisplay(); int orientation = Configuration.ORIENTATION_UNDEFINED; if (getOrient.getWidth() == getOrient.getHeight()) { orientation = Configuration.ORIENTATION_SQUARE; } else { if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getOrientation() {\n\n if(getResources().getDisplayMetrics().widthPixels > \n getResources().getDisplayMetrics().heightPixels) { \n return \"LANDSCAPE\";\n } else {\n return \"PORTRAIT\";\n } \n \n }", "@Override\n public void on...
[ "0.72221386", "0.6755196", "0.6687939", "0.6610794", "0.65797865", "0.65770584", "0.64276445", "0.62702256", "0.62682235", "0.6249382", "0.6211982", "0.6211776", "0.6209449", "0.61845434", "0.61226046", "0.61186975", "0.61099756", "0.60484916", "0.59878755", "0.5987682", "0.5...
0.6781764
1
===============================Get Comment list ========================
public void getCommnentList() { String urlData = ""; HashMap<String, String> param = new HashMap<String, String>(); param.put("max", "" + MyApplication.Max_post_per_page); param.put("page", "0"); if (PostType.equalsIgnoreCase("ads")) { urlData = "ads/" + postId + "/ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Comment> getComments() {\n fetchComments();\n return Collections.unmodifiableList(comments);\n }", "@Override\r\n\tpublic List<Comment> findAllComment() {\n\t\treturn commentDao.findAllComment();\r\n\t}", "@Override\n public List<NutricionistComment> findAllComments() {\n ...
[ "0.8078008", "0.8071732", "0.7909489", "0.78795326", "0.7850282", "0.78183746", "0.7797433", "0.7776005", "0.7751977", "0.77460766", "0.7744831", "0.7689996", "0.7662827", "0.7660674", "0.7585407", "0.75495744", "0.75055635", "0.74327904", "0.7424941", "0.7411389", "0.7411389...
0.68920416
50
//////////////////////////////////////////////////////////////////// Media Controller ////////////////////////////////////////////////////////////////////
private boolean isInPlaybackState() { return (mMediaPlayer != null && mStatus != STATUS_STOPPED && mStatus != STATUS_IDLE && mStatus != STATUS_PREPARING); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IMediaController {\n}", "public abstract String playMedia ();", "protected void onMediaControllerConnected() {\n }", "public abstract void chooseMedia();", "public MediaController getController() {\n return mController;\n }", "public void importMedia(){\r\n \r\n }"...
[ "0.73468655", "0.73248225", "0.7131102", "0.67800313", "0.6715933", "0.6680948", "0.6517802", "0.6483514", "0.64765686", "0.6421639", "0.6348561", "0.63364345", "0.629482", "0.6285314", "0.6232242", "0.6229896", "0.6224468", "0.6222277", "0.6221447", "0.62129486", "0.61750716...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View view = inflater.inflate(R.layout.rider_tracking_fragment, container, false); //getting reference to the widgets in layout progressBar = view....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
check if the retruned object is null
@Override public void onSuccess(QuerySnapshot queryDocumentSnapshots) { if(queryDocumentSnapshots.isEmpty()){ //displays "no bookings" message message.setVisibility(View.VISIBLE); progressBar.setVisibility(View.GONE); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasObject(){\n return _object != null;\n }", "@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }", "public static boolean checkObjNull(Object obj) {\n Optional<Object> optional = Optional.ofNullable(obj);\n if (!optional.isPresent()) {\n...
[ "0.6596349", "0.6591556", "0.6485084", "0.647666", "0.6401519", "0.63368374", "0.6251392", "0.6243141", "0.62381786", "0.6227495", "0.6224764", "0.62161547", "0.61445254", "0.6110445", "0.60802895", "0.60622674", "0.6052382", "0.60326296", "0.60176086", "0.598643", "0.597514"...
0.0
-1
get users bike make and model
private void getBikeModel(final Booking booking, final View view, final ArrayList<Booking> trackingDaos, final Context context) { try { final String vehicleId = booking.getVehicleId().trim(); //query to get information of the registered bike db.collection("my_vehicle").docum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic userinfo getModel() {\n\t\treturn user;\n\t}", "People getObjUser();", "People getUser();", "@Override\r\n public UserModel queryUserModel(String userName) {\n System.out.println(\"query sys user build user model.\");\r\n return new UserModel(\"111\", \"sys\", \"123456\");\r\n }",...
[ "0.55728346", "0.5444426", "0.53613275", "0.53023183", "0.5277271", "0.5268108", "0.5252493", "0.5247713", "0.51745313", "0.51723427", "0.5112118", "0.51101243", "0.51095617", "0.5099708", "0.5098925", "0.50757295", "0.5061375", "0.5060969", "0.5040558", "0.4978883", "0.49715...
0.0
-1
/ Must execute compteAverageDelay before this method
private void computeAverageFrequencyDelayValue() { this.averageFrequencyDelayValue = value * this.averageDelay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processDelay() {\n if (errorCounter > 0) {\n if (delayCounter >= AppyAdService.getInstance().maxDelay()) {\n setAdProcessing(true);\n errorCounter = AppyAdService.getInstance().maxErrors() - 1;\n delayCounter = 0;\n }\n ...
[ "0.645753", "0.6370891", "0.6187726", "0.60526526", "0.60055673", "0.59601617", "0.5959354", "0.59165627", "0.5868926", "0.58639854", "0.58459026", "0.5843271", "0.58348554", "0.58290505", "0.5822495", "0.5821051", "0.5811344", "0.57745576", "0.5766976", "0.57631356", "0.5738...
0.66540277
0
Returns true when the statebackend is on heap.
public static boolean isHeapState(StateBackend stateBackend) { return stateBackend == null || stateBackend instanceof MemoryStateBackend || stateBackend instanceof FsStateBackend; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isHeap()\n\t{\n\t\treturn true;\n\t}", "public boolean isInNativeHeap();", "private boolean isMinHeap() {\r\n return isMinHeap(1);\r\n }", "public boolean isOutOfMemory() {\n if (isEnabled())\n return ((getMax() - getCurrent()) < (getInitial() + 200000));\n else\n ret...
[ "0.7338936", "0.727377", "0.67314243", "0.6534583", "0.64685076", "0.64282894", "0.6353796", "0.6284701", "0.61872035", "0.6090568", "0.59309816", "0.5808388", "0.57716644", "0.57521826", "0.573414", "0.57229507", "0.57229507", "0.5720609", "0.56933665", "0.56824267", "0.5679...
0.7963722
0
Gets the "MD_ScopeCode" element
public org.isotc211.x2005.gco.CodeListValueType getMDScopeCode() { synchronized (monitor()) { check_orphaned(); org.isotc211.x2005.gco.CodeListValueType target = null; target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MDSCOPECODE$0, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.isotc211.x2005.gco.CodeListValueType addNewMDScopeCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.isotc211.x2005.gco.CodeListValueType target = null;\n target = (org.isotc211.x2005.gco.CodeListValueType)get_store().add_element_user(MD...
[ "0.6587816", "0.6471566", "0.6411018", "0.61858016", "0.6119629", "0.6104586", "0.6067231", "0.6016618", "0.5958565", "0.59240186", "0.59240186", "0.592355", "0.58782655", "0.5867091", "0.58604825", "0.5855422", "0.58539015", "0.58539015", "0.58539015", "0.58291876", "0.58140...
0.81713676
0
Sets the "MD_ScopeCode" element
public void setMDScopeCode(org.isotc211.x2005.gco.CodeListValueType mdScopeCode) { generatedSetterHelperImpl(mdScopeCode, MDSCOPECODE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.isotc211.x2005.gco.CodeListValueType getMDScopeCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.isotc211.x2005.gco.CodeListValueType target = null;\n target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MDSC...
[ "0.64460427", "0.63074476", "0.6237866", "0.6064821", "0.60631263", "0.5981067", "0.5981004", "0.5977558", "0.59477717", "0.5919541", "0.5915124", "0.5898873", "0.58806366", "0.5834744", "0.5834744", "0.5834744", "0.5834744", "0.5834744", "0.5834744", "0.58206445", "0.5795473...
0.7799364
0
Appends and returns a new empty "MD_ScopeCode" element
public org.isotc211.x2005.gco.CodeListValueType addNewMDScopeCode() { synchronized (monitor()) { check_orphaned(); org.isotc211.x2005.gco.CodeListValueType target = null; target = (org.isotc211.x2005.gco.CodeListValueType)get_store().add_element_user(MDSCOPECODE$0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.isotc211.x2005.gco.CodeListValueType getMDScopeCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.isotc211.x2005.gco.CodeListValueType target = null;\n target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MDSC...
[ "0.6051758", "0.5982223", "0.58252186", "0.56379974", "0.5538181", "0.54332805", "0.5426168", "0.5413315", "0.5400589", "0.53955245", "0.53926134", "0.53518564", "0.5165874", "0.51433724", "0.5137513", "0.51354057", "0.50894856", "0.4958968", "0.4938851", "0.4937599", "0.4924...
0.7357893
0
Toast.makeText(this, "onRewardedVideoAdFailedToLoad error: " + i, Toast.LENGTH_SHORT).show();
@Override public void onRewardedVideoAdFailedToLoad(int i) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.d(\"TAG\",\"Ad failed to load\");\n }", "@Override\n public void onAdFailedToLoad(int i) {\n Log.w(TAG, \"onAdFailedToLoad:\" + i);\n }", "@Override\n public ...
[ "0.72844845", "0.72783077", "0.7251998", "0.71943986", "0.71623164", "0.71623164", "0.7081587", "0.69097733", "0.68992496", "0.6856998", "0.6856998", "0.68321913", "0.6770765", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.67518...
0.8240099
0
Creates new form Ventana_Principal
public Ventana_Empl() { initComponents(); insertImage(); Image icon = Toolkit.getDefaultToolkit().getImage(getClass().getResource("/Img/icono.png")); setIconImage(icon); this.setLocationRelativeTo(null); this.setTitle("Gestión de Farmacias - Empleados"); thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VentanaPrincipal() {\n initComponents();\n }", "public VentanaPrincipal() {\n initComponents();\n\n idUsuariosControlador = Fabrica.getInstance().getControladorUsuarios(null).getId();\n idProductosControlador = Fabrica.getInstance().getControladorProductos(null).getId();\n ...
[ "0.7085704", "0.7048926", "0.6861197", "0.6589609", "0.65795505", "0.65513307", "0.652237", "0.6437088", "0.64128137", "0.6365052", "0.62962866", "0.62786895", "0.6243299", "0.6243299", "0.6207836", "0.6191502", "0.6190024", "0.61367726", "0.6054671", "0.60421", "0.6011453", ...
0.0
-1
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.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jMenu3 = new javax.swing.JMenu(); jMenu4 = new javax.swing.JMenu(); jMenuItem7 = new javax.swing.JMenuItem(); jToggleButton1 =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.694586...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_first_screen, container, false); signInButton = view.findViewById(R.id.sign_up_button); signInButton.set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6740785", "0.6725086", "0.6722221", "0.66993004", "0.66919166", "0.6689273", "0.6687578", "0.6685118", "0.66772324", "0.66754", "0.66668403", "0.6666252", "0.6665723", "0.66613716", "0.6654354", "0.6651048", "0.6643431", "0.66391444", "0.6638131", "0.6634899", "0.6625316",...
0.0
-1
BA.debugLineNum = 12;BA.debugLine="Sub Globals"; BA.debugLineNum = 16;BA.debugLine="Private BDMainAs BetterDialogs";
public static String _globals() throws Exception{ mostCurrent._bdmain = new flm.b4a.betterdialogs.BetterDialogs(); //BA.debugLineNum = 17;BA.debugLine="Private svUtama As ScrollView"; mostCurrent._svutama = new anywheresoftware.b4a.objects.ScrollViewWrapper(); //BA.debugLineNum = 18;BA.debugLine="Private iTampil ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLine...
[ "0.725063", "0.72462475", "0.6796846", "0.6506637", "0.6493662", "0.61853087", "0.6162189", "0.6105418", "0.60657114", "0.60406834", "0.6012691", "0.59811103", "0.59725136", "0.58865523", "0.5855107", "0.5778056", "0.5753264", "0.57414746", "0.5718731", "0.57092834", "0.56564...
0.6376208
5
BA.debugLineNum = 6;BA.debugLine="Sub Process_Globals"; BA.debugLineNum = 10;BA.debugLine="End Sub";
public static String _process_globals() throws Exception{ return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String _process_globals() throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 10;BA.debugLine=\"Private TimerAnimacionEntrada As Timer\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.objects.T...
[ "0.7480496", "0.7448993", "0.6989201", "0.64332575", "0.64119005", "0.6184409", "0.6175747", "0.61259884", "0.60123533", "0.5994837", "0.5959443", "0.59240335", "0.58606243", "0.57725495", "0.5692462", "0.55906725", "0.55807066", "0.5564395", "0.5560114", "0.5546505", "0.5509...
0.0
-1
gambar Hospital di click
public void clickRS(View view){ Intent i = new Intent(this,Hospital.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1...
[ "0.7221872", "0.68671197", "0.68160033", "0.6801813", "0.677186", "0.6650193", "0.66457975", "0.6637835", "0.6607919", "0.6594445", "0.65934175", "0.657502", "0.656703", "0.6522956", "0.6521603", "0.6494494", "0.64885604", "0.64883196", "0.64844143", "0.6484057", "0.6469385",...
0.0
-1
gambar Police di click
public void clickPolice(View view){ Intent i = new Intent(this,Police.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hitam);\n TampilGambar.startAnimation(animScale);\n suara12.start();\n }", "@Override\n public void onClick(View v) {\n TampilGamba...
[ "0.67738485", "0.6771544", "0.6764764", "0.6752997", "0.67455184", "0.674004", "0.6720226", "0.6708702", "0.67032564", "0.67019737", "0.66942674", "0.6682495", "0.6681065", "0.66771007", "0.6667907", "0.66647077", "0.6663374", "0.6662894", "0.6659665", "0.66577697", "0.665493...
0.0
-1
gambar Supermarket di click
public void clickSupermarket(View view){ Intent i = new Intent(this,Supermarket.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hitam);\n TampilGambar.startAnimation(animScale);\n suara12.start();\n }", "@Override\n public void onClick(View v) {\n TampilGamba...
[ "0.6755827", "0.66842", "0.6664455", "0.6658411", "0.6635227", "0.66158825", "0.66085255", "0.65969634", "0.65942305", "0.65911895", "0.65877146", "0.6585916", "0.6578046", "0.65755695", "0.655736", "0.65460825", "0.654586", "0.6543503", "0.65417343", "0.6538073", "0.65364695...
0.0
-1