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
Called when a key is pressed on the keyboard providing this Widget has the focus.
public abstract void keyPressed(KeyPressedEvent keyPressedEvent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void keyPressed(KeyEvent e)\n {\n // Delegate key press events to the focused component\n if (this.focusedComponent != null)\n this.focusedComponent.executeEvent(new KeyPressEvent(e.getKey(),e.getKeyCode()));\n }", "@Override\n public void keyPressed(KeyEvent key) {\n gsm....
[ "0.6988586", "0.6943482", "0.6920989", "0.6882613", "0.68567014", "0.68267953", "0.6793777", "0.6787212", "0.67813987", "0.67689407", "0.67689407", "0.67689407", "0.6767135", "0.67380106", "0.67380106", "0.67380106", "0.67380106", "0.6734918", "0.6728971", "0.6717455", "0.671...
0.659782
45
Called when a previously pressed key on the keyboard is released, providing this Widget has the focus.
public abstract void keyReleased(KeyReleasedEvent keyReleasedEvent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void keyReleased(KeyEvent e)\n {\n if (this.focusedComponent != null)\n this.focusedComponent.executeEvent(new KeyReleaseEvent(e.getKey(),e.getKeyCode()));\n }", "public void keyReleased(KeyEvent ke){}", "public void keyReleased() {\t\t\r\n \t\t\r\n \t\tkeys[keyCode] = false;\r\n \t}...
[ "0.70240355", "0.7010234", "0.68699265", "0.67958933", "0.67581964", "0.67496306", "0.6731021", "0.6731021", "0.6731021", "0.6729777", "0.67280793", "0.6724008", "0.67095834", "0.67095834", "0.67095834", "0.67095834", "0.67095834", "0.67095834", "0.67095834", "0.67055994", "0...
0.6629122
43
Called when a key is Typed.
public abstract void keyTyped(KeyTypedEvent keyTypedEvent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\tpublic void keyTyped(KeyEvent arg0)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}", "@O...
[ "0.7840094", "0.7840094", "0.7840094", "0.7777214", "0.77474815", "0.77474815", "0.77474815", "0.77474815", "0.77474815", "0.77474815", "0.77266574", "0.77167606", "0.766435", "0.766435", "0.7645868", "0.76360226", "0.76360226", "0.76360226", "0.76360226", "0.76360226", "0.76...
0.0
-1
Called if the size changed.
public abstract void sizeChanged(SizeChangedEvent event);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void sizeChanged () {\n }", "private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }", "private void compatibilityDataSizeChanged(int size) {\n final int dataSize = mData == null ? 0 : m...
[ "0.80437696", "0.7680577", "0.7578963", "0.7308866", "0.7126924", "0.7109925", "0.70706785", "0.7034927", "0.70267236", "0.7022934", "0.6998919", "0.6958116", "0.69540274", "0.6951825", "0.69340515", "0.691168", "0.68339545", "0.6791787", "0.6762097", "0.67536134", "0.6736412...
0.7240933
4
Called of the position changed.
public abstract void positionChanged(PositionChangedEvent event);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updatePosition() {\n\t\t\n\t}", "@Override\n public void onDragPositionsChanged(int oldPosition, int newPosition) {\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "@Override\n\tpublic void posModify...
[ "0.78546", "0.7281376", "0.72677255", "0.72117275", "0.72117275", "0.7203668", "0.7199442", "0.7082394", "0.69090027", "0.69027215", "0.6847724", "0.67895246", "0.6777462", "0.6762818", "0.67494226", "0.6746385", "0.6732648", "0.67109096", "0.6681322", "0.6643402", "0.6618669...
0.7622127
1
public IAppearance getAppearance(); / (nonJavadoc)
public abstract Display getDisplay();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Appearance getAppearance();", "public App getLocalAppearance() {\n return localAppearance;\n }", "@Override\n public String toString() {\n return \"\" + this.getAppearance();\n }", "public App getWorldAppearance() {\n return worldAppearance;\n }", "public String getDefaultA...
[ "0.9348971", "0.73956984", "0.71338975", "0.7019933", "0.6896052", "0.65428776", "0.628665", "0.6098339", "0.60165143", "0.59230345", "0.5921546", "0.59149474", "0.58288926", "0.5783849", "0.57469386", "0.57072586", "0.56404346", "0.56114507", "0.5535744", "0.5501557", "0.549...
0.0
-1
/ public abstract int getWidth(); public abstract int getHeight();
public abstract void removedFromWidgetTree();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getHeight();", "public abstract int getHeight();", "public abstract int getHeight(int pWidth);", "public abstract int getWidth();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public in...
[ "0.8403694", "0.8403694", "0.8337515", "0.8330536", "0.8062881", "0.8062881", "0.8062881", "0.8062881", "0.8062881", "0.8062881", "0.80004746", "0.78451705", "0.78098845", "0.78098845", "0.78098845", "0.78098845", "0.78098845", "0.78098845", "0.78098845", "0.78098845", "0.780...
0.0
-1
Returns whether this widget is registered in a widget tree.
public abstract boolean isInWidgetTree();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean is(Widget widget){\n\t\treturn (widget == this);\n\t}", "public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!e...
[ "0.6763279", "0.66591895", "0.63850504", "0.629917", "0.6167155", "0.6146068", "0.6082211", "0.6027157", "0.5967135", "0.5967135", "0.59512234", "0.5940197", "0.5897054", "0.58907396", "0.5889083", "0.5866355", "0.585837", "0.58375126", "0.58350116", "0.5816483", "0.5790825",...
0.7891037
0
/ public abstract int getValidMinHeight(); public abstract int getValidMinWidth(); public abstract void setValidWidth(int width); public abstract void setValidHeight(int height); public abstract void setHeight(int height); public abstract void setWidth(int width); public abstract void setSize(int width, int height);
public abstract void setSize(Dimension d);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public int getMinHeight();", "protected abstract void setSize();", "public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }", "@Override\n\tpublic void setWidthAndHeight(int width, int height) {\n\t\t\n\t}", "abstract public int getMinWidth();", "pu...
[ "0.72569376", "0.7219508", "0.7081311", "0.7054746", "0.67804706", "0.66646254", "0.6602996", "0.649916", "0.64783823", "0.6470794", "0.64674485", "0.64610934", "0.6450819", "0.6449257", "0.63470876", "0.6324683", "0.6323964", "0.63233864", "0.6297198", "0.62738246", "0.62718...
0.68167835
4
Checks if the widget is set to be visible or not. Doesn't check if the widget is actually drawn on screen.
public abstract boolean isVisible();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isShowing() {\n return visible;\n }", "protected final boolean isShowing() {\n synchronized (getPeerTreeLock()) {\n if (isVisible()) {\n final LWContainerPeer<?, ?> container = getContainerPeer();\n return (container == null) || container.i...
[ "0.71216965", "0.7089849", "0.7042639", "0.7032431", "0.70146966", "0.6905462", "0.6901267", "0.6877249", "0.68558234", "0.68558234", "0.67975324", "0.67968833", "0.6794082", "0.67547166", "0.67455137", "0.6744411", "0.674234", "0.67390907", "0.67390907", "0.67390907", "0.673...
0.63943225
47
Sets the visibility state of the widget. If set to false the widget will not be drawn and will not receive any events but takes its space (remains in the widgettree). Also all child elements will not be drawn or receive any events.
public abstract void setVisible(boolean visible);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setVisible(boolean visibility) {\n\t\t//do nothing\n\t}", "@Override\n\tpublic void setVisible(boolean vis) {\n\t\t\n\t}", "public void setVisible(boolean newVisible)\n {\n this.visible = newVisible;\n conditionallyRepaint();\n }", "public void setVisible(Bool...
[ "0.72827023", "0.71724266", "0.7127721", "0.71173394", "0.7108997", "0.70756", "0.7061048", "0.7042339", "0.70102364", "0.70102364", "0.7005197", "0.6948994", "0.6948135", "0.6932805", "0.68944836", "0.6877895", "0.6872385", "0.6842068", "0.6838468", "0.6826108", "0.6815749",...
0.67275965
24
Returns the TooltipData object associated with this widget or null if there is none.
public abstract ITooltipData getTooltipData();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TooltipOptions getTooltip() {\n return this.tooltip;\n }", "public IFigure getTooltip() {\n return this.tooltip;\n }", "String getTooltip() {\n return mTooltip;\n }", "public String getTooltip() {\n\t\treturn tooltip;\n\t}", "@Nullable\n\tdefault String getToolt...
[ "0.6877646", "0.6655209", "0.6489125", "0.6478548", "0.63196343", "0.62750405", "0.62419474", "0.61954606", "0.6189636", "0.61869884", "0.61141753", "0.6032647", "0.5998912", "0.5974037", "0.59040445", "0.5817592", "0.5774884", "0.57347405", "0.571772", "0.562724", "0.561749"...
0.67050177
1
Sets the tooltipdata object for this widget. Set it to null to remove the tooltipdata object.
public abstract void setTooltipData(ITooltipData data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTooltip(TooltipOptions tooltip) {\n this.tooltip = tooltip;\n }", "public void setTooltip(IFigure tooltip) {\n hasCustomTooltip = true;\n this.tooltip = tooltip;\n updateFigureForModel(nodeFigure);\n }", "@Override\n\tpublic void setToolTip(String tooltip) {\n\t...
[ "0.6221505", "0.6106335", "0.60997933", "0.6058194", "0.5984464", "0.576394", "0.5743476", "0.5728072", "0.5600651", "0.5585482", "0.53808165", "0.5329224", "0.5288088", "0.52754456", "0.5252927", "0.52524704", "0.52265275", "0.5194852", "0.5176245", "0.51015025", "0.509082",...
0.68997836
0
Set a custom data object. This is a method to associate arbitrary data with a widget. It is not removed or overwritten by FengGUI. The Idea is to use a HashMap with defined keys to reference data objects.
public abstract void setCustomData(Object data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setData(Object data);", "void setData (Object data);", "public void setUserData(String key, Object data) {\n button.setUserData(key, data);\n }", "public void setData(Object data) {\r\n this.data = data;\r\n }", "public void setData(Object data) {\n this.data = data;\n }"...
[ "0.6936164", "0.68577605", "0.66936177", "0.6692754", "0.6634808", "0.6609217", "0.657404", "0.6560406", "0.64984107", "0.64730346", "0.6412212", "0.640339", "0.6385308", "0.63852775", "0.6364686", "0.6308922", "0.63029647", "0.62880075", "0.6265707", "0.6213451", "0.62053883...
0.734908
0
Returns the data object associated with this widget.
public abstract Object getCustomData();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getDataObject() {\n return dataObject;\n }", "public Object data() {\n return this.data;\n }", "final public Object getDataObject() {\n return this.dataObject;\n }", "public Object getData() {\n\t\treturn data;\n\t}", "public Object getData(){\n\t\treturn this.data;\...
[ "0.7214581", "0.70846266", "0.70750684", "0.6778455", "0.67428035", "0.6721407", "0.66972595", "0.66471094", "0.6603503", "0.6570137", "0.656576", "0.6562449", "0.6562449", "0.6509468", "0.6487802", "0.6485705", "0.64559984", "0.6414565", "0.63791525", "0.637808", "0.637808",...
0.59009075
62
Return the number of unique email addresses in the provided list of EmailAddress objects. If initial list is empty or has only 1 entry, then no comparisons must be done. NOTE: Assumption is that all email addresses in the objects are valid/properly formatted email addresses. addressList List return: int number of unique email addresses
public static int countUniqueEmailAddresses(List<EmailAddress> addressList) { if (addressList.size() <= 1) return addressList.size(); List<String> uniqueAddresses = addressList .stream() .map(address -> stripEmailAddress(address.getEmailAddress())) .distinct() .collect(Collectors.toList()); return uniqueAddresses.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numUniqueEmails(String[] emails) {\n\t\tSet<String> s = new HashSet<>(); // Using a Set to take advantage it can't have dups.\n\t\t// nested loop approach. n emails, m characters each. O(n*m)\n\t\tfor (String email: emails) { // outer loop through n email\n\t\t\tchar[] emailChars = email.toCharArra...
[ "0.6945899", "0.62087005", "0.6057485", "0.5982568", "0.5884604", "0.5868197", "0.57841086", "0.57138574", "0.56011057", "0.5507783", "0.54598665", "0.5427029", "0.53992295", "0.53431726", "0.53431726", "0.53431726", "0.53431726", "0.52177393", "0.5159637", "0.51518446", "0.5...
0.8908934
0
Separates the email address into two pieces: address and domain. Once address is separated from domain, it is cleaned up, returning a simplified email address which will be used for comparison. NOTE: Assumes all email addresses are properly formatted. emailAddress String returns: String clean, simplified email address
static String stripEmailAddress(String emailAddress) { int atCharIndex = emailAddress.indexOf("@"); String addressName = emailAddress.substring(0, atCharIndex); String addressDomain = emailAddress.substring(atCharIndex); return cleanAddressName(addressName) + addressDomain.toLowerCase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String cleanAddressName(String emailAddress) {\n int plusCharIndex = emailAddress.indexOf(\"+\");\n\n if (plusCharIndex != -1)\n emailAddress = emailAddress.substring(0, plusCharIndex);\n\n return emailAddress.replaceAll(\"\\\\.\", \"\").toLowerCase();\n }", "private Str...
[ "0.6948223", "0.6732796", "0.64698565", "0.6334434", "0.61520296", "0.5841888", "0.58106285", "0.57156664", "0.56928104", "0.56860584", "0.568065", "0.5674319", "0.5610477", "0.5600064", "0.5583707", "0.5543975", "0.5523801", "0.5522354", "0.55112636", "0.55056447", "0.549512...
0.7891983
0
Removes additional tags from address (all characters following a '+') and all '.' found in address. emailAddress String returns: String address without periods and all chars after a '+'
static String cleanAddressName(String emailAddress) { int plusCharIndex = emailAddress.indexOf("+"); if (plusCharIndex != -1) emailAddress = emailAddress.substring(0, plusCharIndex); return emailAddress.replaceAll("\\.", "").toLowerCase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String stripEmailAddress(String emailAddress) {\n int atCharIndex = emailAddress.indexOf(\"@\");\n String addressName = emailAddress.substring(0, atCharIndex);\n String addressDomain = emailAddress.substring(atCharIndex);\n\n return cleanAddressName(addressName) + addressDomain.t...
[ "0.71944606", "0.7008243", "0.5915737", "0.58055896", "0.5694201", "0.5625531", "0.558738", "0.5468601", "0.5373758", "0.53711367", "0.5361129", "0.53458303", "0.5323401", "0.52984107", "0.52905875", "0.5244989", "0.5236576", "0.52273935", "0.52212495", "0.51811284", "0.51332...
0.74285036
0
Snaps the observed location to a graph edge, computes edges traveled between observations (when applicable), and returns both sets of edges.
public SnappedEdges snapToGraph(Coordinate obsCoords, Coordinate prevObsCoords) { final Vertex snappedVertex = indexService.getClosestVertex(obsCoords, null, options); final List<Edge> pathTraversed = Lists.newArrayList(); final Set<Integer> snappedEdges = Sets.newHashSet(); if (snappedVertex != null && (snappedVertex instanceof StreetLocation)) { final StreetLocation snappedStreetLocation = (StreetLocation) snappedVertex; // final double dist = snappedVertex.distance(obsCoords); if (prevObsCoords != null && !prevObsCoords.equals2D(obsCoords)) { final CoordinateSequence movementSeq = JTSFactoryFinder .getGeometryFactory().getCoordinateSequenceFactory() .create(new Coordinate[] { prevObsCoords, obsCoords }); final Geometry movementGeometry = JTSFactoryFinder.getGeometryFactory() .createLineString(movementSeq); /* * Find the edges between the two observed points. */ final List<Edge> minimumConnectingEdges = streetMatcher .match(movementGeometry); for (final Edge edge : Objects.firstNonNull(minimumConnectingEdges, ImmutableList.<Edge> of())) { final Integer edgeId = graph.getIdForEdge(edge); if (edgeId != null) snappedEdges.add(edgeId); } pathTraversed.addAll(minimumConnectingEdges); } else { /* * Just find the edge for the isolate point */ for (final Edge edge : Objects.firstNonNull( snappedStreetLocation.getOutgoingStreetEdges(), ImmutableList.<Edge> of())) { final Integer edgeId = graph.getIdForEdge(edge); if (edgeId != null) { snappedEdges.add(edgeId); } } } } return new SnappedEdges(snappedEdges, pathTraversed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Edge> getIncomingNeighborEdges(boolean onUpwardPass) {\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n...
[ "0.59273803", "0.58324254", "0.5824965", "0.58209807", "0.58031917", "0.56973755", "0.561768", "0.5603355", "0.55360097", "0.5530979", "0.5492283", "0.54731876", "0.5455526", "0.545287", "0.5445639", "0.5439368", "0.5439208", "0.54211277", "0.54191524", "0.53933597", "0.53914...
0.60295206
0
Type text and then press the button.
@Test public void ensureTextChangesWork() { onView(withId(R.id.inputField)) .perform(typeText("HELLO"), closeSoftKeyboard()); reportHelper.label("myTestStepLabel_1_1"); onView(withId(R.id.changeText)).perform(click()); // Check that the text was changed. onView(withId(R.id.inputField)).check(matches(withText("Lalala"))); reportHelper.label("myTestStepLabel_1_2"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enterAnswer(String text) {\n\t\ttextBox.clear();\n\t\ttextBox.sendKeys(text);\n\t}", "void actionButton ( ) throws IOException {\n String textOfField = this.gui.wdgInputText.getText();\n this.gui.widgOutput.append(\"Button1 \" + (++this.ctKeyStroke1) + \" time, text=\" + textOfField + \"\\n\");...
[ "0.69606704", "0.66325474", "0.65169686", "0.64609796", "0.6457273", "0.64411044", "0.6422923", "0.63510686", "0.6343789", "0.6331651", "0.6329258", "0.6326656", "0.63168496", "0.63057655", "0.6296814", "0.6291062", "0.6253799", "0.6231428", "0.6230861", "0.62234575", "0.6179...
0.6025938
30
Type text and then press the button.
@Test public void changeText_FailedTest() { onView(withId(R.id.inputField)).perform(typeText("NewText"), closeSoftKeyboard()); reportHelper.label("myTestStepLabel_3_1"); onView(withId(R.id.switchActivity)).perform(click()); reportHelper.label("myTestStepLabel_3_2"); // This view is in a different Activity, no need to tell Espresso. onView(withId(R.id.resultView)).check(matches(withText("errrrrrr"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enterAnswer(String text) {\n\t\ttextBox.clear();\n\t\ttextBox.sendKeys(text);\n\t}", "void actionButton ( ) throws IOException {\n String textOfField = this.gui.wdgInputText.getText();\n this.gui.widgOutput.append(\"Button1 \" + (++this.ctKeyStroke1) + \" time, text=\" + textOfField + \"\\n\");...
[ "0.69606704", "0.66325474", "0.65169686", "0.64609796", "0.6457273", "0.64411044", "0.6422923", "0.63510686", "0.6343789", "0.6331651", "0.6329258", "0.6326656", "0.63168496", "0.63057655", "0.6296814", "0.6291062", "0.6253799", "0.6231428", "0.6230861", "0.62234575", "0.6179...
0.0
-1
Consulta si el valor de referencia existe en la lista.
public void removerPorReferencia(int referencia){ if (buscar(referencia)) { // Consulta si el nodo a eliminar es el pirmero if (inicio.getEmpleado().getId() == referencia) { // El primer nodo apunta al siguiente. inicio = inicio.getSiguiente(); // Apuntamos con el ultimo nodo de la lista al inicio. ultimo.setSiguiente(inicio); } else{ // Crea ua copia de la lista. NodoEmpleado aux = inicio; // Recorre la lista hasta llegar al nodo anterior // al de referencia. while(aux.getSiguiente().getEmpleado().getId() != referencia){ aux = aux.getSiguiente(); } if (aux.getSiguiente() == ultimo) { aux.setSiguiente(inicio); ultimo = aux; } else { // Guarda el nodo siguiente del nodo a eliminar. NodoEmpleado siguiente = aux.getSiguiente(); // Enlaza el nodo anterior al de eliminar con el // sguiente despues de el. aux.setSiguiente(siguiente.getSiguiente()); // Actualizamos el puntero del ultimo nodo } } // Disminuye el contador de tama�o de la lista. size--; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean buscar(String referencia){\n Nodo aux = inicio;\r\n // Bandera para indicar si el valor existe.\r\n boolean encontrado = false;\r\n // Recorre la lista hasta encontrar el elemento o hasta \r\n // llegar al final de la lista.\r\n while(aux != null && encontra...
[ "0.71279395", "0.62003297", "0.5917916", "0.5872636", "0.5809864", "0.57500637", "0.57447314", "0.57212746", "0.570159", "0.5669855", "0.5668727", "0.5661067", "0.56603515", "0.55543494", "0.55367607", "0.5523209", "0.5510329", "0.54768664", "0.5474081", "0.54164284", "0.5410...
0.0
-1
Verifica si la lista contiene elementoa.
public void listar(){ if (!esVacia()) { // Crea una copia de la lista. NodoEmpleado aux = inicio; // Posicion de los elementos de la lista. int i = 0; System.out.print("-> "); // Recorre la lista hasta llegar nuevamente al incio de la lista. do{ // Imprime en pantalla el valor del nodo. System.out.print(i + ".[ " + aux.getEmpleado() + " ]" + " -> "); // Avanza al siguiente nodo. aux = aux.getSiguiente(); // Incrementa el contador de la posi�n. i++; }while(aux != inicio); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean hasElements() {\n return content.size() > 0;\n }", "boolean hasElement();", "public static boolean estaVacia(ArrayList lista){\n if(lista.isEmpty()){\n System.out.println(\"No hay usuarios u objetos registrados por el momento\");\n return true;\n }\...
[ "0.69502705", "0.6873899", "0.67608035", "0.67026", "0.63796026", "0.63504237", "0.634891", "0.631938", "0.6318883", "0.6274072", "0.62715834", "0.62693685", "0.625475", "0.62503743", "0.62196857", "0.6205687", "0.6197783", "0.61938626", "0.61850375", "0.6183553", "0.6175208"...
0.0
-1
just for testing providing unique id
@UniqueID("ProvidedID") @org.testng.annotations.Test private void uniqueIdAnnotation() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getId() {\n UUID id = UUID.randomUUID();\n User u = new User(id.toString(), name, mail, pass, address, gender);\n Assert.assertEquals(u.getId(), id);\n }", "String getUniqueId();", "String getUniqueID();", "String uniqueId();", "public String getUniqueID();", ...
[ "0.75900364", "0.7557617", "0.7541907", "0.7524614", "0.73770064", "0.7264464", "0.72113603", "0.719268", "0.7189055", "0.70735", "0.7031054", "0.69630057", "0.69547725", "0.69409245", "0.69000155", "0.68828654", "0.6882027", "0.6875157", "0.6875157", "0.6875157", "0.6875157"...
0.70821095
9
just for testing providing parameters
@Ignore @org.testng.annotations.Test(dataProvider = "dp") private void dataProviderWithoutKey(String param_0, String param_1) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setupParameters() {\n \n \n\n }", "public void checkParameters() {\n }", "public void testgetParameter() throws Exception {\n\r\n\t}", "@Test\n\tpublic void testGetRequestParameter() {\n\t}", "@Test\n\tpublic void testParameters() {\n\t\tassertEquals(par, myReply.getParamete...
[ "0.73260736", "0.6928486", "0.686074", "0.6729013", "0.66817236", "0.659666", "0.6592387", "0.6586867", "0.6575259", "0.6412951", "0.6336221", "0.6313496", "0.62514967", "0.6249803", "0.6246806", "0.62312615", "0.6213264", "0.6166873", "0.61632615", "0.6106019", "0.6096806", ...
0.0
-1
just for testing providing parameters
@Ignore @org.testng.annotations.Test(dataProvider = "dp") private void dataProviderWithParameterKey(@ParameterKey("key_0") String param_0, String param_1) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setupParameters() {\n \n \n\n }", "public void checkParameters() {\n }", "public void testgetParameter() throws Exception {\n\r\n\t}", "@Test\n\tpublic void testGetRequestParameter() {\n\t}", "@Test\n\tpublic void testParameters() {\n\t\tassertEquals(par, myReply.getParamete...
[ "0.732544", "0.6928395", "0.6860416", "0.6728718", "0.66809505", "0.6595788", "0.65921664", "0.65872735", "0.6575684", "0.64114815", "0.6336937", "0.6313328", "0.62511086", "0.6248487", "0.6246826", "0.6231465", "0.6213114", "0.6166533", "0.6163155", "0.61057675", "0.609619",...
0.0
-1
just for testing providing parameters
@org.testng.annotations.Test @Parameters({ "message_0", "message_1" }) private void parametersAnnotation(String msg_0, String msq_1) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setupParameters() {\n \n \n\n }", "public void checkParameters() {\n }", "public void testgetParameter() throws Exception {\n\r\n\t}", "@Test\n\tpublic void testGetRequestParameter() {\n\t}", "@Test\n\tpublic void testParameters() {\n\t\tassertEquals(par, myReply.getParamete...
[ "0.73260736", "0.6928486", "0.686074", "0.6729013", "0.66817236", "0.659666", "0.6592387", "0.6586867", "0.6575259", "0.6412951", "0.6336221", "0.6313496", "0.62514967", "0.6249803", "0.6246806", "0.62312615", "0.6213264", "0.6166873", "0.61632615", "0.6106019", "0.6096806", ...
0.0
-1
1 2 3 5 8 13 21 34 55
public static long factorial(int num) { if (num >= 1) { System.out.println("before num = " + num); return factorial(num - 1) * num; } else return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getBlockNumbers(int index);", "public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} whil...
[ "0.5923046", "0.5848804", "0.58124477", "0.5806093", "0.57987773", "0.5754637", "0.5729853", "0.5729853", "0.5640769", "0.5630782", "0.5603268", "0.55966336", "0.5590208", "0.55712676", "0.5541461", "0.5540386", "0.5529022", "0.5516127", "0.55136037", "0.5506411", "0.5486723"...
0.0
-1
Create an image file name
private File createFilePictures() throws IOException { String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); String pictureName = "BEER_" + timeStamp + "_"; File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES); File image = File.createTempFile( pictureName, /* prefix */ ".jpg", /* suffix */ storageDir /* directory */ ); // Save a file: path for use with ACTION_VIEW intents currentPicturePath = image.getAbsolutePath(); return image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File createImageFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"JPEG_\" + timestamp + \"_\";\n File imageFile = File.createTempFile(prep...
[ "0.7782615", "0.7292824", "0.6992056", "0.6992056", "0.6943564", "0.6911284", "0.68938434", "0.686538", "0.68592805", "0.68590325", "0.68580544", "0.68443614", "0.67711073", "0.67546785", "0.6751638", "0.6737171", "0.6726197", "0.67170936", "0.67068315", "0.6706409", "0.66945...
0.0
-1
Initializes adaptor. Initialization parameters: categoriesFilePath categories definition file path [mandatory] gemetFilePath GEMET definition file path [mandatory] lang language [optional; default: en]
@Override public void init(Properties properties) { super.init(properties); String categoriesFilePath = properties.getProperty("categoriesFilePath", ""); String gemetFilePath = properties.getProperty("gemetFilePath", ""); String lang = properties.getProperty("lang", ""); for (Locale l: Locale.getAvailableLocales()) { if (l.getLanguage().equalsIgnoreCase(lang)) { locale = l; break; } } ContextInitializer initializer = new ContextInitializer(ontCtx, categoriesFilePath, gemetFilePath); initializer.initialize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Category() {\n\t\tsuper();\n\t\t/* Pour obtenir le chemin de fichier vers la catégorie */\n\t\tpath = \"src/\"+this.getClass().getPackage().getName().replace('.', '/');\n\t\twindowspath = \"src\\\\\"+this.getClass().getPackage().getName().replace('.', '\\\\');\n\t\t\n\t\timages = this.getPhotos();\n\t}", ...
[ "0.5386637", "0.5231686", "0.5230441", "0.51629037", "0.5123509", "0.5105772", "0.5104476", "0.50786316", "0.5065911", "0.50551164", "0.5035335", "0.5034056", "0.501614", "0.50126463", "0.50106066", "0.49710736", "0.49567038", "0.49543297", "0.4943374", "0.49156055", "0.49039...
0.6368958
0
TODO Autogenerated method stub
@Override protected void createPackage() { decorations.add(new BridesMaidDeco()); decorations.add(new BridalDeco()); }
{ "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
Return unique instance of game controller
public static synchronized TowerManager getUniqueInstance() { if (uniqueInstance == null) { uniqueInstance = new TowerManager(); } return uniqueInstance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static GameController getInstance() {\n\t\treturn INSTANCE; \n\t}", "public static GameController getGameController() {\n\t\treturn controller;\n\t}", "public static Controller getInstance() { return INSTANCE; }", "@Override\n\tpublic GameController getController() {\n\t\treturn gameController;\n\t}",...
[ "0.7765909", "0.7341425", "0.6973324", "0.66738725", "0.65828097", "0.65014505", "0.64532524", "0.6245191", "0.621518", "0.62125814", "0.62057155", "0.6112354", "0.6110133", "0.6084771", "0.60722464", "0.6072104", "0.6068123", "0.60578364", "0.60532093", "0.60436004", "0.6040...
0.5772194
36
Add tower to ArrayList
public static void addTower(Tower t) { towers.add(t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "myGame.addTower(Tower thisTower){ // adding a tower to the game\n towers.add(thisTower); // adding a tower to the set that contains all the towers\n }", "public void add(){\n list.add(smart);\n list.add(mega);\n list.add(smartMini);\n list.add(absolute);\n\n clientsList.add...
[ "0.67376226", "0.6145676", "0.5977289", "0.58750427", "0.5777197", "0.571415", "0.5675698", "0.56731355", "0.56176883", "0.56026345", "0.5548689", "0.5541373", "0.55206627", "0.551452", "0.5497291", "0.548076", "0.54575765", "0.5447416", "0.54392195", "0.5414304", "0.54103047...
0.62392414
1
Remove Tower from ArrayList
public static void removeTower(Tower t) { towers.remove(t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Individual<T>> removeWorst(List<Individual<T>> tournament) {\n Individual<T> worst = selWorstOp.select(tournament);\n tournament.remove(worst);\n return tournament;\n }", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new...
[ "0.665803", "0.65674824", "0.644601", "0.6310056", "0.6255559", "0.62379354", "0.6188166", "0.61320335", "0.60812926", "0.60692006", "0.6038585", "0.60156673", "0.6012487", "0.59923023", "0.5957635", "0.59173065", "0.59132123", "0.59130234", "0.59130234", "0.59130234", "0.591...
0.6787846
0
Notify towers to shoot all critters in range
public static void shootCritters(){ for(Tower t : towers) t.shootCritters(CritterManager.getCritters()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);", "private void tickPeople() {\n\t\tplayer.tick();\n\t\tfor (Councilman councilman: councilmen) {\n\t\t\tcouncilman.tick();\n\t\t}\n\t}", "public void fire() {\n\t\t// Has player waited cooldown before trying to fire again?\n\t\tif (S...
[ "0.63842773", "0.59653026", "0.5829087", "0.57296425", "0.57162714", "0.5620517", "0.56181824", "0.55599445", "0.5558895", "0.55536705", "0.5551674", "0.5543951", "0.54826355", "0.5465921", "0.54625994", "0.5423471", "0.5422933", "0.53955704", "0.53888136", "0.53865474", "0.5...
0.73629755
0
Get Tower at a specific point on map.
public static Tower getTowerAt(int x, int y) { for(Tower t: towers) { if(t.getX()==x && t.getY()==y) { return t; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SniperTower getSniperTower(int x, int y) {\n SniperTower thisSniperTower = null;\n for (SniperTower t : sniperTowers) {\n if (x == t.towerY && y == t.towerX) {\n thisSniperTower = t;\n }\n }\n return thisSniperTower;\n }", "public BasicTo...
[ "0.6337639", "0.63128364", "0.6210278", "0.6185176", "0.6047285", "0.6015351", "0.58810604", "0.58654", "0.584455", "0.5791045", "0.57901084", "0.5755901", "0.57172525", "0.5675015", "0.5661805", "0.5647887", "0.5646556", "0.5636261", "0.5602437", "0.5583165", "0.5559277", ...
0.7095137
0
Draw towers and selected tower range.
public static void draw(Graphics g) { for(Tower t:towers) { t.draw(g); } if(selectedTower != null){ Graphics2D g2 = (Graphics2D) g; g2.setColor(Color.orange); g2.setStroke(new BasicStroke(ICManager.squareHighlightTickness)); g2.drawRect(selectedTower.getX(), selectedTower.getY(), ICManager.cellSize, ICManager.cellSize); //Draw tower range circle if(selectedTower != null){ g2.setColor(Color.white); g.drawOval(selectedTower.getX() + ICManager.cellSize / 2 - selectedTower.getRange(),selectedTower.getY() + ICManager.cellSize / 2 - selectedTower.getRange(), selectedTower.getRange()*2,selectedTower.getRange()*2); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawWaypoints() {\r\n\t\tint x1 = (width - SIZE_X) / 2;\r\n\t\tint y1 = (height - SIZE_Y) / 2;\r\n\r\n\t\tfloat scissorFactor = (float) _resolutionResolver.getScaleFactor() / 2.0f;\r\n\r\n\t\tint glLeft = (int) ((x1 + 10) * 2.0f * scissorFactor);\r\n\t\tint glWidth = (int) ((SIZE_X - (10 + 25)) * 2.0f...
[ "0.58000225", "0.5490354", "0.5375291", "0.53751117", "0.5320353", "0.52654177", "0.5245851", "0.5243434", "0.5238183", "0.52375054", "0.5225035", "0.51953244", "0.5171309", "0.51689166", "0.5167773", "0.51565653", "0.51556486", "0.5135286", "0.5132722", "0.5121215", "0.51172...
0.6655297
0
Gets the numberFound value for this FindResults.
public int getNumberFound() { return numberFound; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumberFound(int numberFound) {\n this.numberFound = numberFound;\n }", "public int getNumResults() {\r\n\t\treturn this.numResults;\r\n\t}", "int getNumberOfResults();", "public int getMissCountNotFound() {\n return missCountNotFound;\n }", "public long numHits() {\n ...
[ "0.6980832", "0.66060334", "0.59357667", "0.5934272", "0.5869269", "0.5855836", "0.5795568", "0.57921976", "0.5783287", "0.57812613", "0.5775039", "0.57596064", "0.5742045", "0.56887215", "0.56875443", "0.5680711", "0.5676408", "0.5603927", "0.55930114", "0.55788296", "0.5557...
0.8330713
0
Sets the numberFound value for this FindResults.
public void setNumberFound(int numberFound) { this.numberFound = numberFound; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumberFound() {\n return numberFound;\n }", "public void setNumResults(int numResults) {\n mNumResults = numResults;\n }", "public void setFound(boolean found) {\n this.found = found;\n }", "public void setFound(boolean found) {\n\t\tthis.found = found;\n\t}", ...
[ "0.67392755", "0.6708389", "0.6307225", "0.6248499", "0.62272424", "0.60467875", "0.5939983", "0.58480304", "0.58008283", "0.5708843", "0.5513861", "0.5507426", "0.53045416", "0.5260035", "0.5163092", "0.5120572", "0.5112751", "0.50741833", "0.5072142", "0.5054786", "0.504227...
0.872495
0
Gets the startIndex value for this FindResults.
public int getStartIndex() { return startIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getStartIndex() {\n\t\treturn startIndex;\n\t}", "public int getStartIndex() {\r\n\t\treturn startIndex;\r\n\t}", "public int getStartIndex() {\n\t\treturn startIndex;\n\t}", "public int getStartIndex() {\n return this.startIndex;\n }", "public int getStartIndex() {\n retu...
[ "0.7577449", "0.75427186", "0.7509301", "0.73473567", "0.73473567", "0.72690505", "0.70996135", "0.6890874", "0.6887727", "0.6845071", "0.68002796", "0.66147804", "0.6600962", "0.6519164", "0.64488894", "0.640247", "0.63164014", "0.6266795", "0.6245718", "0.6134221", "0.60533...
0.7484971
3
Sets the startIndex value for this FindResults.
public void setStartIndex(int startIndex) { this.startIndex = startIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStartIndex(int startIndex) {\n\t\tthis.startIndex = startIndex;\n\t}", "public void setStartIndex(final int startIndex) {\r\n\t\tthis.startIndex = startIndex;\r\n\t}", "public void setStartIndex(Integer startIndex) {\r\n this.startIndex = startIndex;\r\n }", "public void setStartIndex(java...
[ "0.7749996", "0.7740396", "0.7720881", "0.7626437", "0.7318664", "0.69989127", "0.6360481", "0.5953974", "0.59538466", "0.59160644", "0.58849174", "0.58710086", "0.58673525", "0.56881684", "0.56760275", "0.56760275", "0.5606097", "0.5601739", "0.55614746", "0.55470884", "0.54...
0.7813927
0
Gets the results value for this FindResults.
public ArrayOfFindResult getResults() { return results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Result getResults()\r\n {\r\n return result;\r\n }", "public Result getResult() {\n\t\treturn this._result;\n\t}", "public int getResultValue() {\n return mResultValue;\n }", "public java.lang.String getActualResults() {\n return actualResults;\n }", "public int getR...
[ "0.68907344", "0.66001105", "0.65548503", "0.6553984", "0.6404976", "0.64037824", "0.6391361", "0.63837475", "0.63738585", "0.6363508", "0.6360732", "0.6346145", "0.6315161", "0.6304527", "0.6298059", "0.6297145", "0.62965775", "0.62835246", "0.6238799", "0.6232021", "0.62219...
0.723915
0
Sets the results value for this FindResults.
public void setResults(ArrayOfFindResult results) { this.results = results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setResults(List<Person> results){\n\t\tmResult = results;\n\t\tmListeners.resultListUpdated();\n\t\t\n\t}", "public void setResults(ArrayList<Integer> results){\n this.results = results;\n }", "public void setResults(ArrayList results) {\n this.results = results;\n }", "public...
[ "0.73346996", "0.73164266", "0.71500283", "0.6782049", "0.6741925", "0.67357075", "0.6558248", "0.6538124", "0.6494013", "0.64826393", "0.64670414", "0.64379877", "0.6437282", "0.64323467", "0.6389431", "0.6369104", "0.636752", "0.6336316", "0.63349247", "0.63117486", "0.6304...
0.76547766
0
Gets the topScore value for this FindResults.
public double getTopScore() { return topScore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}", "public int getScore() {\n return getStat(score);\n }", "public void setTopScore(double topScore) ...
[ "0.6736939", "0.6691723", "0.6610906", "0.6605378", "0.6603729", "0.6603729", "0.6575225", "0.6569495", "0.6566329", "0.6566329", "0.6556892", "0.65544254", "0.65496594", "0.6522154", "0.6521441", "0.65182394", "0.65108997", "0.6505021", "0.6502061", "0.6502061", "0.65013665"...
0.820975
0
Sets the topScore value for this FindResults.
public void setTopScore(double topScore) { this.topScore = topScore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBestScore(double bestScore);", "@Override\r\n\tpublic final void setBestScore(final double theBestScore) {\r\n\t\tthis.bestScore = theBestScore;\r\n\t}", "public double getTopScore() {\n return topScore;\n }", "public void setScore(Integer score) {\r\n this.score = score;\r\n }", ...
[ "0.68602824", "0.6695898", "0.66855836", "0.6600949", "0.65930176", "0.65797895", "0.65634394", "0.65634394", "0.653608", "0.653608", "0.653608", "0.653608", "0.6530326", "0.6492945", "0.64793307", "0.6463494", "0.6453645", "0.64504", "0.6420857", "0.6384388", "0.6361842", ...
0.80645
0
Return type metadata object
public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MetadataType getType();", "public MetadataType getType() {\n return type;\n }", "public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }", "private Metadata getMetadata(RubyModule type)...
[ "0.7971625", "0.7375903", "0.73574775", "0.7088938", "0.67345047", "0.6722243", "0.6673762", "0.6564602", "0.65463895", "0.65463895", "0.65463895", "0.65463895", "0.65463895", "0.65463895", "0.65463895", "0.65463895", "0.65463895", "0.65463895", "0.65463895", "0.65463895", "0...
0.0
-1
file to upload absolute or relative path
Path fileToUpload();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void uploadingFile(String path);", "void fileUploaded(String path);", "public String uploadFile(UploadedFile file) {\n String fileName = (file.getFileName());\r\n System.out.println(\"***** fileName: \" + file.getFileName());\r\n \r\n System.out.println(System.getProperty(\"os.name\...
[ "0.70733416", "0.67159545", "0.63592905", "0.6212364", "0.61804473", "0.6147958", "0.6100743", "0.6082801", "0.6011308", "0.6006606", "0.6005029", "0.592043", "0.5907249", "0.58848625", "0.58768326", "0.58525604", "0.58449274", "0.57904357", "0.5786716", "0.5773804", "0.57378...
0.802889
0
archive name file name in vault
String description();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setArchiveName(String name) {\n customName = name;\n }", "String vaultName();", "public String getArchiver();", "public void setArchiver(String sArchiver);", "public final String getArchiveName()\n {\n return _archiveName;\n }", "Csar getArchive(String archiveName, Stri...
[ "0.614697", "0.6110927", "0.5862894", "0.56271684", "0.56095177", "0.5546101", "0.5387454", "0.53618985", "0.52588785", "0.52068293", "0.5180036", "0.5170935", "0.5110526", "0.51038736", "0.50991136", "0.50746685", "0.5065291", "0.50013715", "0.49894", "0.4967337", "0.4965953...
0.0
-1
aws glacier vault name the vault must exist
String vaultName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getVaultName() {\n return vaultName;\n }", "public void setVaultName(String vaultName) {\n this.vaultName = vaultName;\n }", "public String getVault() {\n return vault;\n }", "interface WithVault {\n /**\n * Specifies resourceGroupName, vaultNa...
[ "0.68399847", "0.6744287", "0.63126266", "0.55692583", "0.5191981", "0.51572907", "0.4928872", "0.48527962", "0.47131416", "0.46188256", "0.46016517", "0.45863813", "0.45836902", "0.457018", "0.45391354", "0.44141355", "0.436803", "0.43334344", "0.43226245", "0.4232838", "0.4...
0.71297055
0
aws service endpoint example: 'glacier.eucentral1.amazonaws.com'
String serviceEndpoint();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AWSServiceCatalog {\n\n /**\n * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata\n * (such as supported regions) of the service.\n *\n * @see RegionUtils#getRegionsForService(String)\n */\n String ENDPOINT_PREFIX...
[ "0.6595944", "0.5477355", "0.535322", "0.5300398", "0.5273976", "0.52719104", "0.5245048", "0.5228586", "0.51644105", "0.51298606", "0.5107663", "0.50734663", "0.50696445", "0.5061846", "0.50404495", "0.5007078", "0.5001926", "0.49980065", "0.49325472", "0.4921881", "0.491631...
0.5943687
1
aws signing region example: 'eucentral1'
String signingRegion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static RestClientBuilder.HttpClientConfigCallback getAWSRequestSigningInterceptor(String endpoint) {\n\t\treturn (HttpAsyncClientBuilder httpClientBuilder) -> {\n\t\t\thttpClientBuilder.addInterceptorLast((HttpRequest request, HttpContext context) -> {\n\t\t\t\tAws4Signer signer = Aws4Signer.create();\n\t\t\t\tAws...
[ "0.59606904", "0.5827978", "0.5758868", "0.5758868", "0.5758868", "0.5758868", "0.5691224", "0.56848097", "0.56848097", "0.56848097", "0.56734306", "0.56734306", "0.56734306", "0.56188124", "0.56188124", "0.5610399", "0.56057984", "0.5604292", "0.5604292", "0.5599596", "0.548...
0.77367115
0
this method updates the vechical's name
public void helper1(Automobile car, String newData) { car.setName(newData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setName() {\n\t\t//MAKE SURE NOT TO GET ACCIDENTAL RECURSION HERE\n\t\t//DO NOT JUST MAKE A NEW TRIAD AND COMPARE TO CURRENT TRIAD\n\t\t//UNLESS ??? MAYBEDON\"T PUT SET NAME IN THE CONSTRUCTOR?\n\t\t//SIMILAR PROBLEM TO SETINVERSION\n\t\t\n\t\t//major, minor, diminished, augmented\n\t\t//this.name = n...
[ "0.70568824", "0.70347524", "0.7018254", "0.69431806", "0.69209886", "0.68966657", "0.68622714", "0.6857023", "0.68517697", "0.6789002", "0.678241", "0.67692745", "0.6767017", "0.6744034", "0.6735112", "0.6727355", "0.6724144", "0.6709493", "0.670756", "0.6702991", "0.6697690...
0.0
-1
this method update the first Option Set's name
public void helper2(Automobile car, String newData) { car.updateOptionSet(0, newData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void updateOptsetName(String oldname, String newname) {\n OptionSet optset = findOneOptSetByName(oldname);\n if (optset != null) {\n optset.setName(newname);\n } else {\n System.out.println(\"No optionSet named \" + oldname + \"in this model !!!\");\n ...
[ "0.73147136", "0.6930462", "0.6683222", "0.6630501", "0.6413162", "0.6317221", "0.6190588", "0.615047", "0.61213845", "0.6085415", "0.608414", "0.60576326", "0.60418826", "0.60117275", "0.59928894", "0.59671885", "0.59662783", "0.5945524", "0.5935786", "0.5928074", "0.5928072...
0.0
-1
update first option of the first optionset's price this method will not be synchronized to show data corruption
public void helper3(Automobile car, String incrementAmount) { car.setBasePrice(car.getBasePrice() + Integer.parseInt(incrementAmount)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void setOption(OptionSet optSet_Temp,String name,float price){\n optSet_Temp.Increase_Option_Manager(name.toUpperCase(Locale.getDefault()), price);\n }", "public synchronized void UpdateAOption(String Model_Name, String Option_Set_Name ,\n\t\t\t\t\t\t\t\t\t\t\tString Op...
[ "0.6428255", "0.6356542", "0.6230379", "0.61979765", "0.61315066", "0.599022", "0.5964033", "0.5938283", "0.58229434", "0.58044696", "0.57786983", "0.5775246", "0.57608885", "0.57402027", "0.57337946", "0.5728572", "0.5713716", "0.57077533", "0.5707252", "0.56915724", "0.5662...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String acc = request.getParameter("acc"); String bank = request.getParameter("bank"); String email = request.getParameter("email"); Double txR = Math.random(); String txRef = txR.toString(); RaveConstant.ENVIRONMENT = Environment.STAGING; RaveConstant.PUBLIC_KEY = "FLWPUBK-d8369e6826011f8a1f9f6c7c14a09b80-X"; RaveConstant.SECRET_KEY = "FLWSECK-8abf446c71a58aaa858323f3a9ed156b-X"; try { AccountCharge ch = new AccountCharge(); ch.setAccountbank(bank) .setAccountnumber(acc) .setEmail(email) .setTxRef(txRef) .setAmount("2000") .setCountry("NG") .setCurrency("NGN"); JSONObject charge = ch.chargeAccount(); System.out.println(charge); JSONObject data = (JSONObject) charge.get("data"); String response_code = (String) data.get("chargeResponseCode"); if (charge.get("status").equals("success")) { { if (response_code.equals("02")) { String flw = (String) data.get("flwRef"); HttpSession session = request.getSession(true); session.setAttribute("flwRef", flw); session.setAttribute("payload", ch); response.sendRedirect("Otp"); return; } else if (response_code.equals("00")) { response.sendRedirect("Success"); return; } } } else { String message = (String) charge.get("message"); System.out.println(message); HttpSession session = request.getSession(true); session.setAttribute("message", message); response.sendRedirect("401"); return; } } catch (JSONException ex) { } doGet(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
Test of generate method, of class GenerateOptionalFacts.
@Test public void testValid() { System.out.println("UT-WRS-SE-042 : Test GenerateOptional Facts with valid or existing key reference"); boolean ok = false; try { murlinObj = new GenericMURLinJSONObject(); System.out.println("Test Optional Facts Generation using terms of facts"); Map<String, String> results = new HashMap<String, String>(); Map<String, String> dyn = new HashMap<String, String>(); String[] mods = {"wcs", "psm", "mva"}; String[] field = {"wcs.category", "wcs.layer", "psm.pattern", "psm.pattern_hit", "mva.bc", "mva.ns", "mva.ws"}; dyn = generateFields(field); murlinObj.setDyn_conf(dyn); System.out.println(murlinObj.getDyn_conf().get("result_fields")); results = generateResult(mods); murlinObj.setResults(results); GenerateFacts instance = new GenerateFacts(murlinObj); Facts result = instance.generate(); ok = true; System.out.println(result); } catch (Exception ex) { System.out.println(ex.getCause()); fail(ex.getLocalizedMessage()); } if (ok) { assertTrue(true); System.out.println("Facts Generation was successfully performed"); System.out.println("*** Passed"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testDoGeneration() {\n\t}", "public void generate() {\n\t}", "protected abstract void generate();", "public abstract void generate();", "public boolean generate();", "@Test\n\tpublic void testAllExampleGenerations() {\n\t\ttry {\n\t\t\tOdfHelper.main(null);\n\t\t} catch (Exception ex...
[ "0.6333528", "0.61603254", "0.6085542", "0.60415107", "0.60238624", "0.5984981", "0.586145", "0.56410134", "0.5520888", "0.5511492", "0.54652524", "0.54135", "0.53975946", "0.53889626", "0.5342782", "0.5322858", "0.53190845", "0.53166825", "0.53154916", "0.5307981", "0.529749...
0.5959294
6
gerar um valor a atingir por esta estrategia entre 100 e 10000
public double generateMoneyGoal() { double moneyGoal = Math.random()*(10000 -100)+100; return moneyGoal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void calcularIntGanado() {\n intGanado = saldo;\n for(int i = 0; i < plazoInv; i++){\n intGanado += inve * 12;\n intGanado += intGanado * (intAnual / 100);\n }\n intGanado = intGanado - (inve + saldo);\n }", "static void sueldo7diasl(){\n...
[ "0.66523165", "0.6378319", "0.62794757", "0.6252145", "0.6236348", "0.6207209", "0.61628145", "0.61622834", "0.6153875", "0.61366147", "0.60856867", "0.6049505", "0.5964555", "0.5934573", "0.593275", "0.59226066", "0.59226066", "0.59171945", "0.5890566", "0.58778554", "0.5857...
0.0
-1
TODO Autogenerated method stub
@Override public double betStrategyRL(RobotPlayer player) { return 0; }
{ "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
Method and constructor invocations
@Override public R visitMethodInvocation(MethodInvocationNode n, P p) { return visitNode(n, p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "private void __sep__Constructors__() {}", "private Instantiation(){}", "protected abstract void construct();", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "public MethodE...
[ "0.74505186", "0.73150414", "0.7303449", "0.72684664", "0.6930279", "0.69047064", "0.6845389", "0.6807747", "0.68073577", "0.6789923", "0.6590855", "0.6583133", "0.6566065", "0.65425843", "0.6435725", "0.63831306", "0.63720125", "0.6356276", "0.6335496", "0.6311478", "0.62983...
0.0
-1
Type, package and class names
@Override public R visitArrayType(ArrayTypeNode n, P p) { return visitNode(n, p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getClazzName();", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "String getClassTypeVariables() {\n final StringBuilder sb = new StringBuilder();\n if (classTypes.size() > 0) {\n ...
[ "0.7250158", "0.7136449", "0.7097432", "0.70698917", "0.6786753", "0.6786753", "0.6725759", "0.6706435", "0.6623144", "0.6572667", "0.6572667", "0.6572667", "0.6564951", "0.6541426", "0.6528404", "0.64659894", "0.64535856", "0.6426223", "0.64257145", "0.64257145", "0.6416011"...
0.0
-1
Returns the n^th digit of a number: input = 1337 n = 2 _ > digit = 1337 = 3 n = 3 _ > digit = 1337 = 3 n = 4 _ > digit = 1337 = 1
private static int getDigit(final int input, final int n) { if (n <= 0) { return N_TOO_LOW; } if (input < Math.pow(10, n - 1)) { return DIGIT_NOT_FOUND; } return (int) Math.floor((input % (int) Math.pow(10, n)) / Math.pow(10, n - 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int findNthDigit(int n) {\n int len = 1, i = 1;\n long range = 9;\n while (n > len * range) {\n n -= len * range;\n len++;\n range *= 10;\n i *= 10;\n }\n i += (n - 1) / len;\n String s = Integer.toString(i);\n return Character.getNumericValue(s.charAt((n - 1) % len)...
[ "0.7937389", "0.7396731", "0.7208121", "0.7176513", "0.7052697", "0.703112", "0.68484616", "0.6817925", "0.67867345", "0.67779744", "0.67413855", "0.6741106", "0.67116004", "0.6689454", "0.649358", "0.64871264", "0.63875467", "0.6384317", "0.638205", "0.63728523", "0.63632226...
0.7670129
1
Sorts an array with the radix sort algorithm
private static void radixSortLsd(final Integer[] array, final SortOrder order) { // an (signed) 32-bit integers' max length is 10 // 2^31-1 = 2 147 483 647 = 10 digits for (int n = 1; n <= 10; n++) { // this array holds every value for each n^th digit final int[][] digits = new int[10][]; // first, find frequency of every digit for array initialization final int[] frequency = new int[10]; for (final Integer integer : array) { frequency[getDigitUnsafe(integer, n)]++; } // now create the arrays of every digit for (int i = 0; i < frequency.length; i++) { digits[i] = new int[frequency[i]]; // reset frequency for later use frequency[i] = 0; } // because we don't want to waste power, // we want to stop after there are no more digits left on all numbers in the array. boolean noMoreDigitFound = true; // iterate through every object in array for (final int integer : array) { int digit = getDigit(integer, n); // if a digit WAS found, set noMoreDigitFound to false // se we won't break this loop if (digit != DIGIT_NOT_FOUND) { noMoreDigitFound = false; } digit = Math.max(0, digit); // Add digit to array digits[digit][frequency[digit]++] = integer; } // overwrite current array // start from the top left to the bottom right int i = 0; for (final int[] digitsb : digits) { for (final int digit : digitsb) { array[i++] = digit; } } // break loop if there were no more digits found if (noMoreDigitFound) { break; } } if (order == SortOrder.DESC) { ArrayUtils.reverse(array); } else if (order != SortOrder.ASC) { throw new UnsupportedOperationException( "Order-Operator " + order + " not implemented (yet)."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void radixSort() {\n int digits = String.valueOf(array[0]).length();\n for (int i = 1; i < array.length; i++) {\n if (String.valueOf(array[i]).length() > digits) {\n digits = String.valueOf(array[i]).length();\n }\n }\n int i = 1;\n while (i <= digits) {\n T[] bucket = (...
[ "0.8502051", "0.80668855", "0.79969376", "0.79287434", "0.7922089", "0.7895034", "0.7540494", "0.7522113", "0.7391203", "0.73540545", "0.73500115", "0.7308975", "0.7308961", "0.7224032", "0.70162094", "0.6983251", "0.6934876", "0.69217193", "0.6918608", "0.6916648", "0.691550...
0.7657354
6
dot represents anything, i.e., IRI, xsd:string, etc.
public String toShEx() { return String.format("<%s> .{%s, %s} ,", properties.get(0), minBound, maxBound); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void dot() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:171:1: ( ( DOT ) )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistanc...
[ "0.6594788", "0.6451189", "0.6422093", "0.63951766", "0.6280767", "0.6233069", "0.61314857", "0.61237675", "0.6109706", "0.59858674", "0.59855187", "0.59480685", "0.5923398", "0.5886305", "0.5816426", "0.57496333", "0.5493732", "0.5432745", "0.543212", "0.5427583", "0.5303993...
0.0
-1
TODO Autogenerated method stub System.out.println("Haola mundo"); ejemploIterable(args); ejemploFlatMap(); ejemploToString(); ejemploToCollectList(); ejemploUsuarioComentariosFlatMap(); ejemploUsuarioComentariosZipWith(); ejemploZipWithFormaRangos(); ejemploInterval();
@Override public void run(String... args) throws Exception { ejemploDelayELements(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ejemploIterable(String... args) throws Exception {\n\n\t\tList<String> usuariosList = new ArrayList<>();\n\t\tusuariosList.add(\"Bernardo Guzman\");\n\t\tusuariosList.add(\"Pepe Flores\");\n\t\tusuariosList.add(\"Eder Flores\");\n\t\tusuariosList.add(\"Julia Guzman\");\n\t\tusuariosList.add(\"Maria Cab...
[ "0.63462126", "0.6004636", "0.5975732", "0.5885893", "0.57976586", "0.57932585", "0.579081", "0.5676368", "0.557208", "0.5555581", "0.5547798", "0.5482285", "0.54784787", "0.5473414", "0.5472163", "0.5461933", "0.5447642", "0.5425783", "0.5422353", "0.54206", "0.5400007", "...
0.0
-1
TODO Autogenerated method stub System.out.println("Haola mundo");
public void ejemploIterable(String... args) throws Exception { List<String> usuariosList = new ArrayList<>(); usuariosList.add("Bernardo Guzman"); usuariosList.add("Pepe Flores"); usuariosList.add("Eder Flores"); usuariosList.add("Julia Guzman"); usuariosList.add("Maria Cabrera"); usuariosList.add("Bruce Lee"); usuariosList.add("Bruce Williams"); Flux<String> nombres = Flux.fromIterable(usuariosList); Flux<Usuario> usuarios = nombres .map(elemento -> new Usuario(elemento.split(" ")[0].toUpperCase(), elemento.split(" ")[1].toUpperCase())) .filter(f -> f.getNombre().contains("B")).doOnNext(usuario -> { if (usuario == null) { throw new RuntimeException("El nombre no puede estár vacio"); } System.out.println(usuario.toString()); }).map(usuario -> { String nombre = usuario.getNombre().toLowerCase(); usuario.setNombre(nombre); return usuario; }) ; usuarios.subscribe(e -> log.info(e.toString()), err -> log.error(err.getMessage()), new Runnable() { @Override public void run() { // TODO Auto-generated method stub log.info("Se completa con éxito el observable"); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }", "@Override\n\tpublic void habla() {\n\t\tSystem.out.println(\"Miau, Miau!!\");\n\t}", "@Ove...
[ "0.80039287", "0.8003749", "0.7866628", "0.7770756", "0.7700267", "0.76382095", "0.75365573", "0.7508571", "0.73872083", "0.7311532", "0.72896796", "0.7232669", "0.72195053", "0.7193028", "0.7142736", "0.71028394", "0.7034698", "0.70292544", "0.69842017", "0.6944339", "0.6943...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { log.info("Se completa con éxito el observable"); }
{ "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 String getOutputFile() { return fileOutputPath; }
{ "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 proinfo.logInfo(info);
@Override public String log(String info) { long id=Thread.currentThread().getId(); CalcThread b=ProCalcManage.getInstance().threadIDMap.get(id); synchronized (b.proinfo.info.log) { b.proinfo.info.log.add(new LogInfo(new Date(), info)); } return info; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logInfo(boolean logInfo)\r\n {\r\n if (logInfo != infoLevelHandler.getBoolean())\r\n {\r\n infoLevelHandler.setBoolean(logInfo);\r\n fireConfigUpdated();\r\n }\r\n }", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled ...
[ "0.67767936", "0.6348418", "0.61222106", "0.6108143", "0.6093111", "0.60330755", "0.6026107", "0.6022582", "0.6000938", "0.6000938", "0.5993084", "0.59654284", "0.59607536", "0.594993", "0.59370804", "0.5926819", "0.58990085", "0.589835", "0.5893226", "0.5876388", "0.5874746"...
0.723826
0
TODO Autogenerated method stub
@Override public String endsWithSuccess(String info) { proinfo.logInfo(info); proinfo.end(2,info); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean willDecode(String jsonMessage) { try { // Check if incoming message is valid JSON Json.createReader(new StringReader(jsonMessage)).readObject(); return true; } catch (Exception e) { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.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
O(n), O(c) c > distinct characters in string
public static boolean palindromEligible(String str) { Map<Character, Integer> parityMap = new HashMap<>(); for (char c : str.toCharArray()) { if (parityMap.containsKey(c)) { parityMap.put(c, (parityMap.get(c) + 1) % 2); } else { parityMap.put(c, 1); } } // count 1s int count = 0; for (char c : parityMap.keySet()) { if (parityMap.get(c) == 1) { count ++; } } if (count > 1) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUniqueCharactersTimeEfficient(String s) {\n Set<Character> characterSet = new HashSet<Character>();\n for(int i=0; i < s.length();i++) {\n if(characterSet.contains(s.charAt(i))) {\n return false;\n } else {\n characterSet.add(s.charAt(i))...
[ "0.7078805", "0.69245076", "0.6915656", "0.689981", "0.68844897", "0.6832044", "0.67940193", "0.6778415", "0.6771811", "0.6757862", "0.67370373", "0.67289007", "0.6685837", "0.66853017", "0.66717505", "0.66583407", "0.6648319", "0.6646872", "0.66428834", "0.66121024", "0.6600...
0.0
-1
wait until merge completes
@Override protected void onAfterSplitBrainHealed(HazelcastInstance[] instances) { mergeLifecycleListener.await(); assertContainsCounterStatsEventually(true, instances[0], instances[1]); assertContainsCounterStatsEventually(false, instances[2]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean afterMerge() throws DBSIOException{return true;}", "private static void mergingSyncMadeAsync() {\n Observable.merge(getDataSync(1).subscribeOn(Schedulers.io()), getDataSync(2).subscribeOn(Schedulers.io())).blockingForEach(System.out::println);\n }", "public void merge() throws Excep...
[ "0.66782784", "0.6343929", "0.62221545", "0.6031981", "0.59775835", "0.5914218", "0.58233166", "0.58095706", "0.5771909", "0.56802803", "0.56718147", "0.56338084", "0.5589577", "0.557559", "0.55200505", "0.54978883", "0.5491705", "0.5446109", "0.54409456", "0.5385901", "0.536...
0.0
-1
Creates kontakt db record
public String createKontakt(String hodnota, String typ, String cislo_rp) { Session session = sessionFactory.openSession(); Transaction tx = null; try { tx = session.beginTransaction(); Kontakt kontakt = new Kontakt(hodnota, typ, cislo_rp); hodnota = (String) session.save(kontakt); tx.commit(); } catch (HibernateException e) { e.printStackTrace(); } finally { session.close(); } return hodnota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insert(PmKeyDbObj record);", "public Long createRecord(Record object);", "int insert(DBPublicResources record);", "int insert(ActivityHongbaoPrize record);", "int insert(Kaiwa record);", "int insert(PmPost record);", "int insert(CmsRoomBook record);", "int insert(cskaoyan_mall_order_goods record)...
[ "0.7016634", "0.6889229", "0.6872137", "0.66565734", "0.6631391", "0.6625782", "0.6621227", "0.66180253", "0.66118646", "0.6609202", "0.66048205", "0.6584894", "0.6555097", "0.6544054", "0.654376", "0.6539767", "0.6507511", "0.6502038", "0.6495745", "0.64872164", "0.64696485"...
0.0
-1
Created by redcarpet on 4/17/17.
public interface FaceTrackingListener { void onFaceLeftMove(); void onFaceRightMove(); void onFaceUpMove(); void onFaceDownMove(); void onGoodSmile(); void onEyeCloseError(); void onMouthOpenError(); void onMultipleFaceError(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }"...
[ "0.62159437", "0.60338163", "0.590942", "0.5898791", "0.5898791", "0.5848863", "0.5825372", "0.5823172", "0.5803105", "0.58010757", "0.5796801", "0.57901484", "0.57674885", "0.57550365", "0.5748086", "0.57473844", "0.5714159", "0.5686956", "0.5681291", "0.56758744", "0.566623...
0.0
-1
Accepted arguments: packxz filepath1.pack.xz,filepath2.pack.xz,... xz filepath1.xz,filepath2.xz,... pack filepath1.pack,filepath2.pack,...
public static void main(String[] args){ List<File> xzQueue = new ArrayList<>(); List<File> unpackQueue = new ArrayList<>(); List<File> packXZQueue = new ArrayList<>(); for(int i=0; i<args.length; ++i){ if(args[i].equalsIgnoreCase("-packxz")){ if(i+1<args.length){ ++i; String[] paths = args[i].split(","); for(String s : paths){ packXZQueue.add(new File(s)); } } } else if(args[i].equalsIgnoreCase("-xz")){ if(i+1<args.length){ ++i; String[] paths = args[i].split(","); for(String s : paths){ xzQueue.add(new File(s)); } } } else if(args[i].equalsIgnoreCase("-pack")){ if(i+1<args.length){ ++i; String[] paths = args[i].split(","); for(String s : paths){ unpackQueue.add(new File(s)); } } } } for(File f : packXZQueue) unpack(extractXZ(f)); for(File f : xzQueue) extractXZ(f); for(File f : unpackQueue) unpack(f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void importPackage(String pack) throws Exception;", "public static void main(String[] args) {\n\...
[ "0.590236", "0.590236", "0.590236", "0.590236", "0.590236", "0.590236", "0.55768585", "0.55402416", "0.55277175", "0.5502961", "0.5422213", "0.54144007", "0.51717746", "0.51624477", "0.5139158", "0.51391244", "0.50790375", "0.50577766", "0.5017365", "0.5010909", "0.49546018",...
0.76091415
0
TODO Autogenerated method stub
@Override public List<AfterBrandGclass> findAfterBrandList() { String sql=" select brand_id brandId,brand_name_s brandName from tb_brand where is_display=0"; return this.queryList(sql, new Object[]{}, new BeanPropertyRowMapper(AfterBrandGclass.class)); }
{ "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<SubjectEntity> queryPubSubList(String subject_id) { StringBuffer sql = new StringBuffer(); sql.append(" select subject_id,subject_name,subject_introduction,subject_image,subject_url,subject_keyword"); sql.append(" from tb_subject where subject_state=5 and subject_id not in (?) order by subject_publishdate desc limit 0,8"); return this.queryList(sql.toString(), new Object[]{subject_id}, new BeanPropertyRowMapper(SubjectEntity.class)); }
{ "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
GameState type = GameState.idle;
static boolean isPokemonsOption() { return current == pokemonsOption; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface GameState {\n String WAITING_FOR_SECOND_PLAYER = \"WAITING_FOR_SECOND_PLAYER\";\n String TURN_HARE = \"TURN_HARE\";\n String TURN_HOUND = \"TURN_HOUND\";\n String WIN_HARE_BY_ESCAPE = \"WIN_HARE_BY_ESCAPE\";\n String WIN_HARE_BY_STALLING = \"WIN_HARE_BY_STALLING\";\n ...
[ "0.74031323", "0.72749764", "0.6912589", "0.6906566", "0.6745128", "0.6744642", "0.6686279", "0.656055", "0.6416351", "0.64043635", "0.63946545", "0.6336549", "0.6320969", "0.626706", "0.62142736", "0.62142736", "0.62142736", "0.62142736", "0.6195025", "0.6193264", "0.6186667...
0.0
-1
Converts a DeliveryReportRequest instance into the proper soap format, so that it can be written over the socket as the body of an http response
public void encode( IoSession session, DeliveryReportRequest deliveryReportRequest, ProtocolEncoderOutput op) throws Exception { //First write the http headers to the output stream op.write(IoBuffer.wrap(Constants.HTTP_RESP_HEADER.getBytes())); Document deliveryReportRequestXml = buildDeliveryReportRequestXml(deliveryReportRequest); //Write the created delivery report request document to the output stream op.write(IoBuffer.wrap(CommonUtil.docToBytes(deliveryReportRequestXml))); op.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\r\n\tprivate static Document buildDeliveryReportRequestXml(\r\n\t\t\tDeliveryReportRequest deliveryReportRequest) throws Exception {\r\n\t\tMarshaller marshaller = CommonUtil.getMarshaller();\r\n\t\t\r\n \t//Create the soap response\r\n\t\tDocumentBuilderFactory documentBuilderF...
[ "0.745993", "0.52351296", "0.48244202", "0.47805345", "0.46353558", "0.46334967", "0.46193612", "0.4584735", "0.45720568", "0.45640895", "0.45601973", "0.4527575", "0.45259953", "0.45259383", "0.4522301", "0.4518651", "0.45128193", "0.4483276", "0.44756955", "0.4466037", "0.4...
0.47403827
4
Builds the soap document from the DeliveryReportRequest.
@SuppressWarnings("unchecked") private static Document buildDeliveryReportRequestXml( DeliveryReportRequest deliveryReportRequest) throws Exception { Marshaller marshaller = CommonUtil.getMarshaller(); //Create the soap response DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder(); Document responseXml = documentBuilder.newDocument(); //Create the soap envelope Element envelopeNode = responseXml.createElementNS( Constants.SOAP_ENV_NS, "env:Envelope"); responseXml.appendChild(envelopeNode); //Create the soap header Element headerNode = responseXml.createElementNS(Constants.SOAP_ENV_NS, "env:Header"); envelopeNode.appendChild(headerNode); //Create the soap body Element bodyNode = responseXml.createElementNS(Constants.SOAP_ENV_NS, "env:Body"); envelopeNode.appendChild(bodyNode); //Marshall the TransactionId node marshaller.marshal(deliveryReportRequest.getHeader(), headerNode); //Marshall the DeliveryReportReq node marshaller.marshal( new JAXBElement<DeliveryReportReqType>( new QName(Constants.MM7_NS, "DeliveryReportReq"), (Class<DeliveryReportReqType>) deliveryReportRequest.getRequest().getClass(), deliveryReportRequest.getRequest()), bodyNode); return responseXml; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "public DocumentReport() {\n\n\t\tLOGGER.info(\"Create Document Processor\");\n\n\t\tresultsXMLWriter = new ResultsXMLWriter();\n\t\t...
[ "0.51596296", "0.50585175", "0.50543624", "0.4964715", "0.49389163", "0.48976845", "0.48650113", "0.4805427", "0.47903466", "0.47122487", "0.4687713", "0.46674168", "0.46662143", "0.46521974", "0.46217266", "0.46036378", "0.45829514", "0.45709974", "0.45641148", "0.45605895", ...
0.81319577
0
Current use ehcache which has disk persistence feature, no more work to do here
@Override public void persist() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EzyerCache {\n class PersistentObject {\n public final byte[] mData;\n public final String mKey;\n public final long mExpireTimeMillis;\n\n public PersistentObject(byte[] data, String key, long expireTimeMillis) {\n mData = data;\n mKey = key;\n...
[ "0.6674702", "0.6306582", "0.61427796", "0.6069443", "0.6039678", "0.60339516", "0.5957282", "0.5916387", "0.5911694", "0.5894672", "0.58691275", "0.584503", "0.584104", "0.58278775", "0.57947874", "0.5791239", "0.57702464", "0.5761656", "0.5756557", "0.5717346", "0.570547", ...
0.0
-1
Current use ehcache which has disk persistence feature, no more work to do here
@Override public void restore() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EzyerCache {\n class PersistentObject {\n public final byte[] mData;\n public final String mKey;\n public final long mExpireTimeMillis;\n\n public PersistentObject(byte[] data, String key, long expireTimeMillis) {\n mData = data;\n mKey = key;\n...
[ "0.6675296", "0.6306861", "0.6142158", "0.60705817", "0.60407835", "0.60363287", "0.59568715", "0.591609", "0.5913606", "0.58945173", "0.586976", "0.5844972", "0.5842033", "0.58263165", "0.579463", "0.5792106", "0.57697535", "0.57622814", "0.57576483", "0.5716762", "0.5704977...
0.0
-1
course name for this GradeBook constructor initializes courseName with String supplied as argument
public GradeBook4( String name ) { courseName = name; // initializes courseName }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Course(String courseName) {\n this.courseName = courseName;\n }", "public GradeBook2( String name )\n {\n courseName = name; // initializes courseName\n }", "public GradeBook (String name){ //Constructor\n\t\tcourseName=name;\n//\t\tstudents = studentNum;\n\t}", "public void setCourseName(St...
[ "0.80979913", "0.78880554", "0.78635466", "0.7616934", "0.7616934", "0.7616934", "0.7616934", "0.75966495", "0.7551455", "0.7548391", "0.75130093", "0.7480625", "0.7324072", "0.72114563", "0.7069764", "0.7055251", "0.70123565", "0.6979005", "0.69733524", "0.6973001", "0.69500...
0.778128
3
end constructor method to set the course name
public void setCourseName( String name ) { courseName = name; // store the course name }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCourseName(String name){//setCourseName body start\n\t\tCourseName = name;\n\t}", "public void setCourseName( String name )\n {\n courseName = name; // store the course name\n }", "public Course(String courseName) {\n this.courseName = courseName;\n }", "public GradeBook2( String nam...
[ "0.8164613", "0.81503266", "0.8147021", "0.79242617", "0.764652", "0.75719506", "0.74866444", "0.73863876", "0.7349807", "0.72838926", "0.72838926", "0.72838926", "0.72838926", "0.7242148", "0.7236231", "0.7225899", "0.7208408", "0.720135", "0.7135035", "0.7134583", "0.712869...
0.79628336
3
end method setCourseName method to retrieve the course name
public String getCourseName() { return courseName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getCourseName();", "public String getCourseName(){//getCourseName body start\n\t\treturn CourseName;\n\t}", "public String getCourseName() {\n return this.courseName;\n }", "public String getCourseName() {\n return courseName;\n }", "public String getCourseName() {\n r...
[ "0.8827883", "0.86685145", "0.85401636", "0.8470369", "0.8465214", "0.8465214", "0.8465214", "0.845263", "0.8417323", "0.8384266", "0.83427554", "0.8266504", "0.82604253", "0.8213", "0.8182298", "0.8109272", "0.8074284", "0.80487114", "0.80104315", "0.7962049", "0.78944504", ...
0.85476977
2
end method getCourseName display a welcome message to the GradeBook user
public void displayMessage() { // this statement calls getCourseName to get the // name of the course this GradeBook represents System.out.printf( "Welcome to the grade book for\n%s!\n", getCourseName() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayMessage()\n {\n // getCourseName gets the name of the course\n System.out.printf( \"Welcome to the grade book for\\n%s!\\n\\n\",\n getCourseName() );\n }", "java.lang.String getCourseName();", "public void displayMessage(){//displayMessage body start\n\t\tSystem.out.printf(\"course name = %s...
[ "0.76477134", "0.74215907", "0.72655773", "0.7140961", "0.7086814", "0.6891359", "0.6802095", "0.6682723", "0.6594075", "0.6560326", "0.65282387", "0.6501189", "0.64980036", "0.64980036", "0.64980036", "0.64918643", "0.6472803", "0.6468747", "0.63967", "0.63887215", "0.637760...
0.7218843
3
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_bus_single_item_shop, container, false); AndroidSupportInjection.inject(this); ButterKnife.bind(this, view); //TODO take care of the progressBar return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
TODO the network call
@OnClick(R.id.btn_buy) public void onViewClicked() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseData() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onOnlineDiveDataProgress(Object result) {\n\n\t\t\t\t\t\t\t}", "public void request() {\n }", "private AdesaNetworkCall(){ }", "private void getStatus() {\n\t\t\n\t}", "private void verificaData() {\n\t\t\n\t}", "void ge...
[ "0.5535327", "0.54113084", "0.5292265", "0.526852", "0.5249234", "0.5246625", "0.52411395", "0.52309275", "0.5227296", "0.51664793", "0.51608944", "0.5139761", "0.51348305", "0.5127475", "0.51272196", "0.51248044", "0.5114748", "0.5112373", "0.50950426", "0.5086287", "0.50832...
0.0
-1
if already inited, no need to get lock everytime
public static ShopManager getInstance(Context context) { mContext = context; if (instance == null) { synchronized (ShopManager.class) { if (instance == null) { instance = new ShopManager(); } } } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n \t\tif (initLock.start()) {\n \t\t\ttry {\n \t\t\t\tthis._init(this.config);\n \t\t\t} finally {\n \t\t\t\tinitLock.end();\n \t\t\t}\n \t\t}\n \t}", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedul...
[ "0.71993035", "0.7061033", "0.69918764", "0.69508916", "0.68686014", "0.6716389", "0.6548878", "0.65477085", "0.6531551", "0.6452925", "0.6449766", "0.6413857", "0.64061004", "0.63949615", "0.63949615", "0.63828915", "0.63738424", "0.63465065", "0.6341676", "0.62988585", "0.6...
0.0
-1
checks and adds the Character to the button NOT DONE
public void add(JButton a){ if(c%2 == 1){ a.setText("X"); hh.setText("Player O's turn"); } else{ a.setText("O"); hh.setText("Player X's turn"); } c++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n String checkBoulder = (String) completeBoulder.getText();\n // if button says \"Topped out!\"\n if (checkBoulder.equals(getResources().getString(R.string.topout_complete))){\n //do nothing\n ...
[ "0.6558552", "0.65009344", "0.6438187", "0.641911", "0.6392142", "0.6344362", "0.6312299", "0.6241852", "0.6093794", "0.6089095", "0.60529846", "0.6047726", "0.6047645", "0.599429", "0.5959794", "0.59538144", "0.5942305", "0.5936727", "0.5907834", "0.5894715", "0.5889504", ...
0.5609563
62
method(function) that created GUI
public void tictac(){ bb.setVisible(false); bb.setSize(300, 300); bb.add(cc); bb.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); bb.add(hh, BorderLayout.NORTH); ee.setVisible(true); ee.add(gg, BorderLayout.NORTH); ee.add(ff); ee.setSize(300, 75); ee.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); ff.add(button11); ff.add(button10); cc.setLayout(new GridLayout(3,3)); cc.add(button1); cc.add(button2); cc.add(button3); cc.add(button4); cc.add(button5); cc.add(button6); cc.add(button7); cc.add(button8); cc.add(button9); Listener listen = new Listener(); button11.addActionListener(listen); button1.addActionListener(listen); button2.addActionListener(listen); button3.addActionListener(listen); button4.addActionListener(listen); button5.addActionListener(listen); button6.addActionListener(listen); button7.addActionListener(listen); button8.addActionListener(listen); button9.addActionListener(listen); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private GUI()\n {\n makeGUI();\n }", "public void buildGui() {\n\t}", "@Override\n public void initGUI() {\n\n }", "private static void initAndShowGUI() {\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "private static vo...
[ "0.7769286", "0.7344924", "0.72735023", "0.7256589", "0.7183636", "0.7182198", "0.71688974", "0.71541846", "0.7104284", "0.7060536", "0.7009881", "0.69942915", "0.6972428", "0.6941343", "0.69407165", "0.69010603", "0.69010603", "0.68864185", "0.68781245", "0.6876533", "0.6876...
0.0
-1
Constructor for the ButtonPanel, creates the Buttons and calls helper methods.
public ButtonPanel(CalculatorController appController) { super(); this.appController = appController; numberLayout = new GridLayout(5, 4, 10, 10); zero = new CalculatorButton(appController, "0", Color.GRAY); one = new CalculatorButton(appController, "1", Color.GRAY); two = new CalculatorButton(appController, "2", Color.GRAY); three = new CalculatorButton(appController, "3", Color.GRAY); four = new CalculatorButton(appController, "4", Color.GRAY); five = new CalculatorButton(appController, "5", Color.GRAY); six = new CalculatorButton(appController, "6", Color.GRAY); seven = new CalculatorButton(appController, "7", Color.GRAY); eight = new CalculatorButton(appController, "8", Color.GRAY); nine = new CalculatorButton(appController, "9", Color.GRAY); point = new CalculatorButton(appController, ".", Color.GRAY); multiply = new CalculatorButton(appController, "x", Color.BLUE); divide = new CalculatorButton(appController, "/", Color.BLUE); add = new CalculatorButton(appController, "+", Color.BLUE); subtract = new CalculatorButton(appController, "-", Color.BLUE); ans = new CalculatorButton(appController, "Ans", new Color(0, 170, 100)); equals = new JButton(); clear = new JButton(); backspace = new JButton(); negative = new JButton(); setupPanel(); setupButtons(); setupListeners(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JButtonsPanel() {\r\n setBorder(BorderFactory.createEtchedBorder(Color.GREEN, new Color(148, 145, 140)));\r\n\r\n jOpen.setText(BTN_OPEN);\r\n jOpen.setToolTipText(MSG_OPEN);\r\n jOpen.setBounds(new Rectangle(BTN_LEFT, BTN_VSPACE, BTN_WIDTH, BTN_HEIGHT));\r\n add(jOpen);\r...
[ "0.7802748", "0.77472293", "0.7607926", "0.75684947", "0.74838156", "0.73257405", "0.716733", "0.7064777", "0.7022968", "0.7022253", "0.70215654", "0.7016491", "0.6997365", "0.69789934", "0.6962999", "0.6952659", "0.6943063", "0.6891889", "0.6860475", "0.6853876", "0.6838225"...
0.7663724
2
Helper method for the Constructor used to set parameters and add components to the Panel.
private void setupPanel() { setLayout(numberLayout); setBorder(new EtchedBorder(EtchedBorder.RAISED, Color.GRAY, Color.DARK_GRAY)); setBackground(Color.LIGHT_GRAY); add(ans); add(clear); add(backspace); add(divide); add(seven); add(eight); add(nine); add(multiply); add(four); add(five); add(six); add(subtract); add(one); add(two); add(three); add(add); add(negative); add(zero); add(point); add(equals); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Panel() {\n initComponents();\n\n\n }", "public Panel() {\n }", "public ChooseParameterPanel() {\n initComponents();\n }", "public NewsParamPanel() {\n initComponents();\n titleAnalyzer.setFieldName(\"TITLE\");\n dateAnalyzer.setFieldName(\"DATE\");\n ...
[ "0.74472696", "0.72496843", "0.71572703", "0.7130536", "0.7022037", "0.6991024", "0.69427335", "0.6876838", "0.6876838", "0.68492734", "0.68369573", "0.6804456", "0.6788915", "0.67844343", "0.67790645", "0.67775744", "0.6744906", "0.67391115", "0.6738539", "0.6731661", "0.672...
0.0
-1
Helper method for the Constructor used to set parameters for all of the unique buttons.
private void setupButtons() { equals.setText("="); equals.setBackground(Color.RED); equals.setForeground(Color.WHITE); equals.setOpaque(true); equals.setFont(new Font("Lucida Grande", Font.PLAIN, 50)); equals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3))); clear.setText("C"); clear.setBackground(new Color(0, 170, 100)); clear.setForeground(Color.WHITE); clear.setOpaque(true); clear.setFont(new Font("Lucida Grande", Font.PLAIN, 50)); clear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3))); backspace.setText("<--"); backspace.setBackground(new Color(0, 170, 100)); backspace.setForeground(Color.WHITE); backspace.setOpaque(true); backspace.setFont(new Font("Lucida Grande", Font.PLAIN, 35)); backspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3))); negative.setText("+/-"); negative.setBackground(Color.GRAY); negative.setForeground(Color.WHITE); negative.setOpaque(true); negative.setFont(new Font("Lucida Grande", Font.PLAIN, 35)); negative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ButtonEnum(int numberOfJoystick, int numberOfButton) {\n buttonNum = numberOfButton; \n joystickNum = numberOfJoystick;\n }", "public abstract void initButton(int buttonIndex);", "private ButtonPane()\r\n\t\t\t{ super(new String[]{\"OK\",\"Cancel\"},1,2); }", "public PacManUiBuilder() {\n ...
[ "0.67154175", "0.65641433", "0.64469767", "0.6311028", "0.6277633", "0.626547", "0.6263635", "0.6216259", "0.6196647", "0.61084306", "0.60985863", "0.6094916", "0.60864705", "0.60722655", "0.60644823", "0.6014911", "0.59910023", "0.59839934", "0.5962536", "0.59531623", "0.593...
0.0
-1
Helper method for the Constructor used to add MouseListeners to all of the unique buttons.
private void setupListeners() { equals.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent click) { appController.calculate(); appController.refocus(); } public void mousePressed(MouseEvent onClick) { equals.setBackground(Color.RED.darker()); } public void mouseReleased(MouseEvent offClick) { equals.setBackground(Color.RED); } public void mouseEntered(MouseEvent enter) { equals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3))); } public void mouseExited(MouseEvent exit) { equals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3))); } }); clear.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent click) { appController.clearText(); appController.refocus(); } public void mousePressed(MouseEvent onClick) { clear.setBackground(new Color(0, 170, 100).darker()); } public void mouseReleased(MouseEvent offClick) { clear.setBackground(new Color(0, 170, 100)); } public void mouseEntered(MouseEvent enter) { clear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3))); } public void mouseExited(MouseEvent exit) { clear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3))); } }); backspace.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent click) { appController.backspace(); appController.refocus(); } public void mousePressed(MouseEvent onClick) { backspace.setBackground(new Color(0, 170, 100).darker()); } public void mouseReleased(MouseEvent offClick) { backspace.setBackground(new Color(0, 170, 100)); } public void mouseEntered(MouseEvent enter) { backspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3))); } public void mouseExited(MouseEvent exit) { backspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3))); } }); negative.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent click) { appController.changeSign(); appController.refocus(); } public void mousePressed(MouseEvent onClick) { negative.setBackground(Color.GRAY.darker()); } public void mouseReleased(MouseEvent offClick) { negative.setBackground(Color.GRAY); } public void mouseEntered(MouseEvent enter) { negative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3))); } public void mouseExited(MouseEvent exit) { negative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3))); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupListeners() {\n\t\tfor (int i = 0; i < _controlPoints.length; i++) {\n\t\t\taddControlPointListener(_controlPoints[i][0], i);\n\t\t\taddControlPointListener(_controlPoints[i][1], i);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < _selectionButtons.length; i++) {\n\t\t\taddPointSelectionButtonListener(i);\...
[ "0.65992945", "0.65627223", "0.65009177", "0.637317", "0.63252586", "0.6316384", "0.6310154", "0.62886584", "0.6262154", "0.62408113", "0.6231322", "0.62190723", "0.62146896", "0.6203535", "0.61982894", "0.6157288", "0.6073742", "0.60704744", "0.60661054", "0.6062264", "0.605...
0.58172834
45
This test will run multiple parallel conversions, using 8 office processes. Just change the MAX_ constants to control the numbers of conversion, threads and maximum conversion per office process allowed.
@Test public void runParallelConversions() throws Exception { final String pattern = "%d{ISO8601} %-5p [%c{3}] [%t] %m%n"; Logger.getRootLogger().removeAllAppenders(); // Create console appender final ConsoleAppender console = new ConsoleAppender(); console.setWriter(new OutputStreamWriter(System.out)); console.setLayout(new PatternLayout(pattern)); console.setThreshold(Level.DEBUG); console.activateOptions(); Logger.getRootLogger().addAppender(console); // Keep a log file to be able to see if an error occurred final FileAppender fileAppender = new FileAppender(); fileAppender.setName("FileLogger"); fileAppender.setFile("test-output/" + StressITest.class.getSimpleName() + "/test.log"); fileAppender.setLayout(new PatternLayout(pattern)); fileAppender.setThreshold(Level.DEBUG); fileAppender.setAppend(true); fileAppender.activateOptions(); Logger.getRootLogger().addAppender(fileAppender); // Configure the office manager in a way that maximizes possible race conditions. final OfficeManager officeManager = DefaultOfficeManager.builder() .portNumbers(2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009) .maxTasksPerProcess(MAX_TASKS_PER_PROCESS) .build(); final DocumentConverter converter = DefaultConverter.make(officeManager); final DocumentFormatRegistry formatRegistry = converter.getFormatRegistry(); officeManager.start(); try { final File inputFile = new File("src/integTest/resources/documents/test." + INPUT_EXTENSION); final Thread[] threads = new Thread[MAX_RUNNING_THREADS]; boolean first = true; int t = 0; final DocumentFormat inputFormat = formatRegistry.getFormatByExtension(INPUT_EXTENSION); final DocumentFormat outputFormat = formatRegistry.getFormatByExtension(OUTPUT_EXTENSION); for (int i = 0; i < MAX_CONVERSIONS; i++) { final File outputFile = File.createTempFile("test", "." + outputFormat.getExtension()); outputFile.deleteOnExit(); // Converts the first document without threads to ensure everything is OK. if (first) { converter.convert(inputFile).as(inputFormat).to(outputFile).as(outputFormat).execute(); first = false; } logger.info("Creating thread " + t); final Runner r = new Runner(inputFile, outputFile, inputFormat, outputFormat, converter); threads[t] = new Thread(r); threads[t++].start(); if (t == MAX_RUNNING_THREADS) { for (int j = 0; j < t; j++) { threads[j].join(); } t = 0; } } // Wait for remaining threads. for (int j = 0; j < t; j++) { threads[j].join(); } } finally { officeManager.stop(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n...
[ "0.5953333", "0.5953333", "0.5953333", "0.5953333", "0.5953333", "0.5953333", "0.5953333", "0.59243214", "0.59243214", "0.5917014", "0.5904976", "0.58982235", "0.58200526", "0.56468725", "0.56282026", "0.5596976", "0.55267406", "0.55260503", "0.55125153", "0.54835147", "0.545...
0.7476774
0
get the input scanner
public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Tileset Spacer by TJ Couch\n"); //if there are no commandline inputs, ask for a file if (args.length <= 0) { System.out.print("Enter the tileset's filename: "); args = new String[1]; args[0] = scan.nextLine(); } //get the tile width System.out.print("Enter the tile width in pixels (Default " + tileWidth + "): "); String in = scan.nextLine(); if (in != null && !in.isEmpty()) tileWidth = Integer.parseInt(in); //get the tile height System.out.print("Enter the tile height in pixels (Default " + tileHeight + "): "); in = scan.nextLine(); if (in != null && !in.isEmpty()) tileHeight = Integer.parseInt(in); //get the border size System.out.print("Enter the border thickness in pixels (Default " + borderSize + "): "); in = scan.nextLine(); if (in != null && !in.isEmpty()) borderSize = Integer.parseInt(in); // run program for every file input for (int f = 0; f < args.length; f++) { BufferedImage image = null; try { image = ImageIO.read(new File(args[f])); System.out.println("Opened " + args[f]); } catch (IOException e) { System.out.println(e); } boolean succeeded = spaceTileSet(image, args[f]); if (succeeded) System.out.println("Successfully spaced tileset " + args[f]); else System.out.println("Did not successfully space tileset " + args[f]); } System.out.println("Done."); scan.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static InputScanner getInputScanner() {\n return inputScanner;\n }", "public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}", "public static String readInput() {\r\n return SCANNER.nextLine();\r\n }", "private Scanner getInput(String name) {\n try {\n r...
[ "0.78090006", "0.7141299", "0.70267206", "0.6914823", "0.6722363", "0.67179507", "0.67054766", "0.66842026", "0.66632307", "0.6631631", "0.65835124", "0.6522134", "0.65155816", "0.6508017", "0.65075225", "0.64948344", "0.64844126", "0.64820474", "0.6465586", "0.6465586", "0.6...
0.0
-1
1 meter per 1 meter
public Soil() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double metresPerSecondToCentiMetresPerSecond(double num) { return (num*100); }", "public static double centiMetresPerSecondToMetrePerSecond(double num) { return (num/100); }", "public static double feetPerSecondToCentiMetresPerSecond(double num) { return (num*30.48); }", "public void meter...
[ "0.66928077", "0.6677123", "0.6501564", "0.64412624", "0.6420685", "0.6402936", "0.638208", "0.63519543", "0.62965983", "0.6293932", "0.6246396", "0.62167937", "0.6211671", "0.61556077", "0.6154605", "0.6141081", "0.613194", "0.6116223", "0.6115492", "0.6089843", "0.60892797"...
0.0
-1
double radianLat1 = Math.toRadians(latitude1); double radianLon1 = Math.toRadians(longitude1); double radianLat2 = Math.toRadians(latitude2); double radianLon2 = Math.toRadians(longitude2); double deltaLat = radianLat1radianLat2; double deltaLon = radianLon1radianLon2; double a = Math.pow(Math.sin(deltaLat/2),2) + Math.cos(radianLat1) Math.cos(radianLat2) Math.pow(Math.sin(deltaLon/2), 2); double c = 2 Math.atan2(Math.sqrt(a), Math.sqrt(1a)); return r c;
public double calculateDistance(double latitude1, double longitude1, double latitude2, double longitude2) { latitude1 = Math.toRadians(latitude1); longitude1 = Math.toRadians(longitude1); latitude2 = Math.toRadians(latitude2); longitude2 = Math.toRadians(longitude2); double dlon = longitude2 - longitude1; double dlat = latitude2 - latitude1; double a = Math.pow((Math.sin(dlat/2)),2) + Math.cos(latitude1) * Math.cos(latitude2) * Math.pow(Math.sin(dlon/2),2); double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); //System.out.println("a: " + a + ";c: " + c + ";result: " + (r*c)); return r * c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double GetDistance(double lat1, double lon1, double lat2, double lon2) {\n double radLat1 = rad(lat1);\n double radLat2 = rad(lat2);\n double a = radLat1 - radLat2;\n double b = rad(lon1) - rad(lon2);\n double s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2)...
[ "0.7711866", "0.7585533", "0.75745106", "0.75525355", "0.7393969", "0.7369092", "0.7286155", "0.7201643", "0.71621245", "0.7128488", "0.70961314", "0.70955354", "0.7093756", "0.70885503", "0.7081631", "0.7075796", "0.7024967", "0.70231247", "0.69544196", "0.6873976", "0.68526...
0.77002025
1