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
the function check_plan is used to obtain the collection of stations around a certain location, which is ordered by the distance to the location. the user's neighbors_of_location attribute will be arranged by this collection plan: the plan in which to find out the collection x: the first coordinate the chosen location y: the second coordinate the chosen location
public void check_plan(Plan plan, double x, double y){ this.neighbors_of_location = new TreeMap<Double,Station>(); for(Station s: plan.getStations()){ this.neighbors_of_location.put(Math.sqrt(Math.pow(x-s.getPosition()[0],2) + Math.pow(y-s.getPosition()[1],2)),s); } System.out.println("Neighbors of the location ["+x+", "+y+"]: " + this.neighbors_of_location.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void suggestTourPlan(Tour alternativeRoute) throws JSONException, ParseException {\n String tourId = alternativeRoute.getTourName(); //get this from session\n Tour tourDetails = new TourDAOs().getTour(alternativeRoute.getTourName());\n System.out.println(\"Tour Details :\" + tourDetails...
[ "0.58404464", "0.57763994", "0.54877883", "0.547111", "0.54489523", "0.54454714", "0.53376746", "0.532744", "0.5297222", "0.5292374", "0.52584654", "0.5243841", "0.5230165", "0.5222705", "0.5205588", "0.5180243", "0.5174045", "0.51712793", "0.51673174", "0.5155867", "0.514818...
0.76619357
0
the function check_station is used to check out the current detailed info of a chosen station s: the station to check out the situation
public void check_station(Station s) throws Exception{ s.add_user(this); System.out.println("Station State: " + s.isState()); System.out.println("Station Id: " + s.getId()); System.out.println("Station Type: " + s.getType()); System.out.println("Station Position: " + s.getPosition()[0] + " " + s.getPosition()[1]); System.out.println("Mech Slots Available: " + (s.getPlaces_mech().size()-s.count_mech())); System.out.println("Elec Slots Available: " + (s.getPlaces_elec().size()-s.count_elec())); System.out.println("Mech Bicycles Available: " + (s.count_mech())); System.out.println("Elec Bicycles Available: " + (s.count_elec())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkStationExists() {\n\n stationExists = false;\n dataExists = false;\n stationExistsCount = 0;\n thisSubdesCount = 0;\n// stationIgnore = false;\n\n for (int i = 0; i < MAX_STATIONS; i++) {\n stationExistsArray[i] = false;\n loadedDepthMin[i] ...
[ "0.72415644", "0.70061296", "0.6745967", "0.6628404", "0.6537179", "0.6423364", "0.61322016", "0.6121183", "0.60161173", "0.6014853", "0.59487605", "0.5900004", "0.58851177", "0.58306694", "0.583055", "0.57799387", "0.57174677", "0.5655246", "0.5645081", "0.56269646", "0.5612...
0.77275664
0
the function deconnect_station is used to cut off connections to a certain station s: the station to cut off connections.
public void deconnect_station(Station s) throws Exception{ s.remove_user(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetStation();", "void unsaveCurrentStation();", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "public void disconnectFromClientAnd...
[ "0.68330127", "0.61471415", "0.59052503", "0.57216704", "0.5684313", "0.564936", "0.5637305", "0.5633318", "0.5554094", "0.5542665", "0.5518332", "0.54998577", "0.5485421", "0.5485094", "0.545623", "0.54072106", "0.53973025", "0.5366943", "0.5349149", "0.53267837", "0.5319649...
0.7352574
0
/ / / /
private void mouseDownInMove() /* */ { /* 122 */ if (this.downNode < 0) return; /* 123 */ if (this.bn != null) this.oldPos.setLocation(this.bn.getPos(this.downNode)); else { /* 124 */ this.oldPos.setLocation(this.mn.getPos(this.downNode)); /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5907387", "0.5575842", "0.54291975", "0.53248495", "0.5295296", "0.5272114", "0.52588725", "0.5256441", "0.5159524", "0.51412994", "0.51103354", "0.5097666", "0.5026484", "0.50228465", "0.5010535", "0.49753603", "0.49681365", "0.49662355", "0.49319422", "0.49270096", "0.49...
0.0
-1
/ / / / / /
private void mouseUpInMove() /* */ { /* 134 */ if (this.downNode < 0) { return; /* */ } /* 136 */ this.bn.setPos(this.downNode, 0, 0); /* 137 */ int i = this.bn.isClose(this.upPoint, 6); /* 138 */ if ((i != -2) || (this.upPoint.x < 0) || (this.upPoint.x > getSize().width) || (this.upPoint.y < 0) || (this.upPoint.y > getSize().height)) /* */ { /* */ /* 141 */ this.bn.setPos(this.downNode, this.oldPos); /* 142 */ HelpPanel.showError("Too close to another node or out of border!"); /* */ } else { /* 144 */ this.bn.setPos(this.downNode, this.upPoint); /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf(...
[ "0.5475258", "0.5382969", "0.52975744", "0.52931476", "0.5212751", "0.5184087", "0.51620936", "0.5139127", "0.509892", "0.50700736", "0.5064612", "0.50379485", "0.49882936", "0.49350035", "0.49133053", "0.4904552", "0.4904552", "0.4895881", "0.489463", "0.48927748", "0.489252...
0.0
-1
/ / / / /
private void mouseDownReqEvi() /* */ { /* 159 */ if (this.downNode >= 0) { /* */ boolean bool; /* 161 */ if (this.bn != null) bool = this.bn.isObserved(this.downNode); else /* 162 */ bool = this.mn.isObserved(this.downNode); /* 163 */ if (bool) { HelpPanel.showError("This variable has been observed."); /* */ } /* 165 */ else if (this.server == null) { /* 166 */ HelpPanel.addHelp("Please enter server address/port."); /* 167 */ Network.VectorDialog localVectorDialog = new Network.VectorDialog(this.frame, this, "Simulator Infor", getPrompt(), getDefault(), 16, 100, 100); /* */ /* */ /* */ /* */ /* 172 */ localVectorDialog.setVisible(true); /* */ } else { /* 174 */ requestAndEnterEvi(this.downNode); /* */ } /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n ...
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421...
0.0
-1
/ / / / /
String reqVarValue(String paramString) /* */ { /* 234 */ java.net.Socket localSocket = null; /* 235 */ int i = Integer.parseInt(this.portNum); /* */ try { /* 237 */ localSocket = new java.net.Socket(this.server, i); /* */ } catch (java.net.UnknownHostException localUnknownHostException) { /* 239 */ HelpPanel.showError(localUnknownHostException.getMessage()); /* 240 */ this.server = null;this.portNum = null;return null; /* */ } catch (IOException localIOException1) { /* 242 */ HelpPanel.showError(localIOException1.getMessage()); /* 243 */ this.server = null;this.portNum = null;return null; /* */ } /* */ try /* */ { /* 247 */ BufferedReader localBufferedReader = new BufferedReader(new java.io.InputStreamReader(localSocket.getInputStream())); /* */ /* 249 */ java.io.PrintWriter localPrintWriter = new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(localSocket.getOutputStream())), true); /* */ /* */ /* 252 */ localPrintWriter.println(paramString); /* */ /* 254 */ String str1 = localBufferedReader.readLine(); /* 255 */ java.util.StringTokenizer localStringTokenizer = new java.util.StringTokenizer(str1); /* 256 */ if (!localStringTokenizer.nextToken().equals(paramString)) { /* 257 */ HelpPanel.showError("Incorrect var name in reply."); /* 258 */ return null; /* */ } /* 260 */ String str2 = localStringTokenizer.nextToken(); /* 261 */ if (str2.equals("0")) { /* 262 */ HelpPanel.showError("Invalid request or unobservable variable."); /* 263 */ return null; /* */ } /* 265 */ if (str2.equals("-1")) { /* 266 */ HelpPanel.showError("Simulator not ready.");return null; /* */ } /* 268 */ return localStringTokenizer.nextToken(); /* */ } catch (IOException localIOException2) { /* 270 */ HelpPanel.showError(localIOException2.getMessage()); } /* 271 */ return null; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n ...
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421...
0.0
-1
/ / / / /
private void mouseDownInEvi(int paramInt) /* */ { /* 279 */ if (paramInt >= 0) { /* */ boolean bool; /* 281 */ if (this.bn != null) bool = this.bn.isObserved(paramInt); else /* 282 */ bool = this.mn.isObserved(paramInt); /* 283 */ if (!bool) { /* 284 */ HelpPanel.addHelp("Enter 0 for impossible value and 1 otherwise."); /* 285 */ Network.VectorDialog localVectorDialog = new Network.VectorDialog(this.frame, this, getLabel(paramInt), getState(paramInt), getDefaultEvi(paramInt), 16, 100, 100); /* */ /* */ /* */ /* */ /* */ /* 291 */ localVectorDialog.setVisible(true); /* */ } else { /* 293 */ HelpPanel.showError("Evidence on this node has been entered!"); /* */ } } /* 295 */ this.pmode = 0; /* 296 */ repaint(); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n ...
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421...
0.0
-1
/ / / /
private void mouseDownInProb(int paramInt) /* */ { /* 332 */ if (paramInt >= 0) { /* 333 */ this.frame.setCursor(new java.awt.Cursor(3)); /* 334 */ Network.ProbDialog localProbDialog = new Network.ProbDialog(this.frame, this, "Cluster " + this.jt.getLabel(paramInt), getCqMemberLabel(paramInt), getCqMemberState(paramInt), this.jt.getBelief(paramInt), paramInt, 12, 10, 10, 100); /* */ /* */ /* */ /* */ /* */ /* */ /* 341 */ localProbDialog.setVisible(true); /* 342 */ this.frame.setCursor(new java.awt.Cursor(0)); /* 343 */ repaint(); /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5907044", "0.55757374", "0.54290646", "0.5324536", "0.5295068", "0.5272019", "0.52588", "0.52563244", "0.5159332", "0.5141203", "0.5110246", "0.509765", "0.5026454", "0.50225997", "0.5010296", "0.4975172", "0.49682087", "0.4966245", "0.49318522", "0.49270573", "0.49162242"...
0.0
-1
/ / / /
public void setVector(int[] paramArrayOfInt) /* */ { /* 370 */ enterEvi(this.downNode, paramArrayOfInt); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
/ / / / / / /
boolean hasNode() /* */ { /* 473 */ if ((this.bn == null) && (this.mn == null)) return false; /* 474 */ if (this.jt == null) return false; /* 475 */ return true; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void b...
[ "0.54567957", "0.53680295", "0.53644985", "0.52577376", "0.52142847", "0.51725817", "0.514088", "0.50868535", "0.5072305", "0.504888", "0.502662", "0.50005764", "0.49740013", "0.4944243", "0.4941118", "0.4937142", "0.49095523", "0.48940238", "0.48719338", "0.48613623", "0.486...
0.0
-1
/ / / /
public void showNet() /* */ { /* 482 */ update(getGraphics()); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5907387", "0.5575842", "0.54291975", "0.53248495", "0.5295296", "0.5272114", "0.52588725", "0.5256441", "0.5159524", "0.51412994", "0.51103354", "0.5097666", "0.5026484", "0.50228465", "0.5010535", "0.49753603", "0.49681365", "0.49662355", "0.49319422", "0.49270096", "0.49...
0.0
-1
Construct a Copy action with the given owner.
public Copy(DataFrame owner) { this.owner = owner; setup(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FilterApplyAction(ListComponent owner) {\r\n this(owner, ACTION_ID);\r\n }", "private static MenuItem createCopyMenuItem(SongManager model, TreeView<Item> tree) {\n MenuItem copy = new MenuItem(COPY);\n\n copy.setOnAction((event) -> {\n List<TreeItem<Item>> treeItems = t...
[ "0.564334", "0.56344056", "0.5511997", "0.5454502", "0.54465103", "0.5425811", "0.539655", "0.5330139", "0.5272852", "0.5239917", "0.5162167", "0.51349396", "0.5070697", "0.50518125", "0.50497097", "0.49957216", "0.4981022", "0.4949378", "0.49348164", "0.49279803", "0.4912956...
0.5351505
7
Executed when the action is fired.
public void actionPerformed(ActionEvent ae) { int selected = owner.getSelectedRecordIndex(); String[] row = owner.getDataTableModel().getDataRecord(selected).getData(); StringBuffer copy = new StringBuffer(); for(int i = 0; i < row.length; i++) { byte[] array = new byte[owner.getConfiguration().getMetaSchema()[i].getLength()]; for(int j = 0; j < array.length; j++) { array[j] = ' '; } System.arraycopy(row[i].getBytes(), 0, array, 0, row[i].length()); copy.append(new String(array)); } Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringSelection content = new StringSelection(copy.toString()); cb.setContents(content, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\...
[ "0.74366903", "0.74366903", "0.74366903", "0.73564106", "0.72754526", "0.7180489", "0.71471065", "0.70816046", "0.7027582", "0.7027582", "0.701654", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.69854194", "...
0.0
-1
set attributes of this action
private void setup() { putValue(NAME, "Copy"); putValue(SMALL_ICON, new ImageIcon(getClass().getResource("/res/copy16.gif"))); putValue(SHORT_DESCRIPTION, "Copy the selected data record"); putValue(LONG_DESCRIPTION, "Copy the selected data record"); putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_C)); putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.SHIFT_MASK)); putValue(ACTION_COMMAND_KEY, "copy-command"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\npublic void setAttributes() {\n\t\n}", "private void setAllAttributesFromController() {\n obsoData.setSupplier(supplier);\n \n obsoData.setEndOfOrderDate(endOfOrderDate);\n obsoData.setObsolescenceDate(obsolescenceDate);\n \n obsoData.setEndOfSupportDate(endOf...
[ "0.6696718", "0.6571867", "0.6508226", "0.6342576", "0.62446624", "0.602229", "0.60081893", "0.59113824", "0.584834", "0.5785926", "0.5779997", "0.5756871", "0.57492167", "0.57476187", "0.57450134", "0.5697339", "0.56669176", "0.5657055", "0.56244504", "0.5617859", "0.5603835...
0.0
-1
make spans if certain words are found in the input string
public SpannableString makeSpans(String input) { Log.d("makeSpans", "input: " + input); SpannableString ss = new SpannableString(input); int endIndex; // check for cards for (String word : Globals.getInstance().getCards()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Cards", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } // check for relics for (String word : Globals.getInstance().getRelics()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Relics", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } // check for potions for (String word : Globals.getInstance().getPotions()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Potions", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } // check for keywords for (String word : Globals.getInstance().getKeywords()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Keywords", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } // check for events for (String word : Globals.getInstance().getEvents()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Events", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } return ss; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void highlightString(TextView textView, String input) {\n SpannableString spannableString = new SpannableString(textView.getText());\n//Get the previous spans and remove them\n BackgroundColorSpan[] backgroundSpans = spannableString.getSpans(0, spannableString.length(), BackgroundColorSpan.cl...
[ "0.6140197", "0.5900113", "0.5845958", "0.5780134", "0.56531394", "0.5588887", "0.5558124", "0.55215883", "0.5488221", "0.5445289", "0.5431836", "0.5404757", "0.5391534", "0.5385327", "0.53792125", "0.53493685", "0.53420013", "0.5334232", "0.53176343", "0.53170055", "0.529249...
0.71680534
0
make a new clickablespan that links to the infohelper
private ClickableSpan makeClickableSpan(final String type, final String filter) { return new ClickableSpan() { @Override public void onClick(View view) { new InfoHelper().getInfo(GlobalFunctions.this, type, filter); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n Log.d(\"LoginActivity\", \"// span link clicked..\");\n }", "@Override\n public void onInfoWindowClick(Marker marker) {\n makeText(this, \"Info window clicked\",\n LENGTH_SHORT).show();\n ...
[ "0.62042886", "0.6120118", "0.58837074", "0.58319294", "0.58319294", "0.5645129", "0.56384146", "0.55792683", "0.55457455", "0.553588", "0.55334336", "0.5507955", "0.5459002", "0.543995", "0.5432967", "0.54234153", "0.5401574", "0.53985524", "0.53837585", "0.53718597", "0.535...
0.65575993
0
make all instances of a word bold in the input
public SpannableString makeBold(String input, String start, String end) { SpannableString ss = new SpannableString(input); int endIndex; for (int startIndex = input.toLowerCase().indexOf(start.toLowerCase()); startIndex >= 0; startIndex = input.toLowerCase().indexOf(start.toLowerCase(), startIndex + 1)) { endIndex = input.toLowerCase().indexOf(end.toLowerCase(), startIndex + 1); if (endIndex == -1) { break; } ss.setSpan(new android.text.style.StyleSpan(android.graphics.Typeface.BOLD), startIndex, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } return ss; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String bold() {\n if (selection != null) {\n list.get(selection.start).setBold();\n list.get(selection.end).setBold();\n\n }\n\n //return sb.toString();\n return printList();\n }", "public String addBoldTag(String s, String[] dict) {\n // Get ri...
[ "0.66438925", "0.6497964", "0.6088421", "0.6033191", "0.5942503", "0.56917536", "0.5628829", "0.5602498", "0.5598146", "0.5558829", "0.55343485", "0.5532305", "0.5481303", "0.54798365", "0.5468019", "0.5435474", "0.5387743", "0.53809905", "0.5341887", "0.530592", "0.52895457"...
0.71257746
0
parse the HTML to delete all figures
public String parseHTML(String html) { int endIndex; for (int startIndex = html.indexOf("<figure"); startIndex >= 0; startIndex = html.indexOf("<figure")) { endIndex = html.indexOf("figure>", startIndex); if (endIndex == -1) { break; } String sub = html.substring(startIndex, endIndex + 7); html = html.replace(sub, ""); } for (int startIndex = html.indexOf("<span class=\"editsection"); startIndex >= 0; startIndex = html.indexOf("<span class=\"editsection")) { endIndex = html.indexOf("span>", startIndex); if (endIndex == -1) { break; } String sub = html.substring(startIndex, endIndex + 5); html = html.replace(sub, ""); } for (int startIndex = html.indexOf("<img"); startIndex >= 0; startIndex = html.indexOf("<img")) { endIndex = html.indexOf("img>", startIndex); if (endIndex == -1) { break; } String sub = html.substring(startIndex, endIndex + 5); html = html.replace(sub, ""); } return html; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cleanPharagraph() {\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?p[^>]*[>]\", \"\");\n\n // replace closing p tag with <br> to indicate paragraph\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?(/)(\\\\s+)?p[^>]*[>]\", \"<br>\");\n }...
[ "0.5847313", "0.5660514", "0.53572124", "0.53306407", "0.5267574", "0.5262387", "0.52516896", "0.52312356", "0.5209022", "0.5166629", "0.51650405", "0.5149708", "0.514563", "0.5137376", "0.5082595", "0.5062539", "0.50517315", "0.50511783", "0.49772823", "0.4975673", "0.496003...
0.67551976
0
open the notes dialog fragment
public void getNotes(String type, String name, String oldNote) { DialogFragment dialog = new InputFragment(); Bundle extra = new Bundle(); extra.putString("type", type); extra.putString("name", name); extra.putString("oldNote", oldNote); dialog.setArguments(extra); dialog.show(fragmentManager, "dialog"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void MoodRatingAddNoteDialog() {\n FragmentManager manager = getFragmentManager();\n Fragment frag = manager.findFragmentByTag(\"fragment_add_note\");\n if (frag != null) {\n manager.beginTransaction().remove(frag).commit();\n }\n fragmentAddNote fraAddNoteDial...
[ "0.71259004", "0.6989577", "0.68190897", "0.6500935", "0.6472275", "0.6371916", "0.63338363", "0.6305396", "0.62224954", "0.6217076", "0.61997056", "0.6156576", "0.61295897", "0.6103243", "0.607028", "0.60312194", "0.6016366", "0.59946823", "0.5963296", "0.5955106", "0.594177...
0.6147565
12
Instantiates a new admin.
public Admin() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public admin() {\n\t\tsuper();\n\t}", "public Admin() {\n initComponents();\n }", "public Admin() {\n initComponents();\n }", "public Admin() {\n initComponents();\n }", "public Admin createAdmin(){\n\t\ttry {\n\t\t\treturn conn.getAdmin();\n\t\t} catch (Exception e) {\n\t\t\t...
[ "0.7381341", "0.72883075", "0.72883075", "0.72883075", "0.7284018", "0.69843525", "0.6954602", "0.688659", "0.6727338", "0.6706652", "0.6655711", "0.6613299", "0.661178", "0.65837026", "0.6570962", "0.65179443", "0.6501824", "0.6498339", "0.6425691", "0.64034724", "0.6389354"...
0.7827758
0
Gets the mail id.
public String getMailId() { return mailId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getmailID() {\n\t\treturn _mailID;\n\t}", "public String getMessageId() {\n Field field = obtainField(FieldName.MESSAGE_ID);\n if (field == null)\n return null;\n\n return field.getBody();\n }", "@AutoEscape\n\tpublic String getEmailId();", "public String getE...
[ "0.8163277", "0.6976142", "0.69559497", "0.68835723", "0.6874002", "0.6728356", "0.67198586", "0.66848254", "0.6682378", "0.6682378", "0.66412747", "0.6637155", "0.66198045", "0.6612233", "0.65489995", "0.64781815", "0.64714277", "0.64714277", "0.6462786", "0.64040726", "0.63...
0.81620383
1
Sets the mail id.
public void setMailId(String mailId) { this.mailId = mailId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMailId(int v) \n {\n \n if (this.mailId != v)\n {\n this.mailId = v;\n setModified(true);\n }\n \n \n }", "public void setmailID(String mailID) {\n\t\t_mailID = mailID;\n\t}", "public String getMailId() {\n...
[ "0.77154773", "0.73266053", "0.7017565", "0.69242847", "0.68454367", "0.6762985", "0.6216698", "0.61503005", "0.612021", "0.6067588", "0.5953872", "0.5937659", "0.5872336", "0.5870279", "0.5869056", "0.5837342", "0.5827681", "0.5826471", "0.58183974", "0.5811807", "0.5800233"...
0.6988149
3
Gets the admin id.
public int getAdminId() { return adminId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAdminId() {\n return adminId;\n }", "public String getAdminId() {\n return adminId;\n }", "public String getAdminid() {\r\n return adminid;\r\n }", "public int getAdmin() {\n return admin;\n }", "public String getAdminName() {\n return adminNa...
[ "0.8477229", "0.8477229", "0.82715625", "0.7507442", "0.6976115", "0.6976115", "0.69445884", "0.6921598", "0.69123137", "0.6856799", "0.6853589", "0.6802345", "0.6675946", "0.6618764", "0.65974706", "0.65930706", "0.65498036", "0.6542557", "0.65417725", "0.65325147", "0.65121...
0.84706116
2
Sets the admin id.
public void setAdminId(int adminId) { this.adminId = adminId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdminId(String adminId) {\n this.adminId = adminId == null ? null : adminId.trim();\n }", "public void setAdminId(String adminId) {\n this.adminId = adminId == null ? null : adminId.trim();\n }", "public void setAdminid(String adminid) {\r\n this.adminid = adminid == n...
[ "0.76581776", "0.76581776", "0.7468752", "0.7358959", "0.72417414", "0.72417414", "0.7173319", "0.7172991", "0.6811887", "0.65485775", "0.6501027", "0.6345086", "0.62507695", "0.62131906", "0.61790925", "0.61712354", "0.61648184", "0.6106016", "0.6105213", "0.6039306", "0.601...
0.7735195
0
Gets the admin name.
public String getAdminName() { return adminName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAdminname() {\n return adminname;\n }", "public String getAdminName() {\n return adminName;\n }", "public String getAdminName() {\n return adminName;\n }", "java.lang.String getAdmin();", "public java.lang.String getAdmin() {\n java.lang.Object ref = ad...
[ "0.8478206", "0.8471725", "0.8471725", "0.7737027", "0.7556323", "0.741367", "0.70139396", "0.6958255", "0.6867049", "0.6867049", "0.6833623", "0.68329793", "0.68250936", "0.68054223", "0.6804805", "0.6794629", "0.67848885", "0.67408335", "0.67395514", "0.6711558", "0.6647906...
0.84688926
3
Sets the admin name.
public void setAdminName(String adminName) { this.adminName = adminName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdminName(String adminName) {\n\t\tAdminName = adminName;\n\t}", "public void setAdminName(String adminName) {\n this.adminName = adminName == null ? null : adminName.trim();\n }", "public void setAdminName(String adminName) {\n this.adminName = adminName == null ? null : adminN...
[ "0.7855451", "0.78515255", "0.78515255", "0.76481014", "0.7388901", "0.737226", "0.7295128", "0.7295128", "0.694415", "0.67923135", "0.66580594", "0.6472158", "0.64441633", "0.63912606", "0.6389181", "0.6372186", "0.6356997", "0.6352737", "0.63466835", "0.63461995", "0.633943...
0.78494096
3
Setup UI elements listeners
public void setupUIListeners() { setupEditTextListeners(); setupSeekBarsListeners(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void initUiAndListener();", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "private void initEvents() {\n\t\tuser_head_img.setOnClickListener(this...
[ "0.75474775", "0.7431107", "0.7319327", "0.7216196", "0.71548885", "0.71475077", "0.71395206", "0.7132016", "0.7131996", "0.7121745", "0.70928645", "0.7067968", "0.7065162", "0.6977523", "0.6958786", "0.68651205", "0.68622255", "0.68578917", "0.68560004", "0.68551725", "0.684...
0.834445
0
Helper function to recalculate and update actual and displayed value for tip amount.
private void updateActualAndDisplayedResult() { resultTipValue = calculateTip( amountValue, percentValue, splitValue); tvResult.setText( "Tip: $" + String.format("%.2f", resultTipValue) + " per person." ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calculateTip()\n {\n\t\ttry\n {\n\t\t\tbillAmount = Double.parseDouble(billAmountEditText.getText().toString());\n\t\t\thideKeyboard();\n loadTipPercentage();\n\t\t}\n catch (NumberFormatException ex)\n {\n\t\t\tbillAmount = 0;\n\t\t}\n try\n {\n ...
[ "0.73580843", "0.72356516", "0.7207718", "0.68723834", "0.6825073", "0.6759772", "0.6689006", "0.6641879", "0.6627424", "0.65564567", "0.64534026", "0.6450304", "0.6435054", "0.6425488", "0.6419682", "0.6399114", "0.6370349", "0.6340248", "0.63127023", "0.61732215", "0.615240...
0.74015695
0
Helper function to determine a proper unit(s) based on the given progress/unit
private String getStringPersonUnitBasedOnNumber( int progress ) { String msg = "1 person"; if ( progress > 1) { msg = progress + " people"; } return msg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n ...
[ "0.6562117", "0.65601057", "0.6513692", "0.6354703", "0.63032955", "0.63012886", "0.6275321", "0.62471336", "0.61673963", "0.6147911", "0.6147911", "0.6147911", "0.61325854", "0.6096519", "0.6058506", "0.6054426", "0.60162693", "0.6000341", "0.59966046", "0.5995411", "0.59808...
0.62828076
6
Helper function to help getting latest value of of people will be splited tip
private void updateSplitValue() { splitValue = peopleSeekBar.getProgress(); if ( splitValue < 1 ) { splitValue = 1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getbestline() {\n\t\tint i=0;\n\t\tint biggest=0;\n\t\tint keep_track=0;\n\t\twhile(i < amount.length) {\n\t\t\tif(Faucets.amount[i] > biggest) {\n\t\t\t\tbiggest = Faucets.amount[i];\n\t\t\t\tkeep_track = i;\n\t\t\t}\n\t\t\ti+=1;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Keep_Track = \\\"\" + keep_track...
[ "0.52249163", "0.521763", "0.5147204", "0.507693", "0.5074554", "0.5053273", "0.5005813", "0.5001929", "0.49613157", "0.4947114", "0.4942603", "0.49156108", "0.49130943", "0.49066994", "0.48830733", "0.4871881", "0.4856557", "0.48422828", "0.48336807", "0.48330373", "0.482998...
0.50382257
6
////////////////////////// / Core functionalities ///////////////////////// Calculate a tip amount per person based on the given amount and percent
private float calculateTip( float amount, int percent, int totalPeople ) { float result = (float) ((amount * (percent / 100.0 )) / totalPeople); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calculateTip()\n {\n\t\ttry\n {\n\t\t\tbillAmount = Double.parseDouble(billAmountEditText.getText().toString());\n\t\t\thideKeyboard();\n loadTipPercentage();\n\t\t}\n catch (NumberFormatException ex)\n {\n\t\t\tbillAmount = 0;\n\t\t}\n try\n {\n ...
[ "0.72023034", "0.68268853", "0.67336416", "0.65262294", "0.6171386", "0.6083714", "0.6026306", "0.60034704", "0.5999569", "0.5977095", "0.5946861", "0.5931204", "0.59168404", "0.58943135", "0.5829196", "0.5828326", "0.57957816", "0.57895577", "0.5786299", "0.5784026", "0.5704...
0.8636496
0
//////////////////////// / Override methods ////////////////////////
@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.calculate, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}"...
[ "0.74267036", "0.73357284", "0.7158339", "0.7129712", "0.7105187", "0.7023207", "0.7008079", "0.6985532", "0.68283325", "0.68271625", "0.68271625", "0.6825975", "0.6825975", "0.682024", "0.67623603", "0.6751638", "0.6751638", "0.6751638", "0.6751638", "0.6751638", "0.6751638"...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79046714", "0.78065175", "0.7766765", "0.7727237", "0.76320195", "0.7622174", "0.7585192", "0.75314754", "0.74888134", "0.7458358", "0.7458358", "0.7438547", "0.7421898", "0.7402884", "0.73917156", "0.738695", "0.73795676", "0.73704445", "0.7361756", "0.7356012", "0.734561...
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static CassaPrevidenziale createEntity(EntityManager em) { CassaPrevidenziale cassaPrevidenziale = new CassaPrevidenziale() .tipoCassa(DEFAULT_TIPO_CASSA) .alCassa(DEFAULT_AL_CASSA) .importoContributoCassa(DEFAULT_IMPORTO_CONTRIBUTO_CASSA) .imponibileCassa(DEFAULT_IMPONIBILE_CASSA) .aliquotaIVA(DEFAULT_ALIQUOTA_IVA) .ritenuta(DEFAULT_RITENUTA) .natura(DEFAULT_NATURA) .riferimentoAmministrazione(DEFAULT_RIFERIMENTO_AMMINISTRAZIONE); return cassaPrevidenziale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEn...
[ "0.77237844", "0.75048935", "0.7488585", "0.736279", "0.73147863", "0.71573627", "0.71573627", "0.715141", "0.7148617", "0.7077601", "0.7016931", "0.6804163", "0.6752578", "0.6741185", "0.6741185", "0.6711834", "0.6682166", "0.6668473", "0.66409945", "0.6625449", "0.66251147"...
0.0
-1
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static CassaPrevidenziale createUpdatedEntity(EntityManager em) { CassaPrevidenziale cassaPrevidenziale = new CassaPrevidenziale() .tipoCassa(UPDATED_TIPO_CASSA) .alCassa(UPDATED_AL_CASSA) .importoContributoCassa(UPDATED_IMPORTO_CONTRIBUTO_CASSA) .imponibileCassa(UPDATED_IMPONIBILE_CASSA) .aliquotaIVA(UPDATED_ALIQUOTA_IVA) .ritenuta(UPDATED_RITENUTA) .natura(UPDATED_NATURA) .riferimentoAmministrazione(UPDATED_RIFERIMENTO_AMMINISTRAZIONE); return cassaPrevidenziale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .firstName(UPDATED_FIRST_NAME)\n .middleName(UPDATED_MIDDLE_NAME)\n .lastName(UPDATED_LAST_NAME)\n .studentRegNumber(UPDATED_STUDENT_REG_NUMBER)\n .dateOfB...
[ "0.6943836", "0.6788255", "0.6786641", "0.67172986", "0.6693327", "0.66913915", "0.6663769", "0.6636127", "0.6620307", "0.65142477", "0.6509136", "0.64467573", "0.6422512", "0.6420476", "0.6419049", "0.6413755", "0.64120173", "0.6408185", "0.6403095", "0.63928974", "0.6389640...
0.0
-1
interface methods are public as default
double getPerimeter();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}", "interface Interface1 {\n\n\tdefault void add() {\n\t\tSystem.out.println(\"Interface1 add method\");\n\t}\n\n\tdef...
[ "0.70434487", "0.7009584", "0.6977159", "0.6921664", "0.6911748", "0.68813384", "0.6868949", "0.6855911", "0.6849872", "0.68433595", "0.6826731", "0.6825129", "0.6813508", "0.67912346", "0.6772135", "0.6772135", "0.6771788", "0.6768666", "0.6765575", "0.67599165", "0.6750289"...
0.0
-1
interface cn not be private or protected
default void printMyName(){ // interfaces can have only 1 method type with body and have default prefix as a keyword System.out.println("My name is bla bla"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface c {\n}", "public interface C0136c {\n }", "public interface bzt extends cdm {\n}", "public interface C24717ak {\n}", "public interface C22486a {\n void bGQ();\n\n void cMy();\n }", "public interface C11910c {\n}", "interface C34503a {\n void bMl();\n }", ...
[ "0.6614813", "0.6572396", "0.6551373", "0.6538282", "0.6520759", "0.65044075", "0.64880633", "0.6486194", "0.64219195", "0.64136946", "0.64013875", "0.6400863", "0.63810253", "0.6355512", "0.63403004", "0.63343346", "0.6323738", "0.6313451", "0.6297079", "0.6293896", "0.62666...
0.0
-1
Created by minga on 7/19/2018.
@Dao public interface RecipeDao { @Query ("SELECT * FROM recipes LIMIT 1") Recipe getAnyRecipe(); @Query ("SELECT * FROM recipes") List<Recipe> getAllRecipes(); @Query ("SELECT * FROM recipes") LiveData<List<Recipe>> loadAllRecipes(); @Query ("SELECT * FROM recipes WHERE id =:rid") LiveData<Recipe> findByRecipeID(Integer rid); @Insert void insertRecipe(Recipe recipe); @Update(onConflict = OnConflictStrategy.REPLACE) void updateRecipe(Recipe recipe); @Delete void deleteRecipe(Recipe recipe); /** * Select all cheeses. * * @return A {@link Cursor} of all the cheeses in the table. */ @Query("SELECT * FROM recipes" ) Cursor selectAll(); /** * Select a cheese by the ID. * * @param id The row ID. * @return A {@link Cursor} of the selected cheese. */ @Query("SELECT * FROM recipes WHERE id = :id") Cursor selectById(Integer id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\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}", "@Override\r\n\t...
[ "0.6002706", "0.5820593", "0.58045673", "0.5730664", "0.56544507", "0.56544507", "0.56361616", "0.562561", "0.561364", "0.55290776", "0.5523115", "0.55153686", "0.5493734", "0.5479701", "0.5476483", "0.5473278", "0.5451371", "0.5451045", "0.54413843", "0.5433876", "0.543174",...
0.0
-1
Metodo que retorna a quantidade desse item.
public int getQntd() { return this.qntd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int quantity(final T item) {\n if (items.containsKey(item)) {\n return items.get(item);\n } else {\n return 0;\n }\n }", "int getQuantity();", "long getQuantity();", "long getQuantity();", "public int getQuantidade();", "public int getQuantity();", "...
[ "0.7464345", "0.7455958", "0.7443564", "0.7443564", "0.73641145", "0.7342081", "0.733396", "0.7316613", "0.72721803", "0.72365665", "0.7229034", "0.72256494", "0.72256494", "0.7210492", "0.7210492", "0.7189485", "0.7175978", "0.7149066", "0.7145512", "0.7124729", "0.7064533",...
0.0
-1
Metodo que retorna o item.
public Item getItem() { return this.item; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T getItem() {\r\n return item;\r\n }", "public T getItem() {\n return item;\n }", "public Item getItem() { \n return myItem;\n }", "public Item getItem ()\n\t{\n\t\treturn item;\n\t}", "public T getItem() {\n\t\treturn item;\n\t}", "public T getItem() {\n\t\treturn ...
[ "0.77505076", "0.7730997", "0.77216756", "0.76688325", "0.763826", "0.763826", "0.7602499", "0.7447074", "0.7428767", "0.74197245", "0.7337881", "0.7331603", "0.7325243", "0.7285215", "0.72780585", "0.72427225", "0.72336614", "0.7210624", "0.7205453", "0.71822286", "0.7117756...
0.7023625
30
Metodo que aumenta a quantidade do item.
public void aumentaQntdItem(int valorAdicionado) { this.qntd += valorAdicionado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "public int getItemQty() {\n return itemQty;\n }", "Items(int quantidade,Produto produto){\n\t\tqntd = quantidade;\n\t\tthis.produto = produto;\n\t\t\n\t}", "long getQuantity();", "long getQuantity();", "int getQuan...
[ "0.73426193", "0.71180224", "0.6977984", "0.6938537", "0.6938537", "0.69382274", "0.6920022", "0.6890777", "0.6886794", "0.6886212", "0.6876964", "0.6864707", "0.6863672", "0.68617797", "0.68426335", "0.68315136", "0.6780982", "0.67624295", "0.67624295", "0.67624295", "0.6762...
0.6219551
99
Metodo que diminui a quantidade do item.
public void diminuiQntdItem(int valorSubtraido) { this.qntd -= valorSubtraido; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "Items(int quantidade,Produto produto){\n\t\tqntd = quantidade;\n\t\tthis.produto = produto;\n\t\t\n\t}", "public int getItemQty() {\n return itemQty;\n }", "public int getQuantidade() {\r\n\t\treturn quantidade;\r\n\t}...
[ "0.71445477", "0.68471634", "0.6843034", "0.68330175", "0.6806525", "0.67786837", "0.6764542", "0.6759489", "0.6757966", "0.6757966", "0.67559016", "0.6718491", "0.6709561", "0.6701968", "0.6701968", "0.66733277", "0.66733277", "0.66654783", "0.663591", "0.66219467", "0.66022...
0.6311664
61
Metodo que retorna a representacao textual da compra.
@Override public String toString() { return this.item.exibirEmLista(this.qntd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() { return kind() + \":\"+ text() ; }", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String ge...
[ "0.70471716", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826"...
0.0
-1
Create contents of the window.
protected void createContents() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "void createWindow();", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\ts...
[ "0.78568476", "0.770408", "0.77024", "0.75711876", "0.747748", "0.7446512", "0.7418617", "0.74041", "0.7305366", "0.72465086", "0.7217618", "0.7171157", "0.71683043", "0.7142865", "0.71213007", "0.71075344", "0.7094211", "0.7083325", "0.707515", "0.69683087", "0.69569373", ...
0.65533143
58
Begin rendering of the scene graph from the root
@Override public void draw(INode root, Stack<Matrix4f> modelView) { GL3 gl = glContext.getGL().getGL3(); gl.glEnable(GL.GL_TEXTURE_2D); gl.glActiveTexture(GL.GL_TEXTURE0); int loc = -1; loc = shaderLocations.getLocation("image"); if (loc >= 0) { gl.glUniform1i(loc, 0); } root.draw(this, modelView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void renderScene() {\n\t\tscene.ready=false;\n\t\tscene.num_points=0;\n\t\tscene.num_triangles=0;\n\t\tscene.num_tri_vertices=0;\n\t\tscene.list_of_triangles.clear(); // reset the List of Triangles (for z-sorting purposes)\n\t\tscene.num_objects_visible=0;\n\t\ttotal_cost=0;\n\t\tupdateLighting();\n\t\tfor ...
[ "0.7018862", "0.7007449", "0.6964836", "0.68916476", "0.68463904", "0.68462396", "0.6707337", "0.66795105", "0.66108", "0.66073585", "0.65842146", "0.6556545", "0.65564597", "0.64992243", "0.6472839", "0.6454703", "0.6426713", "0.64193255", "0.6398809", "0.63952196", "0.63907...
0.0
-1
Draws a specific mesh. If the mesh has been added to this renderer, it delegates to its correspond mesh renderer This function first passes the material to the shader. Currently it uses the shader variable "vColor" and passes it the ambient part of the material. When lighting is enabled, this method must be overriden to set the ambient, diffuse, specular, shininess etc. values to the shader
@Override public void drawMesh(String name, util.Material material, String textureName, final Matrix4f transformation) { if (meshRenderers.containsKey(name)) { GL3 gl = glContext.getGL().getGL3(); //get the color FloatBuffer fb4 = Buffers.newDirectFloatBuffer(4); FloatBuffer fb16 = Buffers.newDirectFloatBuffer(16); int loc = -1; loc = shaderLocations.getLocation("material.ambient"); if (loc >= 0) { gl.glUniform3fv(loc, 1, material.getAmbient().get(fb4)); } else { throw new IllegalArgumentException("No shader variable for \" material.ambient \""); } loc = shaderLocations.getLocation("material.diffuse"); if (loc >= 0) { gl.glUniform3fv(loc, 1, material.getDiffuse().get(fb4)); } else { throw new IllegalArgumentException("No shader variable for \" material.diffuse \""); } if (loc >= 0) { loc = shaderLocations.getLocation("material.specular"); gl.glUniform3fv(loc, 1, material.getSpecular().get(fb4)); } else { throw new IllegalArgumentException("No shader variable for \" material.specular \""); } loc = shaderLocations.getLocation("material.shininess"); if (loc >= 0) { gl.glUniform1f(loc, material.getShininess()); } else { throw new IllegalArgumentException("No shader variable for \" material.shininess \""); } loc = shaderLocations.getLocation("modelview"); if (loc >= 0) { gl.glUniformMatrix4fv(loc, 1, false, transformation.get(fb16)); } else { throw new IllegalArgumentException("No shader variable for \" modelview \""); } loc = shaderLocations.getLocation("normalmatrix"); if (loc>=0) { Matrix4f normalmatrix = new Matrix4f(transformation).invert().transpose(); gl.glUniformMatrix4fv(loc,1,false,normalmatrix.get(fb16)); } else { throw new IllegalArgumentException("No shader variable for \" normalmatrix \""); } if (textures.containsKey(textureName)) textures.get(textureName).getTexture().bind(gl); else if (textures.containsKey("white")) textures.get("white").getTexture().bind(gl); meshRenderers.get(name).draw(glContext); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render(Shader shader, RenderingEngine renderingEngine) { meshRenderer.render(shader, renderingEngine); }", "@Override\n public void drawMesh(String name, util.Material material, String textureName,\n final Matrix4f transformation) {\n if (meshRenderers.containsKey(name)) {\n GL3 gl = gl...
[ "0.71650803", "0.7157477", "0.63142854", "0.607505", "0.5929368", "0.59091735", "0.57387143", "0.5696099", "0.56955874", "0.5686993", "0.567738", "0.55782205", "0.5518637", "0.55047077", "0.5443271", "0.5431425", "0.54278207", "0.53878677", "0.5377618", "0.5345807", "0.533561...
0.74003917
0
Queries the shader program for all variables and locations, and adds them to itself
@Override public void initShaderProgram(util.ShaderProgram shaderProgram, Map<String, String> shaderVarsToVertexAttribs) { Objects.requireNonNull(glContext); GL3 gl = glContext.getGL().getGL3(); shaderLocations = shaderProgram.getAllShaderVariables(gl); this.shaderVarsToVertexAttribs = new HashMap<String, String>(shaderVarsToVertexAttribs); shaderLocationsSet = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updatePointerVariables() {\n mPositionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n colorUniformHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n textureUniformHandle = GLES20.glGetUniformLocation(mProgram, \"s_texture\");\n textureCoordinate...
[ "0.601132", "0.5978716", "0.58284074", "0.5734785", "0.5715806", "0.5695663", "0.5637511", "0.5422744", "0.54203176", "0.5397135", "0.5386221", "0.53845876", "0.53742", "0.53540784", "0.5338137", "0.5304492", "0.52989614", "0.5230583", "0.51441395", "0.51355284", "0.51057166"...
0.6436027
0
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof DiccionarioAplicacionEntity)) { return false; } DiccionarioAplicacionEntity other = (DiccionarioAplicacionEntity) object; if ((this.diccionarioAplicacionPK == null && other.diccionarioAplicacionPK != null) || (this.diccionarioAplicacionPK != null && !this.diccionarioAplicacionPK.equals(other.diccionarioAplicacionPK))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
Represents a persistent communications link between two parties. This isolates the client code from issues with transport reuse, while allowing for efficient persistent links with supported transports. Although the most common case is for channels to use a single transport in both directions, channels with different inbound and outbound transports are also supported, as are inbound and outboundonly channels.
public interface Channel { /** * Get a duplex connection for this channel. This method must be called for each request-response message exchange. * @param msgProps message specific properties * @param xmlOptions XML formatting options * @return connection * @throws IOException on I/O error * @throws WsConfigurationException on configuration error */ DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, WsConfigurationException; /** * Get a send-only connection for this channel. This method must be called for each message to be sent without a * response. * @param msgProps message specific properties * @param xmlOptions XML formatting options * @return connection * @throws IOException on I/O error * @throws WsConfigurationException on configuration error */ OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, WsConfigurationException; /** * Get a receive-only connection for this channel. This method must be called for each message to be received, and * will wait for a message to be available before returning. * * @return connection * @throws IOException on I/O error * @throws WsConfigurationException on configuration error */ InConnection getInbound() throws IOException, WsConfigurationException; /** * Close the channel. Implementations should disconnect and free any resources allocated to the channel. * @throws IOException on I/O error */ void close() throws IOException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ChannelConnection {\n public Channel getChannel();\n public Connector getConnector();\n}", "public interface Link<T> {\n\n /**\n * Resolve the link and get the underlying object.\n *\n * @return the target of the link, not null\n * @throws DataNotFoundException if the link is not ...
[ "0.5334721", "0.5245766", "0.5149766", "0.502435", "0.5024083", "0.49890953", "0.49846843", "0.49705383", "0.492991", "0.49282283", "0.4881108", "0.4830832", "0.48102313", "0.48023134", "0.47994626", "0.4788605", "0.47814053", "0.47785738", "0.4772831", "0.4765302", "0.471825...
0.48341766
11
Get a duplex connection for this channel. This method must be called for each requestresponse message exchange.
DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, WsConfigurationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Channel\r\n{\r\n /**\r\n * Get a duplex connection for this channel. This method must be called for each request-response message exchange.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws...
[ "0.62498593", "0.57988954", "0.5543668", "0.55131066", "0.55019796", "0.5499201", "0.5445937", "0.54177946", "0.5397444", "0.5282266", "0.5279584", "0.5260899", "0.5236794", "0.5195486", "0.51890403", "0.51890403", "0.5184254", "0.5183044", "0.517097", "0.5167839", "0.5167469...
0.6308386
0
Get a sendonly connection for this channel. This method must be called for each message to be sent without a response.
OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, WsConfigurationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SocketChannel getChannel() { return null; }", "public Channel getChannel() throws ConnectException\n {\n return getChannel(null);\n }", "public SocketChannel getChannel() {\n return channel;\n }", "protected SocketChannel getSocket() {\n\t\treturn channel;\n\t}", "protected Channe...
[ "0.5929248", "0.5772319", "0.54925305", "0.5478556", "0.54065704", "0.5404377", "0.5401009", "0.5399716", "0.5326189", "0.52310354", "0.52122176", "0.51727384", "0.5171331", "0.51637524", "0.51153225", "0.5076911", "0.5045669", "0.5029107", "0.5029107", "0.5005275", "0.497404...
0.0
-1
Get a receiveonly connection for this channel. This method must be called for each message to be received, and will wait for a message to be available before returning.
InConnection getInbound() throws IOException, WsConfigurationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message receiveMessage() {\r\n\t\treturn messages.poll();\r\n\t}", "public Message getMessageMinerChannel() {\n\t\tMessage msg2=null;\n\t\ttry{\n\t\t\tmsg2=chann2.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg2;\n\t}", "public Channel getChannel() thro...
[ "0.5747566", "0.5673885", "0.5598896", "0.5529424", "0.5502317", "0.5447424", "0.541021", "0.5203354", "0.514404", "0.5123596", "0.5110173", "0.51084465", "0.51068", "0.5106766", "0.5078741", "0.50759745", "0.507579", "0.50747395", "0.50679016", "0.5044332", "0.504253", "0....
0.0
-1
Close the channel. Implementations should disconnect and free any resources allocated to the channel.
void close() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close() {\r\n channel.close();\r\n }", "public void close() {\n\t\tchannel.close();\n\t}", "@Override\n public void close() throws IOException {\n channel.close();\n }", "public void close() throws IOException {\n\t\tchannel.close();\n\t}", "public void close() {\n ...
[ "0.8570655", "0.8331148", "0.78367174", "0.77358854", "0.7427256", "0.74231154", "0.72472095", "0.7104507", "0.6969714", "0.6818192", "0.67147297", "0.6634821", "0.6575421", "0.6574222", "0.63826877", "0.6374943", "0.63607234", "0.6199283", "0.61881226", "0.61473775", "0.6145...
0.0
-1
TODO Autogenerated method stub
@Transactional public List<Trip> getAllTripByCondition() { 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
@Transactional public List<Trip> getPageTripByCondition(Integer start, Integer maxCount) { 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
@Transactional public List<Trip> getPageTripsByType(int id, int start, int maxCount) { return dao.getPageTripsByType(id, start, maxCount); }
{ "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
@Transactional public Trip getTripById(int id) { return dao.getTripById(id); }
{ "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
@Transactional public void updateScore(Trip trip) { }
{ "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 void initTripPicture(Set<Trippicture> pictures, String basePath) { for (Trippicture tp : pictures) { String path = basePath + "image_cache\\" + tp.getName(); if (!new File(path).exists()) { Utils.getFile(tp.getData(), path); } } }
{ "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
@Transactional public List<Trip> getSearchTripsByVo(SearchForm vo) { packageForm(vo); allTripList = dao.getAllTripByCondition(vo); return dao.getPageTripByCondition(vo, vo.getFistResult(), vo.getMaxResult()); }
{ "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
@Transactional public SearchBean getSearchBean(SearchForm vo) { SearchBean bean = new SearchBean(vo, allTripList); return bean; }
{ "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
Creates a new Drivetrain.
public Drivetrain() { // Use inches as unit for encoder distances m_leftEncoder.setDistancePerPulse(initialDistancePerPulse); m_rightEncoder.setDistancePerPulse(initialDistancePerPulse); resetEncoders(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DriveTrain() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n leftFrontTalon = new WPI_TalonSRX(11);\n leftRearTalon = new WPI_TalonSRX(12);\n rightFrontTalon = new WPI_TalonSRX(13);\n rightRearTalon = new WPI_TalonSRX(14);\n victorTestControll...
[ "0.7126776", "0.6394052", "0.62586296", "0.6228716", "0.612151", "0.61111903", "0.6101715", "0.608231", "0.6039249", "0.6019689", "0.59585774", "0.5938787", "0.58729047", "0.5860105", "0.58478713", "0.58407575", "0.58189476", "0.57999516", "0.5793742", "0.5685856", "0.5658971...
0.55379134
29
The acceleration in the Xaxis.
public double getAccelX() { return m_accelerometer.getX(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAccelX() {\n return mAccelX;\n }", "public double getAcceleration() {\r\n return acceleration;\r\n }", "public double getAcceleration() {\n return acceleration;\n }", "public float getAccX() {\n return accX_;\n }", "public float getAccX() {\n ...
[ "0.7866651", "0.72503865", "0.724892", "0.7164032", "0.7151522", "0.7112409", "0.69043803", "0.69043803", "0.6899056", "0.68722475", "0.6827203", "0.68179715", "0.6809888", "0.6747651", "0.670374", "0.6683489", "0.66601217", "0.6650746", "0.6647777", "0.6641479", "0.663288", ...
0.77425194
1
The acceleration in the Yaxis.
public double getAccelY() { return m_accelerometer.getY(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAccelY() {\n return mAccelY;\n }", "public float getAccY() {\n return accY_;\n }", "public float getAccY() {\n return accY_;\n }", "public double getVelocityY() {\n\t\treturn velocity.getY();\n\t}", "public double getDeltaY() {\n return delta...
[ "0.7948684", "0.74616545", "0.74388325", "0.7197737", "0.71592104", "0.71592104", "0.7147184", "0.7093685", "0.7076739", "0.70634305", "0.70530856", "0.70519954", "0.6957616", "0.69487417", "0.6919448", "0.68951607", "0.6858482", "0.68498087", "0.68409026", "0.68375075", "0.6...
0.7960618
0
The acceleration in the Zaxis.
public double getAccelZ() { return m_accelerometer.getZ(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAccelZ() {\n return mAccelZ;\n }", "public float getAccZ() {\n return accZ_;\n }", "public float getAccZ() {\n return accZ_;\n }", "public double getAcceleration() {\n return acceleration;\n }", "public double getAcceleration() {\r\n re...
[ "0.84331524", "0.7884202", "0.7869654", "0.779211", "0.77766997", "0.76899594", "0.7523443", "0.7404988", "0.734152", "0.73400366", "0.7339366", "0.7335941", "0.7335941", "0.7324594", "0.7321894", "0.7297723", "0.7297723", "0.72859335", "0.72407037", "0.72219694", "0.72036827...
0.8354063
1
Current angle of the Romi around the Xaxis.
public double getGyroAngleX() { return m_gyro.getAngleX(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getXAngle(){\n Point project=new Point(0,accel.y,accel.z);\n\n float angl=(float)Math.asin(project.y / project.module())* PreferenceHelper.sensetivity;\n //float angl=(float)Math.acos(accel.z/accel.module())*100f;\n if(Float.isNaN(angl)) angl=0.5f;\n return (float)(Math...
[ "0.75107974", "0.7496722", "0.7424458", "0.73138726", "0.72876203", "0.72601634", "0.72321206", "0.7155802", "0.7152862", "0.7150746", "0.714772", "0.7142025", "0.71381646", "0.71381646", "0.71247125", "0.7124434", "0.7122307", "0.7122307", "0.7118678", "0.709848", "0.7092917...
0.6568279
55
Current angle of the Romi around the Yaxis.
public double getGyroAngleY() { return m_gyro.getAngleY(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastA...
[ "0.758331", "0.74961007", "0.7439667", "0.74175346", "0.7359482", "0.733157", "0.72822493", "0.7261989", "0.72506964", "0.72495127", "0.7249343", "0.72472143", "0.72043496", "0.71945286", "0.7171204", "0.71686274", "0.7147884", "0.71100545", "0.71100545", "0.70472586", "0.702...
0.70696056
19
Current angle of the Romi around the Zaxis.
public double getGyroAngleZ() { return m_gyro.getAngleZ(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation...
[ "0.80718476", "0.8068162", "0.80322874", "0.78517216", "0.7771403", "0.7679527", "0.76424646", "0.7559529", "0.75105447", "0.74856526", "0.7443267", "0.73877764", "0.7377144", "0.7321194", "0.72661895", "0.72545147", "0.72545147", "0.72287554", "0.7228731", "0.71625364", "0.7...
0.6675784
55
This method will be called once per scheduler run
@Override public void periodic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "protected abstract void scheduler_i...
[ "0.79959375", "0.71370137", "0.7053971", "0.6965585", "0.69561255", "0.6893155", "0.68800586", "0.6876765", "0.67826825", "0.67659134", "0.6764156", "0.67577356", "0.6701485", "0.6687244", "0.6663779", "0.6658108", "0.6658108", "0.6658108", "0.6658108", "0.6644757", "0.664475...
0.62594575
94
UserDto userDto = getContext().getBean(UserDto.class);
private void registrationView() { String login; String email; String password; try { while (true) { printLine(); print("\tВведите логин\n"); print("\t>>>>> "); login = readStringFromConsole(); print("\tВведите email\n"); print("\t>>>>> "); try { email = valid.emailValidation(readStringFromConsole()); } catch (NotValidDataException e) { printErr("\tнекорректный email"); continue; } print("\tВведите пароль\n"); print("\t>>>>> "); try { password = valid.passwordValidation(readStringFromConsole()); } catch (NotValidDataException e) { printErr("\tнекорректный password"); continue; } break; } try { serviceAuthorizationService.registration(new UserDto() .withUsername(login) .withEmail(email) .withPassword(password)); setStatus(REGISTERED); printLine(); print("\tВы успешно зарегистрировались"); } catch (AlreadyExistsException e) { e.showMessage(); registrationView(); } } catch (IOException e) { registrationView(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UserDto() {\n }", "public interface UserDtoIn extends Service<UserDto, Integer> {\n UserDto getByLogin(String login);\n\n UserDto removeById(Integer id);\n}", "public User saveUser(UserDto userDto);", "@Component\r\npublic interface UserMapper extends BaseMapper<User> {\r\n\r\n}", "@Test\n ...
[ "0.6485928", "0.6199027", "0.609174", "0.608076", "0.60422647", "0.6018706", "0.59518", "0.59191746", "0.589954", "0.58606386", "0.5860537", "0.58109707", "0.57981753", "0.5797773", "0.577702", "0.5753029", "0.5725896", "0.5725896", "0.5720976", "0.57207483", "0.565826", "0...
0.0
-1
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: pe.com.entel.soa.data.generico.entelfault.v1
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AliciaTest5Factory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tAliciaTest5Factory eINSTANCE = aliciaTest5.impl.AliciaTest5FactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class...
[ "0.64041775", "0.62957776", "0.6196251", "0.61953187", "0.6194187", "0.6182828", "0.6182828", "0.6182828", "0.61790216", "0.6174813", "0.61463654", "0.6123058", "0.61228245", "0.6101408", "0.60879874", "0.6067917", "0.60648894", "0.6059531", "0.6049325", "0.60478646", "0.6007...
0.0
-1
metodo encargado crear un nuevo Movimiento, con las cantidades para agregar o quitar, dependiendo si la variable es 1 o 1 respectivamente
public MovimientoEnvase agregarQuitar(int variable) { int cantidadInsumo = (Integer.parseInt(vistaMovimiento.getCuadroCantidad().getText())) * variable; //toma el valor del TextField, lo castea a int y lo multiplica,por 1 si se agregan cantidades, o por -1 para quitar cantidades y que este quede con valor negativo int indiceSeleccionado = vistaMovimiento.getListadoInsumos().getSelectionModel().getSelectedIndex();//se toma el indice del la opcion seleccionada del ComboBox LocalDate date = vistaMovimiento.getDatePicker().getValue(); //Se coloca en un LocalDate la fecha seleccionada del DataPicker DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");//Se configura el formato de la fecha String fecha = (date).format(formatter);//se le coloca el formato a la fecha, y lo pasa a un String int idIndice = Integer.parseInt(vistaMovimiento.getIdEnvases().get(indiceSeleccionado));//busca el contenido que hay en la observable list que tiene los IDs de los envases, dependiendo del indice de la opcion que se selecciono en el ComboBox y lo castea a int return new MovimientoEnvase(idIndice, cantidadInsumo, fecha); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Medidor nuevoMedidor(TipoMedidor tipo, CoordenadaGPS pos){\r\n\t\tMedidor m;\r\n\t\tif (TipoMedidor.MONOFASICO.equals(tipo))\r\n\t\t\tm = new MedidorMonofasico(pos);\r\n\t\telse\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tmedidores.add(m);\r\n\t\treturn m;\r\n\t}", "public void crearVideojuego()...
[ "0.65666807", "0.62695014", "0.6215459", "0.6201253", "0.6139959", "0.6084984", "0.6064752", "0.5990002", "0.59686756", "0.58680636", "0.58242416", "0.58054554", "0.5795167", "0.5792564", "0.5784587", "0.5781011", "0.5776938", "0.57625985", "0.5748429", "0.5744608", "0.573567...
0.60244495
7
Build an empty result.
public static QueryResult build() { return new QueryResult(ImmutableList.of()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Result() {\n empty = true;\n }", "public Builder clearResult() {\n bitField0_ = (bitField0_ & ~0x00000002);\n result_ = getDefaultInstance().getResult();\n onChanged();\n return this;\n }", "public Builder clearResult() {\n bitField0_ = (bitField0_ & ~0x0000000...
[ "0.7135675", "0.6966679", "0.6884946", "0.68828803", "0.6882479", "0.6807038", "0.6807038", "0.6787263", "0.6742539", "0.6741432", "0.6735704", "0.6733394", "0.6717454", "0.6717454", "0.6717454", "0.67162305", "0.67162305", "0.66420335", "0.63805", "0.63665354", "0.6209806", ...
0.69139075
2
Return all entities returned from the query.
public List<Entity> getAll() { return entities; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + get...
[ "0.78589135", "0.74493724", "0.73268485", "0.71398884", "0.7115238", "0.7110014", "0.7061896", "0.7060634", "0.7044563", "0.7027205", "0.70264137", "0.7013674", "0.69849527", "0.6963101", "0.695591", "0.6904686", "0.6890038", "0.68650806", "0.6862679", "0.68568933", "0.685689...
0.8022702
0
An iterator for all entities returned from the query.
@Override public Iterator<Entity> iterator() { return entities.iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Iterator<E> iterator()\r\n\t{\n\t\treturn ( iterator.hasNext() ? new EntityListIterator() : iterator.reset() );\r\n\t}", "@Override\n public Iterator<NFetchMode> iterator() {\n return Arrays.asList(all).iterator();\n }", "@Transactional(propagation = Propagation.REQUIRED, val...
[ "0.7239255", "0.7231862", "0.71075684", "0.7023779", "0.69358116", "0.6552874", "0.6541122", "0.65100706", "0.6499622", "0.6471138", "0.64529574", "0.6449361", "0.64492583", "0.6438503", "0.642798", "0.64222115", "0.6407303", "0.63867813", "0.63695854", "0.6353134", "0.633829...
0.82108116
0
Convertimos la lista de generos
public MovieDetails transform(Movie movie){ String genres = ""; for (int i = 0; i < movie.getMovieGenres().size(); i++) genres += movie.getMovieGenres().get(i).getName() + ", "; genres = genres.substring(0,genres.length() - 2); String originalTitle = movie.getOriginalTitle() + " (" + movie.getReleaseDate().substring(0,4) + ")"; return new MovieDetails( movie.isFavorite(), movie.getBackdropPath(), movie.getTitle(), originalTitle, genres, movie.getTagline(), movie.getOverview(), movie.getRuntime() + " min.", movie.getReleaseDate() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generTirarDados() {\n\r\n\t}", "protected void generar() {\n generar(1, 1);\n }", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(...
[ "0.6878093", "0.6532906", "0.63454396", "0.6243277", "0.622319", "0.6127861", "0.5944004", "0.592747", "0.58982646", "0.5807272", "0.57979447", "0.5761123", "0.57332575", "0.56997603", "0.5689478", "0.5685164", "0.56763154", "0.5674574", "0.56666183", "0.56517774", "0.5647310...
0.0
-1
TODO restructure all these tests in a Spock specification OBJECT TO TERM TESTS
@Test public void testNullToTerm() { assertTrue(JAVA_NULL.termEquals(jpc.toTerm(null))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(enabled = true)\r\n\tpublic void PrepareSpecification() {\r\n\t\tRequestSpecBuilder rsb = new RequestSpecBuilder();\r\n\t\trsb.addHeader(\"content-type\",\"application/json\");\r\n\t\trsb.addQueryParam(\"page\", \"2\");\r\n\t\trsb.setBaseUri(\"https://reqres.in/\");\r\n\t\tRequestSpecification reqSpec = rsb...
[ "0.6352161", "0.6128871", "0.6003399", "0.58793455", "0.58645135", "0.585449", "0.58318657", "0.5787521", "0.5783906", "0.5783882", "0.57564574", "0.57564574", "0.5755857", "0.5734891", "0.5726471", "0.57255435", "0.5703522", "0.56982625", "0.5680371", "0.56761795", "0.566519...
0.0
-1
TERM TO OBJECTS TESTS
@Test public void testJRefToObject() { Object o = new Object(); JRef jref = jRef(o); assertEquals(o, jpc.fromTerm(jref)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTermBasics() throws IOException, OBOParserException\n\t{\n\t\tSystem.out.println(\"Parse OBO file\");\n\t\tOBOParser oboParser = new OBOParser(new ParserFileInput(GOtermsOBOFile));\n\t\tSystem.out.println(oboParser.doParse());\n\t\tHashMap<String,Term> id2Term = new HashMap<String,Term>();...
[ "0.5532183", "0.5519202", "0.5510729", "0.54617995", "0.5452188", "0.5361075", "0.534331", "0.5342234", "0.5311128", "0.52881855", "0.5240855", "0.5194492", "0.51918423", "0.51387805", "0.5133769", "0.513172", "0.5126631", "0.5120182", "0.5102224", "0.5095312", "0.50884956", ...
0.499342
36
Define the AMQP addresses where to receive messages.
public Read withAddresses(List<String> addresses) { checkArgument(addresses != null, "addresses can not be null"); checkArgument(!addresses.isEmpty(), "addresses can not be empty"); return builder().setAddresses(addresses).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMessageAddress(String address);", "@Override public String brokerAddress() { return brokerAddress; }", "public void setReceivers(String[] address) throws MessagingException\r\n {\r\n int size = address.length;\r\n receivers = new InternetAddress[size];\r\n for(int i=0...
[ "0.6433777", "0.59672296", "0.5830117", "0.5819749", "0.57253104", "0.55760765", "0.55511117", "0.5497889", "0.5494294", "0.54871714", "0.5434198", "0.54115427", "0.5399429", "0.53767693", "0.53517526", "0.5345648", "0.53186613", "0.52936757", "0.5233915", "0.5213214", "0.518...
0.0
-1
set an empty list to messages when deserialize
private void readObject(java.io.ObjectInputStream stream) throws IOException, ClassNotFoundException { trackers = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearMsg() {\n msg_ = emptyProtobufList();\n }", "private void clearMsg() {\n msg_ = emptyProtobufList();\n }", "public ListeMessage() {\n\t\tmessagesEntrant = new ArrayList<Message>();\n\t\tmessagesSortant = new ArrayList<Message>();\n\t\tmessages = new ArrayList<Message>(...
[ "0.69851005", "0.69851005", "0.65361375", "0.6423786", "0.62506765", "0.617341", "0.61262655", "0.61184883", "0.6070493", "0.6008609", "0.59666663", "0.5965641", "0.5944955", "0.5877284", "0.58609647", "0.58609647", "0.585518", "0.58529735", "0.5817401", "0.5806421", "0.58017...
0.0
-1
amqp is a queue system, so, it's possible to have multiple concurrent sources, even if they bind the listener
@Override public List<UnboundedAmqpSource> split(int desiredNumSplits, PipelineOptions pipelineOptions) { List<UnboundedAmqpSource> sources = new ArrayList<>(); for (int i = 0; i < Math.max(1, desiredNumSplits); ++i) { sources.add(new UnboundedAmqpSource(spec)); } return sources; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MqConsumer {\n}", "@Test\n public void startedSenderReceivingEventsWhileStartingShouldDrainQueues()\n throws Exception {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(2));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(1, lnPort)...
[ "0.5882503", "0.57716626", "0.57031226", "0.5697532", "0.5682534", "0.5642273", "0.56196463", "0.5586527", "0.557653", "0.55734354", "0.55680424", "0.55449414", "0.55404073", "0.55323845", "0.5525313", "0.550593", "0.5468583", "0.54685193", "0.54612726", "0.5456806", "0.54500...
0.0
-1
Spring Data MongoDB repository for the Copie entity.
@SuppressWarnings("unused") @Repository public interface CopieRepository extends MongoRepository<Copie, String> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OfficeRepository extends MongoRepository<OfficeFile, String> {\n\n}", "public interface ProvinceRepository extends MongoRepository<Province, String> {\n\n}", "public interface PositionRepository extends MongoRepository<Position, String> {\n}", "public interface ProjectMilestoneRepository ext...
[ "0.7134092", "0.7104256", "0.6975631", "0.6873124", "0.68408114", "0.68125194", "0.680301", "0.67859215", "0.67676795", "0.67475504", "0.6736062", "0.67300934", "0.6727448", "0.6719272", "0.67110676", "0.66952103", "0.6678723", "0.6676543", "0.66712147", "0.6650875", "0.66375...
0.77237666
0
TODO Autogenerated method stub
public static void main(String[] args) { String abd = "The lines are here to sort."; abd = abd.toLowerCase(); abd = abd.substring(0, abd.length()-1); String[] abdArr = abd.split(" "); List<String> list = Arrays.asList(abdArr); Collections.sort(list, new compare()); StringBuilder sb = new StringBuilder(); String fir = list.get(0); //list.remove(0); sb.append(fir.substring(0, 1).toUpperCase() + fir.substring(1) + " "); for(int i=1; i< list.size(); i++){ sb.append(list.get(i) + " " ); } String result = sb.toString(); result = result.substring(0, result.length()-1); result = result+ "."; System.out.println(result); }
{ "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
update label when slider value is changed
void slide_numAgents_stateChanged(ChangeEvent e) { lbl_agentCount.setText( Integer.toString( slide_numAgents.getValue() ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void iSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_iSliderStateChanged\n float tmp_value = ((float)this.iSlider.getValue())/10;\n this.paramILabel.setText(\"\" + tmp_value);\n }", "private void ssSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIR...
[ "0.7825323", "0.7623903", "0.75807315", "0.7550163", "0.7492765", "0.73455125", "0.72795194", "0.72778326", "0.7076501", "0.70749396", "0.7031691", "0.70091546", "0.6970237", "0.69644666", "0.6956101", "0.6938193", "0.6894269", "0.6823621", "0.6781353", "0.67785174", "0.67772...
0.6006508
72
Maintains the enbabled/disabled state of key controls, depending on whether the sim is running or stopped.
void enableControls( boolean starting ) { btn_start.setEnabled( !starting ); btn_stop.setEnabled( starting ); slide_numAgents.setEnabled( !starting ); btn_Exit.setEnabled( !starting ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"serial\")\n private void enableGamePlayKeys() {\n if (CLASSIC_MODE.equals(myGameMode)) {\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), \"left\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), \"right\");\n getInpu...
[ "0.6654354", "0.6429442", "0.6245888", "0.6237441", "0.61838824", "0.6181442", "0.612142", "0.6117446", "0.6080401", "0.6067103", "0.60594594", "0.60306466", "0.6020231", "0.6016363", "0.59715205", "0.596552", "0.59451777", "0.5934001", "0.5927231", "0.5920345", "0.5918914", ...
0.5506173
95
When the user clicks the exit button, tell the host to shut down
void btn_Exit_actionPerformed(ActionEvent e) { // TODO : changer le behaviour oneshot ? le remplacer par le notre ? m_owner.addBehaviour( new OneShotBehaviour() { public void action() { ((TinderSupervisorAgent) myAgent).terminateHost(); } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void shutDown();", "public void shutDown();", "public void notifyExit()\r\n {\r\n if (isClientConnected)\r\n sendDisconnectTag();\r\n bs.close(); // Announce termination to client\r\n bs.cancel(); // Shut down waiting server\r\n System.exit(0);\r\n }", "public void onExit();", "public v...
[ "0.74588114", "0.74179816", "0.7405984", "0.7367587", "0.7353887", "0.73525846", "0.7339528", "0.7326538", "0.7318292", "0.7308996", "0.7252478", "0.7191532", "0.71606845", "0.7159008", "0.71507394", "0.71389765", "0.7124429", "0.7112896", "0.7112587", "0.70824283", "0.708071...
0.709596
19
((TinderSupervisorAgent) myAgent).inviteGuests( slide_numGuests.getValue() );
public void action() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "void onAgentSelected(int agentPosition);", "public void addGuest(Invitat...
[ "0.6366486", "0.60234815", "0.592561", "0.58934903", "0.58842057", "0.5849877", "0.5843164", "0.5764457", "0.57488966", "0.57173246", "0.5715057", "0.56801015", "0.5667557", "0.5666438", "0.56279284", "0.5622965", "0.5618788", "0.5581987", "0.55538934", "0.55478084", "0.55167...
0.0
-1
The window closing event is the same as clicking exit.
void this_windowClosing(WindowEvent e) { // simulate the user having clicked exit btn_Exit_actionPerformed( null ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void windowClosing(WindowEvent e) {\n\t\t \t\tif (close){\n\t\t \t\t\tSystem.exit(0);\n\t\t \t\t}\n\t\t \t}", "public void exit() {\r\n \t\t// Send a closing signat to main window.\r\n \t\tmainWindow.dispatchEvent(new WindowEvent(mainWindow, WindowEvent.WINDOW_CLOSING));\r\n \t}", "public void windo...
[ "0.8627464", "0.85575604", "0.8485298", "0.84637403", "0.8420234", "0.84114164", "0.8381609", "0.8373726", "0.835284", "0.83493423", "0.83448595", "0.8342217", "0.8323606", "0.83230525", "0.8320834", "0.8298657", "0.82877743", "0.8287096", "0.8287096", "0.8287096", "0.827458"...
0.8565841
1
Created by noxoomo on 06/11/2016.
public interface Sampler<T> { T sample(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpubl...
[ "0.6316806", "0.6121875", "0.60821146", "0.60512054", "0.59675604", "0.5962873", "0.59562796", "0.59488744", "0.59488744", "0.59243476", "0.59204805", "0.5899878", "0.58598524", "0.58517665", "0.57954824", "0.57872957", "0.5782493", "0.5764424", "0.57602656", "0.57576853", "0...
0.0
-1
this is for fragment tabs
@Override public Fragment getItem(int position) { switch (position) { case 0: FragmentAboutUs aboutFragment = new FragmentAboutUs(); return aboutFragment; case 1: FragmentContactUs contactUsFragment = new FragmentContactUs(); return contactUsFragment; case 2: FragmentDonate donateFragment = new FragmentDonate(); return donateFragment; case 3: FragmentHelp helpFragment = new FragmentHelp(); return helpFragment; default: return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTabChanged(String tabId) {\n FragmentManager fragmentManager = TabMainActivity.this.getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n int position = fragmentTabHost.getCurrentTab()...
[ "0.73148674", "0.71655387", "0.71631825", "0.71084714", "0.7100772", "0.6978308", "0.69486594", "0.69486207", "0.69472307", "0.6931241", "0.69150585", "0.6901848", "0.6880856", "0.68705577", "0.6852641", "0.68299913", "0.6829226", "0.68260604", "0.68231606", "0.6795531", "0.6...
0.0
-1
this counts total number of tabs
@Override public int getCount() { return totalTabs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTabCount() {\n\t\treturn tabMap.size();\n\t}", "@Override\n\tpublic int getTabCount() {\n\t\treturn 0;\n\t}", "public int getNumberOfTabs() {\n\t\treturn this.tabPanelsMap.size();\n\t}", "public static int getTabViewCount() {\n return tabViews.size();\n }", "private int getChatTabCo...
[ "0.78797615", "0.7776552", "0.7701029", "0.7615727", "0.7274281", "0.71613234", "0.71197826", "0.70094234", "0.70094234", "0.6966805", "0.6800914", "0.6787976", "0.6716183", "0.6556896", "0.6556896", "0.6556896", "0.6309332", "0.6303997", "0.63001716", "0.62541217", "0.619033...
0.69367236
14
Author: dingran Date: 2016/4/20 Description:
public interface TokenService { /** *查找 * @param token * @return */ TokenPo findByToken(String token); /** * 查找 * @param userCode * @return */ TokenPo findByUserCode(String userCode); /** * 保存 * @param tokenPo * @return */ TokenPo save(TokenPo tokenPo); /** * * @param id */ void delete(Long id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public static void listing5_14() {\n }", "public void mo4359a() {\n }", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public static void listing5_16() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n ...
[ "0.62940115", "0.62638855", "0.6191453", "0.6093544", "0.6089508", "0.6016933", "0.59968597", "0.59895885", "0.59895885", "0.59895885", "0.59895885", "0.59895885", "0.59895885", "0.59895885", "0.5973315", "0.59613395", "0.596035", "0.59547013", "0.5948168", "0.59447664", "0.5...
0.0
-1
TODO Autogenerated method stub
@Override public List<OaAutoInfo> getDataList() throws Exception { 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 List<OaAutoInfo> getDataList(String param) throws Exception { 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
update home page here accordingly status, availability n all. this.masterServer.iterateDict();
public void run() { InputStream istream = null; try { istream = (this.socket).getInputStream(); } catch (IOException e) { e.printStackTrace(); } DataInputStream dstream = new DataInputStream(istream); username = null; try { username = dstream.readLine(); System.out.println(username + " on server side! (username)"); this.masterServer.addUserName(username); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } // pause thread to read in from client. String friendUsername = null; try { friendUsername = dstream.readLine(); System.out.println(friendUsername + " on server side!!!!! (friendUsername)"); findFriendsThread(friendUsername); } catch (IOException e) { e.printStackTrace(); } try { dstream.close(); } catch (IOException e) { e.printStackTrace(); } try { istream.close(); } catch (IOException e) { e.printStackTrace(); } //this.masterServer.addUserName(username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateGIUnoResponse()\n {\n updateInfo.setText( \"Server is not up :(\" );\n }", "public static synchronized void refresh() {\n homes = new HashMap();\n prvHomes = new HashMap();\n ejb30Cache = new HashMap();\n iniCtx = null;\n }", "private void setLaunch...
[ "0.5733776", "0.56841236", "0.5616272", "0.5560948", "0.5454774", "0.5442053", "0.5436939", "0.54083604", "0.5391235", "0.53814244", "0.5375701", "0.53137213", "0.5312211", "0.5269829", "0.52530295", "0.523761", "0.5199967", "0.519943", "0.5177509", "0.5175374", "0.5173698", ...
0.0
-1
Stop any existing instances.
private boolean generateDeviceImages() throws Exception { mDevice.executeShellCommand(STOP_CMD); // Start instrumentation test. final CollectingOutputReceiver receiver = new CollectingOutputReceiver(); mDevice.executeShellCommand(START_CMD, receiver, TEST_RESULT_TIMEOUT, TimeUnit.MILLISECONDS, 0); return receiver.getOutput().contains("OK "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void stopAll();", "public void stop() {}", "public void stop() {\n if (isStop.compareAndSet(false, true)) {\n if (bootstrap.config().group() != null) {\n Future future = bootstrap.config().group().shutdownGracefully();\n ((io.netty.util.concurrent.Future) future)...
[ "0.71242726", "0.6826996", "0.68173105", "0.67539126", "0.6746608", "0.6741254", "0.67398703", "0.6732989", "0.6730785", "0.66878843", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.6648...
0.0
-1
write your code here
public static void main(String[] args) { boolean result = shouldWakeUp(true, 8); System.out.println(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
> cadastrar produto no banco de dados
public Map<String, Object> getCd_Produto(int cd_Produto) { return pdao.getCd_Produto(cd_Produto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void consultaProduto() throws Exception {\r\n boolean erro;\r\n int id;\r\n Produto p;\r\n Categoria c;\r\n System.out.println(\"\\t** Consultar produto **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID do produto a ser con...
[ "0.7300297", "0.69971365", "0.6956251", "0.69489616", "0.6879502", "0.67341495", "0.66879183", "0.6682588", "0.6567664", "0.6565511", "0.65509653", "0.6543371", "0.65338963", "0.65154845", "0.64974725", "0.64967203", "0.6481737", "0.6463397", "0.6430242", "0.6404176", "0.6402...
0.0
-1
> busca somente pelo codigo
public List<Map<String, Object>> getListaProdutos() { return pdao.getListaProdutos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCodiceFiscale();", "public abstract java.lang.String getCod_tecnico();", "public abstract java.lang.String getCod_dpto();", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "private static void cajas() {\n\t\t\n\t}", "pub...
[ "0.69110703", "0.6815939", "0.6350655", "0.62973464", "0.62190235", "0.60878336", "0.6082022", "0.60796326", "0.606188", "0.60396177", "0.59871566", "0.59679264", "0.59675145", "0.595396", "0.5923987", "0.59228855", "0.5903597", "0.589193", "0.58869743", "0.5883903", "0.58797...
0.0
-1