query
stringlengths 8
1.54M
| document
stringlengths 9
312k
| negatives
sequencelengths 19
20
| metadata
dict |
---|---|---|---|
Sets the number of pivotal elements in this file. | private void setNumberOfPivotalElements(final int numPivotElem)
{
this.numberOfPivotalElements = numPivotElem;
} | [
"@Override\n\tpublic void setNumberOfElements(int value) {\n\t\t\n\t\tnelm = value;\n\t}",
"void setTotalProductCount(int totalProductCount);",
"void xsetTotalProductCount(org.apache.xmlbeans.XmlInt totalProductCount);",
"void xsetNumberOfEntries(org.apache.xmlbeans.XmlInteger numberOfEntries);",
"void setNumberOfEntries(java.math.BigInteger numberOfEntries);",
"protected void setNumOfEntries(int numEntries) \n throws IOException\t\n { \n Convert.setIntValue (numEntries, NUM_OF_ENTRIES, data);\n }",
"public void setNbTotalItems(long value) {\n this.nbTotalItems = value;\n }",
"public void setTotalFileCount(int fileCount) {\n totalFileCount = fileCount;\n }",
"public void setNumberOfInProcessFiles(int value) {\n this.numberOfInProcessFiles = value;\n }",
"public void incrementFileCount() {\n this.fileCount = fileCount.add(BigInteger.ONE);\n }",
"void xsetNumberOfInstallments(org.apache.xmlbeans.XmlInteger numberOfInstallments);",
"public final void setTotalElements(final long elements) {\n\t\tif (LOG.isTraceEnabled()) {\n\t\t\tLOG.trace(\"setPersonList(\" + elements + \")\");\n\t\t}\n\t\tif (elements < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Total elements cannot be negative.\");\n\t\t}\n\t\ttotalElements = elements;\n\t}",
"public void setTotalLines (String TotalLines);",
"void setNumberOfFilesDownloaded(long downloadedFiles);",
"public void setItemCount(int value)\n\t{\n\t\titem_count = value;\n\t}",
"void setNumberOfInstallments(java.math.BigInteger numberOfInstallments);",
"public void setCount() {\n\t\t++counter;\n\t}",
"public void incFileCount(){\n\t\tthis.num_files++;\n\t}",
"public FileCount(int numFiles){\n this.numFiles = numFiles;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to paint the contents of this layer using a given painter. The default implementation ignores the painter. | public void paintContents(Graphics g, FigPainter painter) {
paintContents(g);
} | [
"protected abstract void paint(Painter painter);",
"@Override\n public void paint(Painter painter)\n {\n // Drawing the outline of the CarrierShape\n painter.drawRect(_x,_y,_width,_height);\n // Translating the origin to x and y point to the top left corner\n // of the CarrierShape to be able to paint its children relative to that point\n painter.translate(_x,_y);\n\n // Painting each child relative to the top left corner of the CarrierShape\n for(Shape child : children)\n {\n child.doPaint(painter);\n }\n\n // Translating the origin back to x = 0 y = 0\n painter.translate(-_x,-_y);\n }",
"public void paint(Graphics g, FigPainter painter) {\r\n if (_hidden) {\r\n return;\r\n }\r\n if (!_grayed) {\r\n paintContents(g, painter);\r\n } else {\r\n paintGrayContents(g);\r\n }\r\n }",
"public void setPainter(AbstractOutlinePainter painter) {\n this.painter = painter;\n }",
"public abstract void paintContents(Graphics g);",
"public void paint() {}",
"public AbstractOutlinePainter getPainter() {\n return painter;\n }",
"@Override\r\n\tpublic void paint(Graphics g) {\r\n\t\tg.getClipBounds(clipCache);\r\n\t\tif (paintListener != null) {\r\n\t\t\tpaintListener.panelBeforePaint(this, g, clipCache);\r\n\t\t}\r\n\t\tdelegate.paint(g, 0, 0, backgroundTransparency);\r\n\t\tpaintChildren(g);\r\n\t\tif (paintListener != null) {\r\n\t\t\tpaintListener.panelAfterPaint(this, g, clipCache);\r\n\t\t}\r\n\t}",
"@Environment(EnvType.CLIENT)\n\t@Override\n\tpublic WPanel setBackgroundPainter(BackgroundPainter painter) {\n\t\tsuper.setBackgroundPainter(null);\n\t\tinv.setBackgroundPainter(painter);\n\t\thotbar.setBackgroundPainter(painter);\n\t\treturn this;\n\t}",
"public void paint(RMShapePainter aPntr)\n{\n // Clone graphics\n RMShapePainter pntr = aPntr.clone();\n \n // Apply transform for shape\n if(isRSS()) pntr.transform(getTransform().awt());\n else pntr.translate(getX(), getY());\n \n // If shape bounds don't intersect clip bounds, just return\n Rectangle cbounds = pntr.getClip()!=null? pntr.getClipBounds() : null;\n if(cbounds!=null && !getBoundsMarkedDeep().intersects(cbounds))\n return;\n \n // If shape is semi-transparent, apply composite\n if(getOpacityDeep()!=1) {\n float op = pntr.isEditing()? Math.max(.15f, getOpacityDeep()) : getOpacityDeep();\n pntr.setOpacity(op);\n }\n \n // If shape has a effect, have it paint\n if(getEffect()!=null)\n getEffect().paint(pntr, this);\n \n // Otherwise paintShapeAll\n else paintShapeAll(pntr);\n \n // Dispose of graphics\n pntr.dispose();\n}",
"public void paintInstance(InstancePainter painter) {\n\t painter.drawRectangle(painter.getBounds(), \"G+1\");\n\t painter.drawPorts();\n\t }",
"public void repaint(Layer layer);",
"protected void paint() {\n \t\tif (embeddedNApplet) {\n \t\t\tif (!nappletHidden) {\n \t\t\t\tloadPixels();\n \t\t\t\tparentPApplet.tint(nappletTint);\n \t\t\t\tparentPApplet.image(this.g, 0, 0);\n \t\t\t}\n \t\t} else\n \t\t\tsuper.paint();\n \n \t}",
"public abstract Painter getPainter();",
"public void setPainter(SEngineScenePainter painter) {\r\n\t\tthis.painter = painter;\r\n\t\tthis.invalidate();\r\n\t}",
"public abstract void setPaint(Paint paint);",
"@Nullable\n IHighlightPainter getPainter();",
"@Override\n public void paint(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n warehouseView.paint(g2);\n if (clickedObject == null)\n infoPanel.paint(g2);\n else if (clickedObject instanceof Transporter)\n infoPanel.paint(g2, (Transporter) clickedObject);\n else if (clickedObject instanceof Shelf)\n infoPanel.paint(g2, (Shelf) clickedObject);\n }",
"@Override\r\n public void paint(final Graphics g) {\r\n paintChildren(g);\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if this hand is two pairs. | private boolean isTwoPair()
{
boolean early = hand[0].getFace() == hand[1].getFace()
&& hand[2].getFace() == hand[3].getFace();
boolean split = hand[0].getFace() == hand[1].getFace()
&& hand[3].getFace() == hand[4].getFace();
boolean late = hand[1].getFace() == hand[2].getFace()
&& hand[3].getFace() == hand[4].getFace();
if (early || split || late)
{
primaryCard = Math.max(hand[1].getFace(), hand[3].getFace());
secondaryCard = Math.min(hand[1].getFace(), hand[3].getFace());
return true;
}
else
{
return false;
}
} | [
"public boolean isTwoPair() {\r\n\t\tint firstPairIdx = findPairStartingAt(0);\r\n\t\tint second_pairIdx = findPairStartingAt(firstPairIdx+2);\r\n\t\treturn ((firstPairIdx != -1) &&\r\n\t\t\t\t(second_pairIdx != -1) &&\r\n\t\t\t\t!isFourOfAKind() &&\r\n\t\t\t\t!isFullHouse());\r\n\t}",
"public boolean isTwoPair()\n\t{\n\t\tVector<Integer> myPairs = new Vector<Integer>();\n\t\tint count = 0;\n\t\tranking = null;\n\t\tfor (int i = 0; i < myCards.size() - 1; i++)\n\t\t{\n\t\t\tif (myCards.get(i).getType().getType() == myCards.get(i + 1).getType().getType())\n\n\t\t\t{\n\t\t\t\tif (myPairs.contains(i))\n\t\t\t\t{\n\t\t\t\t\tmyPairs.add(i + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmyPairs.add(i);\n\t\t\t\t\tmyPairs.add(i + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < myPairs.size() - 1; i++)\n\t\t{\n\t\t\tif (myCards.get(myPairs.get(i)).getType().getType() == myCards.get(myPairs.get(i) + 1).getType().getType())\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (myPairs.size() == 4 && count == 2)\n\t\t{\n\t\t\tranking = PokerHandRanking.TWO_PAIR;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\n\t}",
"public boolean isPair() {\r\n\r\n return getHighestConsecutive() == 2;\r\n }",
"public boolean hasTwoPair() {\n\t\tint[] counter = new int[cardNum];\t//counter\n\t\tint[] rank = new int[cardNum];\t//ranks of the cards\n\t\t\n\t\tint[][] has = {{-1, -1}, {-1, -1}}; //represents if the first or second pair is found, -1 representing false and 1 representing true\n\n\t\tfor (int i = 0; i < hand.length; i++) {\t//fills the rank array\n\t\t\trank[i] = hand[i].rank;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < hand.length; i++) {\t//checks if there are pairs\n\t\t\tfor (int j = 0; j < hand.length; j++) {\n\t\t\t\tif (i != j && rank[i] == rank[j]) {\n\t\t\t\t\tcounter[i]++;\n\t\t\t\t\tif (counter[i] >= 2) {\n\t\t\t\t\t\tif (has[0][0] != 1) {\n\t\t\t\t\t\t\thas[0][0] = 1;\n\t\t\t\t\t\t\thas[0][1] = rank[i];\n\t\t\t\t\t\t} else if (has[0][0] == 1 && has[0][1] != rank[i]) {\n\t\t\t\t\t\t\thas[1][0] = 1;\n\t\t\t\t\t\t\thas[1][1] = rank[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (has[0][0] == 1 && has[1][0] == 1) {\t//checks truth values\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isTwoPair() {\n int numbersSame = 0;\n int pairs = 0;\n for (int i = 0; i < dice.length && numbersSame < 3; i++) {\n numbersSame = 0;\n for (int x = 0; x < dice.length; x++) {\n if (dice[i].getFaceValue() == dice[x].getFaceValue()) {\n numbersSame++;\n }\n }\n if (numbersSame == 2) {\n pairs++;\n }\n }\n return (pairs == 4);\n }",
"public boolean isPair()\n\t{\n\t\tranking = null;\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < myCards.size() - 1; i++)\n\t\t{\n\t\t\tif (myCards.get(i).getType().getType() == myCards.get(i + 1).getType().getType())\n\t\t\t\tcount++;\n\t\t}\n\t\tif (count == 1)\n\t\t{\n\t\t\tranking = PokerHandRanking.PAIR;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean hasTwoPairs() {\n\t\t\n\t\tboolean paired = false;\n\t\t\n\t\tif (firstDigit == secondDigit && thirdDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == thirdDigit && secondDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == forthDigit && secondDigit == thirdDigit) {paired = true;}\n\t\t\n\t\treturn paired;\n\t}",
"private boolean isPair()\n {\n for (int i = 1; i < NUM_CARDS_IN_HAND; i++)\n if (hand[i].getFace() == hand[i - 1].getFace())\n {\n primaryCard = hand[i].getFace();\n return true;\n }\n\n return false;\n }",
"public boolean hasPair() {\n return this.getCard1().getRank() == this.getCard2().getRank();\n }",
"private static boolean containsPair(Hand hand) {\n\t\tboolean containsPair = false;\n\t\tList<Character> values = hand.getAllValues();\n\t\tfor (int i = 0; i < hand.getSize(); i++) {\n\t\t\tif (Collections.frequency(values, values.get(i)) == 2) containsPair = true;\n\t\t}\n\t\treturn containsPair;\n\t}",
"@Override\n public boolean isPair() {\n return ((cards.get(0).getValue().ordinal() == cards.get(1).getValue().ordinal()) ||\n (cards.get(1).getValue().ordinal() == cards.get(2).getValue().ordinal()) ||\n (cards.get(2).getValue().ordinal() == cards.get(3).getValue().ordinal()) ||\n (cards.get(3).getValue().ordinal() == cards.get(4).getValue().ordinal()));\n }",
"private boolean pair() {\n int tens = 0;\n int jacks = 0;\n int queens = 0;\n int kings = 0;\n int aces = 0;\n\n for (int i = 0; i < this.hand.size(); i++) {\n int value = this.hand.get(i).getValue();\n if (value == 10) {\n tens++;\n } else if (value == 11) {\n jacks++;\n } else if (value == 12) {\n queens++;\n } else if (value == 13) {\n kings++;\n } else if (value == 1) {\n aces++;\n }\n }\n\n if (tens == 2 || jacks == 2 || queens == 2 || kings == 2 || aces == 2) {\n return true;\n }\n\n return false;\n }",
"public boolean onePair()\n {\n int pairs = 0;\n \n for(int i = 2; i < MAXRANK; i++) {\n if(rankCount[i] == 2) {\n pairs++;\n }\n }\n\n if(pairs == 1) {\n return true;\n }\n return false;\n }",
"public static boolean isPair(final Noun noun1, final Noun noun2) {\r\n\t\treturn Mark.getPairNoun(noun1, noun2.type) == noun2;\r\n\t}",
"public boolean paired();",
"boolean isPair(Item item2) {\n\t\t\treturn type != item2.type && element.equals(item2.element);\n\t\t}",
"public boolean getPair()\n {\n return die1.getFacevalue() == die2.getFacevalue();\n }",
"private boolean checkPair(Card[] hand) {\n\t\t\tfor(int s = 0; s < 4; s++) {\n\t\t\t\tint v = hand[s].number;\n\t\t\t\tboolean is = true;\n\t\t\t\tfor(int e = s+1; e < s+2; e++) {\n\t\t\t\t\tif(hand[e].number != v) {\n\t\t\t\t\t\tis = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(is) {\n\t\t\t\t\thandType = PAIR;\n\t\t\t\t\t// Generate the kicker value from the \n\t\t\t\t\t// cards not in the pair, from highest (at 4) to lowest (at 0).\n\t\t\t\t\ttiebreaker = v;\n\t\t\t\t\tfor(int n = 4; n >= 0; n--) {\n\t\t\t\t\t\t//System.out.println(\"\" + hand[n].number + \": \", tiebreaker);\n\t\t\t\t\t\tif(hand[n].number != v) {\n\t\t\t\t\t\t\ttiebreaker = tiebreaker * 64;\n\t\t\t\t\t\t\ttiebreaker += hand[n].number;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdescription = \"Pair of \" + faceNames[v] + \"s\";\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public static boolean hasTwoPair(Card[] cards) {\n\t\tint counter = 0;\n\t\tint value = 0;\n\t\tfor(int i = 0; i< cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue() \n\t\t\t\t\t\t&& value !=cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t\tvalue = cards[j].getValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=2){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves the string as a CSS file | public void saveCSS(String name){
File file = new File(_savedCSSFilePath);
//Nothing is saved to file when string is empty
if (name != null && !name.isEmpty()) {
//Writing to file
try {
FileWriter f2 = new FileWriter(file, false);
f2.write(name);
f2.close();
} catch (IOException e) {
e.printStackTrace();
}
} else {
//File is cleaned which signifies the default theme
file.delete();
try {
file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
}
} | [
"public void saveTheme(){\n final String FILENAME = \"src/userinterface/style/themes/custom.css\";\n\n String css =\n \".parent { -fx-background-color: \" + backgroundColor + \";}\\n\"\n + \".infolabel, .button { -fx-text-fill: \" + textColor + \";}\\n\"\n + \".button, .color-picker { -fx-background-color: \" + buttonColor + \";}\\n\"\n + \".progess-indicator { -fx-progress-color: \" + buttonColor + \";}\\n\"\n + \".text-field, .text-area, .check-box .box, .button { -fx-border-color: \" + borderColor + \";}\\n\";\n\n try (FileWriter fileWriter = new FileWriter(FILENAME);\n BufferedWriter writer = new BufferedWriter(fileWriter)){\n\n writer.write(css);\n\n } catch (IOException e){\n System.out.println(\"Could not write custom theme\");\n e.printStackTrace();\n }\n }",
"public Result asCss() {\n this.contentType = \"text/css\";\n return this;\n }",
"@org.junit.Test\n public void css()\n {\n assertEquals(\"empty\", \"\", Encodings.toCSSString(\"\"));\n assertEquals(\"simple\", \"simple\", Encodings.toCSSString(\"simple\"));\n assertEquals(\"spaces\", \"justatest\", Encodings.toCSSString(\"just a test\"));\n assertEquals(\"special\", \"a\", Encodings.toCSSString(\"&*%$#a%#!@()\"));\n }",
"private void writeCss(HttpServletRequest request,\n HttpServletResponse response) throws IOException, QuickFixException {\n AuraContext context = Aura.getContextService().getCurrentContext();\n response.setCharacterEncoding(AuraBaseServlet.UTF_ENCODING);\n List<String> namespaces = Lists.newArrayList(context.getPreloads());\n DefinitionService definitionService = Aura.getDefinitionService();\n Client.Type type = Aura.getContextService().getCurrentContext().getClient().getType();\n Mode mode = context.getMode();\n StringBuffer sb = new StringBuffer();\n \n for (String ns : namespaces) {\n String key = type.name() + \"$\" + ns;\n \n String nsCss = !mode.isTestMode() ? cssCache.get(key) : null;\n if (nsCss == null) {\n DefDescriptor<ThemeDef> matcher = definitionService.getDefDescriptor(String.format(\"css://%s.*\", ns),\n ThemeDef.class);\n Set<DefDescriptor<ThemeDef>> descriptors = definitionService.find(matcher);\n List<ThemeDef> nddefs = new ArrayList<ThemeDef>();\n \n sb.setLength(0);\n for(DefDescriptor<ThemeDef> descriptor : descriptors){\n //\n // This could use the generic routine above except for this brain dead little\n // gem.\n //\n if(!descriptor.getName().toLowerCase().endsWith(\"template\")){\n ThemeDef def = descriptor.getDef();\n if(def != null){\n nddefs.add(def);\n }\n }\n }\n \n context.setPreloading(true);\n Appendable tmp = mode.isTestMode() ? response.getWriter() : sb;\n preloadSerialize(nddefs, ThemeDef.class, tmp);\n if (!mode.isTestMode()) {\n nsCss = sb.toString();\n cssCache.put(key, nsCss);\n }\n }\n \n if (nsCss != null) {\n \tresponse.getWriter().append(nsCss);\n }\n }\n }",
"private static String getCss(SearchContext context) throws IOException {\n String css = new String(Files.readAllBytes(\n Paths.get(resourcesFile + \"htmlReporter.css\")));\n return css.replace(\"url('\", \"url('\" + getDataImageString(context));\n }",
"public ActionForward saveStylesheet(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n \n log.debug(\"Got a saveStylesheet action request!!!\");\n \n ConfigurationAndSetupForm configurationAndSetupForm = (ConfigurationAndSetupForm)form;\n FormFile myFile = configurationAndSetupForm.getMyFile();\n \n String fileName = myFile.getFileName().toLowerCase();\n byte[] fileData = myFile.getFileData();\n \n try{\n \n fileUtility.writeFile(fileData, FileUtility.FileType.CSS, fileName);\n \n }catch (CustomException ce){\n \n ActionMessages errors = new ActionMessages();\n ActionMessage msg;\n \n msg = new ActionMessage(\"title.page.stylesheet.file.error\", ce.getLocalizedMessage());\n \n errors.add(ActionMessages.GLOBAL_MESSAGE, msg);\n saveMessages(request.getSession(true), errors);\n saveAppErrors(request, errors);\n return mapping.findForward(\"showAddStylesheet\");\n }\n \n ActionMessages errors = new ActionMessages();\n ActionMessage msg;\n \n msg = new ActionMessage(\"title.page.stylesheet.file.saved\");\n \n errors.add(ActionMessages.GLOBAL_MESSAGE, msg);\n saveMessages(request.getSession(true), errors);\n saveAppInfo(request, errors);\n \n return mapping.findForward(\"showAddStylesheet\");\n }",
"private void writeGlobalCss() throws IOException {\n if (epubConfig.htmlConfig.style == null) {\n epubConfig.htmlConfig.style = StyleProvider.getDefaults();\n }\n String name = STYLE_DIR + \"/\" + CSS_FILE;\n writeIntoEpub(epubConfig.htmlConfig.style.cssFile, name, CSS_FILE_ID, MT_CSS);\n epubConfig.htmlConfig.cssHref = \"../\" + name; // relative to HTML in textDir\n }",
"public void setStylesheet (String Stylesheet);",
"public static void CSSFolder(String siteName)\n{\n //creating path for the file\n File CSSFolder = new File (\"src\\\\main\\\\java\\\\ex43\\\\website\\\\\" + siteName + \"\\\\css\");\n\n //ensuring file is created\n boolean CSSFolderCreated = CSSFolder.mkdir();\n\n //Output\n System.out.println(\"Created: ./website/\" + siteName + \"/css/\");\n\n}",
"public String getCSSName() {\n\n //Reading file\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(_savedCSSFilePath));\n //Filename and rating\n String line;\n while ((line = reader.readLine()) != null) {\n //Checking if line has points\n return line;\n }\n //Handling exceptions\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }",
"private void copyStylesheet(String styleSheetFileName) {\n\n\t\ttry {\n\t\t\t/* Create output file where styleSheet will be saved to */\n\t\t\tFile styleSheetFile = new File(defaultOutPutDirectory + File.separator + styleSheetFileName);\n\n\t\t\t/* Load resource stream into the input stream */\n\t\t\tInputStream inputStream = ClassLoader.getSystemResourceAsStream(styleSheetFileName);\n\n\t\t\t/* Create output stream */\n\t\t\tOutputStream out = new FileOutputStream(styleSheetFile);\n\n\t\t\t/* save the file */\n\t\t\tbyte buf[] = new byte[1024];\n\t\t\tint len;\n\t\t\twhile ((len = inputStream.read(buf)) > 0)\n\t\t\t\tout.write(buf, 0, len);\n\t\t\tout.close();\n\t\t\tinputStream.close();\n\t\t}\n\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public String save() {\n\n\t\tif (getTemplate() == null) {\n\t\t\t// TODO: i18n\n\t\t\taddError(\"Unable to locate stylesheet template\");\n\t\t\treturn ERROR;\n\t\t}\n\n\t\tif (!hasActionErrors())\n\t\t\ttry {\n\n\t\t\t\tWeblogTemplate stylesheet = getTemplate();\n\n\t\t\t\tstylesheet.setLastModified(new Date());\n\n\t\t\t\tif (stylesheet.getTemplateCode(\"standard\") != null) {\n\t\t\t\t\t// if we have a template, then set it\n\t\t\t\t\tWeblogThemeTemplateCode tc = stylesheet\n\t\t\t\t\t\t\t.getTemplateCode(\"standard\");\n\t\t\t\t\ttc.setTemplate(getContentsStandard());\n\t\t\t\t\tWebloggerFactory.getWeblogger().getWeblogManager()\n\t\t\t\t\t\t\t.saveTemplateCode(tc);\n\t\t\t\t} else {\n\t\t\t\t\t// otherwise create it, then set it\n\t\t\t\t\tWeblogThemeTemplateCode tc = new WeblogThemeTemplateCode(\n\t\t\t\t\t\t\tstylesheet.getId(), \"standard\");\n\t\t\t\t\ttc.setTemplate(stylesheet.getContents());\n\t\t\t\t\tWebloggerFactory.getWeblogger().getWeblogManager()\n\t\t\t\t\t\t\t.saveTemplateCode(tc);\n\t\t\t\t}\n\n\t\t\t\tif (stylesheet.getTemplateCode(\"mobile\") != null) {\n\t\t\t\t\tWeblogThemeTemplateCode tc = stylesheet\n\t\t\t\t\t\t\t.getTemplateCode(\"mobile\");\n\t\t\t\t\ttc.setTemplate(getContentsMobile());\n\t\t\t\t} else {\n\t\t\t\t\tWeblogThemeTemplateCode tc = new WeblogThemeTemplateCode(\n\t\t\t\t\t\t\tstylesheet.getId(), \"mobile\");\n\t\t\t\t\ttc.setTemplate(\"\"); // empty, we've got no default mobile\n\t\t\t\t\t\t\t\t\t\t// template\n\t\t\t\t\tWebloggerFactory.getWeblogger().getWeblogManager()\n\t\t\t\t\t\t\t.saveTemplateCode(tc);\n\t\t\t\t}\n\n\t\t\t\t// TODO do we still want to set the contents here?\n\t\t\t\tstylesheet.setContents(getContentsStandard());\n\n\t\t\t\t// save template and flush\n\t\t\t\tWebloggerFactory.getWeblogger().getWeblogManager()\n\t\t\t\t\t\t.savePage(stylesheet);\n\n\t\t\t\tWebloggerFactory.getWeblogger().flush();\n\n\t\t\t\t// notify caches\n\t\t\t\tCacheManager.invalidate(stylesheet);\n\n\t\t\t\t// success message\n\t\t\t\taddMessage(\"stylesheetEdit.save.success\", stylesheet.getName());\n\n\t\t\t} catch (WebloggerException ex) {\n\t\t\t\tlog.error(\"Error updating stylesheet template for weblog - \"\n\t\t\t\t\t\t+ getActionWeblog().getHandle(), ex);\n\t\t\t\t// TODO: i18n\n\t\t\t\taddError(\"Error saving template\");\n\t\t\t}\n\n\t\treturn INPUT;\n\t}",
"String stylesheetPath();",
"public void saveColorAndFont()\r\n\t{\r\n\t\tsaveColor();\r\n\t\tsaveFont();\r\n\t}",
"private String retrieveCssData(String urlStr) throws MalformedURLException,\r\n\t\t\tIOException {\r\n\t\t// retrieve the image from the webpage and put it in\r\n\t\t// HashMap\r\n\t\tURL url = new URL(urlStr);\r\n\t\tBufferedReader cssData = new BufferedReader(new InputStreamReader(url\r\n\t\t\t\t.openConnection().getInputStream()));\r\n\t\tString cssStr = \"\";\r\n\t\tString tempStr;\r\n\t\twhile ((tempStr = cssData.readLine()) != null) {\r\n\t\t\tcssStr += (tempStr + \"\\n\");\r\n\t\t}\r\n\t\tcssData.close();\r\n\t\treturn cssStr;\r\n\t}",
"private void setCss(String cssFile) {\n _scene.getStylesheets().clear();\n _scene.getStylesheets().add(getClass().getResource(cssFile).toExternalForm());\n }",
"public String mergeIntoCss(String css) {\n \tif(fontSize.isPresent()) {\n \t\tMatcher matcher = FONT_SIZE_PATTERN.matcher(css);\n \t\tif (matcher.find()) {\n \t\t\tStringBuilder sb = new StringBuilder(css);\n \t\t\tcss = sb.replace(matcher.start(1), matcher.end(1), fontSize.get()+\"\").toString();\n \t\t}else {\n \t\t\tcss += \"-fx-font-size: \" + fontSize.get() + \"pt;\";\n \t\t}\n }\n\n if(fontFamily.isPresent()) {\n \tMatcher matcher = FONT_FAMILY_PATTERN.matcher(css);\n \t\tif (matcher.find()) {\n \t\t\tStringBuilder sb = new StringBuilder(css);\n \t\t\tcss = sb.replace(matcher.start(1), matcher.end(1), fontFamily.get()).toString();\n \t\t}else {\n \t\t\tcss += \"-fx-font-family: \" + fontFamily.get() + \";\";\n \t\t}\n }\n \n if(backgroundColor.isPresent()) {\n \tColor color = backgroundColor.get();\n \tMatcher matcher = BACKGROUND_COLOR_PATTERN.matcher(css);\n \t\tif (matcher.find()) {\n \t\t\tStringBuilder sb = new StringBuilder(css);\n \t\t\tcss = sb.replace(matcher.start(1), matcher.end(1), cssColor(color)).toString();\n \t\t}else {\n \t\t\t//css += \"-rtfx-background-color: \" + cssColor(color) + \";\";\n \t\t\tcss += \"-fx-background-color: \" + cssColor(color) + \";\";\n \t\t}\n }\n \n \treturn css;\n }",
"private void saveStringToFile(String s) {\n try {\n FileWriter saveData = new FileWriter(SAVE_FILE);\n BufferedWriter bW = new BufferedWriter(saveData);\n bW.write(s);\n bW.flush();\n bW.close();\n } catch (IOException noFile) {\n System.out.println(\"SaveFile not found.\");\n }\n }",
"public void applyCss(String path){\n if (alert.isShowing()){\n throw new AlertNotEditableException(\"Alert not editable while it is showing\");\n }\n DialogPane dialogPane = alert.getDialogPane();\n dialogPane.getStylesheets().add(getClass().getResource(path).toExternalForm());\n dialogPane.getStyleClass().add(path.replace(\".css\", \"\")); // Shouldn't have extension\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create remote window animation from the currently running app to the overview panel. | @Override
public AnimatorSet createWindowAnimation(RemoteAnimationTargetCompat[] targetCompats) {
if (mRecentsView != null) {
mRecentsView.setRunningTaskIconScaledDown(true);
}
AnimatorSet anim = new AnimatorSet();
anim.addListener(new AnimationSuccessListener() {
@Override
public void onAnimationSuccess(Animator animator) {
mHelper.onSwipeUpToRecentsComplete(mActivity);
if (mRecentsView != null) {
mRecentsView.animateUpRunningTaskIconScale();
}
}
});
if (mActivity == null) {
Log.e(TAG, "Animation created, before activity");
anim.play(ValueAnimator.ofInt(0, 1).setDuration(RECENTS_LAUNCH_DURATION));
return anim;
}
RemoteAnimationTargetSet targetSet =
new RemoteAnimationTargetSet(targetCompats, MODE_CLOSING);
// Use the top closing app to determine the insets for the animation
RemoteAnimationTargetCompat runningTaskTarget = targetSet.findTask(mTargetTaskId);
if (runningTaskTarget == null) {
Log.e(TAG, "No closing app");
anim.play(ValueAnimator.ofInt(0, 1).setDuration(RECENTS_LAUNCH_DURATION));
return anim;
}
final ClipAnimationHelper clipHelper = new ClipAnimationHelper(mActivity);
// At this point, the activity is already started and laid-out. Get the home-bounds
// relative to the screen using the rootView of the activity.
int loc[] = new int[2];
View rootView = mActivity.getRootView();
rootView.getLocationOnScreen(loc);
Rect homeBounds = new Rect(loc[0], loc[1],
loc[0] + rootView.getWidth(), loc[1] + rootView.getHeight());
clipHelper.updateSource(homeBounds, runningTaskTarget);
Rect targetRect = new Rect();
mHelper.getSwipeUpDestinationAndLength(mActivity.getDeviceProfile(), mActivity, targetRect);
clipHelper.updateTargetRect(targetRect);
clipHelper.prepareAnimation(mActivity.getDeviceProfile(), false /* isOpening */);
ClipAnimationHelper.TransformParams params = new ClipAnimationHelper.TransformParams()
.setSyncTransactionApplier(new SyncRtSurfaceTransactionApplierCompat(rootView));
ValueAnimator valueAnimator = ValueAnimator.ofFloat(0, 1);
valueAnimator.setDuration(RECENTS_LAUNCH_DURATION);
valueAnimator.setInterpolator(TOUCH_RESPONSE_INTERPOLATOR);
valueAnimator.addUpdateListener((v) -> {
params.setProgress((float) v.getAnimatedValue());
clipHelper.applyTransform(targetSet, params);
});
if (targetSet.isAnimatingHome()) {
// If we are animating home, fade in the opening targets
RemoteAnimationTargetSet openingSet =
new RemoteAnimationTargetSet(targetCompats, MODE_OPENING);
TransactionCompat transaction = new TransactionCompat();
valueAnimator.addUpdateListener((v) -> {
for (RemoteAnimationTargetCompat app : openingSet.apps) {
transaction.setAlpha(app.leash, (float) v.getAnimatedValue());
}
transaction.apply();
});
}
anim.play(valueAnimator);
return anim;
} | [
"private void animateWindow() {\n AnimationTimer windowTimer = new AnimationTimer() {\n private long lastTime = 0;\n\n @Override\n public void handle(long now) {\n if (lastTime == 0) {\n lastTime = now;\n return;\n }\n\n double timeDelta = (now - lastTime) * 1e-9;\n game.updateWindow(timeDelta);\n\n // Set lastTime to now\n lastTime = now;\n }\n };\n\n windowTimer.start();\n }",
"void switchToNewWindow();",
"public void applicationWillDisplayDesktopPane() {}",
"private static void setupAppWindow() { \r\n EventQueue.invokeLater(new Runnable() {\r\n public void run() {\r\n try {\r\n WindowUI appWindow = new WindowUI();\r\n appWindow.setVisible(true);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n });\r\n }",
"private void createInternalFrames() {\n\t\tworldWindow = new WorldWindow(world);\n\t\t((BasicInternalFrameUI) worldWindow.getUI()).setNorthPane(null);\n\t\tthis.add(worldWindow);\n\n\t\tworldWindow.show();\n\t\tworldWindow.setLocation(0, 0);\n\t\tworldWindow.setBorder(BorderFactory.createLineBorder(Color.WHITE, 5));\n\t\tworldWindow.setCursor(getToolkit().createCustomCursor(new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB), new Point(), null));\n\n\t\tif (this.debugMode) {\n\t\t\tagentInspector = createAgentInspector(simulator, 20, 20);\n\t\t\tcontrolWindow = new ControlWindow(world, simulator);\n\t\t\tdesktop.add(controlWindow);\n\t\t\tcontrolWindow.show();\n\t\t\tcontrolWindow.setLocation(300, 450);\n\t\t}\n\t}",
"private void displayWindow() {\n\t\t\n\t\tfinal String methodName = \"displayWindow\";\n\t\tGUILogger.entering(CLASS_NAME, methodName);\n\t\t\n\t\tpack();\n GUIUtils.centerOnScreen(this);\n setVisible(true);\n \n GUILogger.exiting(CLASS_NAME, methodName);\n \n\t}",
"@FXML\n private void displayInternalBrowser(ActionEvent event) {\n try {\n final Parent browser = FXMLLoader.load(SlideshowFXController.class.getResource(\"/com/twasyl/slideshowfx/fxml/InternalBrowser.fxml\"));\n final var tab = new Tab(\"Internal browser\", browser);\n\n this.openedPresentationsTabPane.getTabs().addAll(tab);\n this.openedPresentationsTabPane.getSelectionModel().select(tab);\n } catch (IOException e) {\n LOGGER.log(SEVERE, \"Can not open internal browser\", e);\n }\n }",
"public void enlargeSocialWindowWithoutAnimation();",
"void startNewGame() {\n // Set the content to be a new GamePane, so the \n window.setContent(new GamePane());\n }",
"void showApplication()\n {\n logIt(\"DvrExerciser.showApplication()\");\n\n m_scene.show();\n m_scene.repaint();\n m_scene.requestFocus();\n\n // start presenting 'live' content\n OperationalState.setLiveOperationalState();\n\n repaint();\n }",
"void launchActivityWithAnimation();",
"public void showSmsHandyOverview() {\r\n try {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(MainApp.class.getResource(\"view/SMS-HandyOverview.fxml\"));\r\n AnchorPane smsHandyOverview = (AnchorPane) loader.load();\r\n rootPane.setCenter(smsHandyOverview);\r\n\r\n SMS_HandyOverviewController controller = loader.getController();\r\n controller.setMainApp(this);\r\n controller.setSettings();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void showFilmOverview() {\r\n try {\r\n // Load film overview.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(FilmApp.class.getResource(\"view/FilmOverview.fxml\"));\r\n AnchorPane filmOverview = (AnchorPane) loader.load();\r\n\r\n // Set film overview into the center of root layout.\r\n rootLayout.setCenter(filmOverview);\r\n\r\n // Give the controller access to the FilmApp.\r\n FilmOverviewController controller = loader.getController();\r\n controller.setFilmApp(this);\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"void showMonitoringView();",
"public Display() {\n workSpaces = new ArrayList<>();\n makeWorkSpace(\"Insomnia\");\n showingFrame.setVisible(true);\n }",
"public void createAndShowFrame() {\n\t\tgetSwingRenderer().showFrame(createFrame());\n\t}",
"public static void newUpdateScreen(){\n updater = new StatusUpdater(true);\n updater.setVisible(true);\n }",
"private void flashWindow(){\r\n flashWindow=new JFrame(\"Organizer\");\r\n flashWindow.setLayout(null);\r\n createFlashPanel(flashWindow);\r\n flashWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n flashWindow.setSize(getWidth()/2, getHeight()/2);\r\n flashWindow.setLocation(getWidth()/4, getHeight()/4);\r\n flashWindow.setResizable(false);\r\n flashWindow.setVisible(true);\r\n }",
"public void displayWelcomePane() {\n mainWindow.setContent(new WelcomePane());\n console = null;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Removes the entry with configuration string config from the dictionary. Will throw a DictionaryException (see below) if the configuration is not in the dictionary. | public void remove(String config) throws DictionaryException {
int searchNum = hash(config); //uses the hash function to store the hash index for the key we want to remove
Node<Configuration> removeMe = dict[searchNum];
if(removeMe == null) { //if the key is empty or non existence
throw new DictionaryException("This configuration cannot be removed.");
}
else {
while(removeMe != null) {
if(removeMe.getData().getStringConfiguration().equals(config)) { //if we have found a match
if (removeMe.getPrev() == null && removeMe.getNext() == null) { //if key before it and key after it are both null
dict[searchNum] = null;
break;
}
else if (removeMe.getPrev() == null && removeMe.getNext() != null) { //iff only the key after is null
dict[searchNum] = removeMe.getNext();
removeMe.getNext().setPrev(null);
break;
}
else { //otherwise if there are keys prev + next
removeMe.getPrev().setNext(removeMe.getNext());
removeMe.getNext().setPrev(removeMe.getPrev());
while (removeMe.getPrev() != null) {
if (removeMe.getPrev().getPrev() == null) {
dict[searchNum] = removeMe.getPrev();
break;
}
}
}
}
else { removeMe = removeMe.getPrev(); }
}
}
} | [
"public void remove(String config) throws DictionaryException {\t\t\r\n\t\t// Calculate the position that the string configuration would be located using the hash function \r\n\t\tint position = createPosition(config);\r\n\t\tNode node;\r\n\t\tboolean check = true;\r\n\t\t// If there are no nodes at the position then throw Dictionary exception\r\n\t\tif (table[position] == null) {\r\n\t\t\tthrow new DictionaryException(\"Configuration is not in the Dictionary\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnode = table[position];\r\n\t\t\tif (node == null) {\r\n\t\t\t\tthrow new DictionaryException(\"Configuration is not in the Dictionary\");\r\n\t\t\t}\r\n\t\t\telse if (node.getNext() == null) {\r\n\t\t\t\ttable[position] = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (node.getData().getStringConfiguration().equals(config)) {\r\n\t\t\t\t\tcheck = false;\r\n\t\t\t\t}\r\n\t\t\t\t// Check all the nodes in the linked list to see which node the string is located in \r\n\t\t\t\t// If the node is not found, then throw DictionaryExeption \r\n\t\t\t\twhile (check) {\r\n\t\t\t\t\tnode = node.getNext();\r\n\t\t\t\t\tif (node == null) {\r\n\t\t\t\t\t\tthrow new DictionaryException(\"Configuration is not in the Dictionary\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (node.getData().getStringConfiguration().equals(config)) {\r\n\t\t\t\t\t\tcheck = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// When the node is found figure out where in the linked list it is (beginning, middle, end)\r\n\t\t\t\t// After that remove the node with the appropriate commands\r\n\t\t\t\tif (node.getPrevious()==null) {\r\n\t\t\t\t\ttable[position] = node.getNext();\r\n\t\t\t\t\tnode = node.getNext();\r\n\t\t\t\t\tnode.setPrevious(null);\r\n\t\t\t\t}\r\n\t\t\t\telse if (node.getNext() == null) {\r\n\t\t\t\t\tnode = node.getPrevious();\r\n\t\t\t\t\tnode.setNext(null);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tnode = node.getPrevious();\r\n\t\t\t\t\tnode.setNext(node.getNext().getNext());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void remove(String config) throws DictionaryException {\n\t\tif (this.find(config) == -1) { // uses find method to check if its there\n\t\t\tthrow new DictionaryException(\"Remove failed: Not found\");\n\t\t}\n\t\t\n\t\tint key = hashFunction(config);\n\t\tif (hashtable[key].getNodeEntry().getConfig().equals(config)) {\n\t\t\thashtable[key] = null;\n\t\t} else {\n\t\t\tNode currNode = hashtable[key];\n\t\t\twhile (true) {\n\t\t\t\tif (currNode.getNextNode() == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (currNode.getNextNode().getNodeEntry().getConfig().equals(config) && currNode.getNextNode().getNextNode() != null) {\n\t\t\t\t\tcurrNode.setNextNode(currNode.getNextNode().getNextNode());\n\t\t\t\t} else if (currNode.getNextNode().getNodeEntry().getConfig().equals(config) && currNode.getNextNode().getNextNode() == null) {\n\t\t\t\t\tcurrNode.setNextNode(null);\n\t\t\t\t}\n\t\t\t\tcurrNode = currNode.getNextNode();\n\t\t\t}\n\t\t\n\t\t}\n\t}",
"void removeConfiguration(String key);",
"public abstract void removeConfiguration(String key) throws Exception;",
"public void removeConfiguration()\n {\n String path = getSubstitutor().replace(pattern);\n configurationsMap.remove(path);\n }",
"FlexibleConfig removeConfig(SimpleUri configId);",
"public void remove(String key) throws DictionaryException{\n\t\n\tString stringToRemove = key;\t\t// set stringToRemove to the string to remove\n\tint hashToFind, doubleHashKeyValue;\n\tboolean found = false;\n\t\n\tnoOperationsSoFar++;\t\t// increment number of operations so far for calling remove\n\t\n\tStringHashCode sH = new StringHashCode(arraySize);\n\t\n\thashToFind = sH.giveCode(stringToRemove);\t\t// calculate hash code for string to remove\n\t\n\tif ( stringToRemove.equals(HashTable[hashToFind]) ) {\t\t// if the HashTable contains the string\n\t\t\n\t\tHashTable[hashToFind] = \"-----\";\t\t// insert '-----' into the index, to avoid errors when finding double hashed strings \n\t\t\n\t\tSystem.out.println(stringToRemove + \" has been removed from index \" + hashToFind);\n\t\t\n\t\tfound = true;\t\t// string was found and removed\n\t\n\t} else {\t\t// if the string was not found\n\t\t\n\t\t doubleHashKeyValue = doubleHash(hashToFind);\t\t// calculate double hash value for string\n\t\t\t \n\t\t\t\twhile (HashTable[hashToFind] != null) {\t\t// while HashTable index doesn't contain 'null'\n\t\t\t\t\t\n\t\t\t\t\thashToFind += doubleHashKeyValue;\t\t// increase hash code by the double hashed value\n\t\t\t\t\t\n\t\t\t\t\thashToFind %= arraySize;\t\t// if value reaches HashTable size, return to start of HashTable\n\t\t\t\t\t\n\t\t\t\t\tif ( stringToRemove.equals(HashTable[hashToFind]) ){\t\t// if the HashTable index contains the string to remove\n\t\t\t\t\t\t\n\t\t\t\t\t\tHashTable[hashToFind] = \"-----\";\t\t// insert '-----' into the index\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(stringToRemove + \" has been removed from index \" + hashToFind);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfound = true;\t\t// string was found and removed\n\t\t\t\t\t}\n\t\t\t\t}\n\t}\n\t\n\tif ( found == false)\t\t// if the string was not found\n\t\t\n\t\tthrow new DictionaryException(stringToRemove + \" does not exist\");\t\t// throw exception\n\t\n\t}",
"public abstract void deleteConfig(String configName) throws IOException;",
"public void removeCustomDictionay (final String customDictionary) {\n\t\tcustomDictionaries.remove(customDictionary);\n\t}",
"UserSettings remove(String key);",
"public void removeConfiguration(String id);",
"public void removeConfigPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_configPage);\r\n }",
"void removeKey(String section, String key);",
"@Test\n public void testRemoveNamedConfigurationAt()\n {\n AbstractConfiguration c = setUpTestConfiguration();\n config.addConfiguration(c, TEST_NAME);\n assertSame(\"Wrong config removed\", c, config.removeConfigurationAt(0));\n checkRemoveConfig(c);\n }",
"@Test\n public void testRemoveConfiguration()\n {\n AbstractConfiguration c = setUpTestConfiguration();\n config.addConfiguration(c);\n checkAddConfig(c);\n assertTrue(\"Config could not be removed\", config.removeConfiguration(c));\n checkRemoveConfig(c);\n }",
"void removeValue(String key);",
"@Test\n public void testRemoveConfigurationByName()\n {\n AbstractConfiguration c = setUpTestConfiguration();\n config.addConfiguration(c, TEST_NAME);\n assertSame(\"Wrong config removed\", c, config\n .removeConfiguration(TEST_NAME));\n checkRemoveConfig(c);\n }",
"@Test\n public void testRemoveConfigurationAt()\n {\n AbstractConfiguration c = setUpTestConfiguration();\n config.addConfiguration(c);\n assertSame(\"Wrong config removed\", c, config.removeConfigurationAt(0));\n checkRemoveConfig(c);\n }",
"private DictRemoveFunction() {\n functionDefinition = new FunctionDefinitionBuilder().setName(\"dict.remove\").setReturnType(DataType.DICTIONARY)\n .addParameter(\"__dict\", DataType.DICTIONARY)\n .addListVarargsParameter(\"__keys\").toFunctionDefinition();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get access to the packages list | public ArrayList<Package> getPackages() {
return packages;
} | [
"@Override\n\tpublic List<String> getListPackages() {\n\t\tlogger.log(Level.INFO, \"PackMan-CVMFS: Getting list of packages \");\n\n\t\tif (this.getHavePath()) {\n\t\t\tfinal String listPackages = SystemCommand.bash(alienv_bin + \" q --packman\").stdout;\n\t\t\treturn Arrays.asList(listPackages.split(\"\\n\"));\n\t\t}\n\n\t\treturn null;\n\t}",
"public List getPackageList()\n {\n return Collections.unmodifiableList(_objPackage);\n }",
"public List<Packages> getAllPackages();",
"@Override\n\tpublic List<String> getListInstalledPackages() {\n\t\tlogger.log(Level.INFO, \"PackMan-CVMFS: Getting list of packages \");\n\n\t\tif (this.getHavePath()) {\n\t\t\tfinal String listPackages = SystemCommand.bash(alienv_bin + \" q --packman\").stdout;\n\t\t\treturn Arrays.asList(listPackages.split(\"\\n\"));\n\t\t}\n\t\treturn null;\n\t}",
"List<String> getSystemPackages();",
"public List<ImportedPackage> getImportedPackages();",
"public List<ExportedPackage> getExportedPackages();",
"String getPackagesContents();",
"List<String> getManagedPackages();",
"public String[] getExportedPackages()\n {\n return exportedPackages;\n }",
"List<ApplicationPackageReference> applicationPackages();",
"List<ImportedPackage> getDynamicImportedPackages();",
"public Map<String, PackageDesc> getPackagesInstalled() {\n\teval(ANS + \"=pkg('list');\");\n\t// TBC: why ans=necessary??? without like pkg list .. bug? \n\tOctaveCell cell = get(OctaveCell.class, ANS);\n\tint len = cell.dataSize();\n\tMap<String, PackageDesc> res = new HashMap<String, PackageDesc>();\n\tPackageDesc pkg;\n\tfor (int idx = 1; idx <= len; idx++) {\n\t pkg = new PackageDesc(cell.get(OctaveStruct.class, 1, idx));\n\t res.put(pkg.name, pkg);\n\t}\n\treturn res;\n }",
"public Collection<Package> getPackages() {\r\n\t\treturn ws.getPackages();\r\n\t}",
"protected List<ReactPackage> getPackages() {\n @SuppressWarnings(\"UnnecessaryLocalVariable\")\n List<ReactPackage> packages = new PackageList(this).getPackages();\n // return Arrays.<ReactPackage>asList(\n // eg. new VectorIconsPackage()\n // Add new RNCameraPackage() to the list returned by the getPackages() method. Add a comma to the previous item if there's already something there.\n // new MainReactPackage(), // <---- add comma\n // new RNFSPackage() // <---------- add package\n // );\n return packages;\n }",
"MsixPackagesClient getMsixPackages();",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Package> list() {\r\n\t\tSession session = HibernateUtil.createSessionFactory();\r\n\t\tsession.beginTransaction();\r\n\t\tList<Package> packages = null;\r\n\t\ttry {\r\n\t\t\tpackages = (List<Package>) session.createQuery(\"from Package\").list();\r\n\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tsession.getTransaction().rollback();\r\n\t\t}\r\n\t\tsession.getTransaction().commit();\r\n\t\tsession.close();\r\n\t\treturn packages;\r\n\t}",
"private ArrayList<PInfo> getPackages() {\n\t\tArrayList<PInfo> apps = getInstalledApps(false); /* false = no system packages */\n\t\tfinal int max = apps.size();\n\t\tfor (int i=0; i<max; i++) {\n\t\t\tapps.get(i).getIcon();\n\t\t}\n\t\treturn apps;\n\t}",
"java.util.List<java.lang.String>\n getContainedPackageList();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a list of valid image extensions | static public List<String> getValidImageExtensions() {
final List<String> extensions = new ArrayList<>();
extensions.add(".jpg");
extensions.add(".jpeg");
extensions.add(".png");
extensions.add(".gif");
return extensions;
} | [
"public Set<String> getSupportedFileExtensions();",
"abstract protected String[] getRequiredExtensionNames();",
"Set<String> getAllowedExtensions();",
"String[] getFileExtensions();",
"static public List<String> getInvalidPageExtensions() {\r\n\t\tfinal List<String> invalidSuffixes = new ArrayList<>();\r\n\t\tinvalidSuffixes.add(\"css\");\r\n\t\tinvalidSuffixes.add(\"pdf\");\r\n\r\n\t\treturn invalidSuffixes;\r\n\t}",
"public String[] allowedExtensions()\n {\n String[] exts = new String[]{\".xml\"};\n return exts;\n }",
"private boolean isImageExtension(String extension) {\n\t\t\n\t\tString testExtension = extension.toLowerCase();\n\t\t\n\t\tfor(String validExtension : imageExtensions.split(\",\")) {\n\t\t\t\n\t\t\tif(testExtension.equals(validExtension)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"static public List<String> getInvalidImageSuffixs() {\r\n\t\t\r\n\t\tfinal List<String> invalidSuffixes = new ArrayList<>();\r\n\t\tinvalidSuffixes.add(\"spacer.gif\");\r\n\r\n\t\treturn invalidSuffixes;\r\n\t}",
"public Collection<@NonNull String> getFileExtensions();",
"public abstract String[] getExtensions();",
"public String[] getSupportedFileFormatsList();",
"public String[] getExtensions() {\n\t\treturn url.getExtensions();\n }",
"private void generateExtensionFilters() {\n\n String[] saveFormatOptions = ImageIO.getWriterFormatNames();\n List<Integer> used = new ArrayList<>(saveFormatOptions.length);\n\n Arrays.sort(saveFormatOptions);\n\n for(int i = 0; i < saveFormatOptions.length; i ++) {\n\n if(used.contains(i))\n continue;\n\n List<String> extensions = new ArrayList<>();\n extensions.add(\"*.\" + saveFormatOptions[i]);\n\n for(int j = i + 1; j < saveFormatOptions.length; j ++) {\n\n if(saveFormatOptions[i].toLowerCase().equals(saveFormatOptions[j].toLowerCase())) {\n\n extensions.add(\"*.\" + saveFormatOptions[j]);\n used.add(j);\n }\n }\n\n FileChooser.ExtensionFilter filter = new FileChooser.ExtensionFilter(saveFormatOptions[i].toUpperCase(), extensions);\n this.fileChooser.getExtensionFilters().add(filter);\n }\n }",
"private String[] getSupportedExtensions() {\n return new String[]{\"mp3\", \"wav\", \"3gpp\", \"3gp\", \"amr\", \"aac\", \"m4a\", \"ogg\"};\n }",
"public Set<String> getSupportedExtensions() {\n\t\tLogger.i(TAG, \"getSupportedExtensions value \" + extensions);\n\t\treturn extensions;\n\t}",
"String[] getSupportedMimeTypes();",
"public Boolean validExtension(String extension) {\n ArrayList<String> acceptedExtensions = new ArrayList<>();\n acceptedExtensions.add(\"obj\");\n acceptedExtensions.add(\"mtl\");\n// acceptedExtensions.add(\"md2\");\n// acceptedExtensions.add(\"g3d\");\n// acceptedExtensions.add(\"g3dt\");\n\n //For testing purposes\n acceptedExtensions.add(\"png\");\n acceptedExtensions.add(\"jpg\");\n\n Log.i(\"extract\",\"Extension: \"+extension);\n\n for(int i = 0; i < acceptedExtensions.size(); i++) {\n if(extension.equals(acceptedExtensions.get(i)))\n return true;\n }\n return false;\n }",
"public String[] getAllInputExtensions();",
"HashMap<String, ArrayList<String>> getSupportedFiletypes();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field askPrice is set (has been assigned a value) and false otherwise | public boolean isSetAskPrice() {
return EncodingUtils.testBit(__isset_bitfield, __ASKPRICE_ISSET_ID);
} | [
"public boolean isSetPrice() {\n return this.price != null;\n }",
"public boolean isSetPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __PRICE_ISSET_ID);\n }",
"public boolean isSetPayPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __PAYPRICE_ISSET_ID);\n }",
"public boolean isSetPayPrice() {\n\t\treturn EncodingUtils.testBit(__isset_bitfield, __PAYPRICE_ISSET_ID);\n\t}",
"public boolean isSetDealPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __DEALPRICE_ISSET_ID);\n }",
"public boolean isSetMarketPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __MARKETPRICE_ISSET_ID);\n }",
"public boolean hasPrice() {\n return price != UNDEFINED;\n }",
"public boolean isSetBidPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE_ISSET_ID);\n }",
"public boolean isSetCouponPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __COUPONPRICE_ISSET_ID);\n }",
"public boolean isSetShipPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __SHIPPRICE_ISSET_ID);\n }",
"public boolean isSetLimitPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __LIMITPRICE_ISSET_ID);\n }",
"public boolean isSetPriceLimit();",
"public boolean isSetTradePrice() {\n return EncodingUtils.testBit(__isset_bitfield, __TRADEPRICE_ISSET_ID);\n }",
"public boolean isSetBalancePrice() {\n return EncodingUtils.testBit(__isset_bitfield, __BALANCEPRICE_ISSET_ID);\n }",
"public boolean isSetDisplayPrice() {\n return this.displayPrice != null;\n }",
"public boolean isSetTeamPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __TEAMPRICE_ISSET_ID);\n }",
"public boolean isSetUsedRedbagPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __USEDREDBAGPRICE_ISSET_ID);\n }",
"public boolean isSetTaxPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __TAXPRICE_ISSET_ID);\n }",
"public boolean isSetDisplayprice() {\n return __isset_bit_vector.get(__DISPLAYPRICE_ISSET_ID);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Employee Setters and Getters sets an employee as the instance variable selectedEmployee | public void setEmployee(int idNum)
{
try
{
this.selectedEmployee = this.selectedEmployee.getEmployee(idNum);
}
catch (Exception anExcept)
{
System.out.print("setSelectedEployee Error: " + anExcept);
}
} | [
"public void setEmployee(Employee employee) {\n this.employee = employee;\n }",
"public void setEmployee1(Employee e) {\n employee1 = e;\n }",
"public void setEmployee3(Employee e) {\n employee3 = e;\n }",
"public void setEmployee2(Employee e) {\n employee2 = e;\n }",
"private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void setEmployeeID(int employeeID) {\n this.employeeID = employeeID;\n }",
"private void modifyEmployee() {\n String hourlyStatusSelection = (String) employeeHourlyField.getSelectedItem();\n String newEmployeeName = employeeNameField.getText();\n boolean hourlyStatus = hourlyStatusSelection.equals(\"Hourly\") ? true : false;\n int newEmployeeWage = (Integer) employeeWageField.getValue();\n Employee employeeToModify = new Employee(newEmployeeName, hourlyStatus, newEmployeeWage);\n boolean nameTaken = selectedEmployee.getName().equals(employeeNameField.getText());\n boolean listContainsEmployee = employeeList.contains(employeeToModify);\n if (!nameTaken && listContainsEmployee) {\n JOptionPane.showMessageDialog(new JPanel(), \"ERROR: Employee with same name already exists\");\n } else {\n selectedEmployee.reset(employeeNameField.getText(), hourlyStatus,\n (Integer) employeeWageField.getValue());\n }\n }",
"public void setEmployees(ArrayList<Employee> employees) {\n\t\tthis.employees = employees;\n\t}",
"public void setEmployeeId(long employeeId) {\n this.employeeId = employeeId;\n }",
"public void setEmployees(int _employees){\n employees = _employees;\n }",
"public void setEmployees(java.lang.String employees) {\n this.employees = employees;\n }",
"public void setEmployeeName(String employeeName) {\n this.employeeName = employeeName;\n }",
"public void setEmployeeOfTheMonth(Employee employeeOfTheMonth) {\n this.employeeOfTheMonth = employeeOfTheMonth;\n }",
"public Employees() {\r\n this.employees = new ArrayList<>();\r\n }",
"public int getID(){ // begin getter\n \n return this.ID; // return employee's ID\n \n }",
"public EmployeeModel getEmployee(UUID employeeId) throws EwpException {\n Cursor cursor = dataDelegate.getEmployeeEntityAsResultSet(employeeId);\n if (cursor == null) {\n throw new EwpException(\"cursor is null at getEmployee EmployeeDataService\");\n }\n EmployeeModel viewEmployee = new EmployeeModel();\n viewEmployee = EmployeeModel.setViewEmployeeProperties(cursor);\n if (viewEmployee == null || viewEmployee.getEmployee() == null) {\n return null;\n }\n AddressDataService addService = new AddressDataService();\n // Finding employee self address.\n Address address = addService.getAddressFromSourceEntityIdAndType(employeeId, EDEntityType.EMPLOYEE.getId());\n if (address == null) {\n Log.d(this.getClass().getName(), \"Error to find employee Address\");\n }\n // Getting the address and map address information to ViewEmployee model object.\n viewEmployee.setAddressInfo(address);\n CommunicationDataService commService = new CommunicationDataService();\n // Getting the employee contact infromation and map contact information to ViewEmployee object.\n // Employee communication contact list like Work phone, Home phone, mobile email etc.\n List<Communication> communicationList = commService.getCommunicationListFromSourceEntityIdAndType(employeeId, EDEntityType.EMPLOYEE.getId());\n if (communicationList == null) {\n Log.d(this.getClass().getName(), \"Error to find employee Communication detail.\");\n }\n viewEmployee.setCommunicationList(communicationList);\n // Getting the emargency contact list and map these information to ViewEmployee object.\n EmployeeContactDataService emergencyContactService = new EmployeeContactDataService();\n List<EmployeeEmergencyContact> emergencyContact = emergencyContactService.getEmployeeContactDetailFromSourceEntityIdAndType(employeeId);\n viewEmployee.setEmployeeEmergencyContactDetail(emergencyContact);\n PFUserEntityLinkDataService pfService = new PFUserEntityLinkDataService();\n viewEmployee.setFollowUp(pfService.isEmployeeFollowing(employeeId));\n // Is logged in user following this employeeid.\n if (!EwpSession.getSharedInstance().getUserId().equals(viewEmployee.getEmployee().getTenantUserId())) {\n viewEmployee.setFavorite(pfService.isUserEntityLinkExist(employeeId, LinkType.FAVOURITE.getId()));\n }\n EmployeeGroupDataService grpDataService = new EmployeeGroupDataService();\n // Getting the list of teams, Fow which teams user is member.\n List<EditEmployeeTeam> resultTuple1 = grpDataService.getEmployeeTeamListAsEditEmployeeTeamFromEmployeeId(EwpSession.getSharedInstance().getTenantId(), employeeId);\n viewEmployee.setTeamNameList(resultTuple1);\n // Getting logged in user note for a employee.\n NoteDataService noteService = new NoteDataService();\n Note noteTuple = noteService.getNoteFromSourceEntityIdAndType(employeeId, EDEntityType.EMPLOYEE.getId(), EwpSession.getSharedInstance().getUserId());\n if (noteTuple != null) {\n viewEmployee.setNote(noteTuple);\n }\n return viewEmployee;\n }",
"public int getEmployeeId() {\r\n\t\r\n\t\treturn employeeId;\r\n\t}",
"public Set getEmployees() {\n return Collections.unmodifiableSet(employees);\n }",
"public EmployeeVOImpl getEmployeeVO() {\n return (EmployeeVOImpl) findViewObject(\"EmployeeVO\");\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method: getAllWeaponData Purpose: Get all of the weapon data. | public ArrayList<String> getAllWeaponData() throws SQLException
{
Weapon wep = new Weapon();
ArrayList<Weapon> weapons = null;
weapons = wep.getAllWeapons();
ArrayList<String> wepStrs = new ArrayList<String>();
for (Weapon weapon : weapons)
{
wepStrs.add(weapon.toString());
}
return wepStrs;
} | [
"public static List<Weapon> getAllWeapons() {\n\t\treturn allWeapons;\n\t}",
"public ArrayList<Weapon> getAllWeapons() {\n\t\tArrayList<Weapon> toReturn = new ArrayList<Weapon>(weapons);\n\t\treturn toReturn;\n\t}",
"public ArrayList<String> getAllWeapons(){\n \n ArrayList<String> weapons = new ArrayList<>();\n \n if(getWeaponObject() != null)\n weapons.add(getWeaponObject().itemName);\n \n if(backpack.backpackItems.get(\"Weapon\") != null)\n weapons.addAll(backpack.backpackItems.get(\"Weapon\"));\n \n return weapons; \n }",
"public ArrayList<Weapon> getWeaponList() {\n return new ArrayList<>(weaponList);\n }",
"public ArrayList<String> getAllShield(){\n \n ArrayList<String> weapons = new ArrayList<>();\n \n if(getShieldObject() != null)\n weapons.add(getShieldObject().itemName); \n \n if(backpack.backpackItems.get(\"Shield\") != null)\n weapons.addAll(backpack.backpackItems.get(\"Shield\"));\n \n return weapons; \n }",
"public ArrayList<String> getAllArmor(){\n \n ArrayList<String> weapons = new ArrayList<>();\n \n if(getArmorObject() != null)\n weapons.add(getArmorObject().itemName);\n \n if(backpack.backpackItems.get(\"Armor\") != null)\n weapons.addAll(backpack.backpackItems.get(\"Armor\"));\n \n return weapons; \n }",
"public ArrayList<String> getAllHelmets(){\n \n ArrayList<String> weapons = new ArrayList<>();\n \n if(getHelmetObject() != null)\n weapons.add(getHelmetObject().itemName);\n \n if(backpack.backpackItems.get(\"Helmet\") != null)\n weapons.addAll(backpack.backpackItems.get(\"Helmet\"));\n \n return weapons; \n }",
"public ArrayList<String> getAllRing(){\n \n ArrayList<String> weapons = new ArrayList<>();\n \n if(getRingObject() != null)\n weapons.add(getRingObject().itemName);\n \n if(backpack.backpackItems.get(\"Ring\") != null)\n weapons.addAll(backpack.backpackItems.get(\"Ring\"));\n \n return weapons; \n }",
"public ArrayList<WeaponClient> getWeapons() {\n return weapons;\n }",
"public static ArrayList<Allergy> findAll(Context iContext) throws MapperException\n {\n try\n {\n ArrayList<ArrayList<String>> wValuesTable = AllergiesTDG.selectAll(iContext);\n ArrayList<Allergy> wStoredAllergies = new ArrayList<Allergy>(wValuesTable.size());\n for (int i = 0; i < wValuesTable.size(); ++i)\n {\n ArrayList<String> values = wValuesTable.get(i);\n Allergy storedAllergy;\n Long id = Long.valueOf(values.get(0));\n String allergy = values.get(1);\n String reaction = values.get(2);\n String severity = values.get(3);\n\n storedAllergy = new Allergy(id, allergy, reaction, severity);\n wStoredAllergies.add(storedAllergy);\n }\n return wStoredAllergies;\n } \n catch (PersistenceException e)\n {\n throw new MapperException(\n \"The Mapper failed to obtain the Allergy readings from the persistence layer. The TDG returned the following error: \"\n + e.getMessage());\n } \n catch (Exception e)\n {\n throw new MapperException(\n \"The mapper failed to complete an operation for the following unforeseen reason: \"\n + e.getMessage());\n }\n }",
"public List<Item> getAllEquippable()\n {\n return equippable;\n }",
"@Override\n\t@Transactional(readOnly = true)\n\tpublic List<AllergyDTO> findAll() {\n\t\tLOGGER.debug(\"Request to get all Allergys\");\n\t\treturn allergyRepository.findAllByOrderByIdDesc().stream()\n\t\t\t\t.map(allergyMapper::allergyToAllergyDTO)\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"public Set<WeaponToken> getWeapons() {\n\t\treturn new HashSet<WeaponToken>(weapons);\n\t}",
"public List<Integer> getPurchasedWeapons() {\r\n\t\treturn collectionManager.getPurchasedWeapons();\r\n\t}",
"@GetMapping(\"/weapons\")\n @Timed\n public ResponseEntity<List<WeaponDTO>> getAllWeapons(WeaponCriteria criteria, Pageable pageable) {\n log.debug(\"REST request to get Weapons by criteria: {}\", criteria);\n Page<WeaponDTO> page = weaponQueryService.findByCriteria(criteria, pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/weapons\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"public WeaponDetails[] getWeaponsOnSquare() {\n return this.weaponsOnSquare;\n }",
"public List<IWeapon> getWeaponsInventory(){\n return weaponsInventory;\n }",
"public WeaponItem getWeapon(){\n \treturn equippedWeapon;\n }",
"@Override\n\tpublic ServiceResponse<Collection<FuelStation>> getAll() {\n\n\t\tlog.debug(\"Getting all fuelstation details\");\n\t\tServiceResponse<Collection<FuelStation>> response = new ServiceResponse<>();\n\t\ttry {\n\t\t\tCollection<FuelStation> fuelstationDetails = fuelStationRepo.findAll();\n\t\t\tresponse.setData(fuelstationDetails);\n\t\t} catch (Exception exception) {\n\t\t\tresponse.setError(EnumTypeForErrorCodes.SCUS804.name(), EnumTypeForErrorCodes.SCUS804.errorMsg());\n\t\t\tlog.error(utils.toJson(response.getError()), exception);\n\t\t}\n\t\treturn response;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
write edge message (async) | @Override
public EdgeResult write(EdgeMessage msg) throws Exception {
writeAsyncValue(getNodeInstance(), msg).thenAccept(status -> {
Optional.ofNullable(status).ifPresent(value -> {
EdgeEndpointInfo epInfo =
new EdgeEndpointInfo.Builder(msg.getEdgeEndpointInfo().getEndpointUri())
.setFuture(msg.getEdgeEndpointInfo().getFuture()).build();
EdgeMessage inputData = new EdgeMessage.Builder(epInfo)
.setMessageType(EdgeMessageType.GENERAL_RESPONSE)
.setResponses(newArrayList(new EdgeResponse.Builder(msg.getRequest().getEdgeNodeInfo(),
msg.getRequest().getRequestId())
.setMessage(new EdgeVersatility.Builder(status).build()).build()))
.build();
ProtocolManager.getProtocolManagerInstance().getRecvDispatcher().putQ(inputData);
});
});
return new EdgeResult.Builder(EdgeStatusCode.STATUS_OK).build();
} | [
"public void writeMessage(Message message) throws IOException;",
"@Override\r\n\tpublic void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {\r\n\t\tReferenceCountUtil.release(msg);\t// directly discard all writen data.\r\n\t\tpromise.setSuccess();\t// !!! notify the ChannelPromise\r\n\t}",
"@Override\n public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {\n if (writerIdleTimeNanos > 0 || allIdleTimeNanos > 0) {\n ctx.write(msg, promise.unvoid()).addListener(writeListener);\n } else {\n ctx.write(msg, promise);\n }\n }",
"public static void writeEdge(Edge<Building> edge)\n\t{\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(\"data/Edge.dat\");\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\t// write object to file\n\t\t\toos.writeObject(edge);\n\t\t\tSystem.out.println(\"Done\");\n\t\t\t// closing resources\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sendWrite() throws IOException, SocketTimeoutException {\n System.out.println(\"[Node] Send \" + WRITE);\n try {\n String message = this.id + \" \" + WRITE + \" \" + StringGenerator.generate();\n SocketHelper.sendMessage(Constants.ARCHIVE_HOST, Constants.ARCHIVE_PORT, message);\n SocketHelper.receiveMessage(Constants.MESSAGE_PORT, 0);\n\n } catch (Exception e) {\n System.out.println(\"[Node] Error on sendWrite, \" + e.getMessage());\n }\n }",
"public void write(String msg) {\n\t\tchannel.setMsg(PrettyPrinter.format(msg, this));\n\t\tchannel.tell();\n\t\tCOMMLOG.info(\"wrote to client: \" + msg);\n\t}",
"private void onWriteMsg(Message.WriteMsg msg) {\n ActorRef server = mapServerByKey.get(msg.key / 10);\n msg.transactionID = mapClient2Transaction.get(getSender());\n server.tell(msg, getSelf());\n }",
"public void write(byte[] out) {\n \tmConnectedThread.write(out);\n }",
"void sendAsync(Message message);",
"private void sendMessage(ChatMessage msg) throws IOException {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n sOutput.close();\n sInput.close();\n e.printStackTrace();\n }\n //sOutput.flush();\n }",
"public void sendMsgToClient() {\n\n try {\n\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\n Log.d(TAG, \"The transmitted data:\" + msg);\n\n writer.println(msg);\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }",
"public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private final void writeMessage(Message out) throws IOException{\n\n mOutStream.writeObject(out);\n }",
"private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }",
"public void write(String message) {\n System.out.println(\"Sent \" + message + \" to client \" + client + \".\");\n out.println(message);\n }",
"public void writeMessage(Message message) throws IOException {\n synchronized (out) {\n serializer.serialize(message, out);\n }\n }",
"public void write(String message)\n {\n this.writer.println(message);\n //\n System.out.println(\"Sending message to server from client:\"+message);\n //\n this.writer.flush();\n }",
"private void sendMessage(ChatMessage msg) \r\n {\r\n try \r\n {\r\n sOutput.writeObject(msg);\r\n } \r\n catch (IOException e) \r\n {\r\n e.printStackTrace();\r\n }\r\n }",
"private void _write( int[] message )\n {\n // System.out.print(\"_write:\" + message[0] );\n // for( int i=1; i<message.length; i++ )\n // System.out.print( \",\" + message[i] );\n // System.out.println();\n // copy ints from message to an array of bytes\n byte[] byteString = new byte[ message.length ];\n for( int i=0; i<message.length; i++ )\n byteString[i] = (byte)(message[i] & 0xff);\n\n // send message to the robot\n\n // write string to serial port\n try {\n _outputStream.write(byteString);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the Machine for searched type | public String getProdMachine(String mType, int nr)
{
int cnt = 0;
for (String s : fc.machineMap.keySet()) //iterate through machines
{
Cell cell = fc.machineMap.get(s); //get Cell of act. machine
if (cell.getTeam() == JobController.TEAM)//one of our Cell?
{
String typ = cell.getmTyp();
if ((typ != null) && (typ.equals(mType))) //compare searched Type
{
cnt++;
if (nr == cnt)
{
return s; //return corr. machine
}
}
}
}
return null; //nothing found/error
} | [
"MachineType getType();",
"java.lang.String getMachineType();",
"public String getMachineType() {\n return machineType;\n }",
"Computer getComputer(ComputerType type, String model, String cores, String memory, String disk);",
"public String getMachineType() {\n return machineType;\n }",
"public Machine machine() {\n return machine;\n }",
"public static MachineType getForValue(long value) {\n for (MachineType machine : values()) {\n if (machine.getValue() == value) {\n return machine;\n }\n }\n throw new IllegalArgumentException(\"couldn't match machine type to value \"\n + value);\n }",
"com.google.protobuf.ByteString getMachineTypeBytes();",
"Machine createMachine();",
"public Topic getInstanceOfBy(String name, Topic type){\n\t\tTopic curI;\n\t\tIterator<Topic> i = this.getInstancesOf(type).iterator();\n\t\twhile(i.hasNext()){\n\t\t\tcurI = i.next();\n\t\t\tif(curI.getTopicNames().iterator().next().getValue().equals(name))\n\t\t\t\treturn curI;\n\t\t}\n\t\treturn null;\n\t}",
"static Thing lookup(String gType) {\n Thing stored;\n \n stored = (Thing) things.get(gType);\n if (stored == null) {\n throw new IllegalStateException(\"\\nYou've asked for the Thing corresponding to \\\"\" + gType\n + \"\\\" but it isn't registered.\");\n }\n \n return stored;\n }",
"private Machine getMachineOrFail(String machineId) {\n for (Machine machine : listMachines()) {\n if (machine.getId().equals(machineId)) {\n return machine;\n }\n }\n throw new NotFoundException(String.format(\"no machine with id '%s' found in cloud pool\", machineId));\n }",
"private void getOutputMachine(){\n switch(name){\n case A:\n outputMachine = Tiles.B;\n break;\n case B:\n outputMachine = Tiles.C;\n break;\n case C:\n outputMachine = Tiles.D;\n break;\n case D:\n outputMachine = Tiles.E;\n break;\n case E:\n outputMachine = Tiles.EMPTY;\n break;\n case EMPTY:\n outputMachine = null;\n break;\n }\n }",
"private TYPE getType(final String type) {\n String temp = type.replaceAll(\"-\", \"_\");\n TYPE answer = Arrays.stream(\n TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(TYPE.unknown);\n return answer;\n }",
"public Tower_Type getTowerTypeByName(String name){\n for(int i = 0; i < this.typeList.size(); i++){\n if(this.typeList.get(i).getName().equals(name)){\n return this.typeList.get(i);\n }\n }\n return null;\n }",
"@java.lang.Override\n public java.lang.String getMachineType() {\n java.lang.Object ref = machineType_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n machineType_ = s;\n return s;\n }\n }",
"public IType findType(String name);",
"Food getByType(String type);",
"private void getMatchType(int type) {\n if (type == 1) {\n matcher = new MatchByName();\n }\n else if (type == 2) {\n matcher = new MatchByMother();\n }\n else if (type == 3) {\n matcher = new MatchByIdentifiers();\n }\n else {\n System.err.println(\"Invalid Match Selection\\n\" +\n \"Please select a number 1-3\");\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get performance counter 0. | public static int performanceCountGet() { return 0; } | [
"public Counter() {\r\n value = 0;\r\n }",
"public static void setCounterToZero() {\n\t\tcounter = 0;\n\t}",
"private void zeroCounters() {\n\t\tfinal String COUNT_ZERO = \"count zero\";\n\t\tthis.vme.sendMessage(COUNT_ZERO);\n\t}",
"public Counter() {\n this.count = 0;\n }",
"long getZeroCountInt();",
"public void getPerfCounter()\r\r\n throws Exception\r\r\n {\r\r\n assertNotNull(this.beginTime,\r\r\n \"beginTime is null, it needs to be initialized.\");\r\r\n assertNotNull(this.endTime,\r\r\n \"endtime is null, it needs to be initialized.\");\r\r\n assertNotNull(this.refreshRate,\r\r\n \"refreshRate is null, it needs to be initialized.\");\r\r\n assertNotNull(this.metrics,\r\r\n \"metrics is null, it needs to be initialized.\");\r\r\n int length = this.metrics.size();\r\r\n int[] counterIds = new int[length];\r\r\n for (int i = 0; i < length; i++) {\r\r\n counterIds[i] = this.metrics.elementAt(i).getCounterId();\r\r\n }\r\r\n Vector<PerfCounterInfo> perfCounterInfos =\r\r\n this.perf.getPerfCounter(this.perfMgrMor);\r\r\n assertTrue((perfCounterInfos != null && !perfCounterInfos.isEmpty()),\r\r\n \"queryCounterByLevel return null or empty.\");\r\r\n boolean status = true;\r\r\n for (int counterId : counterIds) {\r\r\n boolean matched = false;\r\r\n for (PerfCounterInfo perfCounterInfo : perfCounterInfos) {\r\r\n if (counterId == perfCounterInfo.getKey()) {\r\r\n matched = true;\r\r\n break;\r\r\n }\r\r\n }\r\r\n status &= matched;\r\r\n }\r\r\n\r\r\n assertTrue(status, \"getPerfCounter test failed\");\r\r\n }",
"public Counter()\n {\n this(0);\n }",
"public Counter() {\n mCount = 0;\n }",
"public BasicCounter() {\n count = 0;\n }",
"long getCallCounter();",
"public Counter() {}",
"public String getCounterReset();",
"public int getUsageCounter() {\n\t\treturn usageCounter.get();\n\t}",
"long getGen0CollectCount();",
"public long getZeroCountInt() {\n if (zeroCountCase_ == 6) {\n return (java.lang.Long) zeroCount_;\n }\n return 0L;\n }",
"public Counter createCounter() {\n return new CounterImpl(initialValue);\n }",
"public long get_counter() {\n return (long)getUIntBEElement(offsetBits_counter(), 32);\n }",
"@java.lang.Override\n public long getZeroCountInt() {\n if (zeroCountCase_ == 6) {\n return (java.lang.Long) zeroCount_;\n }\n return 0L;\n }",
"private static void getPerfCounters() {\n\t\ttry {\n\t\t\t// Create Property Spec\n\t\t\tPropertySpec propertySpec = new PropertySpec();\n\t\t\tpropertySpec.setAll(Boolean.FALSE);\n\t\t\tpropertySpec.setPathSet(new String[] { \"perfCounter\" });\n\t\t\tpropertySpec.setType(\"PerformanceManager\");\n\t\t\tPropertySpec[] propertySpecs = new PropertySpec[] { propertySpec };\n\n\t\t\t// Now create Object Spec\n\t\t\tObjectSpec objectSpec = new ObjectSpec();\n\t\t\tobjectSpec.setObj(PERF_MGR);\n\t\t\tObjectSpec[] objectSpecs = new ObjectSpec[] { objectSpec };\n\n\t\t\t// Create PropertyFilterSpec using the PropertySpec and ObjectPec\n\t\t\t// created above.\n\t\t\tPropertyFilterSpec propertyFilterSpec = new PropertyFilterSpec();\n\t\t\tpropertyFilterSpec.setPropSet(propertySpecs);\n\t\t\tpropertyFilterSpec.setObjectSet(objectSpecs);\n\n\t\t\tPropertyFilterSpec[] propertyFilterSpecs = new PropertyFilterSpec[] { propertyFilterSpec };\n\n\t\t\tObjectContent[] oCont = VIM_PORT.retrieveProperties(PROP_COLLECTOR,\n\t\t\t\t\tpropertyFilterSpecs);\n\t\t\tif (oCont != null) {\n\t\t\t\t// System.out.println(\"ObjectContent Length : \" + oCont.length);\n\t\t\t\tfor (ObjectContent oc : oCont) {\n\t\t\t\t\tDynamicProperty[] dps = oc.getPropSet();\n\t\t\t\t\tif (dps != null) {\n\t\t\t\t\t\tfor (DynamicProperty dp : dps) {\n\t\t\t\t\t\t\t// System.out.println(dp.getName() + \" : \" +\n\t\t\t\t\t\t\t// dp.getVal());\n\t\t\t\t\t\t\tPerfCounterInfo[] pciArr = ((ArrayOfPerfCounterInfo) dp\n\t\t\t\t\t\t\t\t\t.getVal()).getPerfCounterInfo();\n\t\t\t\t\t\t\tfor (PerfCounterInfo pci : pciArr) {\n\t\t\t\t\t\t\t\tString fullCounter = pci.getGroupInfo()\n\t\t\t\t\t\t\t\t\t\t.getKey()\n\t\t\t\t\t\t\t\t\t\t+ \".\"\n\t\t\t\t\t\t\t\t\t\t+ pci.getNameInfo().getKey()\n\t\t\t\t\t\t\t\t\t\t+ \".\" + pci.getRollupType().getValue();\n\t\t\t\t\t\t\t\t// System.out.println(pci.getNameInfo().getLabel()\n\t\t\t\t\t\t\t\t// + \" : \" + pci.getKey() + \" : \" +\n\t\t\t\t\t\t\t\t// pci.getUnitInfo().getLabel() + \" - \" +\n\t\t\t\t\t\t\t\t// fullCounter);\n\t\t\t\t\t\t\t\tSystem.out.println(fullCounter + \" - \"\n\t\t\t\t\t\t\t\t\t\t+ pci.getKey());\n\t\t\t\t\t\t\t\tcounterInfoMap.put(new Integer(pci.getKey()),\n\t\t\t\t\t\t\t\t\t\tpci);\n\t\t\t\t\t\t\t\tcounters.put(fullCounter, new Integer(pci\n\t\t\t\t\t\t\t\t\t\t.getKey()));\n\n\t\t\t\t\t\t\t\t// if\n\t\t\t\t\t\t\t\t// (pci.getNameInfo().getLabel().contains(\"CPU Used\"))\n\t\t\t\t\t\t\t\t// {\n\t\t\t\t\t\t\t\t// retVal = pci;\n\t\t\t\t\t\t\t\t// break;\n\t\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns array of references of sensor object. array is indexes by sensor indexes | public synchronized Sensor[] getSensorArray(){
return sensorArray;
} | [
"protected Sensor[] getSensorValues() { return sensors; }",
"public int[] getIndexReference(){\r\n \treturn this.index;\r\n \t}",
"IrSeekerIndividualSensor[] getIndividualSensors();",
"public List<Sensor> getSensorList()\n {\n return new ArrayList<>(sensors.values());\n }",
"@Override\n\tpublic Sensor[] getAllSensors() {\t\n\t\tArrayList<Sensor> sensorArray = new ArrayList<Sensor>();\n\t\t\n\t\tfor(Entry<String, ArrayList<Sensor>> entry : this.sensors.entrySet()) {\n\t\t\tfor(Sensor thisSensor : entry.getValue()) {\n\t\t\t\tsensorArray.add(thisSensor);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ArrayList.toArray() didn't want to play ball.\n\t\tSensor[] sensorRealArray = new Sensor[sensorArray.size()];\n\t\t\n\t\treturn sensorArray.toArray(sensorRealArray);\n\t}",
"public List<SensorObject> getSensorData(){\n\t\t\n\t\t//Cleaning all the information stored\n\t\tthis.sensorData.clear();\n\t\t\n\t\t//Getting the information from the keyboard listener\n\t\tif(keyboardListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.keyboardListener.getKeyboardEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.keyboardListener.getKeyboardEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.keyboardListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse listener\n\t\tif(mouseListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseListener.getMouseEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseListener.getMouseEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse motion listener\n\t\tif(mouseMotionListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseMotionListener.getMouseMotionEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseMotionListener.getMouseMotionEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseMotionListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse wheel listener\n\t\tif(mouseWheelListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseWheelListener.getMouseWheelEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseWheelListener.getMouseWheelEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseWheelListener.clearEvents();\n\t\t}\n\t\t\n\t\t//If we want to write a JSON file with the data\n\t\tif(Boolean.parseBoolean(this.configuration.get(artie.sensor.common.enums.ConfigurationEnum.SENSOR_FILE_REGISTRATION.toString()))){\n\t\t\tthis.writeDataToFile();\n\t\t}\n\t\t\n\t\treturn this.sensorData;\n\t}",
"public Sensor getSensor(int index) {\r\n\t\treturn sensors.get(index);\r\n\t}",
"public com.walgreens.rxit.ch.cda.POCDMT000040Reference[] getReferenceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(REFERENCE$34, targetList);\n com.walgreens.rxit.ch.cda.POCDMT000040Reference[] result = new com.walgreens.rxit.ch.cda.POCDMT000040Reference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"double[] getReferenceValues();",
"public org.dhis2.ns.schema.dxf2.IndicatorRefDocument.IndicatorRef[] getIndicatorRefArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(INDICATORREF$0, targetList);\n org.dhis2.ns.schema.dxf2.IndicatorRefDocument.IndicatorRef[] result = new org.dhis2.ns.schema.dxf2.IndicatorRefDocument.IndicatorRef[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"private synchronized int[] _getAll()\n {\n _lastSensors = _get( GET_ALL, 11 );\n return _lastSensors;\n }",
"public noNamespace.MeasurementDocument.Measurement[] getMeasurementArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(MEASUREMENT$0, targetList);\r\n noNamespace.MeasurementDocument.Measurement[] result = new noNamespace.MeasurementDocument.Measurement[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public Sensor getSensor (int i) {\n \n return (Sensor) this.map.get(i).get(0);\n }",
"public Map<ISensorPort, Sensor> getSensors() {\n return this.sensors;\n }",
"public FactoryElementStorage<?> getIndices() {\n return mFactoryIndices;\n }",
"public org.dhis2.ns.schema.dxf2.IndicatorRefDocument.IndicatorRef getIndicatorRefArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.IndicatorRefDocument.IndicatorRef target = null;\n target = (org.dhis2.ns.schema.dxf2.IndicatorRefDocument.IndicatorRef)get_store().find_element_user(INDICATORREF$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }",
"protected String[] getSensorValues() {\r\n\t\t// FL, FM, FR, RB, RF, LF\r\n\t\tString[] sensorValues = sensor.getAllSensorsValue(this.x, this.y, getDirection());\r\n\t\treturn sensorValues;\r\n\t}",
"public static boolean[] getSensorStates() {\n\t\tboolean[] retVal = new boolean[mSensors.size()];\n\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tretVal[x] = mSensors.get(x).mEnabled;\n\t\t}\n\n\t\treturn retVal;\n\t}",
"public interface ArrayIndexes {\n\n\t/**\n\t * Index of gyro sensor\n\t */\n\tstatic final int GYRO_SENS = 1;\n\t/**\n\t * Index of infreared sensor\n\t */\n\tstatic final int IR_SENS = 3;\n\t/**\n\t * Index of the left motor\n\t */\n\tstatic final int LEFT_MOTOR = 0;\n\t/**\n\t * Index of the right motor\n\t */\n\tstatic final int RIGHT_MOTOR = 1;\n\t/**\n\t * Index of the \"enter\" button\n\t */\n\tstatic final int ENTER_BUTTON = 0;\n\t/**\n\t * Index of the \"up\" button\n\t */\n\tstatic final int UP_BUTTON = 1;\n\t/**\n\t * Index of the \"down\" button\n\t */\n\tstatic final int DOWN_BUTTON = 2;\n\t/**\n\t * Index of the \"escape\" button\n\t */\n\tstatic final int ESCAPE_BUTTON = 3;\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the copy action. | public Action getCopyAction () {
return copyAction;
} | [
"public Action getCopyAction() {\n return copyAction;\n }",
"public Action getPasteAction () {\n\t\treturn pasteAction;\n\t}",
"public CopyAction getUserDatumCopyAction(Object key) {\n\t\treturn props.getUserDatumCopyAction(key);\n\t}",
"public Action getPasteAction() {\n return pasteAction;\n }",
"public static Action getCopy(AssignmentAction action) {\n\t\tAction actioncopy = (Action) EcoreUtil.copy(action);\t\n\t\treturn actioncopy;\n\t}",
"public DiffAction getAction()\n\t{\n\t\treturn this.action;\n\t}",
"public abstract Action copy();",
"public String getAction() {\n\t\treturn action.get();\n\t}",
"public Action getAction() {\n\t\treturn action;\n\t}",
"public java.lang.String getAction() {\n return action;\n }",
"public java.lang.String getAction() {\n return action;\n }",
"public Action getCutAction () {\n\t\treturn cutAction;\n\t}",
"public String getACTION() {\r\n return ACTION;\r\n }",
"public Action getCutAction() {\n return cutAction;\n }",
"public String getActionCommand() {\n return (String) get(PROPERTY_ACTION_COMMAND);\n }",
"public DumpObjectAction getDumpObjectAction()\n\t{\n\n\t\treturn this.dumpObjectAction;\n\t}",
"public Action getSelectedAction() {\n return selectedAction;\n }",
"public String getActionCommand() {\n return actionCommand;\n }",
"public String getActionCommand()\n {\n return actionCommand;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Hace el llamado al mundo para verificar una interseccion con la moneda. | public void verificarInterseccionMoneda() {
if(juego.atrapoMoneda()) {
System.out.println("Atrapo");
playSound("data/coin.wav");
}
} | [
"private void verificar() {\n if ( txtDocumento.getText().length() < conf.getMinDocIdentidad() ) {\n Dialog.inform(\"¡ Error de búsqueda, ingrese como minimo \" + conf.getMinDocIdentidad() + \" caracteres.\");\n return ;\n }\n progress.open();\n progress.setTitle(\"Verificando...\");\n \t//TODO: limpiar la informacion de Atraccion cada cierto tiempo\n AtraccionDB atracciones = new AtraccionDB();\n Atraccion atraccion = atracciones.getAtraccionByDoc(txtDocumento.getText());\n if ( atraccion == null ) {\n lblResultado.setText(\"No se encontro el documento de identidad\");\n } else {\n \tlblResultado.setText(atraccion.getResultado());\n \tlblEstado.setText(Cadenas.getEspacio(estado.length()).concat(atraccion.getFechaConsulta()));\n }\n progress.close();\n }",
"public void verificarInterseccionVehiculo() {\n\t\tif(juego.seIntersecto())\n\t\t\tSystem.out.println(\"Choco\");\n\t}",
"public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }",
"@FXML private void verifExist(ActionEvent e) {\r\n\t\t\r\n\t\t// Si le mot recherche est null alors rien n'est fait\r\n\t\tif (txtMotRech.getText().length() == 0) {\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\t// Si le mot recherche n'est pas null alors le recherche dans le dictionnaire et on affiche\r\n\t\t\t// le resultat\r\n\t\t\tif (dictionnaire.existe(txtMotRech.getText().toUpperCase())) {\r\n\t\t\t\tlblResRech.setText(txtMotRech.getText().substring(0, 1).toUpperCase() +txtMotRech.getText().substring(1).toLowerCase() + \" est un mot valide dans le dictionnaire francais\");\r\n\t\t\t\tlblResRech.setTextFill(Color.web(\"007024\"));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tlblResRech.setText(txtMotRech.getText().substring(0, 1).toUpperCase() +txtMotRech.getText().substring(1).toLowerCase() + \" n'est pas un mot valide dans le dictionnaire francais\");\r\n\t\t\t\tlblResRech.setTextFill(Color.web(\"FF0000\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// On vide le TextView txtMotRech de son contenu\r\n\t\ttxtMotRech.setText(\"\");\r\n\t}",
"@Override\n public boolean esReliquiaMuerte() {\n return true;\n }",
"public void verifaVidaInimigo(){\n if (0 >= inimigo.get(idPersonagem).getPontoDeVida()) {\n inimigo.get(idPersonagem).setPontoDeVida(0);\n imprimiBotoes();\n JOptionPane.showMessageDialog(null, \"Você venceu!!!\");\n trocaPeronagem();\n imprimiBotoes();\n controlaJoagada = 0;\n }\n }",
"public boolean hayMonedas(int moneda){\n\t\treturn cajon[moneda] > 0;\n\t}",
"public void guardarComandoConMascara(){\n consultaComando.agregarComandoConMascara(IDComando, tipoCampoInicial, condicionInicial, tipoCampoFinal, estadoFinal);\n System.out.print(\"Comando con máscara agregado\");\n }",
"static boolean continuar(){\r\n\t\tchar respuesta = Teclado.leerCaracter(\"¿Desea continuar? (s/n): \");\r\n\t\tif (respuesta == 's' || respuesta == 'S')\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"private Boolean esMejor() {\n if(debug) {\n System.out.println(\"**********************esMejor\");\n }\n \n if(this.solOptima == null || (this.sol.pesoEmparejamiento < this.solOptima.pesoEmparejamiento)) return true;\n else return false;\n }",
"public boolean etreRemplie(){\n int compteur = 0;\r\n int i=0;\r\n // tant que la colonne i est remplie, on incrémente i \r\n // et on passe a la colonne suivante \r\n while (i!=6 && colonneRemplie(i)) { i++;}\r\n return (i==6); // si i=6 on a toutes les colonens de remplies \r\n }",
"public void reabrirContrato() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se o contrato já estpa aberto\n System.err.println(\"O contrado desse hospede já encontra-se aberto\");\n\n } else {//caso o contrato encontre-se fechado\n hospedesCadastrados.get(i).getContrato().setSituacao(true);\n System.err.println(\"Contrato reaberto, agora voce pode reusufruir de nossos servicos!\");\n }\n }\n }\n }\n }",
"static boolean deseaContinuar(){\n\t\tchar continuar;\n\t\tcontinuar=Teclado.leerCaracter(\"\\nDesea continuar? (s/n)\");\n\t\t\n\t\tif(continuar=='s' || continuar=='S')\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"static boolean continuar(){\n\t\tchar respuesta;\n\t\trespuesta=Teclado.leerCaracter(\"\\nDesea continuar? (s/n) : \");\n\n\t\tif(respuesta=='s' || respuesta=='S')\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"private boolean kiemTraThemToa() {\n if (jtfMaToa.getText().trim().equals(\"\")) {\n jlbMaToa.setText(\"Không được để trống\");\n } else {\n try {\n ResultSet rs = LopKetNoi.select(\"select maToa from Toa where maToa\", jtfMaToa.getText().trim());\n if (rs.next()) {\n jlbMaToa.setText(\"Mã toa đã tồn tại\");\n } else {\n jlbMaToa.setText(\" \");\n }\n\n } catch (Exception e) {\n System.out.println(\"Kiem tra ma toa that bai\");\n }\n }\n\n // kiem tra soChoNgoi phải là số chia hết cho mấy đó\n kiemTraSoChoNgoi();\n if (jlbMaToa.getText().equals(\" \") && jlbSoChoNgoi.getText().equals(\" \")) {\n return true;\n } else {\n return false;\n }\n\n }",
"public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}",
"private void CheckRisultatoConMazzoFinito(){\n //devo decidere chi ha vinto. Secondo le regole vince chi ha meno carte\n int numeroCarteGiocatorePosizioneUno = ((Giocatore)this._listaGiocatori.get(0))._carteInMano.size();\n int numeroCarteGiocatorePosizioneDue = ((Giocatore)this._listaGiocatori.get(1))._carteInMano.size();\n if(numeroCarteGiocatorePosizioneUno < numeroCarteGiocatorePosizioneDue){\n //vince il giocatore in posizione 0\n ((GiocatoreCPU)this._listaGiocatori.get(0)).DichiaraVittoria(\"Vittoria per minor numero di carte!\");\n System.out.println(((GiocatoreCPU)this._listaGiocatori.get(0)).getNome() + \" Vittoria per minor numero di carte!\");\n }else{\n if(numeroCarteGiocatorePosizioneUno > numeroCarteGiocatorePosizioneDue){\n //vince il giocatore in posizione 1\n ((GiocatoreCPU)this._listaGiocatori.get(1)).DichiaraVittoria(\"Vittoria per minor numero di carte!\");\n System.out.println(((GiocatoreCPU)this._listaGiocatori.get(1)).getNome() + \" Vittoria per minor numero di carte!\");\n }else{\n //pareggio\n this._controller.dichiaraVittoria(\"\", \"Pareggio stesso numero di carte!\");\n System.out.println(\"Pareggio stesso numero di carte!\");\n }\n }\n }",
"public boolean verificarExistenciaArquivoTextoRota(Integer idRota, Integer anoMesReferencia) throws ControladorException {\n\n boolean retorno = true;\n Object[] dadosArquivoTextoRoteiroEmpresa = null;\n\n try {\n\n dadosArquivoTextoRoteiroEmpresa = repositorioFaturamento.pesquisarArquivoTextoRoteiroEmpresa(idRota, anoMesReferencia);\n\n /*\n * Caso ja exista um arquivo texto para rota e mes de referencia\n * informados e com situacao da transmissao de leitura igual a\n * disponivel: Remover o registro encontrado.\n */\n if (dadosArquivoTextoRoteiroEmpresa != null) {\n Integer idArquivoTexto = (Integer) dadosArquivoTextoRoteiroEmpresa[0];\n Integer idSituacaoTransmissaoLeitura = (Integer) dadosArquivoTextoRoteiroEmpresa[1];\n\n if (idSituacaoTransmissaoLeitura.equals(SituacaoTransmissaoLeitura.DISPONIVEL)) {\n // REMOVENDO REGISTRO\n this.repositorioFaturamento.deletaArquivoTextoRoteiroEmpresaDivisao(idArquivoTexto);\n repositorioFaturamento.deletarArquivoTextoRoteiroEmpresa(idArquivoTexto);\n\n } else {\n retorno = false;\n }\n\n }\n } catch (ErroRepositorioException e) {\n // sessionContext.setRollbackOnly();\n throw new ControladorException(\"erro.sistema\",\n e);\n }\n\n return retorno;\n }",
"private static void esperarQueAbraElNavegador() throws InterruptedException, IOException, FindFailed {\n if(s.exists(new Pattern(newTab).similar(0.8f),30)==null){\r\n errorHandler(\"el navegador no se abrio correctamente\");\r\n paso1();\r\n }else{\r\n paso3();\r\n }\r\n\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Whether or not this rule is a lexical rule or not | public boolean isLexical(){
return lexical;
} | [
"public boolean isEpsilonRule() {\n return Character.isUpperCase(this.keyword.charAt(0)) && children.isEmpty();\n }",
"boolean isImportedRule(Rule rule);",
"private boolean grammar() {\r\n return skip() && rules() && MARK(END_OF_TEXT) && EOT();\r\n }",
"public boolean containsAllTerminalsOnRHS ()\n {\n if (myRule == null)\n return false;\n if (myRule.equals(Grammar.getProductionList().get(1)))\n return true;\n String[] symbols = myRule.getRHS().split(\"\\\\s+\");\n for (String s : symbols)\n {\n if (s.matches(\"[LS]\"))\n return false;\n }\n return true;\n }",
"public boolean hasLexicon();",
"public boolean validRule( Rule r ){\n\t\tif( !super.validRule(r) ){\n\t\t\t// rule has failed restrictions of parent grammars\n\t\t\treturn false;\n\t\t}\n\t\t// 3. rhs is null\n\t\tif( r.rhs == null ) {\n\t\t\treturn true;\n\t\t}\n\t\t// 2. rhs is a terminal followed by a variable\n\t\telse if( r.rhs.size() == 2 && Grammar.isTerminal(r.rhs.get(0)) && \n\t\t\t\t\t\t\t\t \t Grammar.isVariable(r.rhs.get(1))) {\n\t\t\treturn true;\n\t\t}\n\t\t// 1. rhs is a single terminal\n\t\telse if( r.rhs.size() == 1 && Grammar.isTerminal(r.rhs.get(0))) {\n\t\t\treturn true;\n\t\t}\n\t\t// rule is not one of the 3 valid forms\n\t\treturn false;\n\t }",
"public boolean containsTwoNonterminalsOnRHS ()\n {\n if (myRule == null)\n return false;\n int count = 0;\n String[] symbols = myRule.getRHS().split(\"\\\\s+\");\n for (String s : symbols)\n {\n if (s.matches(\"[LS]\"))\n count++;\n }\n return (count == 2);\n }",
"public boolean hasPunctuationInRHS ()\n {\n if (myRule == null)\n return false;\n Production rule2 = Grammar.getProductionList().get(2);\n Production rule3 = Grammar.getProductionList().get(3);\n return (myRule.equals(rule2) || myRule.equals(rule3));\n }",
"boolean is_operatorRulesInitialized();",
"protected abstract boolean ruleCheck();",
"boolean hasExplicitLac();",
"public final boolean synpred1_InternalStl() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred1_InternalStl_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }",
"public static boolean lexer(){\r\n\t\tif(stCode.hasMoreTokens()){\r\n\t\t\tnextToken = stCode.nextToken();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"boolean hasFormalism();",
"public static boolean isRule(String keyString) {\n\t\treturn keyString.toLowerCase().equals(KEY_RULE_ABV);\n\t}",
"public boolean hasRepeatRule ()\n {\n if (myRule == null)\n return false;\n return (myRule.equals(Grammar.getProductionList().get(10)));\n }",
"public boolean isNonTerminal(String symbol) {\n\t\treturn this.grammarRules.containsKey(symbol);\n\t}",
"boolean exactMatch(FlowRule rule);",
"private static boolean isNonterminal(String s) {\n return s.startsWith(\"<\");\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ParameterAssign__Group_2__0" $ANTLR start "rule__ParameterAssign__Group_2__0__Impl" InternalDsl.g:15485:1: rule__ParameterAssign__Group_2__0__Impl : ( ',' ) ; | public final void rule__ParameterAssign__Group_2__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:15489:1: ( ( ',' ) )
// InternalDsl.g:15490:1: ( ',' )
{
// InternalDsl.g:15490:1: ( ',' )
// InternalDsl.g:15491:2: ','
{
if ( state.backtracking==0 ) {
before(grammarAccess.getParameterAssignAccess().getCommaKeyword_2_0());
}
match(input,62,FOLLOW_2); if (state.failed) return ;
if ( state.backtracking==0 ) {
after(grammarAccess.getParameterAssignAccess().getCommaKeyword_2_0());
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__ParameterAssign__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:15504:1: ( rule__ParameterAssign__Group_2__1__Impl )\n // InternalDsl.g:15505:2: rule__ParameterAssign__Group_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ParameterAssign__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Parameter__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1288:1: ( rule__Parameter__Group_0__2__Impl )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1289:2: rule__Parameter__Group_0__2__Impl\n {\n pushFollow(FOLLOW_rule__Parameter__Group_0__2__Impl_in_rule__Parameter__Group_0__22723);\n rule__Parameter__Group_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Parameter__Group_1_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1541:1: ( rule__Parameter__Group_1_0__2__Impl )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1542:2: rule__Parameter__Group_1_0__2__Impl\n {\n pushFollow(FOLLOW_rule__Parameter__Group_1_0__2__Impl_in_rule__Parameter__Group_1_0__23218);\n rule__Parameter__Group_1_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Parameter__Group_0_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1384:1: ( rule__Parameter__Group_0_1__2__Impl )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1385:2: rule__Parameter__Group_0_1__2__Impl\n {\n pushFollow(FOLLOW_rule__Parameter__Group_0_1__2__Impl_in_rule__Parameter__Group_0_1__22910);\n rule__Parameter__Group_0_1__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AssignParameters__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:13722:1: ( rule__AssignParameters__Group__0__Impl rule__AssignParameters__Group__1 )\n // InternalDsl.g:13723:2: rule__AssignParameters__Group__0__Impl rule__AssignParameters__Group__1\n {\n pushFollow(FOLLOW_69);\n rule__AssignParameters__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__AssignParameters__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AstAssignParameter__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5802:1: ( rule__AstAssignParameter__Group__2__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5803:2: rule__AstAssignParameter__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__AstAssignParameter__Group__2__Impl_in_rule__AstAssignParameter__Group__212166);\n rule__AstAssignParameter__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ParameterAssign__Group_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:15477:1: ( rule__ParameterAssign__Group_2__0__Impl rule__ParameterAssign__Group_2__1 )\n // InternalDsl.g:15478:2: rule__ParameterAssign__Group_2__0__Impl rule__ParameterAssign__Group_2__1\n {\n pushFollow(FOLLOW_4);\n rule__ParameterAssign__Group_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ParameterAssign__Group_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ParameterAssign__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:15369:1: ( rule__ParameterAssign__Group__0__Impl rule__ParameterAssign__Group__1 )\n // InternalDsl.g:15370:2: rule__ParameterAssign__Group__0__Impl rule__ParameterAssign__Group__1\n {\n pushFollow(FOLLOW_4);\n rule__ParameterAssign__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ParameterAssign__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AssignParameters__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:13749:1: ( rule__AssignParameters__Group__1__Impl rule__AssignParameters__Group__2 )\n // InternalDsl.g:13750:2: rule__AssignParameters__Group__1__Impl rule__AssignParameters__Group__2\n {\n pushFollow(FOLLOW_73);\n rule__AssignParameters__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__AssignParameters__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Parameter__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1604:1: ( rule__Parameter__Group_2__1__Impl )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1605:2: rule__Parameter__Group_2__1__Impl\n {\n pushFollow(FOLLOW_rule__Parameter__Group_2__1__Impl_in_rule__Parameter__Group_2__13341);\n rule__Parameter__Group_2__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Parameter__Group_2_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1698:1: ( rule__Parameter__Group_2_0__2__Impl )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1699:2: rule__Parameter__Group_2_0__2__Impl\n {\n pushFollow(FOLLOW_rule__Parameter__Group_2_0__2__Impl_in_rule__Parameter__Group_2_0__23526);\n rule__Parameter__Group_2_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Parameter__Group__0__Impl() throws RecognitionException {\n int rule__Parameter__Group__0__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 873) ) { return ; }\n // InternalGaml.g:14726:1: ( ( () ) )\n // InternalGaml.g:14727:1: ( () )\n {\n // InternalGaml.g:14727:1: ( () )\n // InternalGaml.g:14728:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParameterAccess().getParameterAction_0()); \n }\n // InternalGaml.g:14729:1: ()\n // InternalGaml.g:14731:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParameterAccess().getParameterAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 873, rule__Parameter__Group__0__Impl_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AssignParameters__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:13776:1: ( rule__AssignParameters__Group__2__Impl rule__AssignParameters__Group__3 )\n // InternalDsl.g:13777:2: rule__AssignParameters__Group__2__Impl rule__AssignParameters__Group__3\n {\n pushFollow(FOLLOW_18);\n rule__AssignParameters__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__AssignParameters__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ParameterExpression__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:2732:1: ( rule__ParameterExpression__Group_0__1__Impl )\n // ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:2733:2: rule__ParameterExpression__Group_0__1__Impl\n {\n pushFollow(FOLLOW_rule__ParameterExpression__Group_0__1__Impl_in_rule__ParameterExpression__Group_0__15630);\n rule__ParameterExpression__Group_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Parameter__Group_4_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2012:1: ( rule__Parameter__Group_4_0__2__Impl )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2013:2: rule__Parameter__Group_4_0__2__Impl\n {\n pushFollow(FOLLOW_rule__Parameter__Group_4_0__2__Impl_in_rule__Parameter__Group_4_0__24142);\n rule__Parameter__Group_4_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Parameter__Group__2() throws RecognitionException {\n int rule__Parameter__Group__2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 876) ) { return ; }\n // InternalGaml.g:14774:1: ( rule__Parameter__Group__2__Impl )\n // InternalGaml.g:14775:2: rule__Parameter__Group__2__Impl\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Parameter__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 876, rule__Parameter__Group__2_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ParameterDecl__Group_0__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:6512:1: ( rule__ParameterDecl__Group_0__3__Impl )\r\n // InternalGo.g:6513:2: rule__ParameterDecl__Group_0__3__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__ParameterDecl__Group_0__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__ParameterAssign__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:15423:1: ( rule__ParameterAssign__Group__2__Impl rule__ParameterAssign__Group__3 )\n // InternalDsl.g:15424:2: rule__ParameterAssign__Group__2__Impl rule__ParameterAssign__Group__3\n {\n pushFollow(FOLLOW_91);\n rule__ParameterAssign__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__ParameterAssign__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Parameter__Group_3_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1855:1: ( rule__Parameter__Group_3_0__2__Impl )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1856:2: rule__Parameter__Group_3_0__2__Impl\n {\n pushFollow(FOLLOW_rule__Parameter__Group_3_0__2__Impl_in_rule__Parameter__Group_3_0__23834);\n rule__Parameter__Group_3_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
StoredInfoType configuration. .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; | public Builder setConfig(com.google.privacy.dlp.v2.StoredInfoTypeConfig value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
} else {
configBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
} | [
"@java.lang.Override\n public com.google.privacy.dlp.v2.StoredInfoTypeConfigOrBuilder getConfigOrBuilder() {\n return config_ == null\n ? com.google.privacy.dlp.v2.StoredInfoTypeConfig.getDefaultInstance()\n : config_;\n }",
"@java.lang.Override\n public com.google.privacy.dlp.v2.StoredInfoTypeConfig getConfig() {\n return config_ == null\n ? com.google.privacy.dlp.v2.StoredInfoTypeConfig.getDefaultInstance()\n : config_;\n }",
"com.google.privacy.dlp.v2.DatastoreOptions getDatastoreOptions();",
"com.google.privacy.dlp.v2.InspectConfig getInspectConfig();",
"com.google.privacy.dlp.v2.StoredTypeOrBuilder getStoredTypeOrBuilder();",
"com.google.privacy.dlp.v2.StoredType getStoredType();",
"com.google.privacy.dlp.v2.CustomInfoType.Dictionary getDictionary();",
"com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder();",
"com.google.privacy.dlp.v2.CloudStorageOptions getCloudStorageOptions();",
"com.google.privacy.dlp.v2.StorageConfigOrBuilder getStorageConfigOrBuilder();",
"public interface PreferenceKV {\n\n /*Name of SharedPreference*/\n String SHARED_PREFERENCE = \"UserSharedPreference\";\n\n String KEY_IS_PROFILE_PIC_GENERATED = \"isProfilePicGenerated\";\n boolean DEF_IS_PROFILE_PIC_GENERATED = false;\n\n String KEY_IS_CV_GENERATED = \"isCVGenerated\";\n boolean DEF_IS_CV_GENERATED = false;\n\n String USER_NUM = \"mobileNumber\";\n String DEF_NUM = \"0\";\n\n\n\n}",
"public Builder setInfoType(com.google.privacy.dlp.v2.InfoType value) {\n if (infoTypeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n infoType_ = value;\n } else {\n infoTypeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }",
"public Builder setState(com.google.privacy.dlp.v2.StoredInfoTypeState value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n state_ = value.getNumber();\n onChanged();\n return this;\n }",
"public Builder setInfoType(com.google.privacy.dlp.v2beta1.InfoType value) {\n if (infoTypeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n infoType_ = value;\n onChanged();\n } else {\n infoTypeBuilder_.setMessage(value);\n }\n\n return this;\n }",
"com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilder();",
"public com.google.privacy.dlp.v2beta1.InfoType getInfoType() {\n if (infoTypeBuilder_ == null) {\n return infoType_ == null ? com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance() : infoType_;\n } else {\n return infoTypeBuilder_.getMessage();\n }\n }",
"public com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder() {\n if (infoTypeBuilder_ != null) {\n return infoTypeBuilder_.getMessageOrBuilder();\n } else {\n return infoType_ == null ?\n com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance() : infoType_;\n }\n }",
"public String getPrivacy();",
"com.callfire.api.data.CallTrackingConfigDocument.CallTrackingConfig getCallTrackingConfig();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for the calculated attribute DistributionStatus | public String getDistributionStatus() {
return (String)getAttributeInternal(DISTRIBUTIONSTATUS);
} | [
"public Integer getAttrStatus() {\n return attrStatus;\n }",
"public String getStatus() {\n return (String)getAttributeInternal(STATUS);\n }",
"int getDeliveryStatusValue();",
"public Number getDistributionAmount() {\n return (Number)getAttributeInternal(DISTRIBUTIONAMOUNT);\n }",
"String attributeValue();",
"int getApproveStatusValue();",
"RDFProperty getProtegeClassificationStatusProperty();",
"public String getAttrValue();",
"int getAttValue();",
"public String getDssStatus() {\r\n return (String) getAttributeInternal(DSSSTATUS);\r\n }",
"public int value() {return status; }",
"public String getStatus() {\n return getProperty(Property.STATUS);\n }",
"public int getStatusval() {\n return statusval;\n }",
"public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }",
"java.lang.String getAStatus();",
"public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }",
"public void setDistributionStatus(String value) {\n setAttributeInternal(DISTRIBUTIONSTATUS, value);\n }",
"public String getAttrVal() {\n return attrVal;\n }",
"public String getDistributionAttribute1() {\n return (String) getAttributeInternal(DISTRIBUTIONATTRIBUTE1);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test that FSNamesystemclear clears all leases. | @Test
public void testFSNamespaceClearLeases() throws Exception {
Configuration conf = new HdfsConfiguration();
File nameDir = new File(MiniDFSCluster.getBaseDirectory(), "name");
conf.set(DFS_NAMENODE_NAME_DIR_KEY, nameDir.getAbsolutePath());
NameNode.initMetrics(conf, NamenodeRole.NAMENODE);
DFSTestUtil.formatNameNode(conf);
FSNamesystem fsn = FSNamesystem.loadFromDisk(conf);
LeaseManager leaseMan = fsn.getLeaseManager();
leaseMan.addLease("client1", fsn.getFSDirectory().allocateNewInodeId());
assertEquals(1, leaseMan.countLease());
clearNamesystem(fsn);
leaseMan = fsn.getLeaseManager();
assertEquals(0, leaseMan.countLease());
} | [
"public void simClearSystemCollection() {\n systemColl.clear();\n }",
"public void clear() {\n\t\tsystems.clear();\n\t}",
"public void clear() {\n usedNames.clear();\n }",
"public static void resetSystem() {\n DeltaSystem.init();\n DPS.init();\n LocalServer.releaseAll();\n FileStore.resetTracked();\n // PatchStoreMgr.reset clears the patch store providers.\n PatchStoreMgr.reset();\n initPatchStoreProviders();\n }",
"void clearAllMocks();",
"public void clear() {\n\t\tvms.clear();\n\t\tload = 0;\n\t}",
"@Test\n public void testClearAll() {\n NameValueMap instance = new NameValueMap();\n Iterator<String> iterFields = instance.getFields();\n while (iterFields.hasNext()) {\n fail(\"you should never enter here\");\n iterFields.next();\n }\n String[] someFieldNames = {\"a\", \"B\", \"C\", \"d\", \"FK121_RES_TBL\"};\n for (int i = 0; i < someFieldNames.length; ++i)\n instance.setFieldValue(someFieldNames[i], null);\n iterFields = instance.getFields();\n assertTrue(iterFields.hasNext());\n instance.clearAll();\n iterFields = instance.getFields();\n while (iterFields.hasNext()) {\n fail(\"you should never enter here\");\n iterFields.next();\n }\n }",
"@Test\n public void testClear() {\n String messageClearedExpected = \"The tree node was expected to be cleared, but actually was not\";\n\n node6.clear();\n assertTrue(messageClearedExpected, node6.isLeaf());\n\n assertFalse(node3.isLeaf());\n node3.clear();\n assertTrue(node3.isLeaf());\n assertNull(node4.parent());\n assertNull(node5.parent());\n\n assertFalse(node2.isLeaf());\n node2.clear();\n assertTrue(node2.isLeaf());\n assertNull(node3.parent());\n assertNull(node7.parent());\n assertNull(node8.parent());\n\n assertFalse(root.isLeaf());\n root.clear();\n assertTrue(root.isLeaf());\n assertNull(node1.parent());\n assertNull(node2.parent());\n assertNull(node9.parent());\n }",
"@Test\n public void VFS_init_WithoutRecoverers_Fails_If_AnyStorageFileRemoved() throws Exception {\n\n\n List<String> filesNotLeadingToVFSRebuild = new ArrayList<>();\n int vfsFilesCount = vfsDataFileNames.size();\n for (int i = 0; i < vfsFilesCount; i++) {\n String dataFileNameToDelete = vfsDataFileNames.get(i);\n\n Path cachesDir = temporaryDirectory.createDir();\n\n setupVFSFillSomeDataAndClose(cachesDir);\n\n Path fileToDelete = Files.list(cachesDir)\n .filter(path -> Files.isRegularFile(path))\n .filter(path -> path.getFileName().toString().equals(dataFileNameToDelete))\n .findFirst().orElse(null);\n if (fileToDelete == null) {\n fail(\"Can't delete[\" + dataFileNameToDelete + \"] -- there is no such file amongst \\n\" + Files.list(cachesDir).toList());\n }\n\n FileUtil.delete(fileToDelete);\n\n try {\n //try reopen:\n PersistentFSConnector.tryInit(\n cachesDir,\n FSRecordsImpl.currentImplementationVersion(),\n false,\n Collections.emptyList(),\n Collections.emptyList()\n );\n filesNotLeadingToVFSRebuild.add(fileToDelete.getFileName().toString());\n }\n catch (IOException ex) {\n if (ex instanceof VFSInitException vfsLoadEx) {\n System.out.println(fileToDelete.getFileName().toString() + \" removed -> \" + vfsLoadEx.category());\n }\n }\n }\n\n assertTrue(\n \"VFS is not rebuilt if one of \" + filesNotLeadingToVFSRebuild + \" is deleted\",\n filesNotLeadingToVFSRebuild.isEmpty()\n );\n }",
"private void clearOneTest() {\n corpus.clear();\n Factory.deleteResource(corpus);\n Factory.deleteResource(learningApi);\n controller.remove(learningApi);\n controller.cleanup();\n Factory.deleteResource(controller);\n }",
"public void clearInventoriesNamed();",
"public void clearFramework() {\r\n\t\tList<Configuration> tests = testCache.getAllTests();\r\n\t\tlog.info(\"Clearing all tests.\\n\");\r\n\t\tfor (Configuration test : tests) {\r\n\t\t\tkillTest(test.getUniqueId());\r\n\t\t}\r\n\t\tworkQueue.clear();\r\n\t\ttestCache.clear();\r\n\t}",
"@Test\n public void testClear() \n {\n System.out.println(\"\\n**********************\");\n System.out.println(\"Clear function\");\n RedBlackTrees instance = new RedBlackTrees(\"\");\n \n instance.addNode(\"hello\");\n instance.addNode(\"test\");\n instance.addNode(\"apple\");\n System.out.println(\"Tree is empty: \" + instance.isEmpty());\n \n instance.clear();\n System.out.println(\"Tree has been cleared\");\n System.out.println(\"Tree is empty: \" + instance.isEmpty());\n System.out.println(\"\\n**********************\"); \n }",
"public void testClearTestRecord()\n {\n\t String type = new String(\"reading\");\n\t String user_name = new String(\"rof_guest\");\n\t File path_file = new File(\"\");\n\t String root_path = path_file.getAbsolutePath();\n\t FileTestRecords ftr = new FileTestRecords();\n\t ftr.clearTestRecord(type, user_name, root_path);\n\t //dumpLog(ftr.getLog());\n\t FileStorage store = new FileStorage(root_path);\n\t Hashtable user_opts = store.getUserOptions(user_name, root_path);\n\t Vector tests = ftr.getDailyTestRecords(user_name, type, root_path, user_opts);\n\t int expected_size = 0;\n\t int actual_size = tests.size();\n\t assertEquals(expected_size, actual_size);\n }",
"public void clear() {\n logLocation.clear();\n spaceLocation.clear();\n mountpoint = null;\n }",
"public void clearAllData();",
"@AfterClass\r\n public static void clearEnvironment(){\r\n manager = null;\r\n }",
"public void resetChecksUsed() {\n //TODO: implement\n this.numberOfChecksUsed = 0;\n\n }",
"protected void cleanLucasTestCase() {\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the 'unitaryDiagrams' from 'Zone' | public void setUnitaryDiagrams(java.util.List unitaryDiagrams); | [
"public java.util.List getUnitaryDiagrams();",
"private void setZones() {\r\n\t\ttry {\r\n\t\t\tcanvasPane.setSprinklerAttributesSet(false);\r\n\t\t\tcanvasPane.setStateOfCanvasUse(Use.ZONEEDITING);\r\n\t\t\tcanvasPane.selectedSprinklerShapes.clear();\r\n\t\t\tnumberOfSelectedHeadsText.setText(\"0\");\r\n\t\t\tflowRateOfSelectedHeadsText.setText(\"0\");\r\n\t\t\tStage zoneStage = new ZoneStage(canvasPane, addHeads, removeHeads, numberOfSelectedHeadsText,\r\n\t\t\t\t\tflowRateOfSelectedHeadsText);\r\n\t\t\tcanvasPane.requestFocus();\r\n\t\t\tzoneStage.show();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tutilities.Error.HandleException(ex);\r\n\t\t}\r\n\t}",
"public void setShadedDiagrams(java.util.List shadedDiagrams);",
"private void setProfileUNr(){\n Set<Hole> holeSet = createHoleSetWithUNr();\n\n for (Profile profile:profiles){\n\n for (Hole hole:profile.getHoles()) {\n setHoleUNr(hole,holeSet);\n }\n\n }\n }",
"private void updateZoneInfos() {\r\n\t\ttry {\r\n\t\t\tnumberOfSelectedHeadsText.setText(canvasPane.selectedSprinklerShapes.size() + \"\");\r\n\t\t\tflowRateOfSelectedHeadsText.setText(String.format(\"%.2f\", canvasPane.flowRateOfSelected));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tutilities.Error.HandleException(ex);\r\n\t\t}\r\n\t}",
"public void initPlane() {\n Card firstPlane = null;\n while (true) {\n firstPlane = getZone(ZoneType.PlanarDeck).get(0);\n getZone(ZoneType.PlanarDeck).remove(firstPlane);\n if (firstPlane.getType().contains(\"Phenomenon\")) {\n getZone(ZoneType.PlanarDeck).add(firstPlane);\n }\n else {\n currentPlanes.add(firstPlane);\n getZone(ZoneType.Command).add(firstPlane);\n break;\n }\n }\n\n game.setActivePlanes(currentPlanes);\n }",
"public void setDiagnoses(String diagnoses) {\n this.diagnoses = diagnoses;\n }",
"void setNilWarehouse();",
"@Override\n\tpublic void setZytologieDiagnosis(java.lang.String zytologieDiagnosis) {\n\t\t_pathologyData.setZytologieDiagnosis(zytologieDiagnosis);\n\t}",
"void setQuiteZone(int quiteZone);",
"Zone(){\r\n\t\tzoneName = \" \";\r\n\t\tsafetyRating = \" \";\r\n\t\tzoneCode = \" \";\r\n\t}",
"private void populateDiagonals() {\r\n Integer[] diag0 = {0, 6, 12, 18, 24};\r\n Integer[] diag1 = {4, 8, 12, 16, 20};\r\n addToCollection(diagonalIndices, diag0);\r\n addToCollection(diagonalIndices, diag1);\r\n }",
"public void setUpArmourTechs() {\n //Armour tech set up\n techMap.put(1, new Technology(new int[]{10, 0, 0}, \"Armour 1\", new ArrayList<>(),\n \"1st level Armour tech\"));\n ArrayList<Technology> armourTech2Parents = new ArrayList<>();\n armourTech2Parents.add(techMap.get(1));\n techMap.put(2, new Technology(new int[]{10, 0, 0}, \"Armour 2\", armourTech2Parents,\n \"2nd level armour tech (metapod used harden)\"));\n ArrayList<Technology> armourTech3Parents = new ArrayList<>();\n armourTech3Parents.add(techMap.get(2));\n techMap.put(3, new Technology(new int[]{10, 0, 0}, \"Armour 3\", armourTech3Parents,\n \"3rd level Armour tech (really getting hard)\"));\n ArrayList<Technology> armourTech4Parents = new ArrayList<>();\n armourTech4Parents.add(techMap.get(3));\n techMap.put(4, new Technology(new int[]{10, 0, 0}, \"Armour 4\", armourTech4Parents,\n \"4th level Armour tech\"));\n }",
"public void initZoneAreas() {\n this.zoneList = new ArrayList<Node>();\n this.zoneRoot = new Node(\"Zone Root\");\n \n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\"); \n mat.setColor(\"Color\", new ColorRGBA(0,1,1,0.5f));\n mat.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);\n \n Geometry zoneBox1 = new Geometry(\"Zone 1\",new Box(12,1,12));\n Node zoneNode1 = new Node(\"Zone 1\");\n zoneBox1.setMaterial(mat);\n zoneBox1.setQueueBucket(Bucket.Transparent);\n zoneNode1.attachChild(zoneBox1);\n this.zoneList.add(zoneNode1);\n this.zoneRoot.attachChild(zoneNode1);\n \n zoneNode1.setLocalTranslation(CubeToWorldVector(7.5f,0,47.5f));\n \n Geometry zoneBox2 = new Geometry(\"Zone 2\",new Box(18f,1,6));\n Node zoneNode2 = new Node(\"Zone 2\");\n zoneBox2.setMaterial(mat);\n zoneBox2.setQueueBucket(Bucket.Transparent);\n zoneNode2.attachChild(zoneBox2);\n this.zoneList.add(zoneNode2);\n this.zoneRoot.attachChild(zoneNode2);\n \n zoneNode2.setLocalTranslation(CubeToWorldVector(17.5f,0,47.5f));\n \n Geometry zoneBox2b = new Geometry(\"Zone 2b\",new Box(6f,1,6));\n Node zoneNode2b = new Node(\"Zone 2b\");\n zoneBox2b.setMaterial(mat);\n zoneBox2b.setQueueBucket(Bucket.Transparent);\n zoneNode2b.attachChild(zoneBox2b);\n this.zoneList.add(zoneNode2b);\n this.zoneRoot.attachChild(zoneNode2b);\n \n zoneNode2b.setLocalTranslation(CubeToWorldVector(21.5f,0,43.5f));\n \n Geometry zoneBox3 = new Geometry(\"Zone 3\",new Box(24f,1,22.5f));\n Node zoneNode3 = new Node(\"Zone 3\");\n zoneBox3.setMaterial(mat);\n zoneBox3.setQueueBucket(Bucket.Transparent);\n zoneNode3.attachChild(zoneBox3);\n this.zoneList.add(zoneNode3);\n this.zoneRoot.attachChild(zoneNode3);\n \n zoneNode3.setLocalTranslation(CubeToWorldVector(23.5f,0,34f));\n \n Geometry zoneBox4 = new Geometry(\"Zone 4\",new Box(9f,1,9f));\n Node zoneNode4 = new Node(\"Zone 4\");\n zoneBox4.setMaterial(mat);\n zoneBox4.setQueueBucket(Bucket.Transparent);\n zoneNode4.attachChild(zoneBox4);\n this.zoneList.add(zoneNode4);\n this.zoneRoot.attachChild(zoneNode4);\n \n zoneNode4.setLocalTranslation(CubeToWorldVector(12.5f,0,29.5f));\n \n Geometry zoneBox4b = new Geometry(\"Zone 4b\",new Box(9f,1,22.5f));\n Node zoneNode4b = new Node(\"Zone 4b\");\n zoneBox4b.setMaterial(mat);\n zoneBox4b.setQueueBucket(Bucket.Transparent);\n zoneNode4b.attachChild(zoneBox4b);\n this.zoneList.add(zoneNode4b);\n this.zoneRoot.attachChild(zoneNode4b);\n \n zoneNode4b.setLocalTranslation(CubeToWorldVector(6.5f,0,25f));\n \n Geometry zoneBox5 = new Geometry(\"Zone 5\",new Box(36f,1,18f));\n Node zoneNode5 = new Node(\"Zone 5\");\n zoneBox5.setMaterial(mat);\n zoneBox5.setQueueBucket(Bucket.Transparent);\n zoneNode5.attachChild(zoneBox5);\n this.zoneList.add(zoneNode5);\n this.zoneRoot.attachChild(zoneNode5);\n \n zoneNode5.setLocalTranslation(CubeToWorldVector(13.5f,0,11.5f));\n rootNode.attachChild(this.zoneRoot);\n }",
"void getDiagram ();",
"public void setup() {\r\n pen = new KaleidoscopePen(this,5);\r\n }",
"private Section createUseCaseDiagramsSection() {\n String[][] questions = {\n {\"41\", \"50\", \"The use case diagrams reflect the functionality...\"}\n };\n\n Section result = new Section();\n result.setId(4);\n result.setWeight(35);\n result.setName(\"Use Case Diagrams\");\n\n createAndAddQuestions(questions, result);\n\n return result;\n }",
"private void vdm_init_DiagramaTeste () throws CGException {\n try {\n\n setSentinel();\n diag = (Diagrama) new Diagrama(new String(\"teste\"), new Integer(10));\n id = new Integer(1);\n }\n catch (Exception e){\n\n e.printStackTrace(System.out);\n System.out.println(e.getMessage());\n }\n }",
"public void testSetSlutZone() {\n System.out.println(\"setSlutZone\");\n int destZone = 10;\n Zoneberegner instance = new Zoneberegner();\n instance.setSlutZone(destZone);\n int zoneResult = instance.getSlutZone();\n assertEquals(destZone, zoneResult);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ reads in the entire page, stripping it from all white space | private String readToEndStripped() throws IOException
{
StringBuffer sb = new StringBuffer();
String raw = readToEndRaw();
StringBuffer source = new StringBuffer(raw);
for (int i = 0; i < source.length(); i++)
{
char c = source.charAt(i);
if (!isWhiteSpace(c))
sb.append(c);
}
return sb.toString();
} | [
"private String readWebpage(PrintWriter writer) {\n\n\t\t// create new userAgent (headless browser)\n\t\tUserAgent userAgent = new UserAgent();\n\n\t\t// visit a url\n\t\ttry {\n\t\t\tuserAgent.visit(url);\n\n\t\t\ttitle = userAgent.doc.findFirst(\"<title>\").getText();\n\n\t\t\t// prints all text with \"span\" header\n\t\t\tElements step1 = userAgent.doc.findEvery(heading);\n\n\t\t\t// trims extra spaces\n\t\t\tString noSpaces = \"\";\n\t\t\tif (innerText) {\n\t\t\t\tnoSpaces = step1.innerText(null, true, true);\n\t\t\t} else {\n\t\t\t\tnoSpaces = step1.innerHTML();\n\t\t\t}\n\t\t\tnoSpaces = noSpaces.replaceAll(\" \", \"\");\n\t\t\treturn noSpaces;\n\t\t} catch (JauntException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn e.getMessage();\n\t\t}\n\t}",
"protected void parseContents(){\r\n\t\tdoc = Jsoup.parse(Jsoup.clean(response, Whitelist.relaxed()));\r\n\t}",
"public String getPageContents(){ \n String content =super.getPageContents();\n int startPos;\n int EndPos;\n startPos = content.indexOf(\"</script>\");\n EndPos = content.lastIndexOf(\"</section>\");\n content = content.substring(startPos, EndPos);\n content = content.replaceAll(\"\\\\<.*?\\\\>\", \"\");\n content = content.replaceAll(\"[\\\\t ]\", \"\");\n return content;\n }",
"private void extractPageText() {\n _currentPageText = \"\";\n\n if (_currentPageSource.isEmpty())\n return;\n\n int iStartIndex = _currentPageSource.indexOf(\"<text \");\n if (iStartIndex < 0)\n return;\n\n iStartIndex = _currentPageSource.indexOf(\">\", iStartIndex);\n ++iStartIndex;\n\n int iEndIndex = _currentPageSource.indexOf(\"</text>\");\n if (iEndIndex < 0)\n return;\n\n _currentPageText = _currentPageSource.substring(iStartIndex, iEndIndex);\n\n // find the the external links section, and cut it away\n iStartIndex = _currentPageText.indexOf(\"External Links\");\n if (iStartIndex < 0)\n iStartIndex = _currentPageText.indexOf(\"External links\");\n if (iStartIndex > 0) {\n iEndIndex = _currentPageText.indexOf(\"\\n\");\n\n if (iEndIndex < 0)\n _currentPageText = _currentPageText.substring(0, iStartIndex);\n else {\n String tmp = _currentPageText = _currentPageText.substring(0, iStartIndex);\n _currentPageText = tmp + _currentPageText.substring(iEndIndex, _currentPageText.length() - 1);\n }\n }\n\n _currentPageText = filterTags(_currentPageText);\n \n String[] words = _currentPageText.split(\" \");\n _currentPageText = \"\";\n String space = \" \";\n Set<String> wordSet = new HashSet<String>(Arrays.asList(words));\n for(String w : words) {\n \tw = w.toLowerCase();\n \tif(stopWordSet.contains(w)){\n \t\twordSet.remove(w);\n \t\tcontinue;\n \t}\n \t_currentPageText += space;\n \t_currentPageText += w;\n } \n if(wordSet.size() < 100) {\n \t_currentPageText = \"\";\n \treturn;\n }\n }",
"public void trimContents() {\n \tbyte[] contents = getContents();\n \n \tif (contents == null || contents.length == 0)\n \t return;\n \n \tint lastchar = 0;\t\n \tfor (int i=contents.length-1; i >= 0; i--) {\n \t if (contents[i] == ' ' || contents[i] == '\\n') continue;\n \t lastchar = i;\n \t break;\n \t}\n \tbyte[] newcontents = new byte[lastchar+1];\n \tfor (int i=0; i < newcontents.length; i++)\n \t newcontents[i] = contents[i];\n \tsetContents(newcontents);\n \t \n }",
"protected String readUntilWhitespace(PushBackInputStream pdfSource) throws IOException {\n if (pdfSource.isEOF()) {\n throw new IOException( \"Error: End-of-File, expected line\");\n }\n\n StringBuilder buffer = new StringBuilder();\n\n int nextByte;\n while ((nextByte = pdfSource.read()) != -1) {\n if (isWhitespace(nextByte)) {\n pdfSource.unread(nextByte);\n break;\n }\n buffer.append((char) nextByte);\n }\n return buffer.toString();\n }",
"@SuppressWarnings(\"unused\")\n\tprivate void removeTags(File file)\n\t{\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(Main.id + \".html\"));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\t\t\tSystem.out.println(\"reading..\");\n\t\t\twhile (line != null) {\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(System.lineSeparator());\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\tString everything = sb.toString();\n\n\t\t\tDocument doc = Jsoup.parse(everything);\n\t\t\tPrintWriter writer = new PrintWriter(Main.id + \".html\");\n\n\t\t\tString text = doc.text().replaceAll(\" \", System.getProperty(\"line.separator\"));\n\n\t\t\twriter.write(text);\n\t\t\twriter.close();\n\n\t\t\tSystem.out.println(doc.text());\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"private String getText(BufferedReader reader) {\r\n String finishedText = \"\";\r\n String s = \"\";\r\n StringBuilder sb = new StringBuilder();\r\n while (s != null && !s.contains(\"<div class=\\\"csc-textpic-text\\\">\")) { //go to the text passage in the html-code\r\n try {\r\n s = reader.readLine();\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }\r\n try {\r\n while ((s = reader.readLine()) != null && !s.contains(\"</div>\")) { //read all until the end of the text passage\r\n if (s.contains(\"www\") | s.contains(\"<a>\") | s.contains(\"<i>\") | s.contains(\"<td \")) {\r\n continue;\r\n }\r\n s = s.replaceAll(\"\\t\", \"\"); //delete all tabulators\r\n s = s.replaceAll(\"<(\\\"[^\\\"]*\\\"|'[^']*'|[^'\\\">])*>\", \"\"); //delete all html-tags\r\n s = s.replaceAll(\" \", \"\"); //delete \" \"\r\n s = s.replaceAll(\".+[^(. )]$\", \"\"); //delete every codeline that does not conclude with a full stop\r\n s = s.replaceAll(\"„\", \"\"); //delete lower \"\r\n s = s.replaceAll(\"“\", \"\"); //delete upper \"\r\n s = s.replaceAll(\"&\", \"&\"); //replace amp with &\r\n s = s.replaceAll(\""\", \"\"); //delete "\r\n\r\n s = replaceSpecPattern(s, \"\\\\d+\\\\.\", \"\\\\.\", \"#\"); //replace all . in dates\r\n s = replaceSpecPattern(s, \" [a-zA-Z]{1,3}\\\\.\", \"\\\\.\", \"#\"); //replace all . in abreviations\r\n s = replaceSpecPattern(s, \"#[a-zA-Z]{1,3}\\\\.\", \"\\\\.\", \"#\"); //replace all . in janky abbreviations\r\n s = replaceSpecPattern(s, \"Prof\\\\.\", \"\\\\.\", \"#\"); //mark some abbreviations longer than 3 letters\r\n s = replaceSpecPattern(s, \"Dipl\\\\.\", \"\\\\.\", \"#\");\r\n s = replaceSpecPattern(s, \"Angl\\\\.\", \"\\\\.\", \"#\");\r\n s = replaceSpecPattern(s, \"bspw\\\\.\", \"\\\\.\", \"#\");\r\n s = replaceSpecPattern(s, \"evtl\\\\.\", \"\\\\.\", \"#\");\r\n\r\n s = s.trim();\r\n sb.append(s); //append to the stringbuilder\r\n }\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n\r\n finishedText = sb.toString(); //make a string out of the stringbuilder\r\n try {\r\n reader.close();\r\n } catch (IOException ex) {\r\n }\r\n return finishedText;\r\n }",
"private void skipWhitespace ()\n {\n\tfor (;;)\n\t{\n\t int c = peek ();\n\t if ((c == PEEK_EOF) ||\n\t\t! Character.isWhitespace ((char) c))\n\t {\n\t\tbreak;\n\t }\n\t read ();\n\t}\n }",
"private String getText(URL url){\n\tString parsedHtml=null;\n\ttry{\n\t\tHttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n\t\tString line = null;\n\t\tStringBuilder tmp = new StringBuilder();\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));\n\t\twhile ((line = in.readLine()) != null) {\n\t\t tmp.append(line);\n\t\t}\n\t\t \n\t\tDocument doc = Jsoup.parse(tmp.toString());\n\t\tparsedHtml = doc.title() + doc.body().text();\n\t\t\n\t}\n\tcatch(IOException e){\n\t\tSystem.out.println(\"Page not reached for: \"+url );\n\t}\n\tfinally{\n\t\treturn parsedHtml;\n\t}\n\t\n}",
"private void extractPageAbstract() {\n _currentPageAbstract = \"\";\n\n if (_currentPageSource.isEmpty())\n return;\n\n int iStartIndex = _currentPageSource.indexOf(\"<text \");\n if (iStartIndex < 0)\n return;\n\n iStartIndex = _currentPageSource.indexOf(\">\", iStartIndex);\n ++iStartIndex;\n\n int iEndIndex = _currentPageSource.indexOf(\"==\", iStartIndex);\n\n if (iEndIndex < 0) {\n iEndIndex = _currentPageSource.indexOf(\"</text>\", iStartIndex);\n if (iEndIndex < 0)\n return;\n }\n\n _currentPageAbstract = _currentPageSource.substring(iStartIndex, iEndIndex);\n\n _currentPageAbstract = filterTags(_currentPageAbstract);\n }",
"private void skipWhiteSpace() throws IOException\n {\n while (Character.isWhitespace((char) source.getChar()))\n {\n source.advance();\n }\n }",
"public static String readPage(WikipediaPage page, String s) {\n page.page = s;\n return page.getContent();\n }",
"private static String readHTTPline(InputStream in) throws IOException {\n StringBuffer sb = new StringBuffer();\n int c;\n while ((c = in.read()) >= 0 && c != '\\n') {\n if (c != '\\r') // can only be the CR before the LF\n sb.append((char) (byte) c);\n }\n return sb.toString();\n }",
"protected void page () throws HTMLParseException {\r\n while (block.restSize () == 0) {\r\n switch (nextToken) {\r\n case END:\r\n return;\r\n case LT:\r\n lastTagStart = tagStart;\r\n tagmode = true;\r\n match (LT);\r\n tag (lastTagStart);\r\n break;\r\n case COMMENT:\r\n //block.addToken (new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n match (COMMENT);\r\n break;\r\n case SCRIPT:\r\n //block.addToken (new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n addTokenCheck(new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n match (SCRIPT);\r\n break;\r\n case STRING:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n break;\r\n case MT:\r\n if(!tagmode) {\r\n scanString();\r\n }\r\n default:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n }\r\n }\r\n }",
"private String readUntilWhitespaceOrAngleOrSlash ()\n {\n\tStringBuffer sb = new StringBuffer ();\n\n\tfor (;;)\n\t{\n\t int c = peek ();\n\t if ((c == PEEK_EOF) ||\n\t\t(c == '<') ||\n\t\t(c == '>') ||\n\t\t(c == '/') ||\n\t\tCharacter.isWhitespace ((char) c))\n\t {\n\t\tbreak;\n\t }\n\t sb.append ((char) c);\n\t read ();\n\t}\n\n\treturn sb.toString ();\n }",
"public String ReadHtml(File file) throws IOException {\n if(file == null){\n System.out.println(\"NULL Document\");\n return null;\n }\n doc = Jsoup.parse(file,\"UTF-8\");\n return doc.body().text();\n }",
"private static String getPageContent(URL url) {\n try {\n URLConnection htmlPage = url.openConnection();\n Scanner pageScanner = new Scanner(htmlPage.getInputStream());\n return Utils.scannerToString(pageScanner);\n } catch (IOException e) {\n System.out.println(\"Error getting page content of url:\" + url.toString());\n }\n return null;\n }",
"private String getDownloadPage(String page) throws IOException {\n String line = null;\n String content = null;\n URL htmlpage = null;\n URLConnection conn = null;\n InputStream ins = null;\n\n if(ProxyManager.useProxy){\n System.setProperty(\"http.proxyHost\", ProxyManager.proxyHost);\n System.setProperty(\"http.proxyPort\", ProxyManager.proxyPort);\n }\n \n try {\n htmlpage = new URL(page);\n conn = htmlpage.openConnection();\n \n if(cookieManager.useCookie) {\n conn.setRequestProperty(\"Cookie\", cookieManager.cookie_s);\n }\n \n ins = conn.getInputStream();\n \n } catch (MalformedURLException ex) {\n Logger.getLogger(SQLSentinelUtils.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n\n BufferedReader dis = new BufferedReader(new InputStreamReader(ins));\n while ((line = dis.readLine()) != null) {\n content += line;\n }\n dis.close();\n return content;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the player's data in the sql database. | public void updatePlayerData() {
final UUID uuid = player.getUniqueId();
if (!(playerExists())) createPlayer();
try (PreparedStatement statement = getConnection().prepareStatement(
"UPDATE " + table + " SET Nickname=?,Kills=?," +
"FinalKills=?,Deaths=?,RecordKills=?," +
"RecordFinalKills=?,RecordDeaths=?," +
"GamesPlayed=?,Wins=?,Losses=?,FlagsStolen=?," +
"YourFlagsStolen=?,NetherStarsCashedIn=?," +
"TeamsEliminated=?,PurchasesMade=? WHERE UUID=?")) {
statement.setString(1, player.getDisplayName());
statement.setInt(2, kills);
statement.setInt(3, finalKills);
statement.setInt(4, deaths);
statement.setInt(5, recordKills);
statement.setInt(6, recordFinalKills);
statement.setInt(7, recordDeaths);
statement.setInt(8, gamesPlayed);
statement.setInt(9, wins);
statement.setInt(10, losses);
statement.setInt(11, flagsStolen);
statement.setInt(12, yourFlagsStolen);
statement.setInt(13, teamsEliminated);
statement.setInt(14, netherStarCashedIn);
statement.setInt(15, purchasesMade);
statement.setString(16, uuid.toString());
statement.executeUpdate();
Bukkit.getConsoleSender().sendMessage(ChatColor.GOLD +
"Player Updated: " + player.getName());
} catch (SQLException throwables) {
throwables.printStackTrace();
} catch (Exception lostConnectionException) {
mySqlSetup();
updatePlayerData();
}
} | [
"void updatePlayerData(PlayerData playerData);",
"@Override\n public void changeData(Player player) {\n String command = F_BASE + \"update_player_inf(\\'\" + player.getId_code() + \"\\', \\'\" + player.getName() + \"\\', \\'\" + player.getStatus() + \"\\');\";\n openConnection();\n try {\n statement = connection.createStatement();\n statement.execute(command);\n statement.close();\n connection.commit();\n } catch (SQLException e) {\n //e.printStackTrace();\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error alert\");\n alert.setHeaderText(\"Error\");\n alert.setContentText(\"Error\");\n alert.showAndWait();\n } finally {\n closeConnection();\n }\n }",
"public void updatePlayerData() {\n final Client client = Client.getInstance();\n client.getPlayerData(new ResponseHandler() {\n @Override\n public void handleResponse(Response response) {\n if (response.isSuccess()) {\n cPlayerData = (PlayerData) response.getData();\n }\n client.updateRemoteUsername(cPlayerData.toString(), null);\n if (cPlayerData.toString() == null) {\n cPlayerData.setUsername(\"Unknown\");\n }\n }\n });\n client.getGroupId(new ResponseHandler() {\n @Override\n public void handleResponse(Response response) {\n if (response.isSuccess()) {\n cPlayerData.setGroupId((String) response.getData());\n }\n }\n });\n }",
"public void update(Player player) {\n PlayerDAO playerDAO = DAOFactory.getInstance().getPlayerDAO();\n Player playerToUpdate = playerDAO.findById(player.getId());\n if (playerToUpdate.getId() == 0) {\n playerDAO.insert(player);\n System.out.println(\"Player \" + player.getName() + \" was inserted as it is not existing.\");\n return;\n }\n Statement statement;\n try {\n statement = connection.createStatement();\n\n int result = statement.executeUpdate(\n String.format(\"UPDATE Player SET CLUB_ID = '%s', NAME = '%s' WHERE ID = '%s';\",\n player.getCurrentClub().getId(), player.getName(), player.getId()));\n } catch (SQLException e) {\n e.printStackTrace();\n }\n System.out.println(\"Update in table Player succeed!\");\n }",
"@Override\n\tpublic boolean updatePlayer(Player p) {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t\n\t\tfinal String query = \"UPDATE players SET name=?, num=?, position=?,\" + \n\t\t\" batting_average=? WHERE id = ?;\";\n\t\t\n\t\ttry {\n\t\t\tconn = ConnectionUtil.getConnection();\n\t\t\tstmt = conn.prepareStatement(query);\n\t\t\tstmt.setString(1, p.getName());\n\t\t\tstmt.setLong(2, p.getNum());\n\t\t\tstmt.setString(3, p.getPosition());\n\t\t\tstmt.setDouble(4, p.getBattingAverage());\n\t\t\tstmt.setLong(5, p.getId());\n\t\t\t\n\t\t\tstmt.execute();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t} finally {\n\t\t\tStreamCloser.close(stmt);\n\t\t\tStreamCloser.close(conn);\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public void saveToDb() {\r\n\ttry {\r\n\t Connection con = DatabaseConnection.getConnection(); // Get a connection to the database\r\n\t PreparedStatement ps = con.prepareStatement(\"UPDATE pets SET \" + \"name = ?, level = ?, \" + \"closeness = ?, fullness = ? \" + \"WHERE petid = ?\"); // Prepare statement...\r\n\t ps.setString(1, getName()); // Set name\r\n\t ps.setInt(2, getLevel()); // Set Level\r\n\t ps.setInt(3, getCloseness()); // Set Closeness\r\n\t ps.setInt(4, getFullness()); // Set Fullness\r\n\t ps.setInt(5, getUniqueId()); // Set ID\r\n\t ps.executeUpdate(); // Execute statement\r\n\t ps.close();\r\n\t} catch (SQLException ex) {\r\n\t Logger.getLogger(MaplePet.class.getName()).log(Level.SEVERE, null, ex);\r\n\t}\r\n }",
"public void updatePlayer() {\n\t\ttry {\n\t\t\toos.writeObject(localPlayer);\n\t\t\toos.flush();\n\t\t\t//discard any cached references.\n\t\t\toos.reset();\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"client: updatePlayer() ioe: \" + ioe.getMessage());\n\t\t}\n\t}",
"public void updateToPlayingGame(String username){\n try(PreparedStatement updateStatement = connection.prepareStatement(\"UPDATE userstatus SET playing = 1 WHERE username = ? \")){\n updateStatement.setString(1, username);\n updateStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void updateDB() throws SQLException\n {\n // Get the database and update it as required\n DBBridge db = GameHandler.getPersistentDB();\n \n if (completed)\n {\n // Remove the quest from the database since it has been completed\n String delete = \"DELETE * FROM tblActiveQuests WHERE QuestID = \" + questID + \";\";\n db.update(delete);\n }\n else\n {\n // Update the values of the quest in the database\n String update = \"UPDATE tblActiveQuests SET QuestProgress = \" + progress + \" WHERE QuestID = \" + questID + \";\";\n \n db.update(update);\n }\n }",
"public void loadPlayerData() {\n final UUID uuid = player.getUniqueId();\n if (!(playerExists())) createPlayer();\n try (PreparedStatement statement = getConnection().prepareStatement(\n \"SELECT * FROM \" + table + \" WHERE UUID=?\")) {\n statement.setString(1, uuid.toString());\n\n ResultSet results = statement.executeQuery();\n results.next();\n player.setDisplayName(results.getString(\"Nickname\"));\n kills = results.getInt(\"Kills\");\n finalKills = results.getInt(\"FinalKills\");\n deaths = results.getInt(\"Deaths\");\n recordKills = results.getInt(\"RecordKills\");\n recordFinalKills = results.getInt(\"RecordFinalKills\");\n recordDeaths = results.getInt(\"RecordDeaths\");\n gamesPlayed = results.getInt(\"GamesPlayed\");\n wins = results.getInt(\"Wins\");\n losses = results.getInt(\"Losses\");\n flagsStolen = results.getInt(\"FlagsStolen\");\n yourFlagsStolen = results.getInt(\"YourFlagsStolen\");\n teamsEliminated = results.getInt(\"TeamsEliminated\");\n netherStarCashedIn = results.getInt(\n \"NetherStarsCashedIn\");\n purchasesMade = results.getInt(\"PurchasesMade\");\n Bukkit.getConsoleSender().sendMessage(ChatColor.GOLD +\n \"Player Loaded: \" + player.getName());\n results.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n } catch (Exception lostConnectionException) {\n mySqlSetup();\n loadPlayerData();\n }\n }",
"public void updatePlayerData() {\n Logger.getLogger(ClientMain.class.getName()).log(Level.INFO, \"Updating player data\");\n enqueue(new Callable<Void>() {\n\n public Void call() throws Exception {\n Screen screen = nifty.getScreen(\"lobby\");\n Element panel = screen.findElementByName(\"layer\").findElementByName(\"panel\").findElementByName(\"players_panel\").findElementByName(\"players_list\").findElementByName(\"panel\");\n List<PlayerData> players = PlayerData.getHumanPlayers();\n for (Iterator<Element> it = new LinkedList<Element>(panel.getElements()).iterator(); it.hasNext();) {\n Element element = it.next();\n element.markForRemoval();//disable();\n }\n TextCreator labelCreator = new TextCreator(\"unknown player\");\n labelCreator.setStyle(\"my-listbox-item-style\");\n for (Iterator<PlayerData> it = players.iterator(); it.hasNext();) {\n PlayerData data = it.next();\n Logger.getLogger(ClientMain.class.getName()).log(Level.INFO, \"List player {0}\", data);\n labelCreator.setText(data.getStringData(\"name\"));\n labelCreator.create(nifty, screen, panel);\n }\n return null;\n }\n });\n }",
"void migrate(PlayerData playerData);",
"void updatePlayer(Player player);",
"@Override\n public void update() {\n try {\n PreparedStatement updateMetal = DatabaseManager.getSingleton().getConnection()\n .prepareStatement(\"UPDATE Metal SET dissolvedById = ?, moles = ? WHERE elementId = ?;\");\n updateMetal.setInt(1, metal.getDissolvedById());\n updateMetal.setDouble(2, metal.getMoles());\n updateMetal.setInt(3, metal.getMetalId());\n\n PreparedStatement updateElement = DatabaseManager.getSingleton().getConnection()\n .prepareStatement(\"UPDATE Element SET atomicNumber = ?, atomicMass = ? WHERE elementId = ?;\");\n updateMetal.setInt(1, metal.getAtomicNumber());\n updateMetal.setDouble(2, metal.getAtomicMass());\n updateMetal.setInt(3, metal.getMetalId());\n\n PreparedStatement updateChemical = DatabaseManager.getSingleton().getConnection()\n .prepareStatement(\"UPDATE Chemical SET name = ?, inventory = ? WHERE chemicalId = ?;\");\n updateChemical.setString(1, metal.getName());\n updateChemical.setDouble(2, metal.getInventory());\n updateChemical.setInt(3, metal.getMetalId());\n\n updateMetal.execute();\n updateElement.execute();\n updateChemical.execute();\n } catch (SQLException | DatabaseException e) {\n e.printStackTrace();\n System.out.println(\"Failed to update\");\n }\n }",
"public void updateData(){\n this.scores = mDB.queryAll();\n }",
"public void update(){\r\n\t\tthis.loadRecords();\r\n\t}",
"TimeSeriesDatabaseConnection.Update update();",
"void savePlayerData(PlayerData playerData);",
"public void savePlayers() {\n\t\tfor(String key : players.keySet()) {\n\t\t\tinsertOrUpdate(key);\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set EventID for this event. | public void setEventID(int eventID) {
EventID = eventID;
} | [
"public void setEventID(int value) {\r\n this.eventID = value;\r\n }",
"public void setEventID(String eventID){\n this.eventID = eventID;\n }",
"@Override\n\tpublic void setEventId(long eventId) {\n\t\t_events.setEventId(eventId);\n\t}",
"public void setEventId(Number value) {\n setAttributeInternal(EVENTID, value);\n }",
"public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder setEVENTID(java.lang.Long value) {\n validate(fields()[54], value);\n this.EVENT_ID = value;\n fieldSetFlags()[54] = true;\n return this;\n }",
"public void setEventid(Integer eventid) {\n this.eventid = eventid;\n }",
"public void setEventSetId(java.lang.String eventSetId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EVENTSETID$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EVENTSETID$0);\n }\n target.setStringValue(eventSetId);\n }\n }",
"public void setId(final String id) {\n \t\teventId = id;\n \t}",
"public void setEVENTID(java.lang.Long value) {\n this.EVENT_ID = value;\n }",
"public void setEventId(int value) {\n this.eventId = value;\n }",
"public void setEventId(long value) {\n this.eventId = value;\n }",
"public void setEventId(Integer eventId) {\n\t\tthis.eventId = eventId;\n\t}",
"public void xsetEventSetId(org.apache.xmlbeans.XmlString eventSetId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(EVENTSETID$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(EVENTSETID$0);\n }\n target.set(eventSetId);\n }\n }",
"public void setEventItemID(long eventItemID) {\n this.eventItemID = eventItemID;\n }",
"public void setIdDoencaEvento(final Long idDoencaEvento) {\r\n this.idDoencaEvento = idDoencaEvento;\r\n }",
"public void setEventNumber(int eventNumber) {\n this.eventNumber = eventNumber;\n }",
"public void setEvent(Event event) {\n\t\tthis.currentEvent = event;\n\t}",
"public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setEnvelopeId(java.lang.String value) {\n validate(fields()[2], value);\n this.envelopeId = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"public void setUlIdEvent(int ulIdEvent)\r\n {\r\n this._ulIdEvent = ulIdEvent;\r\n this._has_ulIdEvent = true;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This constructor is used to get a power law degree distribution with given length, average degree, and gammma i.e p(k) = Constpow(k,gamma) | public QDistribution_PowerLaw(double avg_degree, double gamma)
{
length = calculateDistLength(gamma, avg_degree)-1; /*Length is from QDist, however calculated for pDist. Hence the -1 */
double epsilon = (1.0/ (zeta(gamma, length)));
pDist = new double[length+1];
pDist[0] = 0;
//pDist[1] = 0; /* Remaining degree = 0 is problematic, not allowed */
for(int i=1;i<(length+1);i++)
{
pDist[i] = epsilon*Math.pow(i, -1*gamma);
}
qDist = getRemainingDegreeDist(pDist);
random = new Random();
} | [
"public QDistribution_PowerLaw(double avg_degree)\n\t{\n\t\t\tdouble gamma = 1;\n\t\t\tlength = calculateDistLength(gamma, avg_degree)-1; /*Length is from QDist, however calculated for pDist. Hence the -1 */\n\t\t\tdouble epsilon = (1.0/ (zeta(gamma, length))); \n\t\t\tpDist = new double[length+1];\n\t\t\tpDist[0] = 0;\n\t\t\t//pDist[1] = 0; /* Remaining degree = 0 is problematic, not allowed */\n\t\t\tfor(int i=1;i<(length+1);i++) \n\t\t\t{\n\t\t\t pDist[i] = epsilon*Math.pow(i, -1*gamma);\t\n\t\t\t}\n\t\t\t\n\t\t\tqDist = getRemainingDegreeDist(pDist);\n\t\t\trandom = new Random();\n\t\t\n\t}",
"public Polinomio(){\n\tcoeficientes = new int[6];//Se crea un arreglo para el polinomio default\n\tthis.grado=coeficientes.length-1;//Se define el grado del polinomio\n\tfor(int a=0; a<coeficientes.length; a++){\n\t coeficientes[a]=2;\n\t}\n\texp= new int[coeficientes.length]; //Se determina la longitud del arreglo de exponentes\n\tint b=grado;\n\tfor(int a=0; a<coeficientes.length; a++){ //Se determinan los valores de exponentes\n\t exp[a]=b;\n\t b--;\n\t}\n }",
"public PowerGenerator(double aFactor)\n {\n this.aFactor= aFactor;\n }",
"public PolynomialTerm(int coefficient, int power) {\n this.coefficient = coefficient;\n this.power = power;\n }",
"public void pow (G exponent);",
"public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}",
"public Polynomial() {\n degree = 0;\n }",
"public Polynomial()\r\n\t{\r\n\t\tdouble[] coeff = new double[1];\r\n\t\tcoeff[0] = 0;\r\n\t\tthis.coeffs = coeff;\r\n\t}",
"double getPowerFactor();",
"public Polynomial power(int p){\n if (p == 0) {\n ArrayList<Monomial> ans = new ArrayList<>();\n ans.add(Monomial.parseMono(\"1\"));\n return new Polynomial(ans);\n }\n if (p < 0) throw new ArithmeticException(\"The Polynomial cannot be raised to a negative power (functionality not supported)\");\n Polynomial temp = Polynomial.parsePoly(this.toString());\n for(int i = 1; i < p; i++){\n temp = temp.multiply(this);\n }\n return temp;\n }",
"public Polynomial() {\n\t\tlist = new LinkedList<Double>();\n\t}",
"Polynomial(){\n\t\tthis.equation = new TreeMap<Integer, Double>();\n\t\tthis.size=0;\n\t}",
"public Power(double base, double exponent) {\n\t\tthis.base = base;\n\t\tthis.exponent = exponent;\n\t}",
"NFP_Power createNFP_Power();",
"public HypergeometricDistribution(){\n\t\tthis(100, 50, 10);\n\t}",
"public Term(float coeff, int degree) {\r\n\t\tthis.coeff = coeff;\r\n\t\tthis.degree = degree;\r\n\t}",
"public Quantity pow(int power)\n {\n Quantity ans = new Quantity();\n ans.value = Math.pow(this.value, power);\n //ans.uncertainty = (ans.value * Math.abs(power) * (this.uncertainty / this.value));\n ans.units = new HashMap();\n // remove the units if to the power of zero, otherwise just modify to the\n // power\n for (String ou : this.units.keySet()) \n {\n if(Integer.valueOf(power * ((Integer)this.units.get(ou)).intValue()) == 0)\n {\n ans.units.remove(ou);\n } \n else\n {\n ans.units.put(ou, Integer.valueOf(power * ((Integer)this.units.get(ou)).intValue()));\n }\n }\n return ans;\n }",
"public PPolynomial(final BigInteger coeff, final PVariable variable,\n\t\t\tfinal int power) {\n\t\tthis();\n\t\tif (coeff != BigInteger.ZERO)\n\t\t\tterms.put(new PTerm(variable, power), coeff);\n\t}",
"public MovingAveragePolynomial(final double... parameters) {\n super(parameters);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns or sets the time in miliseconds for the communication line break signal Getter method for the COM property "BreakLength" | @DISPID(17) //= 0x11. The runtime will prefer the VTID if present
@VTID(40)
short breakLength(); | [
"public int getTimeLength() {\r\n return timeLength;\r\n }",
"@DISPID(17) //= 0x11. The runtime will prefer the VTID if present\n @VTID(39)\n void breakLength(\n short retval);",
"public long lengthInMilli() {\n return this.length.milliSec();\n }",
"public AvailabilityPeriod getBreakTime() {\n\t\treturn breakTime;\n\t}",
"public int getMillisecondLength() {\n\t\treturn meta.length();\n\t}",
"public int getWrapLength() {\n return wrapLength.intValue();\n }",
"public double getStepLength() {\n\t\treturn m_dStepLength;\n\t}",
"public double getLengthMeter() {\n return lengthMeter;\n }",
"public String getFormattedLength() {\n\t\tNumberFormat formatter = new DecimalFormat(LENGTH_FORMAT);\n\t\tint hours = length / (60 * 60);\n\t\tint minutes = (length % (60 * 60)) / 60;\n\t\tint seconds = length % 60;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (hours > 0) {\n\t\t\tsb.append(formatter.format(hours) + ':');\n\t\t}\n\t\tsb.append(formatter.format(minutes) + ':');\n\t\tsb.append(formatter.format(seconds));\n\t\treturn sb.toString();\n\t\t\n\t}",
"public long getLength () {\n\t\treturn (value.getLength());\n\t}",
"public long getMicrosecondLength();",
"private int getDuration(int length, int dotCount, int lineNum) {\n\t\tdouble duration = length == 0 ? 2.0 * WHOLE_NOTE_DURATION_TICKS : ((double) WHOLE_NOTE_DURATION_TICKS) / length;\n\t\t\n\t\tdouble dotBonus = 0.0;\n\t\tfor (int i = 0, denominator = 2; i < dotCount; i++, denominator *= 2) {\n\t\t\tdotBonus += duration / denominator;\n\t\t}\n\t\t\n\t\treturn (int) Math.round(dotBonus + duration);\n\t}",
"public long getTickLength();",
"public String getlength()\n\t{\n\t\treturn length.getText();\n\t}",
"int getWayLength();",
"public final DoubleProperty prefWrapLengthProperty() {\n if (prefWrapLength == null) {\n prefWrapLength = new DoublePropertyBase(400) {\n @Override\n protected void invalidated() {\n requestLayout();\n }\n\n @Override\n public Object getBean() {\n return HangingFlowPane.this;\n }\n\n @Override\n public String getName() {\n return \"prefWrapLength\";\n }\n };\n }\n return prefWrapLength;\n }",
"public int getStopTime() {\n\t\treturn stopTime;\n\t}",
"com.google.protobuf.Duration getDowntimeJailDuration();",
"public int getDelaySplitSize() {\r\n return delaySplitSize;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the click is misinterpreted as a long press, do a pressBack() to dismiss a context menu. | private static GeneralClickAction clickAndPressBackIfAccidentallyLongClicked() {
return new GeneralClickAction(
Tap.SINGLE, GeneralLocation.CENTER, Press.FINGER, ViewActions.pressBack());
} | [
"public void cancelLongPress() { throw new RuntimeException(\"Stub!\"); }",
"void longClick();",
"public void rightClick();",
"public int rightClick()\r\n {\r\n if(!pressed)\r\n {\r\n switch( flag )\r\n {\r\n // flag a square with a 'flag'\r\n case 0:\r\n flag = 1;\r\n this.setIcon(FLAG);\r\n return -1;\r\n // mark a square with a '?'\r\n case 1:\r\n flag = 2;\r\n this.setIcon(QUESTIONMARK);\r\n return +1;\r\n // clear '?'\r\n case 2:\r\n flag = 0;\r\n this.setIcon(UNCLICKED);\r\n return 0;\r\n default:\r\n break;\r\n }\r\n }\r\n return 0;\r\n }",
"public void RightClickToCutOption() {\n\n\t\tthis.RightClickCutOption();\n\n\t}",
"public boolean onTouch (View v, MotionEvent ev) \r\n{\r\n // If we are configured to start only on a long click, we are not going to handle any events here.\r\n if (mLongClickStartsDrag) return false;\r\n\r\n boolean handledHere = false;\r\n\r\n final int action = ev.getAction();\r\n\r\n // In the situation where a long click is not needed to initiate a drag, simply start on the down event.\r\n if (action == MotionEvent.ACTION_DOWN) {\r\n handledHere = startDrag (v);\r\n if (handledHere) v.performClick ();\r\n }\r\n \r\n return handledHere;\r\n}",
"public boolean interpretLongPressEvents() {\n return false;\n }",
"public static ViewAction longClick() {\n return actionWithAssertions(\n new GeneralClickAction(\n Tap.LONG,\n GeneralLocation.CENTER,\n Press.FINGER,\n InputDevice.SOURCE_UNKNOWN,\n MotionEvent.BUTTON_PRIMARY));\n }",
"@Override\n\tpublic void clickNotHandled() {\n\t\tmSlideUpContainer.slideClose();\n\t}",
"public void onLongPress(PressID p);",
"public boolean LongClick() {\r\n\t return EventDispatcher.dispatchEvent(this, \"LongClick\");\r\n\t }",
"abstract void onRightClick(int x, int y, boolean down);",
"public void RightClickToPasteOptionCut() {\n\n\t\tthis.RightClickPasteOptionCut();\n\n\t}",
"public boolean onLongClick(View v) \r\n{\r\n if (mLongClickStartsDrag) {\r\n \r\n //trace (\"onLongClick in view: \" + v + \" touchMode: \" + v.isInTouchMode ());\r\n\r\n // Make sure the drag was started by a long press as opposed to a long click.\r\n // (Note: I got this from the Workspace object in the Android Launcher code. \r\n // I think it is here to ensure that the device is still in touch mode as we start the drag operation.)\r\n if (!v.isInTouchMode()) {\r\n toast (\"isInTouchMode returned false. Try touching the view again.\");\r\n return false;\r\n }\r\n return startDrag (v);\r\n }\r\n\r\n // If we get here, return false to indicate that we have not taken care of the event.\r\n return false;\r\n}",
"public void onLongRelease(PressID p);",
"public void menuCanceled(MenuEvent evt) {\n }",
"@Override\n public void onLongPress(View v) {\n }",
"public void mouseClick()\n {\n\t thisRobot.mousePress(RightClick);\n }",
"public abstract void onRightClick(double x, double y, boolean release);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Invokes the actionDataRequired event. | public void askActionData() {
((Event<RemoteActionsHandler, RemoteAction.Data>)actionDataRequired).invoke(this, getActionData());
} | [
"public void ifRequired(Runnable action) {\n if (required) {\n action.run();\n }\n }",
"public boolean getActionRequired() {\n return actionRequired;\n }",
"public void setActionRequired(boolean tmp) {\n this.actionRequired = tmp;\n }",
"public void authenicateDeviceIfRequired() {\n\t\tthis.execute(false);\n\t\t\n\t}",
"private void validateData( )\n\t{\n boolean isValid = ( m_queryTextField != null &&\n getQueryText() != null && getQueryText().trim().length() > 0 );\n\n if( isValid )\n setMessage( DEFAULT_MESSAGE );\n else\n setMessage( \"Requires input value.\", ERROR );\n\n\t\tsetPageComplete( isValid );\n\t}",
"Boolean isDataAction();",
"static void checkArgsValRequired(final DatabaseEntry key,\n final DatabaseEntry data) {\n DatabaseUtil.checkForNullDbt(key, \"key\", true);\n DatabaseUtil.checkForNullDbt(data, \"data\", true);\n }",
"public void setActionRequired(String tmp) {\n this.actionRequired = DatabaseUtils.parseBoolean(tmp);\n }",
"public final void setRequired() {_occ.setRequired();}",
"public abstract void onUserActionRequired(Intent intent);",
"public void checkSubmitedData()\n {//GEN-END:|90-if|0|90-preIf\n // enter pre-if user code here\n if (user.checkSubmitedData(getUsername().getString(), getPassword().getString(), getSetSave().isSelected(0)))//GEN-BEGIN:|90-if|1|91-preAction\n {//GEN-END:|90-if|1|91-preAction\n // write pre-action user code here\n switchDisplayable(null, getLogInWaitScreen());//GEN-LINE:|90-if|2|91-postAction\n // write post-action user code here\n }//GEN-BEGIN:|90-if|3|92-preAction\n else\n {//GEN-END:|90-if|3|92-preAction\n // write pre-action user code here\n switchDisplayable(null, getAlertDataEmpty());//GEN-LINE:|90-if|4|92-postAction\n // write post-action user code here\n }//GEN-LINE:|90-if|5|90-postIf\n // enter post-if user code here\n }",
"public void setDatafromaction(Integer datafromaction) {\n this.datafromaction = datafromaction;\n }",
"public void queueEvent(FacesEvent e) {\n if (e instanceof ActionEvent) {\n if (isImmediate()) {\n e.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);\n } else {\n e.setPhaseId(PhaseId.INVOKE_APPLICATION);\n }\n }\n super.queueEvent(e);\n }",
"@FXML\r\n\tprivate void onApproveExecutorClick(ActionEvent event) {\r\n\t\tString empSelectedID = \"\";\r\n\t\tif (cmbEmployees.getSelectionModel().isEmpty()) {\r\n\t\t\tGuiManager.showError(lblError, pError, \"You must pick an employee first\");\r\n\t\t} else {\r\n\t\t\tempSelectedID = arralistOfEmployees.get(cmbEmployees.getSelectionModel().getSelectedIndex()).getIdUser();\r\n\t\t\tObjectManager msg = new ObjectManager(empSelectedID, action, MsgEnum.APPOINT_STAGE_CHARGE);\r\n\t\t\tclient.handleMessageFromClientUI(msg);\r\n\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(500);\r\n\t\t\t\ttblActionsNeeded.getItems().remove(action); // remove the line from table.\r\n\t\t\t\tGuiManager.showSuccess(lblError, pError, \"Employee: \" + empSelectedID + \" Is Now Executor\"); //show success message\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tlblPickMsg.setVisible(true);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"public String actionsRequired() {\n return this.actionsRequired;\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}",
"void actionCompleted(ActionLookupData actionLookupData);",
"public void setAppointmentRequired (java.lang.String appointmentRequired) {\n\t\tthis.appointmentRequired = appointmentRequired;\n\t}",
"public boolean action_allowed(){\r\n\t\treturn action_holds.size()==0;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draws an outlined roundcornered rectangle using this graphics context's current color. The left and right edges of the rectangle are at x and x + width, respectively. The top and bottom edges of the rectangle are at y and y + height. | public void drawRoundRect(int x, int y, int width, int height, int arcWidth,
int arcHeight)
{
// System.out.println("drawRoundRect");
} | [
"public void drawRoundRect(int x, int y, int width, int height, int arcWidth,\r\n int arcHeight) {\r\n }",
"public void strokeRoundRectangle(int x, int y, int width, int height, int radius);",
"public void drawRect(int x, int y, int width, int height, int color);",
"public final native GraphicsImpl drawRoundRect(\n\t\tfloat x, float y, float w, float h, float radius) /*-{\n\t\treturn this.drawRoundRect(x, y, w, h, radius);\n\t}-*/;",
"private void drawRectangles(GraphicsContext context) {\r\n context.clearRect(0, 0, 450, 450);\r\n for(int row = 0; row < 9; row++) {\r\n for(int col = 0; col < 9; col++) {\r\n // finds the y position of the cell, by multiplying the row number by 50, which is the height of a row\r\n // then adds 2, to add some offset\r\n int positionY = row * 50 + 2;\r\n int positionX = col * 50 + 2;\r\n\r\n // defines the width of the square as 46 instead of 50, to account for the 4px total of blank space\r\n int width = 46;\r\n context.setFill(Color.WHITE);\r\n\r\n // draw a rounded rectangle with the calculated position and width\r\n context.fillRoundRect(positionX, positionY, width, width, 10, 10);\r\n }\r\n }\r\n\r\n // draw black lines between the blocks of sudoku grid\r\n context.setStroke(Color.BLACK);\r\n context.setLineWidth(4);\r\n context.strokeLine(0, 0, 0, 450);\r\n context.strokeLine(450, 0, 450, 450);\r\n context.strokeLine(0, 0, 450, 0);\r\n context.strokeLine(0, 450, 450, 450);\r\n\r\n context.strokeLine(150, 0, 150, 450);\r\n context.strokeLine(300, 0, 300, 450);\r\n context.strokeLine(0, 150, 450, 150);\r\n context.strokeLine(0, 300, 450, 300);\r\n\r\n // draw highlight around selected cell\r\n context.setStroke(Color.RED);\r\n context.setLineWidth(4);\r\n context.strokeRoundRect(selectedColumn * 50 + 2, selectedRow * 50 + 2, 46, 46, 10, 10);\r\n }",
"public void fillRoundRectangle(int x, int y, int width, int height, int radius);",
"private void drawFilledRRect(Graphics g, Color fillColor, int lineWidth, Color lineColor, int x,\r\n int y, int w, int h, int radius) {\r\n // assert _lineWidth == 0 || _lineWidth == 1 || _lineColor == null\r\n // assert filled && filledColor != null\r\n // Do the actual fill color\r\n g.setColor(fillColor);\r\n g.fillRoundRect(x, y, w, h, radius, radius);\r\n\r\n if (lineColor != null && lineWidth == 1) {\r\n // If we're filled with a narrow border then draw\r\n // the border over the already filled area.\r\n g.setColor(lineColor);\r\n g.drawRoundRect(x, y, w, h, radius, radius);\r\n }\r\n }",
"public void drawRect(int x, int y, int width, int height, int color){\n hline(x, x + width - 1, y, color);\n hline(x, x + width - 1, y + height - 1, color);\n vline(y, y + height - 1, x, color);\n vline(y, y + height - 1, x + width - 1, color);\n }",
"public void strokeRoundRectangle(RectangleShape rectangle, int radius);",
"public void drawRoundedRectShadow(int x, int y, int width, int height, int roundSize, int shadowSize, Color color) {\n implementation.devDrawRoundedRect(\n x - shadowSize,\n y - shadowSize,\n width + 2 * shadowSize,\n height + 2 * shadowSize,\n roundSize + shadowSize,\n roundSize + shadowSize,\n new Color(30, 30, 30, 0.4)\n );\n\n implementation.devDrawRoundedRect(x, y, width, height, roundSize, roundSize, color);\n }",
"private void drawEmptyRRect(Graphics g, int lineWidth, Color lineColor, int x, int y, int w,\r\n int h, int radius) {\r\n // If there's no fill but a narrow line then just\r\n // draw that line.\r\n if (lineColor != null && lineWidth == 1) {\r\n g.setColor(lineColor);\r\n g.drawRoundRect(x, y, w, h, radius, radius);\r\n }\r\n }",
"public void drawRect(int x, int y, int width, int height);",
"public void fillRoundRectangle(RectangleShape rectangle, int radius);",
"@Override\n\t\tpublic void drawRoundRect(@NonNull Canvas canvas, @Nullable RectF rect, float rx, float ry,\n\t\t @Nullable Paint paint) {\n\t\t\tif (rect != null) {\n\t\t\t\tfinal float twoRx = rx * 2;\n\t\t\t\tfinal float twoRy = ry * 2;\n\t\t\t\tfinal float innerWidth = rect.width() - twoRx;\n\t\t\t\tfinal float innerHeight = rect.height() - twoRy;\n\t\t\t\tmCornerRect.set(rect.left, rect.top, rect.left + twoRx, rect.top + twoRy);\n\n\t\t\t\tcanvas.drawArc(mCornerRect, 180, 90, true, paint);\n\t\t\t\tmCornerRect.offset(innerWidth, 0);\n\t\t\t\tcanvas.drawArc(mCornerRect, 270, 90, true, paint);\n\t\t\t\tmCornerRect.offset(0, innerHeight);\n\t\t\t\tcanvas.drawArc(mCornerRect, 0, 90, true, paint);\n\t\t\t\tmCornerRect.offset(-innerWidth, 0);\n\t\t\t\tcanvas.drawArc(mCornerRect, 90, 90, true, paint);\n\n\t\t\t\t//draw top and bottom pieces\n\t\t\t\tcanvas.drawRect(rect.left + rx, rect.top, rect.right - rx, rect.top + ry, paint);\n\t\t\t\tcanvas.drawRect(rect.left + rx, rect.bottom - ry, rect.right - rx, rect.bottom,\n\t\t\t\t\t\tpaint);\n\n\t\t\t\t//center\n\t\t\t\tcanvas.drawRect(rect.left, (float) Math.floor(rect.top + ry), rect.right,\n\t\t\t\t\t\t(float) Math.ceil(rect.bottom - ry), paint);\n\t\t\t}\n\t\t}",
"protected abstract void drawRectangle(int x, int y, int width, int height, int red, int green, int blue, int alpha);",
"public Rectangle drawPieceRectangle(Square selectedSquare){\n Rectangle selectedRectangle = new Rectangle();\n selectedRectangle.setX((selectedSquare.getRelCol()) * RectangleSize); //Set X position based on the Relative Column\n selectedRectangle.setY((-selectedSquare.getRelRow()) * RectangleSize); //Set Y position based on the Relative Row\n selectedRectangle.setWidth(RectangleSize); //Set the width of each rectangle\n selectedRectangle.setHeight(RectangleSize); //Set the height of each rectangle\n selectedRectangle.setFill(Color.RED); //Color the fill\n selectedRectangle.setStroke(Color.BLACK); //Color the outline\n\n return selectedRectangle;\n }",
"public void fillRoundRect(int x, int y, int width, int height, int arcWidth,\r\n int arcHeight) {\r\n }",
"private RoundRectangle2D.Double drawRoundRectangle(\n int x1, int y1, int x2, int y2) {\n // Get the top left hand corner for the shape\n // Math.min returns the points closest to 0\n\n int x = Math.min(x1, x2);\n int y = Math.min(y1, y2);\n\n int width = Math.abs(x1 - x2);\n int height = Math.abs(y1 - y2);\n\n return new RoundRectangle2D.Double(x, y, width, height, 50, 50);\n }",
"public void strokeRectangle(int x, int y, int width, int height);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Update status of current booking For : Accept , Deny , Cancel | @POST("/booking/set_status")
Call<ResponseViews.UpdateBookingStatusResponse> updateBookingStatusOfCurrentBooking(@Query("id") int ownerId, @Query("token") String token, @Query("booking_id") long bookingId, @Query("status") int statusVal,@Query("reason") String message, @Query("who") int who); | [
"@POST(\"/booking/set_notify_status\")\n Call<ResponseViews.UpdateBookingStatusResponse> updateNotifyStatusOfCurrentBooking(@Query(\"id\") int ownerId, @Query(\"token\") String token, @Query(\"booking_id\") long bookingId,\n @Query(\"notify_status\") int statusVal, @Query(\"who\") int who);",
"void changeBookingStatusById(long bookingId, int bookingStatus) throws ServiceException;",
"public void updateBookingStatus (Booking b) {\n String sql = \"UPDATE booking SET booking_status = ?, total_price = ? WHERE booking_no = ?\";\n template.update(sql, b.getBookingStatus(), b.getTotalPrice(), b.getBookingNo());\n }",
"public void bookingBook (Book book) {\r\n\r\n\t\tList<Booking> bookings = bookingDao.findBookingByBookAndStateOrderByDateCreate(book, State.EnAttente);\r\n\t\t\r\n\t\tif(bookings.size() > 0) {\r\n\t\t\tbook.setIsBooking(true);\r\n\t\t} else {\r\n\t\t\tbook.setIsBooking(false);\r\n\t\t}\r\n\t}",
"Booking updateBooking(Booking booking);",
"Availability setBooked(Booking booking, Property property, ClosedOrBookedDatesDto closedOrBookedDatesDto) throws BadRequestException;",
"boolean setBookingDone(int bookingId);",
"public void updateBookingStatus(String status, int employeeID, String bookingDate) throws SQLException {\n String update = \"UPDATE bookings SET status = ? WHERE employee_id = ? AND bookedDate = ?\";\n PreparedStatement preparedStatement = null;\n\n try {\n preparedStatement = connection.prepareStatement(update);\n preparedStatement.setString(1, status);\n preparedStatement.setInt(2, employeeID);\n preparedStatement.setString(3, bookingDate);\n\n preparedStatement.executeUpdate();\n }catch(SQLException e) {\n System.out.println(\"updateBookingStatus: \" + e.getMessage());\n e.printStackTrace();\n } finally {\n preparedStatement.close();\n connection.close();\n }\n\n }",
"public void approve(){\n\t\tif(status == LoanApplicationStatus.Pending){\n\t\t\tstatus = LoanApplicationStatus.Accepted;\n\t\t}\n\t}",
"public void setBookingStatus(java.lang.String bookingStatus) {\n this.bookingStatus = bookingStatus;\n }",
"private void updateRestaurantStatus(int status) {\n commonMethods.showProgressDialog(this, customDialog);\n apiService.storeavailtoggle(sessionManager.getToken(), status).enqueue(new RequestCallback(REQ_RESTAURANT_STATUS, this));\n }",
"public boolean confirmReservation(Auth obj)throws AppException\r\n\t{\r\n\t\t//Employee emp=new Employee();\r\n\t\t//Record rec=new Record();\r\n\t\t\r\n\t\tConnection con=DBUtils.connectToDB();\r\n\t\tPreparedStatement ps=null;\r\n\t\tResultSet rs=null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"trying to update sql query\");\r\n\t\t\tps=con.prepareStatement(\"UPDATE emp_db.reservation SET table_id=?,status=? WHERE code=?\");\r\n\t\t\tps.setInt(1,obj.getTable_id());\r\n\t\t\tps.setString(2, \"waiting\");\r\n\t\t\tps.setInt(3, obj.getCode());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tps.executeUpdate();\r\n\t\t\t\r\n\t\t\t//printing db rows\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new AppException(\"Error in fetching records from db\",e.getCause());\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tDBUtils.closeResources(ps, con, rs);\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"void updateAvailability(Context ctx) throws SQLException, PersonNotFoundException {\n int avail = ctx.formParam(\"availability\", Integer.class).get();\n personRepository.updateAvailability(avail, currentPerson(ctx).getIdentifier());\n }",
"public updateAppointmentsStatus(Activity _activity, String _appointmentid, String _updateStatus, String _guid, String _cancelReason) {\n activity = _activity;\n appointmentid = _appointmentid;\n updateStatus = _updateStatus;\n guid = _guid;\n cancelReason = _cancelReason;\n // cancelReason = _status;\n //calendarId = _calendarId;\n\n\n }",
"Transfer updateStatus(Long id, Payment.Status status);",
"@Test\n\tpublic void updateBidStat() {\n\t\tbidRepo.updateBidStatus(1010, \"rejected\");\n\t}",
"public void bookAppointment(Appointment appointment) {\n\t\t\n\t\tSystem.out.println(appointment);\n\t\t\n\t\t// Get the appointment that will be updated\n\t\tAppointment updatedAppointment = this.appointmentRepository.findByAppointmentId(appointment.getAppointmentId());\n\t\tSystem.out.println(updatedAppointment);\n\t\t// Set the status to booked\n\t\tupdatedAppointment.setStatus(\"booked\");\n\t\t\n\t\tthis.appointmentRepository.save(updatedAppointment);\n\t}",
"void updateCandidateStatus(long candidateId, Result status);",
"public void setStatusPending(){\n this.status = false;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'SPCA_CAT' field. | public java.lang.CharSequence getSPCACAT() {
return SPCA_CAT;
} | [
"public java.lang.CharSequence getSPCACAT() {\n return SPCA_CAT;\n }",
"public void setSPCACAT(java.lang.CharSequence value) {\n this.SPCA_CAT = value;\n }",
"public String getCatName() {\n return (String)getAttributeInternal(CATNAME);\n }",
"public String getCatCode() {\n return catCode;\n }",
"public java.lang.String getCstcatg () {\n\t\treturn cstcatg;\n\t}",
"public String getSubCat() {\n if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_subCat == null)\n jcasType.jcas.throwFeatMissing(\"subCat\", \"common.types.text.Token\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((Token_Type)jcasType).casFeatCode_subCat);}",
"public String getCatId() {\r\n\t\treturn catId;\r\n\t}",
"public CloudCategory getCldCat() {\n return cloudCategory;\n }",
"public java.lang.String getCat_cd() {\n\t\treturn cat_cd;\n\t}",
"public String getCat_class() {\n\t\treturn cat_class;\n\t}",
"public String getCncategory() {\n return cncategory;\n }",
"public String getSCusCategoryID() {\n return sCusCategoryID;\n }",
"public Short getCatId() {\n return catId;\n }",
"public java.lang.String getSMCAT() {\n return SMCAT;\n }",
"public String getTermcat() {\r\n return (String) getAttributeInternal(TERMCAT);\r\n }",
"public auction.schema.Arche_Service_xsd.CategoryBaseT getSCategory() {\n return SCategory;\n }",
"public String getCatName() {\n return catName;\n }",
"public java.lang.String getCategory()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CATEGORY$6, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public java.lang.String getCategory()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CATEGORY$4, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TRAMITE.TDMVD_REGREQTUPA.N_NUMGRUPO | public Short getnNumgrupo() {
return nNumgrupo;
} | [
"public java.lang.String getGrnNo () {\n\t\treturn grnNo;\n\t}",
"public String getGrupoNRC() {\n return grupoNRC;\n }",
"public int getNUMRGSTRO() {\n return numrgstro;\n }",
"public int getRegNum() {\n return regNum;\n }",
"public int getGiorno() {\r\n return giorno;\r\n }",
"public String lastGudeRemission() {\n String _number = \"\";\n String xquery = \"SELECT g.guia_id FROM almacen_guiaremision g ORDER BY g.registrado DESC LIMIT 1 OFFSET 0;\";\n _number = (String) new Connect(getEnterprise()).ExecuteQuery(xquery, new Object[0], \"guia_id\");\n return _number;\n }",
"public int getIdGiorno(){\n\t\treturn idGiorno;\n\t}",
"public java.lang.Long getPRIMSLLNGRTTNIND() {\n return PRIM_SLLNG_RTTN_IND;\n }",
"public java.lang.String getRegistNo() {\n return registNo;\n }",
"public String getUpdatePropRegNo() {\n\t\treturn updatePropRegNo;\n\t}",
"public java.lang.Long getPRIMSLLNGRTTNIND() {\n return PRIM_SLLNG_RTTN_IND;\n }",
"public java.lang.String getCodigoGrupoRiesgoBuro() {\r\n return codigoGrupoRiesgoBuro;\r\n }",
"public int getPRDNO() {\n return PRDNO;\n }",
"public Integer getAddngbnum() {\r\n return addngbnum;\r\n }",
"public String getNRN();",
"public String getRegNumber() {\n return findElementBy(REGISTRATION_NUMBER).getText();\n }",
"public String getvNumreg() {\n return vNumreg;\n }",
"public String getvNumanoreg() {\n return vNumanoreg;\n }",
"public int obtenerSiguienteNumeroOrden() {\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return controlOC.obtenerSiguienteNumeroOrden();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Seats a walkin an "empty" table. | public boolean fillEmptyTable() {
if(isEmpty()) {
System.err.println("The queue is empty! All of the walk-ins have been seated!");
return false;
}
else {
WalkIn out = first.getData();
first = first.getNextNode();
if(first == null) last = null;
size--;
System.out.println("Here is your table " + out.getNames() + "."
+ " You've been seated at " + out.getTime() + ".");
return true;
}
} | [
"void visit(final Table table);",
"void shootAtEmptySea(int row, int column) {\n\t\tthis.hit[0] = true;\n\t}",
"public void Reset ( ) \r\n\t{\r\n\t\tcurrentCol = size / 2;\r\n\t\tcurrentRow = size / 2;\r\n\t\t\r\n\t\tint totalDistance;\r\n\t\tdo {\r\n\t\tint dist = size*size+1;\r\n\t\tmaze = new Room [size] [size];\r\n\t\tfor ( int row = 0; row < size; row++ )\r\n\t\t\tfor ( int col = 0; col < size; col++ )\r\n\t\t\t\tmaze [row] [col] = new Room ( dist);\r\n\t\ttotalDistance = CalcDistance();\r\n\t\t} while ( totalDistance >= size*size );\r\n\t\t\r\n\t\tmaze [currentRow] [currentCol].InsertWalker ( );\r\n\t}",
"private void moveToEmptyNeighborIfPossible() {\n List<AbstractCell> emptyNeighbors = getNeighborsInState(State.WATER);\n if (emptyNeighbors.size() > 0) {\n WaTorCell emptyNeighbor = (WaTorCell) getRandomNeighborFromSubset(emptyNeighbors);\n // transfer this cell's status info over to its new location\n emptyNeighbor.numberOfChrononsSurvivedSinceLastReproduction =\n this.numberOfChrononsSurvivedSinceLastReproduction;\n emptyNeighbor.energyLevel = this.energyLevel;\n emptyNeighbor.setNextState(this.getCurrentState());\n reproduceIfPossible();\n } else {\n stayInSameState();\n }\n }",
"abstract protected boolean tableIsEmpty();",
"public void hunt() {\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(cells[i].visited == false) {\n\t\t\t\t\n\t\t\t\tint currentIndex = i;\n\t\t\t\t\n\t\t\t\tArrayList<Integer> neighbors = setVisitedNeighbors(i);\n\t\t\t\tint nextIndex = getRandomVisitedNeighborIndex(neighbors);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(neighbors.size() != 0 ) {\n\t\t\t\t\tcells[currentIndex].visited = true;\n\t\t\t\t\t\n\t\t\t\t\tif(nextIndex == NOT_EXIST) {\n\t\t\t\t\t\tbreak; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//if there is NO not visited neighbors \n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -1) {\n\t\t\t\t\t\tcells[currentIndex].border[EAST] = NO_WALL; \t\t\t\t\t\t\t//neighbor is right \n\t\t\t\t\t\tcells[nextIndex].border[WEST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == width) {\n\t\t\t\t\t\tcells[currentIndex].border[NORTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is up\n\t\t\t\t\t\tcells[nextIndex].border[SOUTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -width) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[SOUTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is down\n\t\t\t\t\t\tcells[nextIndex].border[NORTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == 1) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[WEST] = NO_WALL;\t\t\t\t\t\t\t\t//neighbor is left\n\t\t\t\t\t\tcells[nextIndex].border[EAST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\tkill(nextIndex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Zing emptyLeaf();",
"private void enteredUnvisitedRoom() {\n\r\n\t\tif (maze.getBag().isEmpty()) {\r\n\t\t\tlog.debug(\"items over making random move..\");\r\n\t\t\tmaze.currentRoom = maze.createNewRoomWithOutItem();\r\n\t\t\tsetRoomLink();\r\n\r\n\t\t\t// Take a Random door. // this will also avoid loops\r\n\t\t\tmaze.currentRoom.setDoorToTake(getRandomMove(maze.currentRoom));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmaze.currentRoom = maze.createNewRoomAndDropItem();\r\n\t\tsetRoomLink();\r\n\r\n\t\t// Dont know any thing about the room so can take any unknown door.\r\n\t\tmaze.currentRoom.setDoorToTake(maze.currentRoom.getUnknownDoorExit());\r\n\t}",
"public void emptyBoard()\n {\n \t//traverses every spot in the board\n for(int row = 0; row < myHeight; row++)\n for(int col = 0; col < myWidth; col++)\n myBoard[row][col] = new Water();\n }",
"private void devourFishOrMoveToEmptyNeighborIfPossible() {\n List<AbstractCell> fishNeighbors = getNeighborsInState(State.FISH);\n if (this.energyLevel <= 0) {\n setNextState(State.WATER);\n numberOfChrononsSurvivedSinceLastReproduction = 0;\n energyLevel = 0;\n } else if (fishNeighbors.size() > 0) {\n gainEnergy();\n WaTorCell fishToDevour = (WaTorCell) getRandomNeighborFromSubset(fishNeighbors);\n devourFish(fishToDevour);\n } else {\n loseEnergy();\n // if there are no fish around a shark it behaves like a fish\n moveToEmptyNeighborIfPossible();\n }\n }",
"public void showEmptySeats(){\n System.out.println(\"The following seats are empty: \");\n for (PlaneSeat seat:seat){\n if (! seat.isOccupied()){\n System.out.println(\"SeatID \" + seat.getSeatID());\n }\n }\n }",
"public boolean isEmptyTable() {\n\t\tif (count() <= 0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"@Test\n public void testTableFactoryEmpty() {\n TableController tableController = tableFactory.getTableController();\n Map<Integer, ArrayList<Table>> tableMap = tableController.getTableMap();\n // loop through the map, check that each list is empty\n for (ArrayList<Table> list : tableMap.values()) {\n assertEquals(0, list.size());\n }\n }",
"public void doEmptyTableList() {\n tableList.deleteList();\n }",
"public void blankFinder() \r\n {\r\n\t\tfor (int i = -1; i <= 1; i++) \r\n {\r\n\t\t\tfor (int j = -1; j <= 1; j++) \r\n {\r\n\t\t\t\tif (board.getSquareAt(getXLocation() + i, getYLocation() + j) != null) \r\n {\r\n\t\t\t\t\tBombSquare nearbySquare = (BombSquare) board.getSquareAt(getXLocation() + i, getYLocation() + j);\r\n\t\t\t\t\tif (!nearbySquare.visible && !nearbySquare.hasBomb) \r\n {\r\n\t\t\t\t\t\tnearbySquare.visible = true;\r\n\t\t\t\t\t\tnearbySquare.minesNearby();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void setEmpty() {\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++)\n\t\t\t\tboard[r][c] = new Cell(false, false,\n\t\t\t\t\t\tfalse, false); // totally clear.\n\t}",
"private boolean tableFull(){\n\t\tfor (int i = 0; i < TABLESIZE; i++) if (game[i] == EMPTY) return false;\n\t\treturn true;\n\t}",
"public void emptyTable() {\n\t\tLOGGER.debug(\"emptyTable\");\n\t\ttable.setRedraw(false);\n\t\ttable.removeAll();\n\t\twhile (table.getColumnCount() > 0) {\n\t\t\ttable.getColumns()[0].dispose();\n\t\t}\n\t}",
"public void makeEmpty()\n\t{\n\t\t// YOUR CODE HERE\n\t\tstack = null;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The method test the winner player in two player configuration with same score and different number of lantern cards. | @Test
public void testWinnerTwoPlayerSameScoreDiffCard(){
GameConfiguration gc1 = new GameConfiguration(2);
gi = new GameInstance(new GameConfiguration(), playerTypes);
Players player[] = gi.getPlayersList();
//set total score
player[0].setTotalPoints(10);
player[1].setTotalPoints(10);
//set lantern card count
player[0].setLanternCardCount(15);
player[1].setLanternCardCount(20);//winner player
LakeTiles tileInHand = player[0].getCurrentLakeTilesHold().get(0);
//create PlayGame class object
PlayGame play = new PlayGame(gi,new GameController(gc1, gi));
Vector<Players> winnerPlayer = play.validateWinner(player);
assertEquals(player[1], winnerPlayer.get(1));
} | [
"@Test\n\tpublic void testWinnerFourPlayerSameScoreDiffCard(){\n\t\tGameConfiguration gc1 = new GameConfiguration(4);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//set total score\n\t\tplayer[0].setTotalPoints(10); \n\t\tplayer[1].setTotalPoints(10);\n\t\tplayer[2].setTotalPoints(10);\n\t\tplayer[3].setTotalPoints(10);\n\t\t\n\t\t//set lantern card count\n\t\tplayer[0].setLanternCardCount(10);\n\t\tplayer[1].setLanternCardCount(20);//winner player\n\t\tplayer[2].setLanternCardCount(8);\n\t\tplayer[3].setLanternCardCount(18);\n\t\t\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\tSystem.out.println(\"*****\"+winnerPlayer.size());\n\t\t\n\t\tassertEquals(player[1], winnerPlayer.get(1));\n\t}",
"@Test\n\tpublic void testWinnerTwoPlayerSameScoreSameCardSameFavor(){\n\t\tGameConfiguration gc1 = new GameConfiguration(2);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//set total score\n\t\tplayer[0].setTotalPoints(10); \n\t\tplayer[1].setTotalPoints(10);\n\t\t\n\t\t//set lantern card count\n\t\tplayer[0].setLanternCardCount(10);\n\t\tplayer[1].setLanternCardCount(10);\n\t\t\n\t\t//set differnt favor tokens\n\t\tplayer[0].setPlayerFavorToken(8);\n\t\tplayer[1].setPlayerFavorToken(8);//winner player\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\t\n\t\t\n\t\tassertEquals(2, winnerPlayer.size());\n\t}",
"@Test\n\tpublic void testWinnerTwoPlayerSameScoreSameCardDiffFavor(){\n\t\tGameConfiguration gc1 = new GameConfiguration(2);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//set total score\n\t\tplayer[0].setTotalPoints(10); \n\t\tplayer[1].setTotalPoints(10);\n\t\t\n\t\t//set lantern card count\n\t\tplayer[0].setLanternCardCount(10);\n\t\tplayer[1].setLanternCardCount(10);\n\t\t\n\t\t//set differnt favor tokens\n\t\tplayer[0].setPlayerFavorToken(8);\n\t\tplayer[1].setPlayerFavorToken(12);//winner player\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\t\n\t\t\n\t\tassertEquals(player[1], winnerPlayer.get(0));\n\t}",
"@Test\n\tpublic void testWinnerThreePlayerSameScoreDiffCard(){\n\t\tGameConfiguration gc1 = new GameConfiguration(3);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//set total score\n\t\tplayer[0].setTotalPoints(10); \n\t\tplayer[1].setTotalPoints(10);\n\t\tplayer[2].setTotalPoints(10);\n\t\t\n\t\t//set lantern card count\n\t\tplayer[0].setLanternCardCount(10);\n\t\tplayer[1].setLanternCardCount(20);//winner player\n\t\tplayer[2].setLanternCardCount(18);\n\t\t\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\t\n\t\t\n\t\tassertEquals(player[1], winnerPlayer.get(1));\n\t}",
"@Test\n\tpublic void testWinnerFourPlayerSameScoreSameCardDiffFavor(){\n\t\tGameConfiguration gc1 = new GameConfiguration(4);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//set total score\n\t\tplayer[0].setTotalPoints(10); \n\t\tplayer[1].setTotalPoints(10);\n\t\tplayer[2].setTotalPoints(10);\n\t\tplayer[3].setTotalPoints(10);\n\t\t\n\t\t//set lantern card count\n\t\tplayer[0].setLanternCardCount(10);\n\t\tplayer[1].setLanternCardCount(10);\n\t\tplayer[2].setLanternCardCount(10);\n\t\tplayer[3].setLanternCardCount(10);\n\t\t\n\t\t//set differnt favor tokens\n\t\tplayer[0].setPlayerFavorToken(8);\n\t\tplayer[1].setPlayerFavorToken(10);\n\t\tplayer[2].setPlayerFavorToken(12);\n\t\tplayer[3].setPlayerFavorToken(16);//winner player\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\t\n\t\t\n\t\tassertEquals(player[3], winnerPlayer.get(0));\n\t}",
"@Test\n\tpublic void testWinnerInFourPlayerDifferentScore(){\n\t\tGameConfiguration gc1 = new GameConfiguration(4);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//\n\t\tplayer[0].setTotalPoints(18); //winner player\n\t\tplayer[1].setTotalPoints(8);\n\t\tplayer[2].setTotalPoints(10);\n\t\tplayer[3].setTotalPoints(15);\n\t\t\n\t\t\n\t\tLakeTiles tileInHand = player[0].getCurrentLakeTilesHold().get(0);\n\t\t\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\tSystem.out.println(winnerPlayer.get(0));\n\t\t\n\t\tassertEquals(player[0], winnerPlayer.firstElement());\n\t\t\n\t}",
"@Test\n\tpublic void testWinnerFourPlayerSameScoreSameCardSameFavor(){\n\t\tGameConfiguration gc1 = new GameConfiguration(4);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//set total score\n\t\tplayer[0].setTotalPoints(10); \n\t\tplayer[1].setTotalPoints(10);\n\t\tplayer[2].setTotalPoints(10);\n\t\tplayer[3].setTotalPoints(10);\n\t\t\n\t\t//set lantern card count\n\t\tplayer[0].setLanternCardCount(10);\n\t\tplayer[1].setLanternCardCount(10);\n\t\tplayer[2].setLanternCardCount(10);\n\t\tplayer[3].setLanternCardCount(10);\n\t\t\n\t\t//set differnt favor tokens\n\t\tplayer[0].setPlayerFavorToken(5);\n\t\tplayer[1].setPlayerFavorToken(5);\n\t\tplayer[2].setPlayerFavorToken(5);\n\t\tplayer[3].setPlayerFavorToken(5);\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\t\n\t\t\n\t\tassertEquals(4, winnerPlayer.size());\n\t}",
"@Test\n\tpublic void testWinnerInThreePlayerDifferentScore(){\n\t\tGameConfiguration gc1 = new GameConfiguration(3);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//\n\t\tplayer[0].setTotalPoints(20); \n\t\tplayer[1].setTotalPoints(25);//winner player\n\t\tplayer[2].setTotalPoints(10);\n\t\t\n\t\t\n\t\tLakeTiles tileInHand = player[0].getCurrentLakeTilesHold().get(0);\n\t\t\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\t\n\t\t\n\t\tassertEquals(player[1], winnerPlayer.get(1));\n\t\t\n\t}",
"@Test\n\tpublic void testWinnerThreePlayerSameScoreSameCardDiffFavor(){\n\t\tGameConfiguration gc1 = new GameConfiguration(3);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//set total score\n\t\tplayer[0].setTotalPoints(10); \n\t\tplayer[1].setTotalPoints(10);\n\t\tplayer[1].setTotalPoints(10);\n\t\t\n\t\t//set lantern card count\n\t\tplayer[0].setLanternCardCount(10);\n\t\tplayer[1].setLanternCardCount(10);\n\t\tplayer[1].setLanternCardCount(10);\n\t\t\n\t\t//set differnt favor tokens\n\t\tplayer[0].setPlayerFavorToken(12);//winner player\n\t\tplayer[1].setPlayerFavorToken(10);\n\t\tplayer[2].setPlayerFavorToken(8);\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\t\n\t\t\n\t\tassertEquals(player[0], winnerPlayer.get(0));\n\t}",
"@Test\n\tpublic void testWinnerThreePlayerSameScoreSameCardSameFavor(){\n\t\tGameConfiguration gc1 = new GameConfiguration(3);\n\t\tgi = new GameInstance(new GameConfiguration(), playerTypes);\n\t\t\n\t\tPlayers player[] = gi.getPlayersList();\n\t\t\n\t\t//set total score\n\t\tplayer[0].setTotalPoints(10); \n\t\tplayer[1].setTotalPoints(10);\n\t\tplayer[2].setTotalPoints(10);\n\t\t\n\t\t//set lantern card count\n\t\tplayer[0].setLanternCardCount(10);\n\t\tplayer[1].setLanternCardCount(10);\n\t\tplayer[2].setLanternCardCount(10);\n\t\t\n\t\t//set differnt favor tokens\n\t\tplayer[0].setPlayerFavorToken(6);\n\t\tplayer[1].setPlayerFavorToken(6);\n\t\tplayer[2].setPlayerFavorToken(6);\n\t\t\n\t\t//create PlayGame class object\n\t\tPlayGame play = new PlayGame(gi,new GameController(gc1, gi));\n\t\tVector<Players> winnerPlayer = play.validateWinner(player);\n\t\t\n\t\t\n\t\tassertEquals(3, winnerPlayer.size());\n\t}",
"@Test\n\tpublic void testPairP1Win() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"TEST: Player 1 Pair Win\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\t\n\t\tGame tester = new Game();\n\t\t\n\t\tHand t1 = new Hand();\n\t\tHand t2 = new Hand();\n\t\t\n\t\tCard[] cards1 = new Card[5];\n\t\tCard[] cards2 = new Card[5];\n\t\t\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tcards1[i] = new Card();\n\t\t\tcards2[i] = new Card();\n\t\t}\n\t\t\n\t\t// Test player 1\n\t\tcards1[0].setValue('5');\n\t\tcards1[1].setValue('5');\n\t\tcards1[2].setValue('7');\n\t\tcards1[3].setValue('8');\n\t\tcards1[4].setValue('9');\n\t\t\n\t\tcards1[0].setSuit(\"C\");\n\t\tcards1[1].setSuit(\"S\");\n\t\tcards1[2].setSuit(\"H\");\n\t\tcards1[3].setSuit(\"C\");\n\t\tcards1[4].setSuit(\"C\");\n\t\t\n\t\t// Test player 2\n\t\tcards2[0].setValue('2');\n\t\tcards2[1].setValue('2');\n\t\tcards2[2].setValue('4');\n\t\tcards2[3].setValue('5');\n\t\tcards2[4].setValue('3');\n\t\t\n\t\tcards2[0].setSuit(\"H\");\n\t\tcards2[1].setSuit(\"C\");\n\t\tcards2[2].setSuit(\"H\");\n\t\tcards2[3].setSuit(\"H\");\n\t\tcards2[4].setSuit(\"H\");\n\t\t\n\t\tt1.setHandSize(5);\n\t\tt2.setHandSize(5);\n\n\t\tt1.setHandCards(cards1);\n\t\tt2.setHandCards(cards2);\n\t\t\n\t\ttester.setUpGame();\n\t\ttester.dealPlayerHands();\n\t\ttester.getPlayers()[0].setHand(t1);\n\t\ttester.getPlayers()[1].setHand(t2);\n\t\ttester.sortHandsByValue();\n\t\ttester.outputPlayerHands();\n\t\ttester.findWinner();\n\t\ttester.outputPlayerHandType();\n\t\ttester.outputWinner();\n\t\t\n\t\tassertTrue(tester.getPlayers()[0].getWinner());\n\t\tassertTrue(!tester.getPlayers()[1].getWinner());\n\t\t\n\t\tassertTrue(tester.getPlayers()[0].getHand().getHandType() == \"Pair\");\n\t}",
"public static void tests(){\n int[][] board1 = new int[][]{\n { 0, 1, 2},\n { 2, 0, 1},\n { 0, 1, 2}\n };\n int[][] board2 = new int[][]{\n { 1, 2, 1},\n { 2, 1, 1},\n { 2, 1, 2}\n };\n int[][] board3 = new int[][]{\n { 2, 2, 1},\n { 2, 1, 1},\n { 2, 1, 2}\n };\n int[][] board4 = new int[][]{\n { 1, 1, 1},\n { 2, 0, 1},\n { 0, 1, 2}\n };\n int[][] boardBlock = new int[][]{\n { 1, 1, 0},\n { 2, 2, 1},\n { 0, 1, 2}\n };\n int[][] boardBlocked = new int[][]{\n { 1, 1, 2},\n { 2, 2, 1},\n { 0, 1, 2}\n };\n int[][] boardBlock2 = new int[][]{\n { 1, 0, 2},\n { 2, 0, 1},\n { 1, 1, 0}\n };\n int[][] boardBlocked2 = new int[][]{\n { 1, 0, 2},\n { 2, 0, 1},\n { 1, 1, 2}\n };\n int[][] boardWin = new int[][]{\n { 1, 0, 0},\n { 2, 0, 2},\n { 0, 1, 2}\n };\n int[][] boardWon = new int[][]{\n { 1, 0, 0},\n { 2, 2, 2},\n { 0, 1, 2}\n };\n//\n//\n// if(winnerDecider(board1)==GAMESTATES.INCOMPLETED){System.out.println(\"incomplete tested\");}\n// if(winnerDecider(board2)==0){System.out.println(\"draw tested\");}\n// if(winnerDecider(board3)==2){System.out.println(\"winner 2 tested\");}\n// if(winnerDecider(board4)==1){System.out.println(\"winner 1 tested\");}\n\n printGameState(boardWon);\n printGameState(blockOrWin(boardWin, 2));\n if(isEqual(blockOrWin(boardWin, 2) , boardWon))\n {\n System.out.println(\"Successful!\");\n }\n else\n {\n System.out.println(\"NOT Successful!\");\n }\n\n if(boardWon == blockOrWin(boardWin, 2)){\n\n System.out.println(\"WINS successfully! BEFORE:\");\n printGameState(boardBlock);\n System.out.println(\"AFTER:\");\n printGameState(blockOrWin(boardBlock, 1));\n }\n else{\n printGameState(blockOrWin(boardBlock, 1));\n System.out.println(\"cannot WIN successfully!\");\n }\n System.out.println(\"BEFORE random move:\");\n printGameState(board1);\n System.out.println(\"AFTER random move:\");\n randomMove(board1);\n printGameState(board1);\n System.out.println(\"random move2:\");\n randomMove(board1);\n printGameState(board1);\n\n\n }",
"@Test\n\tpublic void testAceP2Win() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"TEST: Player 2 Ace Win\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\t\n\t\tGame tester = new Game();\n\t\t\n\t\tHand t1 = new Hand();\n\t\tHand t2 = new Hand();\n\t\t\n\t\tCard[] cards1 = new Card[5];\n\t\tCard[] cards2 = new Card[5];\n\t\t\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tcards1[i] = new Card();\n\t\t\tcards2[i] = new Card();\n\t\t}\n\t\t\n\t\t// Test player 1\n\t\tcards1[0].setValue('2');\n\t\tcards1[1].setValue('3');\n\t\tcards1[2].setValue('5');\n\t\tcards1[3].setValue('9');\n\t\tcards1[4].setValue('K');\n\t\t\n\t\tcards1[0].setSuit(\"H\");\n\t\tcards1[1].setSuit(\"D\");\n\t\tcards1[2].setSuit(\"S\");\n\t\tcards1[3].setSuit(\"C\");\n\t\tcards1[4].setSuit(\"D\");\n\t\t\n\t\t// Test player 2\n\t\tcards2[0].setValue('2');\n\t\tcards2[1].setValue('3');\n\t\tcards2[2].setValue('4');\n\t\tcards2[3].setValue('8');\n\t\tcards2[4].setValue('A');\n\t\t\n\t\tcards2[0].setSuit(\"C\");\n\t\tcards2[1].setSuit(\"H\");\n\t\tcards2[2].setSuit(\"S\");\n\t\tcards2[3].setSuit(\"C\");\n\t\tcards2[4].setSuit(\"H\");\n\t\t\n\t\tt1.setHandSize(5);\n\t\tt2.setHandSize(5);\n\n\t\tt1.setHandCards(cards1);\n\t\tt2.setHandCards(cards2);\n\t\t\n\t\ttester.setUpGame();\n\t\ttester.dealPlayerHands();\n\t\ttester.getPlayers()[0].setHand(t1);\n\t\ttester.getPlayers()[1].setHand(t2);\n\t\ttester.sortHandsByValue();\n\t\ttester.outputPlayerHands();\n\t\ttester.findWinner();\n\t\ttester.outputPlayerHandType();\n\t\ttester.outputWinner();\n\t\t\n\t\tassertTrue(!tester.getPlayers()[0].getWinner());\n\t\tassertTrue(tester.getPlayers()[1].getWinner());\n\t\t\n\t\tassertTrue(tester.getPlayers()[1].getHand().getHandType() == \"High Card\");\n\t}",
"@Test\n public final void testPlayer2Win() {\n checkPlayerWin(player2);\n }",
"private void comparePlayers() {\n //first, compare both players' scores\n int winningPlayerIndex = comparePlayerValues(m_players[0].getScore(), m_players[1].getScore());\n if (winningPlayerIndex == -1) {\n //if tied, compare both players' lives\n winningPlayerIndex = comparePlayerValues(m_players[0].getLives(), m_players[1].getLives());\n }\n\n presentWinningPlayer(winningPlayerIndex);\n }",
"@Test\n\tpublic void testToPairP2Win() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"TEST: Player 2 Two Pair Win\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\t\n\t\tGame tester = new Game();\n\t\t\n\t\tHand t1 = new Hand();\n\t\tHand t2 = new Hand();\n\t\t\n\t\tCard[] cards1 = new Card[5];\n\t\tCard[] cards2 = new Card[5];\n\t\t\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tcards1[i] = new Card();\n\t\t\tcards2[i] = new Card();\n\t\t}\n\t\t\n\t\t// Test player 1\n\t\tcards1[0].setValue('5');\n\t\tcards1[1].setValue('5');\n\t\tcards1[2].setValue('7');\n\t\tcards1[3].setValue('8');\n\t\tcards1[4].setValue('9');\n\t\t\n\t\tcards1[0].setSuit(\"C\");\n\t\tcards1[1].setSuit(\"S\");\n\t\tcards1[2].setSuit(\"H\");\n\t\tcards1[3].setSuit(\"C\");\n\t\tcards1[4].setSuit(\"C\");\n\t\t\n\t\t// Test player 2\n\t\tcards2[0].setValue('2');\n\t\tcards2[1].setValue('2');\n\t\tcards2[2].setValue('4');\n\t\tcards2[3].setValue('4');\n\t\tcards2[4].setValue('3');\n\t\t\n\t\tcards2[0].setSuit(\"H\");\n\t\tcards2[1].setSuit(\"C\");\n\t\tcards2[2].setSuit(\"H\");\n\t\tcards2[3].setSuit(\"H\");\n\t\tcards2[4].setSuit(\"H\");\n\t\t\n\t\tt1.setHandSize(5);\n\t\tt2.setHandSize(5);\n\n\t\tt1.setHandCards(cards1);\n\t\tt2.setHandCards(cards2);\n\t\t\n\t\ttester.setUpGame();\n\t\ttester.dealPlayerHands();\n\t\ttester.getPlayers()[0].setHand(t1);\n\t\ttester.getPlayers()[1].setHand(t2);\n\t\ttester.sortHandsByValue();\n\t\ttester.outputPlayerHands();\n\t\ttester.findWinner();\n\t\ttester.outputPlayerHandType();\n\t\ttester.outputWinner();\n\t\t\n\t\tassertTrue(!tester.getPlayers()[0].getWinner());\n\t\tassertTrue(tester.getPlayers()[1].getWinner());\n\t\t\n\t\tassertTrue(tester.getPlayers()[1].getHand().getHandType() == \"Two Pair\");\n\t}",
"@Test\n public final void testPlayer1Win() {\n checkPlayerWin(player1);\n }",
"@Test\n void testNextPlayerWhenPlayerHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getUser().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); \n testDealer.getTrickPlayer();\n assertEquals(testDealer.getBotA().getId(), testDealer.getNextPlayer());\n }",
"@Test\n\tpublic void test9P1Win() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"TEST: Player 1 High Card 9 Win\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\t\n\t\tGame tester = new Game();\n\t\t\n\t\tHand t1 = new Hand();\n\t\tHand t2 = new Hand();\n\t\t\n\t\tCard[] cards1 = new Card[5];\n\t\tCard[] cards2 = new Card[5];\n\t\t\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tcards1[i] = new Card();\n\t\t\tcards2[i] = new Card();\n\t\t}\n\t\t\n\t\t// Test player 1\n\t\tcards1[0].setValue('2');\n\t\tcards1[1].setValue('3');\n\t\tcards1[2].setValue('5');\n\t\tcards1[3].setValue('9');\n\t\tcards1[4].setValue('K');\n\t\t\n\t\tcards1[0].setSuit(\"H\");\n\t\tcards1[1].setSuit(\"D\");\n\t\tcards1[2].setSuit(\"S\");\n\t\tcards1[3].setSuit(\"C\");\n\t\tcards1[4].setSuit(\"D\");\n\t\t\n\t\t// Test player 2\n\t\tcards2[0].setValue('2');\n\t\tcards2[1].setValue('3');\n\t\tcards2[2].setValue('4');\n\t\tcards2[3].setValue('8');\n\t\tcards2[4].setValue('K');\n\t\t\n\t\tcards2[0].setSuit(\"C\");\n\t\tcards2[1].setSuit(\"H\");\n\t\tcards2[2].setSuit(\"S\");\n\t\tcards2[3].setSuit(\"C\");\n\t\tcards2[4].setSuit(\"H\");\n\t\t\n\t\tt1.setHandSize(5);\n\t\tt2.setHandSize(5);\n\n\t\tt1.setHandCards(cards1);\n\t\tt2.setHandCards(cards2);\n\t\t\n\t\ttester.setUpGame();\n\t\ttester.dealPlayerHands();\n\t\ttester.getPlayers()[0].setHand(t1);\n\t\ttester.getPlayers()[1].setHand(t2);\n\t\ttester.sortHandsByValue();\n\t\ttester.outputPlayerHands();\n\t\ttester.findWinner();\n\t\ttester.outputPlayerHandType();\n\t\ttester.outputWinner();\n\t\t\n\t\tassertTrue(tester.getPlayers()[0].getWinner());\n\t\tassertTrue(!tester.getPlayers()[1].getWinner());\n\t\t\n\t\tassertTrue(tester.getPlayers()[0].getHand().getHandType() == \"High Card\");\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Calculates the xvalue of a point on the other side of the line based on the width and height of the panel on which it is drawn Parameters: int panelWidth = width of panel int panelHeight = height of panel Returns this xcoordinate | public int getX2(int panelWidth, int panelHeight){
return (int)(getRadius(panelWidth, panelHeight) * Math.cos(getTheta()) + panelWidth/2);
} | [
"public int getX1(int panelWidth, int panelHeight){\r\n\t\treturn (int)(-getRadius(panelWidth, panelHeight) * Math.cos(getTheta()) + panelWidth/2);\r\n\t}",
"public int getPanelXLocation() {\n\t\treturn panel.getX();\n\t}",
"public double getX() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble x = bounds.getX() + (_xt * bounds.getWidth());\n\t\treturn x;\n\t}",
"public int getXline() {\n\t\treturn this.xLine;\n\t}",
"public double getXValue()\r\n {\r\n return xCoordinate;\r\n }",
"double getX() { return this.point.x; }",
"@Override\n\tpublic double getX() {\n\t\treturn this.xPosition;\n\t}",
"public int getxCoordinate() {\n return xCoordinate;\n }",
"public int x() {\r\n\t\treturn xCoord;\r\n\t}",
"public Double getCoordX() {\n return coordX;\n }",
"public double getX() {\n\t\treturn xpos;\n }",
"public final int getPixelX() { return px; }",
"double getPositionX();",
"public float getXCoordinate() {\n return xCoordinate;\n }",
"public double getLeftPointX() {\n\t\tdouble leftX = x - (extent/2);\n\t\t\n\t\tif (!(Double.isFinite(leftX)))\n\t\t\treturn (Double) null;\n\t\t\n\t\treturn leftX;\n\t}",
"abstract public double getXPos();",
"public int getX() { return px; }",
"public long getX()\n {\n return xcoord;\n }",
"int getPositionX () {\r\n return this.nX_px;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the x position of the arrow when being held by the player | private float getHoldingArrowX()
{
return xPos + getCurrentFrameWidth() / 2;
} | [
"public int getPlayerX()\n {\n return iPlayerPosX + (iPlayerWidth / 2);\n }",
"public float getPlayerX() {\n return player.getX();\n }",
"double getPositionX();",
"public int getXLeft() {\n return xLeft;\n }",
"public int getX(){\n int x = TwodokuGame.getMoveIntX(move);\n return x;\n }",
"public double getLeftX(){\r\n\t\treturn adjustInput(driverLeft.getX());\r\n\t}",
"public int getLeft(){\n\t\treturn platformHitbox.x;\n\t}",
"public int getX() {\n\t\treturn (int) this.trainerPosition.getX();\n\t}",
"public int getXPosLeft() {\n return x_pos_left;\n }",
"private Location getLeftHandPos() {\r\n\t\treturn GeneralMethods.getLeftSide(this.player.getLocation(), .34).add(0, 1.5, 0);\r\n\t}",
"public int getX() {\n\t\t\tint lastRobot = (state[2 * k] + k - 1) % k;\n\t\t\treturn state[lastRobot];\n\t\t}",
"float getPosX();",
"public float GetXMove() {\r\n return xMove;\r\n }",
"@Override\n\tpublic double getX() {\n\t\treturn this.xPosition;\n\t}",
"public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }",
"public double getPosX()\n {\n return _wnd.getPosX();\n }",
"public int getXLeft() {\n\t\treturn xLeft;\n\t}",
"public float getXp() {\n\n return xp;\n }",
"public static int getX() {\n\t\treturn mouseX;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an ArrayList of Neighbouring Landpieces of an Intersection | public ArrayList<Landpiece> getNeighbouringLandpieces(Utility.Pair coordinate){
ArrayList<Landpiece> landpieces = new ArrayList<>();
if(coordinate.getX() % 2 == 0){
landpieces.add(getLandpieceQuietly((coordinate.getX()/2) - 1, coordinate.getY() - 1));
landpieces.add(getLandpieceQuietly((coordinate.getX()/2) - 1, coordinate.getY()));
landpieces.add(getLandpieceQuietly(coordinate.getX()/2, coordinate.getY()));
} else {
landpieces.add(getLandpieceQuietly((coordinate.getX()/2) - 1, coordinate.getY() - 1));
landpieces.add(getLandpieceQuietly(coordinate.getX()/2, coordinate.getY() - 1));
landpieces.add(getLandpieceQuietly(coordinate.getX()/2, coordinate.getY()));
}
return landpieces;
} | [
"public ArrayList<Landpiece> getNeighbouringLandpieces(Intersection intersection){\r\n\r\n\t\tArrayList<Landpiece> landpieces = new ArrayList<>();\r\n\r\n\t\tif(intersection.getCoordinates().getX() % 2 == 0){\r\n landpieces.add(getLandpieceQuietly((intersection.getCoordinates().getX()/2) - 1, intersection.getCoordinates().getY() - 1));\r\n landpieces.add(getLandpieceQuietly((intersection.getCoordinates().getX()/2) - 1, intersection.getCoordinates().getY()));\r\n landpieces.add(getLandpieceQuietly(intersection.getCoordinates().getX()/2, intersection.getCoordinates().getY()));\r\n\t\t} else {\r\n landpieces.add(getLandpieceQuietly((intersection.getCoordinates().getX()/2) - 1, intersection.getCoordinates().getY() - 1));\r\n landpieces.add(getLandpieceQuietly(intersection.getCoordinates().getX()/2, intersection.getCoordinates().getY() - 1));\r\n landpieces.add(getLandpieceQuietly(intersection.getCoordinates().getX()/2, intersection.getCoordinates().getY()));\r\n\t\t}\r\n\t\treturn landpieces;\r\n\t}",
"public Intersection[] getNeighbouringIntersections(Landpiece landpiece){\r\n\r\n \tIntersection[] intersections = new Intersection[6];\r\n\t\tfor (int i = 0; i < landpieces.length; i++){\r\n\t\t\tfor (int j = 0; j < landpieces[0].length; j++){\r\n\t\t\t\tif(landpiece == landpieces[i][j]){\r\n\t\t\t\t\tintersections[0] = this.intersections[i*2][j];\r\n\t\t\t\t\tintersections[1] = this.intersections[i*2+1][j];\r\n\t\t\t\t\tintersections[2] = this.intersections[i*2+2][j];\r\n\t\t\t\t\tintersections[3] = this.intersections[i*2+3][j+1];\r\n\t\t\t\t\tintersections[4] = this.intersections[i*2+2][j+1];\r\n\t\t\t\t\tintersections[5] = this.intersections[i*2+1][j+1];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn intersections;\r\n\t}",
"public ArrayList<Intersection> getNeighbouringIntersections(Intersection intersection){\r\n\r\n ArrayList<Intersection> intersections = new ArrayList<>();\r\n\r\n if(intersection.getCoordinates().getX() % 2 == 0){\r\n\t\t\t\tintersections.add(getIntersectionQuietly(intersection.getCoordinates().getX() - 1, intersection.getCoordinates().getY()));\r\n\t\t\t\tintersections.add(getIntersectionQuietly(intersection.getCoordinates().getX() + 1, intersection.getCoordinates().getY()));\r\n\t\t\t\tintersections.add(getIntersectionQuietly(intersection.getCoordinates().getX() + 1, intersection.getCoordinates().getY() + 1));\r\n } else {\r\n\t\t\t\tintersections.add(getIntersectionQuietly(intersection.getCoordinates().getX() - 1, intersection.getCoordinates().getY() - 1));\r\n\t\t\t\tintersections.add(getIntersectionQuietly(intersection.getCoordinates().getX() - 1, intersection.getCoordinates().getY()));\r\n\t\t\t\tintersections.add(getIntersectionQuietly(intersection.getCoordinates().getX() + 1, intersection.getCoordinates().getY()));\r\n }\r\n intersections.removeIf(Objects::isNull);\r\n return intersections;\r\n }",
"public ArrayList<Space> neighbors()\n {\n ArrayList<Space> list = new ArrayList<Space>();\n for(Boundary b: boundaries)\n {\n for(Space s:b.borderOf())\n {\n if(!list.contains(s))\n {\n list.add(s);\n }\n }\n }\n return list;\n }",
"public List<Cell<V>> getNeighbourhood();",
"ArrayList<Road> getFoundRoads();",
"public List<Cell> getCornerNeighbours()\n {\n List<Cell> neighbours = new ArrayList<Cell>(4);\n if (this.i > 0 && this.j > 0) {\n neighbours.add(new Cell(this.i - 1, this.j - 1));\n }\n if (this.i < CurvilinearGrid.this.ni - 1 && this.j > 0) {\n neighbours.add(new Cell(this.i + 1, this.j - 1));\n }\n if (this.i < CurvilinearGrid.this.ni - 1 && this.j < CurvilinearGrid.this.nj - 1) {\n neighbours.add(new Cell(this.i + 1, this.j + 1));\n }\n if (this.i > 0 && this.j < CurvilinearGrid.this.nj - 1) {\n neighbours.add(new Cell(this.i - 1, this.j + 1));\n }\n return neighbours;\n }",
"public abstract Intersection getIntersectionNorth();",
"ArrayList<Cell> getNeighbor() {\r\n ArrayList<Cell> temp = new ArrayList<Cell>();\r\n if (this.left != null && this.color.equals(this.left.color)) {\r\n temp.add(this.left);\r\n }\r\n if (this.top != null && this.color.equals(this.top.color)) {\r\n temp.add(this.top);\r\n }\r\n if (this.right != null && this.color.equals(this.right.color)) {\r\n temp.add(this.right);\r\n }\r\n if (this.bottom != null && this.color.equals(this.bottom.color)) {\r\n temp.add(this.bottom);\r\n }\r\n return temp;\r\n }",
"public List<Cell> getNeighbours() {\n List<Cell> neighbours = new ArrayList<>();\n for (int i=-1; i<=1; i++) {\n for (int j=-1; j<=1; j++) {\n if (i==0 && j==0) {continue;}\n try {\n neighbours.add(world.cells[location[0]+i][location[1]+j]);\n \n // no neighbour there? array out of bounds? don't add.\n } catch (Exception e) {}\n }\n }\n return neighbours;\n }",
"java.util.List<org.landxml.schema.landXML11.RoadsideDocument.Roadside> getRoadsideList();",
"List<GeoPoint> findIntsersections(Ray ray);",
"private ArrayList<SimpleRHIAdopterHousehold> getNeighbours()\n\t{\n\n\t\tif (this.myNeighboursCache == null)\n\t\t{\n\t\t\tGeographyWithin<SimpleRHIAdopterHousehold> neighbourhood = new GeographyWithin<SimpleRHIAdopterHousehold>(this.myGeography,\n\t\t\t\t\tthis.observedRadius, this);\n\t\t\tthis.myNeighboursCache = IterableUtils.Iterable2ArrayList(neighbourhood.query());\n\t\t\tthis.numCachedNeighbours = this.myNeighboursCache.size();\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(this.getAgentName() + \" found neighbours : \" + this.myNeighboursCache.toString());\n\t\t\t}\n\n\t\t}\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(this.getAgentName() + \" has \" + this.numCachedNeighbours + \" neighbours : \"\n\t\t\t\t\t+ this.myNeighboursCache.toString());\n\t\t}\n\n\t\treturn this.myNeighboursCache;\n\t}",
"private ArrayList<GridPiece> getDirectNeighbors(GridPiece piece) {\n neighbors.clear();\n\n //Top\n if (game.gridMap.size() > piece.row + 1) {\n neighbors.add(game.gridMap.get(piece.row + 1).get(piece.column));\n }\n //Bottom\n if (piece.row > 0) {\n neighbors.add(game.gridMap.get(piece.row - 1).get(piece.column));\n }\n\n //Right\n if (game.gridMap.get(0).size() > piece.column + 1) {\n neighbors.add(game.gridMap.get(piece.row).get(piece.column + 1));\n }\n\n //Left\n if (piece.column > 0) {\n neighbors.add(game.gridMap.get(piece.row).get(piece.column - 1));\n }\n\n return neighbors;\n }",
"public ArrayList<Area> getNeighbors(){\n return neighbors;\n }",
"public List<Tile> getNeighbors() {\n List<Tile> list = new ArrayList<Tile>();\n\n if (this.tileNorth != null) {\n list.add(this.tileNorth);\n }\n\n if (this.tileEast != null) {\n list.add(this.tileEast);\n }\n\n if (this.tileSouth != null) {\n list.add(this.tileSouth);\n }\n\n if (this.tileWest != null) {\n list.add(this.tileWest);\n }\n\n return list;\n }",
"private ArrayList<Point> getNeighbours(Point p) {\n\t\tArrayList<Point> neighbours = new ArrayList<>();\n\t\tPoint current;\n\t\tint val;\n\t\tPair<Integer, Integer> translation;\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\ttranslation = translations.get(i);\n\t\t\t// Key is x translation, Value is y translation\n\t\t\tcurrent = new Point(p.x + translation.getKey(), p.y + translation.getValue());\n\t\t\tval = level.getCoords(current.x, current.y);\n\t\t\tif (val != 1 && val != -1) {\n\t\t\t\tneighbours.add(current);\n\t\t\t}\n\t\t}\n\t\treturn neighbours;\n\t}",
"private static ArrayList<node> neigh(int x, int y) {\n ArrayList<node> res = new ArrayList<>();\n if(x > 0 && y > 0) res.add(map[x-1][y-1]);\n if( y > 0) res.add(map[x ][y-1]);\n if(x < h-1 && y > 0) res.add(map[x+1][y-1]);\n if(x > 0 ) res.add(map[x-1][y ]);\n if(x < h-1 ) res.add(map[x+1][y ]);\n if(x > 0 && y < w-1) res.add(map[x-1][y+1]);\n if( y < w-1) res.add(map[x ][y+1]);\n if(x < h-1 && y < w-1) res.add(map[x+1][y+1]);\n return res;\n }",
"private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n }\n if(x < n-1){\n neighborhood.add(new int[]{x+1, y});\n }\n if(y > 0){\n neighborhood.add(new int[]{x, y-1});\n }\n if(y < n-1) {\n neighborhood.add(new int[]{x, y+1});\n }\n\n\n return neighborhood;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log an exception event at EVENT level. | public void eventReportException(Throwable th, String message) {
if (event) recordDebugMessage(message, EVENT, th);
} | [
"public void logException(LogEvent e) {\n if (isEnabled()) {\n dispatchLogException(e);\n }\n }",
"public void exception (ServerEvent event) {\r\n\r\n\t\tException e = event.getException();\r\n\t\tSystem.err.println(\"Exception: \" + e.getMessage());\r\n\t}",
"@Subscribe\n public void onException(ExceptionEvent exceptionEvent) {\n handleException(exceptionEvent.e);\n }",
"private void logException(java.lang.Exception e) {\n }",
"void logEvent(Event event);",
"public static void logEvent(Event event) throws DBOperateException {\r\n\r\n\t\tif (observation == null) {\r\n\t\t\tthrow new DBOperateException(\r\n\t\t\t\t\t\"[EMS] Database connection is not set up properly\");\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tswitch (event.getEventType()) {\r\n\t\t\tcase Event.ADD:\r\n\t\t\t\tobservation.insertAddEvent(event);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase Event.READ:\r\n\t\t\t\tobservation.insertReadEvent(event);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase Event.REMOVE:\r\n\t\t\t\tobservation.updateEvent(event);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tSystemLogger.warn(\"[EMS] Unknown EventType: \"\r\n\t\t\t\t\t\t+ event.getEventType());\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new DBOperateException(e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"public void logError(Exception e) {\n\t\t//TODO \n\t}",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"public static void logException(Throwable e) {\n\t\tif (PicdoraApp.DEBUG) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tCrashlytics.logException(e);\n\t}",
"public void log(Throwable t);",
"private void logListenerException(CacheEntryListener listener, Throwable e, String sDescription)\n {\n Logger.warn(\"handled unexpected exception in registered \" + sDescription + \": \"\n + listener.getClass().getCanonicalName(), e);\n }",
"public LogEvent getLogEvent();",
"private void logCallException(Throwable e) {\n\t// if calls are being logged, log them\n\tif (callLog.isLoggable(Log.BRIEF)) {\n\t String clientHost = \"\";\n\t try {\n\t\tclientHost = \"[\" + getClientHost() + \"] \";\n\t } catch (ServerNotActiveException snae) {\n\t }\n\t callLog.log(Log.BRIEF, clientHost + \"exception: \", e);\n\t}\n\n\t// write exceptions (only) to System.err if desired\n\tif (wantExceptionLog) {\n\t java.io.PrintStream log = System.err;\n\t synchronized (log) {\n\t\tlog.println();\n\t\tlog.println(\"Exception dispatching call to \" +\n\t\t\t ref.getObjID() + \" in thread \\\"\" +\n\t\t\t Thread.currentThread().getName() +\n\t\t\t \"\\\" at \" + (new Date()) + \":\");\n\t\te.printStackTrace(log);\n\t }\n\t}\n }",
"private void logException(Exception x) {\n TTransportException tTransportException = null;\n\n if (x instanceof TTransportException) {\n tTransportException = (TTransportException) x;\n } else if (x.getCause() instanceof TTransportException) {\n tTransportException = (TTransportException) x.getCause();\n }\n\n if (tTransportException != null) {\n switch (tTransportException.getType()) {\n case TTransportException.END_OF_FILE:\n case TTransportException.TIMED_OUT:\n return; // don't log these\n }\n if (tTransportException.getCause() != null\n && (tTransportException.getCause() instanceof SocketException)) {\n LOGGER.warn(\n \"SocketException occurred during processing of message.\",\n tTransportException.getCause());\n return;\n }\n }\n // Log the exception at error level and continue\n LOGGER.error(\n (x instanceof TException ? \"Thrift \" : \"\")\n + \"Error occurred during processing of message.\",\n x);\n }",
"void log(LogLevel level, String message, Exception e);",
"public static void log(TaskListener listener, Exception e)\n {\n StringWriter stringWriter = new StringWriter();\n try (PrintWriter printWriter = new PrintWriter(stringWriter, false)) {\n e.printStackTrace(printWriter);\n }\n\n log(listener, getDateTime(false) + \"***EXCEPTION: \" + e.getMessage());\n log(listener, getDateTime(false) + stringWriter.getBuffer().toString());\n }",
"public static void addEventToLog(BusinessEvent event) throws XMLException {\n\t\teventDoc.getDocumentElement().appendChild(event.saveToXML(eventDoc));\n\t\tgenerateLogFile();\n\t}",
"public void testGetLogWithExceptionsWithLogException() {\r\n MockLogFactory logFactory = new MockLogFactory();\r\n logFactory.setThrownLogException(true);\r\n LogManager.setLogFactory(new MockLogFactory());\r\n try {\r\n LogManager.getLogWithExceptions();\r\n fail(\"LogException is expected.\");\r\n } catch (LogException e) {\r\n // good\r\n }\r\n }",
"public static void log(CoreException e){\n log(e.getStatus().getSeverity(), e.getMessage(), e);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PRE: maxDias debe ser un entero positivo POST: modifica el maximo de dias de la restriccion que estamos tratando | public void setMaxDias(int maxDias) {
this.maxDias = maxDias;
} | [
"public void setDuracionMax(int duracionMax) {\n this.duracionMax = duracionMax;\n }",
"public void setMaxDiscomfort(Integer maxDiscomfort) {\r\n this.maxDiscomfort = maxDiscomfort;\r\n }",
"void setMaxDays(Integer maxDays);",
"public int getDuracionMax() {\n return duracionMax;\n }",
"public RestriccionMaxMes(String mes, int maxDias) {\n\t\tsuper();\n\t\tthis.mes = mes;\n\t\tthis.maxDias = maxDias;\n\t}",
"public void setMax(int max)\r\n {\r\n _max = max;\r\n }",
"private void commandSetMax(int id, String newValues) {\r\n String[] params = newValues.split(\" +\");\r\n int count = params.length;\r\n int[] nums = new int[count];\r\n\r\n for(int i = 0, j; i < count; i++) {\r\n try {\r\n j = Integer.parseInt(params[i]);\r\n\r\n if(j < 0) j = 0;\r\n else if(j > 100) j = 100;\r\n } catch(NumberFormatException e) {\r\n j = 20;\r\n }\r\n\r\n nums[i] = j;\r\n }\r\n\r\n switch(count) {\r\n case 4:\r\n m_shoutouts.setMax(nums[3]);\r\n\r\n case 3:\r\n m_questions.setMax(nums[2]);\r\n\r\n case 2:\r\n m_requests.setMax(nums[1]);\r\n\r\n case 1:\r\n m_topics.setMax(nums[0]);\r\n m_botAction.sendPrivateMessage(id, \"New limits: Topics=\" + m_topics.getMax()\r\n + \" Requests=\" + m_requests.getMax()\r\n + \" Questions=\" + m_questions.getMax()\r\n + \" Shoutouts=\" + m_shoutouts.getMax());\r\n break;\r\n\r\n default:\r\n m_botAction.sendPrivateMessage(id, \"Too many parameters.\");\r\n }\r\n }",
"public void setNumDays(int days) {\n maxDays = days;\n }",
"public void SetMaxVal(int max_val);",
"public float DmaxMax(){\n\t\t\tfloat Dmax=this.getRivDMax();\n\t\t\tif(Dmax<this.getForDMax()){\n\t\t\t\tDmax=this.getForDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getForDMax()){\n\t\t\t\tDmax=this.getForDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getEclDMax()){\n\t\t\t\tDmax=this.getEclDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getEglDMax()){\n\t\t\t\tDmax=this.getEglDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getComDMax()){\n\t\t\t\tDmax=this.getComDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getPolDMax()){\n\t\t\t\tDmax=this.getPolDMax();\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\treturn Dmax;\t\t\n\t\t}",
"protected void setMaximumNumberOfStepReduction(int maxNumberOfStepReductions){ \n\tassert ( maxNumberOfStepReductions >= 0 ) : \"Number of step reductions must be non-negative.\";\n\tnMaxSteRed = maxNumberOfStepReductions;\n }",
"public final void adjustLimits(int max) {\n this.invalid = false;\n if (this.value < 1) {\n this.value = 1;\n this.invalid = true;\n }\n if (max > 0) {\n if (this.value > max) {\n this.value = max;\n this.invalid = true;\n }\n }\n }",
"void setMaxDeviation(int maxDeviation);",
"public void NotesMaxLimit() {\n\t\tcommon.isElementDiplayed(notesButtonInExam);\n\t\tnotesButtonInExam.click();\n\t\tnotesTextField.click();\n\t\tnotesTextField.clear();\n\t\tnotesTextField.sendKeys(TestUtils.notesMaxCharacters);\n\t\tcommon.waitFor(100);\n\t\tString num = notesTextField.getText();\n\t\tnumInt = num.length();\n\t}",
"private int findMaxDays() {\n if (absorbDays > consumptDays) return absorbDays;\n else return consumptDays;\n }",
"public void cambiarSalidaNumeroDias() \n\t{\n\t\ttry {\n\t\t\tMantenimientoZONCargosForm f = (MantenimientoZONCargosForm) this.mantenimientoZONCargosForm;\n\t\t\tDate valor = f.getFechaSalidaDate();\n\t\t\tf.setFechaRegreso(DateUtil.convertDateToString(f.getFechaRegresoDate()));\n\t\t\tf.setFechaSalida(DateUtil.convertDateToString(f.getFechaSalidaDate()));\n\t\t\t\n\t\t\tif(f.getFechaRegresoDate() != null && f.getFechaSalidaDate() != null)\n\t\t\t{\n\t\t\t\tint resultadoFechas = DateUtil.compareDates(f.getFechaSalida() ,f.getFechaRegreso(),\"dd/MM/yyyy\");\n\t\t\t\t\n\t\t\t\tif(resultadoFechas == 1)\n\t\t\t\t\tthis.addWarn(\"\", \"La Fecha Regreso debe ser mayor a la Fecha Salida\");\n\t\t\t\telse{\n\t\t\t\t\tLong diferencia = f.getFechaRegresoDate().getTime() - valor.getTime();\n\t\t\t\t\tLong dias = diferencia / (1000 * 60 * 60 * 24) + 1;\t\t\n\t\t\t\t\tthis.diasLicencia = dias.toString();\n\t\t\t\t}\n\t\t\t}else\n\t\t\t\tthis.diasLicencia = null;\t\t\n\t\t} catch (Exception e) {\n\t\t\tthis.diasLicencia = null;\n\t\t\tthis.addError(\"Error: \", this.obtieneMensajeErrorException(e));\n\t\t}\n\t}",
"public void setMaxNum(int maxNum){\r\n this.maxNum = maxNum;\r\n }",
"@Override\n public void setMax(boolean m) {\n max = m;\n }",
"void setMaxValue();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the semantic link of the given type between this object and the given object. This object is the parent object in the relationship. | public void removeSemanticLink(IBusinessObject dest, LinkKind type)
throws OculusException; | [
"public void removeRelation(int type, Accessible target) {\n\t\t//TODO: platform-specific? (we will manage the set on Windows)\n\t}",
"void unsetRelationType();",
"public void removeObjectTypeNode(ObjectTypeNode node) {\n this.inputNodes.remove(node.getDeftemplate());\n }",
"public void removeNodeAfter(){\n link = link.link;\n }",
"public void removeRelationshipType(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RELATIONSHIPTYPE$0, i);\r\n }\r\n }",
"void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }",
"public void _unlinkBase(AssociationEnd base1);",
"public void unsetRel()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(REL$0);\n }\n }",
"public void removeNodeAfter( ) \n {\n link = link.link;\n }",
"public void destroyRelationship() {\n //remove this relationship from the relationshipManagers\n //formedRelationships vector. This will effectively remove all\n //references to the relationship and garbage collection will take care\n //of the rest\n\n// System.out.println(this.toString() + \" being destroyed.\");\n if (lastAgent != null) {\n Vector relationships = lastAgent.getRelationshipManager().getFormedRelationships();\n for (int ix = 0; ix < relationships.size(); ix++) {\n Relationship tempRelationship =\n (Relationship)relationships.elementAt(ix);\n if (tempRelationship.getClassName().equals(name)) {\n Vector tempMembers = tempRelationship.getMembers();\n if (tempMembers.size() == 0) {\n relationships.remove(tempRelationship);\n ix--;\n }//end if\n }//end if\n }//end for\n }//end if\n }",
"public void deleteLink(MLink link) {\n if (link.linkEnds().size() == 2) {\n EdgeBase e = null;\n boolean isVisible;\n boolean isLinkObject = link instanceof MLinkObject; \n ObjectDiagramData data;\n \n if (isLinkObject) {\n \tisVisible = visibleData.fLinkObjectToNodeEdge.containsKey(link);\n \tdata = isVisible ? visibleData : hiddenData;\n e = data.fLinkObjectToNodeEdge.get(link);\n } else {\n \tisVisible = visibleData.fBinaryLinkToEdgeMap.containsKey(link);\n \tdata = isVisible ? visibleData : hiddenData;\n \te = data.fBinaryLinkToEdgeMap.get(link);\n }\n\n if (e == null) {\n return;\n }\n \n if ( isLinkObject ) {\n \tdata.fBinaryLinkToEdgeMap.remove(link);\n \tdata.fLinkObjectToNodeEdge.remove(link);\n } else {\n \tdata.fBinaryLinkToEdgeMap.remove(link);\n }\n\n if (isVisible) {\n \t\tfGraph.removeEdge(e);\n \t\tfLayouter = null;\n \t}\n e.dispose();\n } else { // n-ary association\n \tboolean isVisible;\n ObjectDiagramData data;\n \n isVisible = visibleData.fNaryLinkToDiamondNodeMap.containsKey( link );\n data = isVisible ? visibleData : hiddenData;\n \tDiamondNode n = data.fNaryLinkToDiamondNodeMap.get( link );\n \t\n if ( n == null ) {\n\t\t\t\tthrow new RuntimeException(\"no diamond node for n-ary link `\"\n\t\t\t\t\t\t+ link + \"' in current state.\");\n }\n\n data.fNaryLinkToDiamondNodeMap.remove(link);\n data.fHalfLinkToEdgeMap.remove( link );\n\n if (isVisible) {\n \t\tfGraph.remove(n);\n \t\tfLayouter = null;\n }\n \n n.dispose();\n \n if (link instanceof MLinkObject) {\n EdgeBase edge = data.fLinkObjectToNodeEdge.get( link );\n if (edge != null) {\n \tfGraph.removeEdge( edge );\n data.fLinkObjectToNodeEdge.remove( link );\n edge.dispose();\n }\n }\n }\n }",
"public void unsetType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(TYPE$0);\n }\n }",
"void unsetFurtherRelations();",
"public void unlink(){\n Nucleus parent = this.getParent();\n if (parent == null){\n return;\n }\n // the nucleus being unlinked must get a new cellname\n this.renameContainingCell(this.getName());\n \n if (parent.getChild1()==this){\n // move parents child2 into child1\n parent.setDaughters(parent.getChild2(), null);\n }else {\n // unlinking parents child2\n parent.setDaughters(parent.getChild1(), null);\n }\n if (parent.getChild1()!=null){\n // child1 now part of parents cell\n parent.getChild1().renameContainingCell(parent.getCellName()); \n }\n this.setParent(null);\n }",
"@Override\n public void removeTransitiveRelationship(\n Long id,\n Class<? extends TransitiveRelationship<? extends AtomClass>> relationshipClass)\n throws Exception {\n Logger.getLogger(getClass()).debug(\n \"Content Service - remove transitive relationship \" + id);\n\n final TransitiveRelationship<? extends ComponentHasAttributes> rel =\n getComponent(id, relationshipClass);\n removeComponent(id, rel.getClass());\n }",
"public void deletePhysically() {\r\n if (log.isTraceEnabled()) {\r\n log.trace(\"physically delete item: \" + getHref());\r\n }\r\n List<Relationship> rels = nameNode.findFromRelations(null);\r\n if( rels != null ) {\r\n for( Relationship r : rels ) {\r\n r.delete();\r\n } \r\n }\r\n rels = nameNode.findToRelations(null);\r\n if( rels != null ) {\r\n for( Relationship r : rels ) {\r\n r.delete();\r\n } \r\n }\r\n nameNode.delete();\r\n }",
"public void removeNodeAfterThis(){\r\n IntNode cursor = this;\r\n if(cursor.getLink() == null)\r\n return;\r\n if(cursor.getLink().getLink() == null){\r\n link = null;\r\n return;\r\n }\r\n cursor = cursor.getLink().getLink();\r\n }",
"private void linkRemoved(Link link) {\n\n\t}",
"boolean removeLink(Link link);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
changes number type to differentiate between weapons and upgrades | @Override
public int getType()
{
return weapon.getType() + 20;
} | [
"public void changeWeapons(int change) {\r\n weapons += change;\r\n if (weapons < 0) {\r\n weapons = 0;\r\n }\r\n }",
"private void upgrade(Powerup item){\n\t if (item instanceof Powerup_Speed){\n\t\t if (vel + 1 <= MAX_VEL){\n\t\t\t vel ++;\n\t\t }\n\t }\n\t else if (item instanceof Powerup_Explosion){\n\t\t if (range + 1 <= MAX_RANGE){\n\t\t\t range ++;\n\t\t }\n\t }\n\t else if (item instanceof Powerup_Bubble){\n\t\t if (num + 1 <= MAX_NUM){\n\t\t\t num ++;\n\t\t }\n\t }\n\t else{\n\t\t //TODO for future item additions\n\t }\n }",
"public void upgradeWeapons () {\n\n }",
"public void setType(int type){\n unitType=type;\n }",
"public final void increaseWeaponLevel(final int add) {\n setWeaponLevel(getWeaponLevel() + add);\n }",
"public void changeBulletType(int type)\n {\n bulletType = type;\n }",
"private void editInventory(Item item, Integer num, Integer type){\n\t\tInventoryItem invItem = getItem(item);\n\t\t\n\t\tswitch (type){\n\t\tcase 0:\n\t\t\tif (invItem == null){\n\t\t\t\tthis.add(new InventoryItem(item, num));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinvItem.quantity += num;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tif (invItem != null){\n\t\t\t\tinvItem.quantity -= num;\n\t\t\t\tif (invItem.quantity <= 0){\n\t\t\t\t\tthis.remove(invItem);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"public void upgrade(){\n damage += 6;\n super.upgrade();\n if(level == 4){\n slowDuration += 60;\n }\n }",
"public WeaponType getType() {\r\n return _type;\r\n }",
"public void upgrade(){\n\n //upgrade stats\n this.setLevel(this.getLevel() + 1);\n this.setMaxHealth(this.getMaxHealth() + 500);\n this.setHealth(this.getHealth() + 500);\n\n\n }",
"public void setEnginePowersTypeUid(Integer aEnginePowersTypeUid) {\n enginePowersTypeUid = aEnginePowersTypeUid;\n }",
"public void changeType(int t) {\r\n switch (t) {\r\n case 0:\r\n type = Chunk.ChunkType.ChunkType_Overworld;\r\n break;\r\n case 1:\r\n type = Chunk.ChunkType.ChunkType_Nether;\r\n break;\r\n }\r\n }",
"public void setAmmoType (BossAmmoType newType)\n\t{\n\t\tmAmmoType = newType;\n\t}",
"public abstract String getNumberType();",
"private int GetEnemyUnitTypeAttackValue(UnitType type) {\n \tif (type == UnitType.BEETLE) return 3;\n \tif (type == UnitType.ANT) return 2;\n \tif (type == UnitType.BEE) return 4;\n \tif (type == UnitType.SPIDER) return 5;\n \tif (type == UnitType.QUEEN) return 1;\n \treturn 0;\n\t}",
"public void upgrade(){\n\n //upgrade stats\n this.setLevel(this.getLevel() + 1);\n this.setMaxHealth(this.getMaxHealth() + 500);\n this.setHealth(this.getHealth() + 500);\n\n }",
"public static Type getTypeFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn Type.PURCHASE;\n\t\telse\n\t\t\treturn Type.RENTAL;\n\t}",
"public JellySuper(int type) {\n\t\tthis.health = health;\n\t\tthis.type = type;\n\t\n\t\tif(type == BLUE_JELLY){\n\t\t\tthis.name = \"Blue Jelly\";\n\t\t}else if(type == RED_JELLY){\n\t\t\tthis.name = \"Red Jelly\";\n\t\t}\n\t}",
"public void upgrade()\r\n {\r\n if (myLevel < MAX_LEVEL)\r\n {\r\n myLevel++;\r\n if (myLevel == 2)\r\n {\r\n myDmg *= 1.25;\r\n }\r\n else if (myLevel == 3)\r\n {\r\n myDmg *= 1.5;\r\n }\r\n else if (myLevel == 4)\r\n {\r\n myDmg *= 1.5;\r\n }\r\n else if (myLevel == 5)\r\n {\r\n myDmg *= 2;\r\n myRng *= 2;\r\n }\r\n //set up image\r\n myImage = sprite.getSprite(IMAGE + myLevel + EXTENSION);\r\n }\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Konstruktor von BigLogic. Sie laedt die benoetigten Klassen, Datein und Konfigurationen hoch | public BigLogic() {
configLoader = new ConfigLoader();
pluginTableModel = new PluginTableModel(configLoader.getPlugins());
tdiDialog = new TDIDialog(this, pluginTableModel);
icons = configLoader.loadIcons();
Collections.sort(icons);
wallpaper = new Wallpaper(configLoader.loadWallpaper(),
configLoader.getBlockSize(), configLoader.getPanelSize(),
configLoader.getPlacementRatio(), configLoader.loadScreensize());
calculateScale();
new Thread(plugserv).start();
} | [
"private void init() {\n\n JMethod method = null;\n JSourceCode jsc = null;\n boolean extended = false;\n\t\t\n //Make sure that the Descriptor is extended XMLClassDescriptor\n //even when the user has specified a super class for all the generated\n //classes\n String superClass = null;\n if (_config != null) {\n superClass = _config.getProperty(SourceGenerator.Property.SUPER_CLASS, null);\n }\n if ( (_type.getSuperClass()==null) || \n\t\t\t (_type.getSuperClass().equals(superClass)) )\n\t\t\tsetSuperClass(\"org.exolab.castor.xml.util.XMLClassDescriptorImpl\");\n\t\telse {\n extended = true;\n\t \t\tsetSuperClass(_type.getSuperClass()+\"Descriptor\");\n }\n superClass = null;\n\n// addImport(\"org.exolab.castor.xml.NodeType\");\n// addImport(\"org.exolab.castor.xml.XMLFieldHandler\");\n// addImport(\"org.exolab.castor.xml.handlers.*\");\n// addImport(\"org.exolab.castor.xml.util.XMLFieldDescriptorImpl\");\n addImport(\"org.exolab.castor.xml.validators.*\");\n// addImport(\"org.exolab.castor.xml.FieldValidator\");\n\n addField(new JField(SGTypes.String, \"nsPrefix\"));\n addField(new JField(SGTypes.String, \"nsURI\"));\n addField(new JField(SGTypes.String, \"xmlName\"));\n //-- if there is a super class, the identity field must remain\n //-- the same than the one in the super class\n addField(new JField(_XMLFieldDescriptorClass, \"identity\"));\n\n //-- create default constructor\n addConstructor( createConstructor() );\n JConstructor cons = getConstructor(0);\n jsc = cons.getSourceCode();\n jsc.add(\"super();\");\n \n if (extended) {\n //-- add base class (for validation)\n jsc.add(\"setExtendsWithoutFlatten(\");\n jsc.append(\"new \");\n jsc.append(getSuperClass());\n jsc.append(\"());\");\n }\n \n //jsc.add(\"Class[] emptyClassArgs = new Class[0];\");\n //jsc.add(\"Class[] classArgs = new Class[1];\");\n\n //-----------------------------------------/\n //- Methods Defined by XMLClassDescriptor -/\n //-----------------------------------------/\n\n //-- create getNameSpacePrefix method\n method = new JMethod(SGTypes.String, \"getNameSpacePrefix\");\n jsc = method.getSourceCode();\n jsc.add(\"return nsPrefix;\");\n addMethod(method);\n _getNameSpacePrefix = method;\n\n //-- create getNameSpaceURI method\n method = new JMethod(SGTypes.String, \"getNameSpaceURI\");\n jsc = method.getSourceCode();\n jsc.add(\"return nsURI;\");\n addMethod(method);\n _getNameSpaceURI = method;\n\n //-- create getValidator method\n method = new JMethod(_TypeValidatorClass, \"getValidator\");\n jsc = method.getSourceCode();\n jsc.add(\"return this;\");\n addMethod(method);\n\n //-- create getXMLName method\n method = new JMethod(SGTypes.String, \"getXMLName\");\n jsc = method.getSourceCode();\n jsc.add(\"return xmlName;\");\n addMethod(method);\n _getXMLName = method;\n\n //--------------------------------------/\n //- Methods defined by ClassDescriptor -/\n //--------------------------------------/\n\n\n //-- create getAccessMode method\n JClass amClass = new JClass(\"org.exolab.castor.mapping.AccessMode\");\n method = new JMethod(amClass, \"getAccessMode\");\n jsc = method.getSourceCode();\n jsc.add(\"return null;\");\n addMethod(method);\n _getAccessMode = method;\n\n //-- create getExtends method\n method = new JMethod(_ClassDescriptorClass, \"getExtends\");\n jsc = method.getSourceCode();\n if (extended) {\n jsc.add(\"return super.getExtends();\");\n }\n else {\n jsc.add(\"return null;\");\n }\n \n //--don't add the type to the import list\n addMethod(method, false);\n _getExtends = method;\n\n //-- create getIdentity method\n method = new JMethod(_FieldDescriptorClass, \"getIdentity\");\n jsc = method.getSourceCode();\n if (extended) {\n jsc.add(\"if (identity == null)\");\n jsc.indent();\n jsc.add(\"return super.getIdentity();\");\n jsc.unindent();\n }\n jsc.add(\"return identity;\");\n \n //--don't add the type to the import list\n addMethod(method, false);\n _getIdentity = method;\n\n //-- create getJavaClass method\n method = new JMethod(SGTypes.Class, \"getJavaClass\");\n jsc = method.getSourceCode();\n jsc.add(\"return \");\n jsc.append(classType(_type));\n jsc.append(\";\");\n \n //--don't add the type to the import list\n addMethod(method, false);\n \n _getJavaClass = method;\n\n }",
"BIG createBIG();",
"BpelImplementation createBpelImplementation();",
"public ConfiguracionMB() {\n\t}",
"LBOCutConfig() { super(1); }",
"protected AbstractSymbology(Configuration config)\r\n {\r\n this.configuration = config;\r\n }",
"protected ConfigMethod() {\n }",
"GenClassCache get_genClassCache();",
"private Ruby(RubyInstanceConfig config) {\n this.config = config;\n this.is1_9 = config.getCompatVersion() == CompatVersion.RUBY1_9;\n this.doNotReverseLookupEnabled = is1_9;\n this.threadService = new ThreadService(this);\n if(config.isSamplingEnabled()) {\n org.jruby.util.SimpleSampler.registerThreadContext(threadService.getCurrentContext());\n }\n \n this.in = config.getInput();\n this.out = config.getOutput();\n this.err = config.getError();\n this.objectSpaceEnabled = config.isObjectSpaceEnabled();\n this.profile = config.getProfile();\n this.currentDirectory = config.getCurrentDirectory();\n this.kcode = config.getKCode();\n this.beanManager = BeanManagerFactory.create(this, config.isManagementEnabled());\n this.jitCompiler = new JITCompiler(this);\n this.parserStats = new ParserStats(this);\n \n this.beanManager.register(new Config(this));\n this.beanManager.register(parserStats);\n this.beanManager.register(new ClassCache(this));\n \n this.runtimeCache = new RuntimeCache();\n runtimeCache.initMethodCache(ClassIndex.MAX_CLASSES * MethodIndex.MAX_METHODS);\n }",
"public BSHPredial() {\r\n\t\t\r\n\t}",
"protected abstract void buildClass(Class theclass) throws IOException;",
"ClassMaker(String packageName, String className, String core, String toBeFluentized) throws IOException {\n this.className = className;\n this.packageName = packageName;\n this.core = core;\n this.toBeFluentized = toBeFluentized;\n }",
"protected KernelMethodBuilder(Configuration<B> config) {\n\t\tsuper(config);\n\t}",
"public Logic() {\n }",
"public ServerLogic () {\n\t\t\n\t}",
"public AppConventionalCellMO() {\n super();\n }",
"public HMetis() {\n\t\tthis.init();\n\t}",
"private IncrementalAnalysisSettings() {\n\n }",
"public Bienesinm() {\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new local archive. Uses the properties from props first, if possible. Props can be null. | Archive(Package pkg, Properties props, Os os, Arch arch, String localOsPath) {
mPackage = pkg;
mOs = props == null ? os : Os.valueOf(props.getProperty(PROP_OS, os.toString()));
mArch = props == null ? arch : Arch.valueOf(props.getProperty(PROP_ARCH, arch.toString()));
mUrl = null;
mLocalOsPath = localOsPath;
mSize = 0;
mChecksum = "";
mIsLocal = true;
} | [
"Archive createArchive();",
"Archiv createArchiv();",
"public AposNtripCasterMock (Properties props) throws FileNotFoundException {\n\t\tinit (props);\n\t}",
"private String createPlugin(final Path structure, String... properties) throws IOException {\n PluginTestUtil.writeProperties(structure, properties);\n Path zip = createTempDir().resolve(structure.getFileName() + \".zip\");\n try (ZipOutputStream stream = new ZipOutputStream(Files.newOutputStream(zip))) {\n Files.walkFileTree(structure, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n stream.putNextEntry(new ZipEntry(structure.relativize(file).toString()));\n Files.copy(file, stream);\n return FileVisitResult.CONTINUE;\n }\n });\n }\n if (randomBoolean()) {\n writeSha1(zip, false);\n } else if (randomBoolean()) {\n writeMd5(zip, false);\n }\n return zip.toUri().toURL().toString();\n }",
"public static Asset createTestableAssetWithProps(final String productType, \n final Map<String, Object> props) throws IllegalArgumentException, AssetException, \n IllegalStateException, FactoryException\n {\n final Asset asset = createTestableAsset(productType);\n asset.setProperties(new Hashtable<String, Object>(props));\n \n return asset;\n }",
"Properties createProperties();",
"LocalResource createLocalResource();",
"private static Properties createOverlayedProperties(Properties tblProps, Properties partProps) {\n Properties props = new Properties();\n props.putAll(tblProps);\n if (partProps != null) {\n props.putAll(partProps);\n }\n return props;\n }",
"public abstract void create(ContainerProperties props);",
"Unzip createUnzip();",
"private File createPropertiesFile(Map<String, String> properties) throws IOException {\n File file = tempFolder.newFile();\n Writer fileWriter = Files.newBufferedWriter(file.toPath(), UTF_8);\n for (Map.Entry<String, String> entry : properties.entrySet()) {\n fileWriter.write(String.format(\"%s=%s\\n\", entry.getKey(), entry.getValue()));\n }\n fileWriter.flush();\n fileWriter.close();\n return file;\n }",
"static Package create(SdkSource source,\r\n Properties props,\r\n String vendor,\r\n String path,\r\n int revision,\r\n String license,\r\n String description,\r\n String descUrl,\r\n Os archiveOs,\r\n Arch archiveArch,\r\n String archiveOsPath) {\r\n ExtraPackage ep = new ExtraPackage(source, props, vendor, path, revision, license,\r\n description, descUrl, archiveOs, archiveArch, archiveOsPath);\r\n\r\n if (ep.isPathValid()) {\r\n return ep;\r\n } else {\r\n String shortDesc = ep.getShortDescription() + \" [*]\"; //$NON-NLS-1$\r\n\r\n String longDesc = String.format(\r\n \"Broken Extra Package: %1$s\\n\" +\r\n \"[*] Package cannot be used due to error: Invalid install path %2$s\",\r\n description,\r\n ep.getPath());\r\n\r\n BrokenPackage ba = new BrokenPackage(props, shortDesc, longDesc,\r\n ep.getMinApiLevel(),\r\n IExactApiLevelDependency.API_LEVEL_INVALID,\r\n archiveOsPath);\r\n return ba;\r\n }\r\n }",
"private void createLauncherJar(Map<String, LocalFile> localFiles) throws URISyntaxException, IOException {\n\n LOG.debug(\"Create and copy {}\", Constants.Files.LAUNCHER_JAR);\n\n Location location = locationCache.get(Constants.Files.LAUNCHER_JAR, new LocationCache.Loader() {\n @Override\n public void load(String name, Location targetLocation) throws IOException {\n // Create a jar file with the TwillLauncher and FindFreePort and dependent classes inside.\n try (JarOutputStream jarOut = new JarOutputStream(targetLocation.getOutputStream())) {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n if (classLoader == null) {\n classLoader = getClass().getClassLoader();\n }\n Dependencies.findClassDependencies(classLoader, new ClassAcceptor() {\n @Override\n public boolean accept(String className, URL classUrl, URL classPathUrl) {\n try {\n jarOut.putNextEntry(new JarEntry(className.replace('.', '/') + \".class\"));\n try (InputStream is = classUrl.openStream()) {\n ByteStreams.copy(is, jarOut);\n }\n } catch (IOException e) {\n throw Throwables.propagate(e);\n }\n return true;\n }\n }, TwillLauncher.class.getName(), FindFreePort.class.getName());\n }\n }\n });\n\n LOG.debug(\"Done {}\", Constants.Files.LAUNCHER_JAR);\n\n localFiles.put(Constants.Files.LAUNCHER_JAR, createLocalFile(Constants.Files.LAUNCHER_JAR, location));\n }",
"protected Manifest createManifest() throws ArchiverException {\n Manifest finalManifest = Manifest.getDefaultManifest(minimalDefaultManifest);\n\n if ((manifest == null) && (manifestFile != null)) {\n // if we haven't got the manifest yet, attempt to\n // get it now and have manifest be the final merge\n manifest = getManifest(manifestFile);\n }\n\n /*\n * Precedence: manifestFile wins over inline manifest,\n * over manifests read from the filesets over the original\n * manifest.\n *\n * merge with null argument is a no-op\n */\n if (isInUpdateMode()) {\n JdkManifestFactory.merge(finalManifest, originalManifest, false);\n }\n JdkManifestFactory.merge(finalManifest, filesetManifest, false);\n JdkManifestFactory.merge(finalManifest, configuredManifest, false);\n JdkManifestFactory.merge(finalManifest, manifest, !mergeManifestsMain);\n\n return finalManifest;\n }",
"public void init(Properties props) ;",
"private static Archive createPatchZip() {\n final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, \"patch-01.zip\");\n archive.add(new Asset() {\n @Override\n public InputStream openStream() {\n StringBuilder builder = new StringBuilder(String.format(\"id = %s%n\", \"patch-01\"));\n builder.append(String.format(\"bundle.count=1%n\"));\n builder.append(String.format(\"bundle.0=%s%n\", getMavenUrl(PATCHED_VERSION)));\n return new ByteArrayInputStream(builder.toString().getBytes());\n }\n }, \"patch-01.patch\");\n archive.add(createPatchableBundle(PATCHED_VERSION), \"repository/\" + getMavenRepoFolder(PATCHED_VERSION), ZipExporter.class);\n return archive;\n }",
"private static void storePropsFile() {\n try {\n FileOutputStream fos = new FileOutputStream(propertyFile);\n props.store(fos, null);\n fos.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }",
"@Override\n protected void zipFile(\n InputStreamSupplier is,\n ConcurrentJarCreator zOut,\n String vPath,\n long lastModified,\n File fromArchive,\n int mode,\n String symlinkDestination,\n boolean addInParallel)\n throws IOException, ArchiverException {\n if (MANIFEST_NAME.equalsIgnoreCase(vPath)) {\n if (!doubleFilePass || skipWriting) {\n try (InputStream manifestInputStream = is.get()) {\n filesetManifest(fromArchive, manifestInputStream);\n }\n }\n } else if (INDEX_NAME.equalsIgnoreCase(vPath) && index) {\n getLogger()\n .warn(\"Warning: selected \" + archiveType + \" files include a META-INF/INDEX.LIST which will\"\n + \" be replaced by a newly generated one.\");\n } else {\n if (index && !vPath.contains(\"/\")) {\n rootEntries.add(vPath);\n }\n super.zipFile(is, zOut, vPath, lastModified, fromArchive, mode, symlinkDestination, addInParallel);\n }\n }",
"public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates "ui" palette tool group | private PaletteContainer createUi1Group() {
PaletteGroup paletteContainer = new PaletteGroup(
Messages.Ui1Group_title);
paletteContainer.setId("createUi1Group"); //$NON-NLS-1$
paletteContainer.add(createTable1CreationTool());
paletteContainer.add(createColumn2CreationTool());
paletteContainer.add(createUniqueKey3CreationTool());
paletteContainer.add(createIdentifying4CreationTool());
paletteContainer.add(createNonIdentifying5CreationTool());
return paletteContainer;
} | [
"private void createControlsGroup() {\r\n PaletteContainer group = new PaletteToolbar(Messages.ArchimateDiagramEditorPalette_0);\r\n \r\n // The selection tool\r\n ToolEntry tool = new PanningSelectionToolEntry();\r\n tool.setToolClass(PanningSelectionExtendedTool.class);\r\n group.add(tool);\r\n\r\n // Use selection tool as default entry\r\n setDefaultEntry(tool);\r\n \r\n PaletteStack stack = createMarqueeSelectionStack();\r\n group.add(stack);\r\n \r\n // Format Painter\r\n formatPainterEntry = new FormatPainterToolEntry();\r\n group.add(formatPainterEntry);\r\n \r\n add(group);\r\n \r\n // Relations group will be inserted before this\r\n add(new PaletteSeparator(\"relations\")); //$NON-NLS-1$\r\n }",
"private static PaletteContainer createToolsGroup(PaletteRoot palette) {\n\t\tPaletteGroup toolGroup = new PaletteGroup(\"Tools\");\n\n\t\t// Add a selection tool to the group\n\t\tToolEntry tool = new PanningSelectionToolEntry();\n\t\ttoolGroup.add(tool);\n\t\tpalette.setDefaultEntry(tool);\n\n\t\t// Add a marquee tool to the group\n\t\ttoolGroup.add(new MarqueeToolEntry());\n\n\t\t// Add a (unnamed) separator to the group\n\t\ttoolGroup.add(new PaletteSeparator());\n\n\t\t// Add (solid-line) connection tool\n\t\ttool = new ConnectionCreationToolEntry(\"Transition\",\n\t\t\t\t\"Create a transition between states\", new CreationFactory() {\n\t\t\t\t\tpublic Object getNewObject() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// see StateMachinesEditPart#createEditPolicies()\n\t\t\t\t\t// this is abused to transmit the desired line style\n\t\t\t\t\tpublic Object getObjectType() {\n\t\t\t\t\t\treturn Connection.SOLID_CONNECTION;\n\t\t\t\t\t}\n\t\t\t\t}, ImageDescriptor.createFromFile(StateMachinesPlugin.class,\n\t\t\t\t\t\t\"connection_s16.gif\"), ImageDescriptor.createFromFile(\n\t\t\t\t\t\tStateMachinesPlugin.class, \"connection_s24.gif\"));\n\t\ttoolGroup.add(tool);\n\n\t\treturn toolGroup;\n\t}",
"protected Panel createToolPalette() {\n Panel palette = new Panel();\n palette.setLayout(new PaletteLayout(2,new Point(2,2)));\n return palette;\n }",
"protected Panel createToolPalette() {\n Panel palette = new Panel();\n palette.setBackground(Color.lightGray);\n palette.setLayout(new PaletteLayout(2,new Point(2,2)));\n return palette;\n }",
"private PaletteContainer createBaseTools1Group() {\n\t\tPaletteGroup paletteContainer = new PaletteGroup(\n\t\t\t\tMessages.BaseTools1Group_title);\n\t\tpaletteContainer.setId(\"createBaseTools1Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.setDescription(Messages.BaseTools1Group_desc);\n\t\tpaletteContainer.add(createRegion1CreationTool());\n\t\tpaletteContainer.add(createState2CreationTool());\n\t\treturn paletteContainer;\n\t}",
"protected void createTools(Panel palette) {\n Tool tool = createSelectionTool();\n\n fDefaultToolButton = createToolButton(IMAGES+\"SEL\", \"Selection Tool\", tool);\n palette.add(fDefaultToolButton);\n }",
"private PaletteContainer createElements2Group() {\n\t\tPaletteDrawer paletteContainer = new PaletteDrawer(\n\t\t\t\tMessages.Elements2Group_title);\n\t\tpaletteContainer.setId(\"createElements2Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(createBelief1CreationTool());\n\t\tpaletteContainer.add(createGoal2CreationTool());\n\t\tpaletteContainer.add(createResource3CreationTool());\n\t\tpaletteContainer.add(createSoftgoal4CreationTool());\n\t\tpaletteContainer.add(createTask5CreationTool());\n\t\treturn paletteContainer;\n\t}",
"private PaletteContainer createAndroid1Group() {\n\t\tPaletteGroup paletteContainer = new PaletteGroup(\n\t\t\t\tMessages.Android1Group_title);\n\t\tpaletteContainer.setId(\"createAndroid1Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(createLayout1CreationTool());\n\t\tpaletteContainer.add(createButton2CreationTool());\n\t\tpaletteContainer.add(createTextField3CreationTool());\n\t\tpaletteContainer.add(createTextView4CreationTool());\n\t\tpaletteContainer.add(createAplication5CreationTool());\n\t\tpaletteContainer.add(createCreateString6CreationTool());\n\t\tpaletteContainer.add(createActivity7CreationTool());\n\t\tpaletteContainer.add(createMenu8CreationTool());\n\t\tpaletteContainer.add(createItem9CreationTool());\n\t\tpaletteContainer.add(createAction10CreationTool());\n\t\tpaletteContainer.add(createDialog11CreationTool());\n\t\treturn paletteContainer;\n\t}",
"private PaletteContainer createGeneral1Group()\n {\n PaletteDrawer paletteContainer = new PaletteDrawer(Messages.General1Group_title);\n paletteContainer.setId(\"createGeneral1Group\"); //$NON-NLS-1$\n paletteContainer.add(createRunwayClass1CreationTool());\n return paletteContainer;\n }",
"private PaletteContainer createTransitionTools2Group() {\n\t\tPaletteGroup paletteContainer = new PaletteGroup(\n\t\t\t\tMessages.TransitionTools2Group_title);\n\t\tpaletteContainer.setId(\"createTransitionTools2Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.setDescription(Messages.TransitionTools2Group_desc);\n\t\tpaletteContainer.add(createTransition1CreationTool());\n\t\tpaletteContainer.add(createChoice2CreationTool());\n\t\tpaletteContainer.add(createJunction3CreationTool());\n\t\treturn paletteContainer;\n\t}",
"private PaletteContainer createContributions4Group() {\n\t\tPaletteDrawer paletteContainer = new PaletteDrawer(\n\t\t\t\tMessages.Contributions4Group_title);\n\t\tpaletteContainer.setId(\"createContributions4Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(createAnd1CreationTool());\n\t\tpaletteContainer.add(createBreak2CreationTool());\n\t\tpaletteContainer.add(createHelp3CreationTool());\n\t\tpaletteContainer.add(createHurt4CreationTool());\n\t\tpaletteContainer.add(createMake5CreationTool());\n\t\tpaletteContainer.add(createOr6CreationTool());\n\t\tpaletteContainer.add(createSome7CreationTool());\n\t\tpaletteContainer.add(createSome8CreationTool());\n\t\tpaletteContainer.add(createUnknown9CreationTool());\n\t\treturn paletteContainer;\n\t}",
"private PaletteContainer createActors1Group() {\n\t\tPaletteDrawer paletteContainer = new PaletteDrawer(\n\t\t\t\tMessages.Actors1Group_title);\n\t\tpaletteContainer.setId(\"createActors1Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(createActor1CreationTool());\n\t\tpaletteContainer.add(createAgent2CreationTool());\n\t\tpaletteContainer.add(createPosition3CreationTool());\n\t\tpaletteContainer.add(createRole4CreationTool());\n\t\treturn paletteContainer;\n\t}",
"private PaletteContainer createServiceView3Group() {\n\t\tPaletteDrawer paletteContainer = new PaletteDrawer(\n\t\t\t\tMessages.ServiceView3Group_title);\n\t\tpaletteContainer.setId(\"createServiceView3Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(new PaletteSeparator());\n\t\tpaletteContainer.add(createConsumedServiceElement2CreationTool());\n\t\tpaletteContainer.add(createRegisteredServiceElement3CreationTool());\n\t\tpaletteContainer.add(createServiceConnector4CreationTool());\n\t\treturn paletteContainer;\n\t}",
"private PaletteContainer createInterfaceView4Group() {\n\t\tPaletteDrawer paletteContainer = new PaletteDrawer(\n\t\t\t\tMessages.InterfaceView4Group_title);\n\t\tpaletteContainer.setId(\"createInterfaceView4Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(new PaletteSeparator());\n\t\tpaletteContainer.add(createProvidedInterfaceElement2CreationTool());\n\t\tpaletteContainer.add(createRequiredInterfaceElement3CreationTool());\n\t\tpaletteContainer.add(createInterfaceConnector4CreationTool());\n\t\treturn paletteContainer;\n\t}",
"private PaletteContainer createCompoisteElements1Group() {\n\t\tPaletteDrawer paletteContainer = new PaletteDrawer(\n\t\t\t\tMessages.CompoisteElements1Group_title);\n\t\tpaletteContainer.setId(\"createCompoisteElements1Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(createCompositeElement1CreationTool());\n\t\tpaletteContainer.add(createPluginElement2CreationTool());\n\t\treturn paletteContainer;\n\t}",
"private PaletteContainer createPseudostates3Group() {\n\t\tPaletteGroup paletteContainer = new PaletteGroup(\n\t\t\t\tMessages.Pseudostates3Group_title);\n\t\tpaletteContainer.setId(\"createPseudostates3Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.setDescription(Messages.Pseudostates3Group_desc);\n\t\tpaletteContainer.add(createInitialState1CreationTool());\n\t\tpaletteContainer.add(createFinalState2CreationTool());\n\t\tpaletteContainer.add(createShallowHistory3CreationTool());\n\t\tpaletteContainer.add(createDeepHistory4CreationTool());\n\t\treturn paletteContainer;\n\t}",
"public void createNewUI() {\n this.ui = new UdacityUserInterface();\n }",
"private PaletteContainer createMissions1Group() {\n\t\tPaletteDrawer paletteContainer = new PaletteDrawer(\n\t\t\t\tMessages.Missions1Group_title);\n\t\tpaletteContainer.setId(\"createMissions1Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.setDescription(Messages.Missions1Group_desc);\n\t\tpaletteContainer.add(createMission1CreationTool());\n\t\tpaletteContainer.add(createTransition2CreationTool());\n\t\treturn paletteContainer;\n\t}",
"private PaletteContainer createObjects1Group() {\n\t\tPaletteDrawer paletteContainer = new PaletteDrawer(\n\t\t\t\tMessages.Objects1Group_title);\n\t\tpaletteContainer.setId(\"createObjects1Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(createAnyOrder1CreationTool());\n\t\tpaletteContainer.add(createChoice2CreationTool());\n\t\tpaletteContainer.add(createCondition3CreationTool());\n\t\tpaletteContainer.add(createControlConstructBag4CreationTool());\n\t\tpaletteContainer.add(createControlConstructList5CreationTool());\n\t\tpaletteContainer.add(createExpr6CreationTool());\n\t\tpaletteContainer.add(createIfThenElse7CreationTool());\n\t\tpaletteContainer.add(createInput8CreationTool());\n\t\tpaletteContainer.add(createLink9CreationTool());\n\t\tpaletteContainer.add(createLoc10CreationTool());\n\t\tpaletteContainer.add(createOntology11CreationTool());\n\t\tpaletteContainer.add(createOutput12CreationTool());\n\t\tpaletteContainer.add(createPerform13CreationTool());\n\t\tpaletteContainer.add(createProduce14CreationTool());\n\t\tpaletteContainer.add(createRemoteProcess15CreationTool());\n\t\tpaletteContainer.add(createRepeatUntil16CreationTool());\n\t\tpaletteContainer.add(createRepeatWhile17CreationTool());\n\t\tpaletteContainer.add(createResult18CreationTool());\n\t\tpaletteContainer.add(createResultVar19CreationTool());\n\t\tpaletteContainer.add(createSequence20CreationTool());\n\t\tpaletteContainer.add(createSet21CreationTool());\n\t\tpaletteContainer.add(createSplit22CreationTool());\n\t\tpaletteContainer.add(createSplitJoin23CreationTool());\n\t\tpaletteContainer.add(createTemplateConstraint24CreationTool());\n\t\tpaletteContainer.add(createTemplateProcess25CreationTool());\n\t\tpaletteContainer.add(createValueForm26CreationTool());\n\t\tpaletteContainer.add(createValueFunction27CreationTool());\n\t\tpaletteContainer.add(createValueSource28CreationTool());\n\t\treturn paletteContainer;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form Magasin | public Magasin() {
initComponents();
} | [
"public frmInsertarMascota() {\n initComponents();\n }",
"public static void newMakler() {\n\t\tMakler m = new Makler();\n\n\t\tm.setName(FormUtil.readString(\"Name\"));\n\t\tm.setAddress(FormUtil.readString(\"Adresse\"));\n\t\tm.setLogin(FormUtil.readString(\"Login\"));\n\t\tm.setPassword(FormUtil.readString(\"Passwort\"));\n\t\tm.save();\n\n\t\tSystem.out.println(\"Makler mit der ID \" + m.getId() + \" wurde erzeugt.\");\n\t}",
"public void newArticle() {\n ArticleForm af = new ArticleForm(this);\n af.showForm();\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"FORM createFORM();",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public MallDetailsForm() {\n initComponents();\n }",
"@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }",
"@RequestMapping(params = {\"create\", \"form\"}, produces = \"text/html\")\n public String createForm_new(Model uiModel) {\n \tpopulateEditForm(uiModel, new Flight());\n return \"flights/create_new\";\n }",
"public makingAPizzaForm() {\n initComponents();\n }",
"public FormularioDeMaterias() {\n initComponents();\n }",
"public frm_registro_admision_ingreso_registro() {\n }",
"public FormInserir() {\n initComponents();\n }",
"public SmjerForma() {\n initComponents();\n entitet = new Smjer();\n obrada = new ObradaSmjer(entitet);\n setTitle(Aplikacija.NASLOV_APP + \" Smjerovi\");\n ucitaj();\n }",
"public FrmMartialArts() {\n initComponents();\n }",
"public void addMagazine() {\n Magazine magazine = new Magazine();\n libraryDatabase.getMediaDatabase().add(magazine);\n }",
"public FrmInsertar() {\n initComponents();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new rider within the transit system with the given name and email address | public Rider(String name, String email) {
this.name = name;
this.email = email;
this.id = IDGenerator.generateID('R');
cards = new ArrayList<Card>();
} | [
"Responsible createResponsible();",
"Sponsor createSponsor(String name, String description, String street, String city, String state, String zip) throws CustomException;",
"Businessemailcontact create(Businessemailcontact businessemailcontact);",
"public void createSupplier(String name, String address, int phone, String email) {\n\t\tdbConnector.saveSupplier(name, phone, address, email);\n\t}",
"private void createStudentAccount() throws Exception \n\t{\n\t\t\n\t\tScanner Scan3=new Scanner(System.in);\n\t\tString pemail;\n\t\tPPAccount temp;\n\t\tdo{\n\t\tSystem.out.println(\"enter source account id\");\n\t\tpemail= Scan3.next();\n\t\ttemp=DataStore.lookupAccount(pemail);\n\t\tprofile= createProfile(email);\n\t\t}while(temp==null ||!PPToolkit.validateEmail(pemail));\t\t\n\t\t\n\t\taccount = new PPRestrictedAccount(profile,pemail);\n\t}",
"private void doCreateNewPartner() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"***Hors Management System:: System Administration:: Create new partner\");\n Partner partner = new Partner();\n System.out.print(\"Enter partner username:\");\n partner.setName(sc.nextLine().trim());\n System.out.print(\"Enter partner password;\");\n partner.setPassword(sc.nextLine().trim());\n\n Set<ConstraintViolation<Partner>> constraintViolations = validator.validate(partner);\n\n if (constraintViolations.isEmpty()) {\n partner = partnerControllerRemote.createNewPartner(partner);\n System.out.println(\"New partner created successfully\");\n } else {\n showInputDataValidationErrorsForPartner(constraintViolations);\n }\n\n }",
"RentalAgency createRentalAgency();",
"public Requerente createRequerente(String nome);",
"@Override\n\tpublic Result create() {\n\t\ttry{\n\t\t\tJsonNode request = request().body().asJson();\n\t\t\tif(request == null)\n\t return Response.requiredJson();\n\t\t\t\n\t\t\tPartnerRequest pr = Json.fromJson(request.get(\"partner\"), PartnerRequest.class);\n\t\t\tPartner p = modelMapper.map(pr, Partner.class);\n\t\t\tp.setToken(tokenGenerator()); // se genera el token que tendra asociado el partner\n\t\t\tp.setStatus_partner(2);\n\t\t\tp = partnerDao.create(p);\n\t\t\treturn Response.createdEntity(\n\t Json.toJson(p));\n\t\t}catch(Exception e){\n return ExceptionsUtils.create(e);\n }\n\t}",
"private void registerByEmail() {\n\n String username = editUsername.getText().toString();\n String email = editEmail.getText().toString();\n String password = editPassword.getText().toString();\n\n AVUser person = new AVUser();\n person.setUsername(username);\n person.setEmail(email);\n person.setPassword(password);\n person.put(Person.NICK_NAME,username);\n\n person.signUpInBackground(new SignUpCallback() {\n @Override\n public void done(AVException e) {\n if (e == null) {\n ShowMessageUtil.tosatFast(\"register successful!\", EmailRegisterActivity.this);\n openValidateDialog();\n } else {\n ShowMessageUtil.tosatSlow(\"fail to register:\" + e.getMessage(), EmailRegisterActivity.this);\n }\n }\n });\n }",
"private void createOffender(String fname, String lname,String address,String dob,String phone,String email, String stopName)\n {\n if (TextUtils.isEmpty(offenderId)) {\n offenderId = mFirebaseDatabase.push().getKey();\n }\n\n Offender offender = new Offender(fname, lname, address,dob,phone,email,stopName);\n\n mFirebaseDatabase.child(offenderId).setValue(offender);\n\n addOffenderListener();\n }",
"Persona createPersona(String personaId);",
"public void createComputer() {\n\t\tOptional<String> name = scanUtil.askString(\"name\", false);\n\t\tif (!name.isPresent())\n\t\t\treturn;\n\n\t\tOptional<Date> introduced = scanUtil.askDate(\"introduced\", true);\n\n\t\tOptional<Date> discontinued = scanUtil.askDate(\"discontinued\", true);\n\n\t\tOptional<Long> companyId = scanUtil.askLong(\"company_id\", false);\n\t\tif (!companyId.isPresent())\n\t\t\treturn;\n\n\t\tCompany company;\n\t\ttry {\n\t\t\tcompany = companyService.find(new Company(companyId.get()));\n\t\t} catch (NoResultRowException e) {\n\t\t\tcompany = null;\n\t\t} catch (DAOException e) {\n\t\t\tlogger.warn(e.getMessage());\n\t\t\tprintUtil.printn(\"Computer not created, database error\");\n\t\t\treturn;\n\t\t}\n\t\tComputer computer;\n\t\ttry {\n\t\t\tcomputer = computerService\n\t\t\t\t\t.create(new Computer(name.get(), introduced.orElse(null), discontinued.orElse(null), company));\n\t\t\tprintUtil.printn(\"Computer sucefully created ! (id: \" + computer.getId() + \")\");\n\t\t} catch (DAOException e) {\n\t\t\tlogger.warn(e.getMessage());\n\t\t\tprintUtil.printn(\"Computer not created, database error\");\n\t\t}\n\t}",
"private void createCard() {\n String[] content = askForCardContent(purposeOfAsking.NEWCARD, null);\n try {\n register.createCard(content);\n System.out.println(\"Kortti lisätty onnistuneesti.\");\n } catch (Exception ex) {\n System.out.println(\"Kortin sisältö epäkelpo. Korttia ei lisätty.\");\n }\n }",
"public void createVolunteer(String name, String address, String phone) throws Exception {\n\t\tVolunteer volunteer = new Volunteer(name, address, phone, \"Voluntario que no cobra\");\n\t\trepository.addMember(volunteer);\n\t}",
"public Requerido createRequerido(String nome);",
"Responsibles createResponsibles();",
"public static void createContact(final String name) {\n String contactEndPoint = \"https://na132.salesforce.com/services/data/v39.0/sobjects/Contact/\";\n Response response = given()\n .contentType(ContentType.JSON)\n .auth().oauth2(CommonApi.getToken())\n .body(\"{ \\\"LastName\\\": \\\"\" + name + \"\\\" }\")\n .when().post(contactEndPoint);\n }",
"SerialResponse createRecipient(PinRecipientPost pinRecipientPost);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column route.route_id | public String getRouteId() {
return routeId;
} | [
"public Integer getRouteID()\n\t{\n\t\treturn routeID;\n\t}",
"public Long getRouteid() {\n return routeid;\n }",
"public int getRouteId() {\n return routeId;\n }",
"String getRouteID();",
"public String getRouteId() {\n Object ref = routeId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n routeId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"RouteBean findRouteId(String routeID);",
"public Integer getRoutingId() {\n return routingId;\n }",
"public Integer getStockLocationRouteId() {\n return stockLocationRouteId;\n }",
"int getDestinationId();",
"public void setRouteId(int routeId) {\n this.routeId = routeId;\n }",
"long getDestinationId();",
"public String getRouteTableId() {\n return this.routeTableId;\n }",
"public void setRouteid(String routeid) {\r\n this.routeid = routeid;\r\n }",
"public com.upslogisticstech.www.UPSLT.TransportationSuite.TransportationWebService.RoutingRouteIdentity getRouteIdentity() {\n return routeIdentity;\n }",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"public java.lang.String getRouteNumber() {\r\n return routeNumber;\r\n }",
"public int get_link_route_addr() {\n return (int)getUIntBEElement(offsetBits_link_route_addr(), 16);\n }",
"public long getRouteStepKey() {\n\t\treturn routeStepKey;\n\t}",
"protected int GetID() {\n\t\treturn this.JunctionID;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for telefono. | public void setTelefono(String aTelefono) {
telefono = aTelefono;
} | [
"public void setTelefono(String telefono) {\r\n this.telefono = telefono;\r\n }",
"public void setTelefono(String telefono) {\n this.telefono = telefono;\n }",
"@Override\n\tpublic void setTelefono(java.lang.String telefono) {\n\t\t_candidato.setTelefono(telefono);\n\t}",
"public void setTelefono(String telefono) {\r\n\t\tif(telefono.length() == 9){\r\n\t\tthis.telefono = telefono;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Error telefono\");\r\n\t\t}\r\n\t}",
"public void limpiarTelefono() {\r\n this.setNumeroTelefono(\"\");\r\n this.setId_TipoTelefono(0);\r\n }",
"public void setTelefonoa(String telefonoa);",
"public String getTelefono() {\r\n\t\treturn telefono;\r\n\t}",
"public String getTelefono() {\r\n return telefono;\r\n }",
"public abstract void setTelefono_it(java.lang.String newTelefono_it);",
"public String getTelefono ( ) {\n return telefono;\n }",
"@Column(name = \"telefono\", nullable = true, length = 15)\n\tpublic String getTelefono() {\n\t\treturn telefono;\n\t}",
"public void setTelefonoTI(String telefonoTI) {\n this.telefonoTI = telefonoTI;\n }",
"@Override\n\tpublic java.lang.String getTelefono() {\n\t\treturn _candidato.getTelefono();\n\t}",
"public void setId_telefono(Integer id_telefono) {\r\n\t\tthis.id_telefono = id_telefono;\r\n\t}",
"public void setOtro_telef(String otro_telef) {\n this.otro_telef = otro_telef;\n }",
"public void setTelephone(String telephone){\n this.telephone = telephone;\n }",
"public Integer getId_telefono() {\r\n\t\treturn id_telefono;\r\n\t}",
"public String getTelefonoContacto() {\n return telefonoContacto;\n }",
"public void setTelephone(String telephone) {\n this.telephone = telephone;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a dump of this history and writes it to the given buffer. | void dump(Appendable buffer) throws IOException; | [
"protected void saveHistory() {\n BufferedOutputStream str;\n \n try {\n str = new BufferedOutputStream(\n new FileOutputStream(getHistoryFilename()));\n m_History.store(str, \"SQL-Viewer-History\");\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void saveHistory() {\n history.save();\n }",
"public void dump(StringBuffer buffer, int format);",
"protected void appendHistory() {\n\t\tString filePath = BigBrowser.getHistoryPath();\n\t\tFile f = new File(filePath);\n\t\tif(!f.exists())\n\t\t{\n\t\t\ttry {\n\t\t\t\tf.createNewFile();\n\t\t\t\tFileWriter fW = null;\n\t\t\t BufferedWriter writer = null;\n\t\t\t try {\n\t\t\t fW = new FileWriter(filePath,true);\n\t\t\t writer = new BufferedWriter(fW);\n\t\t\t writer.append(\"<html>\");\n\t\t\t writer.append(\"<head><title>Browsing History</title></head>\");\n\t\t\t writer.append(\"<h3>Browsing History</h3>\");\t\t\t\t\t \n\t\t\t writer.append(\"<body bgcolor=grey>\");\n\t\t\t writer.newLine();\n\t\t\t writer.close();\n\t\t\t } catch (Exception e) {}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFileWriter fW = null;\n\t\t BufferedWriter writer = null;\n\t\t try {\n\t\t fW = new FileWriter(filePath,true);\n\t\t writer = new BufferedWriter(fW);\n\t\t writer.append(\"<br><a href=\\\"\");\n\t\t writer.append(_addressBar.getText());\n\t\t writer.append(\"\\\"> \");\n\t\t writer.append(_addressBar.getText());\n\t\t writer.append(\" </a>\");\n\t\t writer.newLine();\n\t\t writer.close();\n\t\t } catch (Exception e) {}\n\t\t}\n\t}",
"public void saveHistory()\n {\n //save historyList to history.txt\n int i = 0;\n String pathname = \"\";\n String line = \"\";\n DataNode dn = null;\n\n try {\n pathname = Environment.getExternalStorageDirectory() + \"/history.txt\";\n\n File myFile = new File(pathname);\n myFile.createNewFile();\n\n FileOutputStream outStream = new FileOutputStream(myFile);\n OutputStreamWriter outWriter = new OutputStreamWriter(outStream);\n\n //convert each node in historyList to a string\n for (i = 0; i < historyList.getLength(); i++) {\n dn = historyList.get(i);\n line = dn.data + \":\";\n line = line + dn.subData + \":\";\n line = line + dn.location + \":\";\n line = line + dn.duration + \":\";\n line = line + dn.artist + \":\";\n line = line + dn.count + \"\\n\";\n\n //write line to file\n outWriter.append(line);\n }\n\n outWriter.close();\n outStream.close();\n }catch(Exception e) {\n String douglas = e.getMessage();\n }\n\n return;\n }",
"public void writeHistory()\n\t{\n\t\thistory += \"Round \" + fxRound \n\t\t\t\t+ \"\\n\" + shares.shareIndicator(mainTypes) \n\t\t\t\t+ \"----------------------\\n\";\n\t}",
"private void saveHistory(LinkedHashMap<Integer, String> history) {\n ArraySet<String> historyToSave = new ArraySet<>();\n if (history.size() == 0)\n historyToSave.add(\"-1\");\n else {\n for (int id : history.keySet()) {\n historyToSave.add(Integer.toString(id) + \"@\" + history.get(id));\n }\n }\n\n SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n settings.edit().putStringSet(\"savedHistory\", historyToSave).apply();\n }",
"public void write(StringBuffer buffer) { referent.write(buffer); }",
"private String storeHistoryCommand() {\r\n String res = \"\";\r\n res = res + \"<history>\\n\";\r\n \r\n // loop through Input.storage\r\n for (String s: Input.storage) {\r\n res = res + \"<record>\" + s + \"</record>\\n\";\r\n }\r\n res = res + \"</history>\\n\";\r\n return res;\r\n }",
"public void setHistory(History history) {\n this.history = history;\n }",
"final public void dump(StringBuffer buf) {\r\n\r\n\t\tForwardingInfo info;\r\n\r\n\t\tlock_.lock();\r\n\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < log_.size(); i++) {\r\n\t\t\t\tinfo = log_.get(i);\r\n\t\t\t\tString format = String.format(\"\\t%s -> %s [%s] %s at %s.%s \"\r\n\t\t\t\t\t\t+ \"[custody min %s pct %s max %s]\\n\", ForwardingInfo\r\n\t\t\t\t\t\t.state_to_str(info.state()), info.link_name(), info\r\n\t\t\t\t\t\t.remote_eid(), ForwardingInfo.action_to_str(info\r\n\t\t\t\t\t\t.action()), info.timestamp().getSeconds(), info\r\n\t\t\t\t\t\t.timestamp().getSeconds(), info.custody_spec().min(),\r\n\t\t\t\t\t\tinfo.custody_spec().lifetime_pct(), info.custody_spec()\r\n\t\t\t\t\t\t\t\t.max());\r\n\r\n\t\t\t\tbuf.append(format);\r\n\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tlock_.unlock();\r\n\t\t}\r\n\r\n\t}",
"void historySave(RunCmdRequest request, CmdOutput cmdOutput);",
"public String toString () {\r\n\t\treturn history;\r\n\t}",
"public void saveHistory(OperatorSelectionHistory history,String filename){\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(filename));){\n os.writeObject(history);\n os.close();\n } catch (IOException ex) {\n Logger.getLogger(IOSelectionHistory.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void addToHistory() {\n this.history.add(this.model.makeCopy());\n this.future = new Stack<>();\n }",
"public abstract void dump(StringBuffer buf, int depth);",
"void bufferSaved(Buffer buffer);",
"public StringBufferWriter(StringBuffer buffer) {\n this.buffer = buffer;\n }",
"public DdlBuffer applyHistory() {\n return applyHistory;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Negate a term, avoiding double negation. If formula is (not x) it returns x, otherwise it returns (not formula). | public Term negate(final Term formula) {
if (isApplication("not", formula)) {
return ((ApplicationTerm) formula).getParameters()[0];
}
return formula.getTheory().term("not", formula);
} | [
"private JCExpression NOT(JCExpression expr) { return m().Unary(JCTree.NOT, expr); }",
"public Expression negate() {\n switch (operation) {\n case BOOLEAN:\n return SystemFunction.makeSystemFunction(\"not\", getArguments());\n case NOT:\n return SystemFunction.makeSystemFunction(\"boolean\", getArguments());\n case TRUE:\n return new Literal(BooleanValue.FALSE);\n case FALSE:\n default:\n return new Literal(BooleanValue.TRUE);\n }\n }",
"public static UnaryExpression negate(Expression expression) {\n return makeUnary(ExpressionType.Negate, expression, null);\n }",
"private void negate()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.negate();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public Object visit(UnaryNotExpr node) {\n node.getExpr().accept(this);\n return null;\n }",
"boolean getNegate();",
"public static UnaryExpression not(Expression expression) {\n return makeUnary(ExpressionType.Not, expression, expression.getType());\n }",
"public final Formula visit(NotFormula not) {\n\t\tFormula ret = lookup(not);\n\t\tif (ret != null)\n\t\t\treturn ret;\n\t\tnegated = !negated; // flip the negation flag\n\t\tfinal Formula retChild = not.formula().accept(this);\n\t\tnegated = !negated;\n\t\treturn retChild == not.formula() ? cache(not, not) : source(cache(not, retChild.not()), not);\n\t}",
"public Relation negated() {\n\t\treturn fromValue(val ^= True.val);\n \t}",
"@Override\n public Literal not() {\n if (negation == null) {\n negation = new NotBoolVar(this);\n }\n return negation;\n }",
"public Node negaposi()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.PLUS)\r\n\t\t{\r\n\t\t\tNode fact = power();\r\n\t\t\tif(fact!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Positive(fact);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\tif(lexer.getToken()==Lexer.Token.MINUS)\r\n\t\t{\r\n\t\t\tNode fact = power();\r\n\t\t\tif(fact!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Negative(fact);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn power();\r\n\t}",
"public T not(ExpNode expr) {\n predicateParser.not();\n predicateParser.addToken(expr);\n return getThis();\n }",
"public Object visitBitwiseNegationExpression(GNode n) {\n Object a, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n result = ~ (Long) a;\n }\n else {\n return \"~ \" + parens(a);\n }\n \n return result;\n }",
"public void not() {\n\t\tinvertOperator = true;\n\t}",
"BitvectorFormula negate(BitvectorFormula number);",
"public Object visit(UnaryNotExpr node)\n {\n node.getExpr().accept(this);\n this.support.genXor(\"$v0\", \"$v0\", 1);\n this.support.setLastInstrComment(\"Apply not operator to contents of $v0\");\n return null;\n }",
"@Override\n public Ilogical not(INode node) {\n try {\n Ilogical ilogical = (Ilogical) node.eval();\n var tmp = new Not(ilogical);\n OpState.switchState(tmp, ilogical);\n return (Ilogical) tmp.eval();\n } catch (ClassCastException e) {\n return null;\n }\n }",
"DSL_Expression_Negate createDSL_Expression_Negate();",
"BooleanFormula not(BooleanFormula b) {\n\t\treturn bmgr.not(b);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set band: upper side band (usb), lower side band (lsb), side band with line in range (optimum). | public void setBand(String value) {
_avTable.set(ATTR_BAND, value);
} | [
"public void setBand(Band band) {\n this.band = band;\n }",
"public void setBand(boolean mod) {\n\n }",
"public void setBandDims() {\n }",
"public void setBand(int $param_int_1, int $param_int_2, int $param_int_3, double $param_double_4) {\n java.lang.Object $__result = null;\n try {\n if ($__directInvocation)\n super.setBand( $param_int_1, $param_int_2, $param_int_3, $param_double_4);\n else {\n java.util.ArrayList<Object> $__params = new java.util.ArrayList<Object>();\n String $__method = \"public void boofcv.struct.image.InterleavedF64.setBand(int,int,int,double)\";\n $__params.add($param_int_1);\n $__params.add($param_int_2);\n $__params.add($param_int_3);\n $__params.add($param_double_4);\n $__result = $__client.onRPC($__method, $__params);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public synchronized void setBandCount(int count)\n { bandCount = count;\n }",
"public void setBandWidth(double b) {\n\t\tbw = b / _mySampleRate;\n\t}",
"public org.occ.matsu.GeoPictureWithMetadata.Builder setBands(java.util.List<java.lang.CharSequence> value) {\n validate(fields()[1], value);\n this.bands = value;\n fieldSetFlags()[1] = true;\n return this; \n }",
"void setRange(double range);",
"public void updateBands() {\n if (this.isFull()) {\n calcInboundBand();\n calcOutboudBand();\n calcVisible();\n }\n }",
"public abstract void setBand(TagContent band) throws TagFormatException;",
"public RealBandit(double min, double max) {\r\n this.domain = new RealRange(min, max);\r\n }",
"public void setBw(Float bw) {\r\n this.bw = bw;\r\n }",
"void setAudioPortRange(int minPort, int maxPort);",
"public Band getBand() {\n return band;\n }",
"public void setBands(java.util.List<java.lang.CharSequence> value) {\n this.bands = value;\n }",
"private void equalizerBandUpdate(final int band, final int level) {\n\t\tFlog.d(TAG, \"AffectActivity---equalizerBandUpdate()---start\");\n\t\tControlPanelEffect.setParameterInt(mContext, mCallingPackageName,\n\t\t\t\tmAudioSession, ControlPanelEffect.Key.eq_band_level, level,\n\t\t\t\tband);\n\t\tFlog.d(TAG, \"AffectActivity---equalizerBandUpdate()---end\");\n\t}",
"public void setUpperRange(double upper);",
"public void setLowerRange(double lower);",
"@VTID(10)\r\n void setRange(\r\n excel.Range rhs);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implementing the Daemon interface is not required for Windows but is for Linux | @Override
public void init(DaemonContext ctx) throws Exception {
System.out.println("Daemon init");
} | [
"public interface Daemon extends Runnable {\n\t/**\n\t * @return if the logs are activated or not.\n\t */\n\tdefault boolean verbose() {\n\t\treturn false;\n\t}\n}",
"public interface DaemonContext extends Serializable {\n\n /**\n * The unique identifier for this daemon.\n */\n String getUid();\n\n /**\n * The JAVA_HOME in use, as the canonical file.\n */\n File getJavaHome();\n\n /**\n * The directory that should be used for daemon storage (not including the gradle version number).\n */\n File getDaemonRegistryDir();\n\n /**\n * The process id of the daemon.\n */\n Long getPid();\n\n /**\n * The daemon's idle timeout in milliseconds.\n */\n Integer getIdleTimeout();\n\n /**\n * Returns the JVM options that the daemon was started with.\n *\n * @return the JVM options that the daemon was started with\n */\n List<String> getDaemonOpts();\n\n /**\n * Returns whether the instrumentation agent should be applied to the daemon\n *\n * @return {@code true} if the agent should be applied\n */\n boolean shouldApplyInstrumentationAgent();\n\n DaemonParameters.Priority getPriority();\n}",
"protected Daemon() {\n this.thread = new Thread(this);\n }",
"public static void main(String[] args) throws Exception {\n for (int i = 0; i < args.length; i++) {\n if(args[i].startsWith(\"--daemon\")) {\n\n\t // load the daemonization code\n ClassLoader cl = new URLClassLoader(new URL[]{\n extractFromJar(\"/jna.jar\",\"jna\",\"jar\").toURI().toURL(),\n extractFromJar(\"/akuma.jar\",\"akuma\",\"jar\").toURI().toURL(),\n });\n Class $daemon = cl.loadClass(\"com.sun.akuma.Daemon\");\n Object daemon = $daemon.newInstance();\n\n // tell the user that we'll be starting as a daemon.\n Method isDaemonized = $daemon.getMethod(\"isDaemonized\", new Class[]{});\n if(!((Boolean)isDaemonized.invoke(daemon,new Object[0])).booleanValue()) {\n System.out.println(\"Forking into background to run as a daemon.\");\n if(!hasLogOption(args))\n System.out.println(\"Use --logfile to redirect output to a file\");\n }\n\n Method m = $daemon.getMethod(\"all\", new Class[]{boolean.class});\n m.invoke(daemon,new Object[]{Boolean.TRUE});\n }\n }\n\n\n // if the output should be redirect to a file, do it now\n for (int i = 0; i < args.length; i++) {\n if(args[i].startsWith(\"--logfile=\")) {\n LogFileOutputStream los = new LogFileOutputStream(new File(args[i].substring(\"--logfile=\".length())));\n PrintStream ps = new PrintStream(los);\n System.setOut(ps);\n System.setErr(ps);\n // don't let winstone see this\n List _args = new ArrayList(asList(args));\n _args.remove(i);\n args = (String[]) _args.toArray(new String[_args.size()]);\n break;\n }\n }\n\n // this is so that anything using AWT/Swing, like JFreeChart, can work nicely even if we are launched as a daemon\n System.setProperty(\"java.awt.headless\",\"true\");\n\n // tell Hudson that Winstone doesn't support chunked encoding.\n\t\t// TODO how to handle properties like these, support a callback\n if(System.getProperty(\"hudson.diyChunking\")==null)\n System.setProperty(\"hudson.diyChunking\",\"true\");\n\n File me = whoAmI();\n System.out.println(\"Running from: \" + me);\n System.setProperty(\"executable-war\",me.getAbsolutePath()); // remember the location so that we can access it from within webapp\n\n // put winstone jar in a file system so that we can load jars from there\n File tmpJar = extractFromJar(\"/winstone.jar\",\"winstone\",\"jar\");\n\n // clean up any previously extracted copy, since\n // winstone doesn't do so and that causes problems when newer version of the same web app is deployed.\n File tempFile = File.createTempFile(\"dummy\", \"dummy\");\n deleteContents(new File(tempFile.getParent(), \"winstone/\" + me.getName()));\n tempFile.delete();\n\n // locate the Winstone launcher\n final ClassLoader cl = new URLClassLoader(new URL[]{tmpJar.toURI().toURL()});\n final Class<?> launcher = cl.loadClass(\"winstone.Launcher\");\n final Method mainMethod = launcher.getMethod(\"main\", new Class[]{String[].class});\n\n // figure out the arguments\n final List<String> arguments = new ArrayList<String>(asList(args));\n arguments.add(0,\"--warfile=\"+ me.getAbsolutePath());\n\n if(!hasWebRoot(arguments)) {\n // defaults to ~/.hudson/war since many users reported that cron job attempts to clean up\n // the contents in the temporary directory.\n arguments.add(\"--webroot=\"+new File(getHomeDir(),\"war\"));\n }\n\n // override the usage screen\n\t\t// TODO handle this, does not work with a standard winstone build, look at Kohsuke's build\n\t\t// TODO use name from pom as header of usage\n\t\t// TODO have options for the Maven plugin that sets \n// Field usage = launcher.getField(\"USAGE\");\n/*\n usage.set(null,\"Hudson Continuous Integration Engine \"+getVersion()+\"\\n\" +\n \"Usage: java -jar hudson.war [--option=value] [--option=value]\\n\" +\n \"\\n\" +\n \"Options:\\n\" +\n \" --daemon = fork into background and run as daemon (Unix only)\\n\" +\n \" --config = load configuration properties from here. Default is ./winstone.properties\\n\" +\n \" --prefix = add this prefix to all URLs (eg http://localhost:8080/prefix/resource). Default is none\\n\" +\n \" --commonLibFolder = folder for additional jar files. Default is ./lib\\n\" +\n \" \\n\" +\n \" --logfile = redirect log messages to this file\\n\" +\n \" --logThrowingLineNo = show the line no that logged the message (slow). Default is false\\n\" +\n \" --logThrowingThread = show the thread that logged the message. Default is false\\n\" +\n \" --debug = set the level of debug msgs (1-9). Default is 5 (INFO level)\\n\" +\n \"\\n\" +\n \" --httpPort = set the http listening port. -1 to disable, Default is 8080\\n\" +\n \" --httpListenAddress = set the http listening address. Default is all interfaces\\n\" +\n \" --httpDoHostnameLookups = enable host name lookups on incoming http connections (true/false). Default is false\\n\" +\n \" --httpsPort = set the https listening port. -1 to disable, Default is disabled\\n\" +\n \" --httpsListenAddress = set the https listening address. Default is all interfaces\\n\" +\n \" --httpsDoHostnameLookups = enable host name lookups on incoming https connections (true/false). Default is false\\n\" +\n \" --httpsKeyStore = the location of the SSL KeyStore file. Default is ./winstone.ks\\n\" +\n \" --httpsKeyStorePassword = the password for the SSL KeyStore file. Default is null\\n\" +\n \" --httpsKeyManagerType = the SSL KeyManagerFactory type (eg SunX509, IbmX509). Default is SunX509\\n\" +\n \" --ajp13Port = set the ajp13 listening port. -1 to disable, Default is 8009\\n\" +\n \" --ajp13ListenAddress = set the ajp13 listening address. Default is all interfaces\\n\" +\n \" --controlPort = set the shutdown/control port. -1 to disable, Default disabled\\n\" +\n \" \\n\" +\n \" --handlerCountStartup = set the no of worker threads to spawn at startup. Default is 5\\n\" +\n \" --handlerCountMax = set the max no of worker threads to allow. Default is 300\\n\" +\n \" --handlerCountMaxIdle = set the max no of idle worker threads to allow. Default is 50\\n\" +\n \" \\n\" +\n \" --simulateModUniqueId = simulate the apache mod_unique_id function. Default is false\\n\" +\n \" --useSavedSessions = enables session persistence (true/false). Default is false\\n\" +\n \" --usage / --help = show this message\\n\" +\n \" --version = show the version and quit\\n\" +\n \" \\n\" +\n \"Security options:\\n\" +\n \" --realmClassName = Set the realm class to use for user authentication. Defaults to ArgumentsRealm class\\n\" +\n \" \\n\" +\n \" --argumentsRealm.passwd.<user> = Password for user <user>. Only valid for the ArgumentsRealm realm class\\n\" +\n \" --argumentsRealm.roles.<user> = Roles for user <user> (comma separated). Only valid for the ArgumentsRealm realm class\\n\" +\n \" \\n\" +\n \" --fileRealm.configFile = File containing users/passwds/roles. Only valid for the FileRealm realm class\\n\" +\n \" \\n\" +\n \"Access logging:\\n\" +\n \" --accessLoggerClassName = Set the access logger class to use for user authentication. Defaults to disabled\\n\" +\n \" --simpleAccessLogger.format = The log format to use. Supports combined/common/resin/custom (SimpleAccessLogger only)\\n\" +\n \" --simpleAccessLogger.file = The location pattern for the log file(SimpleAccessLogger only)\");\n*/\n\n if(arguments.contains(\"--version\")) {\n System.out.println(getVersion());\n return;\n }\n\n // run\n mainMethod.invoke(null,new Object[]{arguments.toArray(new String[0])});\n }",
"boolean getDaemon( boolean flag );",
"protected Daemon getDaemon( )\n {\n return _daemon;\n }",
"boolean isDaemon();",
"protected abstract String getDaemonName();",
"void startDaemon () {\n if (daemon == null) {\n daemon = new Thread((Runnable) this); \n daemon.start();\n }\n }",
"private DaemonThreadFactory() {\n\n }",
"void setDaemon(boolean isDaemon);",
"public static void main(String[] args) {\n\t\tif (args.length > 0) {\n\t\t\ttry {\n\t\t\t\t//RMI registry creation\n\t\t\t\tLocateRegistry.createRegistry(SettingsManager.getPortDaemon());\n\t\t\t\tSystem.out.println(messageHeader+\"RMI registry created\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(messageHeader+\"RMI registry exists already\");\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t//Bind the daemon to the RMI register\n\t\t\t\tDaemonImpl demon = new DaemonImpl(args[0]);\n\t\t\t\tNaming.rebind(\"//\"+demon.getServerAddress()+\":\"+SettingsManager.getPortDaemon()+\"/DaemonImpl\",demon);\n\t\t\t\tSystem.out.println(messageHeader+\"Daemon bound in registry\");\n\t\t\t\t//Notify the JobManager of its availability\n\t\t\t\tJobManager jobManager = (JobManager) Naming.lookup(\"//\"+SettingsManager.getMasterNodeAddress()+\":\"+SettingsManager.getPortJobMaster()+\"/JobManager\");\n\t\t\t\tjobManager.notifyDaemonAvailability(demon.getServerAddress());\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else printUsage();\n\t}",
"int getDaemonPort();",
"public interface ServerStartupDaemonOperations\n{\n\t/* constants */\n\t/* operations */\n\tint get_system_load();\n\tvoid start_server(java.lang.String command) throws org.jacorb.imr.ServerStartupFailed;\n}",
"public AddeManager() {\n \t\ttry {\n \t\t\tdeterminePlatform();\n \t\t} catch (RuntimeException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \n \t\tif (isUnixLike == true) {\n \t\t\taddeDirectory = System.getProperty(\"user.dir\") + \"/adde\";\n \t\t\taddeBin = addeDirectory + \"/bin\";\n \t\t\taddeData = addeDirectory + \"/data\";\n \t\t\taddeMcservl = addeBin + \"/mcservl\";\n \t\t} else {\n \t\t\taddeDirectory = System.getProperty(\"user.dir\") + \"\\\\adde\";\n \t\t\taddeBin = addeDirectory + \"\\\\bin\";\n \t\t\taddeData = addeDirectory + \"\\\\data\";\n \t\t\taddeMcservl = addeBin + \"\\\\mcservl\";\n \t\t}\n \t\t\n \t\tstartLocalServer();\n \t\n \t}",
"public int getDaemonPort() {\n return daemonPort_;\n }",
"private void startDaemon(Runnable runnable) {\n\t\tThread thread = new Thread(runnable);\n\t\tthread.setDaemon(true);\n\t\tthread.start();\n\t}",
"private void setupDymonSocket()\n{\n if (openDymonSocket()) return;\n\n if (!startDymon()) {\n System.err.println(\"DYMONREMOTE: Can't start DYMON service\");\n System.exit(1);\n }\n\n for (int i = 0; i < 1000; ++i) {\n if (openDymonSocket()) return;\n try {\n\t Thread.sleep(1000);\n }\n catch (InterruptedException _e) { }\n }\n\n System.err.println(\"DYMONREMOTE: Problem connecting to DYMON service\");\n System.exit(1);\n}",
"private void launchApacheDS()\n {\n try\n {\n // Getting the default VM installation\n IVMInstall vmInstall = JavaRuntime.getDefaultVMInstall();\n \n // Creating a new editable launch configuration\n ILaunchConfigurationType type = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(\n IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION );\n ILaunchConfigurationWorkingCopy workingCopy = type.newInstance( null, \"Starting \" + server.getName() );\n \n // Setting the JRE container path attribute\n workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, vmInstall\n .getInstallLocation().toString() );\n \n // Setting the main type attribute\n workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,\n \"org.apache.directory.studio.apacheds.Launcher\" );\n \n // Creating the classpath list\n List<String> classpath = new ArrayList<String>();\n IPath apacheDsLibrariesFolder = ApacheDsPluginUtils.getApacheDsLibrariesFolder();\n for ( String library : ApacheDsPluginUtils.apachedsLibraries )\n {\n IRuntimeClasspathEntry libraryClasspathEntry = JavaRuntime\n .newArchiveRuntimeClasspathEntry( apacheDsLibrariesFolder.append( library ) );\n libraryClasspathEntry.setClasspathProperty( IRuntimeClasspathEntry.USER_CLASSES );\n \n classpath.add( libraryClasspathEntry.getMemento() );\n }\n \n // Setting the classpath type attribute\n workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_CLASSPATH, classpath );\n \n // Setting the default classpath type attribute to false\n workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_DEFAULT_CLASSPATH, false );\n \n // The server folder path\n IPath serverFolderPath = ApacheDsPluginUtils.getApacheDsServersFolder().append( server.getId() );\n \n // Setting the program arguments attribute\n workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, \"\\\"\"\n + serverFolderPath.toOSString() + \"\\\"\" );\n \n // Creating the VM arguments string\n StringBuffer vmArguments = new StringBuffer();\n vmArguments.append( \"-Dlog4j.configuration=file:\\\"\"\n + serverFolderPath.append( \"conf\" ).append( \"log4j.properties\" ).toOSString() + \"\\\"\" );\n vmArguments.append( \" \" );\n vmArguments.append( \"-Dapacheds.var.dir=\\\"\" + serverFolderPath.toOSString() + \"\\\"\" );\n vmArguments.append( \" \" );\n vmArguments.append( \"-Dapacheds.log.dir=\\\"\" + serverFolderPath.append( \"log\" ).toOSString() + \"\\\"\" );\n vmArguments.append( \" \" );\n vmArguments.append( \"-Dapacheds.run.dir=\\\"\" + serverFolderPath.append( \"run\" ).toOSString() + \"\\\"\" );\n vmArguments.append( \" \" );\n vmArguments.append( \"-Dapacheds.instance=\\\"\" + server.getName() + \"\\\"\" );\n \n // Setting the VM arguments attribute\n workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmArguments.toString() );\n \n // Setting the launch configuration as private\n workingCopy.setAttribute( IDebugUIConstants.ATTR_PRIVATE, true );\n \n // Indicating that we don't want any console to show up\n workingCopy.setAttribute( DebugPlugin.ATTR_CAPTURE_OUTPUT, false );\n \n // Saving the launch configuration\n ILaunchConfiguration configuration = workingCopy.doSave();\n \n // Launching the launch configuration\n launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );\n }\n catch ( CoreException e )\n {\n ApacheDsPluginUtils.reportError( \"An error occurred when launching the server.\\n\\n\" + e.getMessage() );\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set new expire date. | public void setExpireDate(Date expireDate) {
this.expireDate = expireDate;
} | [
"public void doSetExpirationDate(Date val) {\n this.dtExpiration = val;\n }",
"public void setExpirationDate(Date val) {\n doSetExpirationDate(val);\n }",
"void setExpiredDate(Date expiredDate);",
"public void setExpiredDate(Date expiredDate);",
"public void setExpireDate(Date expireDate) {\n\t\tthis.expireDate = expireDate;\n\t}",
"@com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor\n public void setExpirationDate(java.util.Date expDate) {\n ((com.guidewire.pl.domain.persistence.core.effdate.EffDatedPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pl.domain.persistence.core.effdate.EffDatedPublicMethods\")).setExpirationDate(expDate);\n }",
"void setExpirationDate(java.lang.String expirationDate);",
"public void setExpirationDate(java.util.Date value) {\n __getInternalInterface().setFieldValue(EXPIRATIONDATE_PROP.get(), value);\n }",
"public void setExpire_date(java.util.Date expire_date) {\n this.expire_date = expire_date;\n }",
"public void setExpirationDate(java.util.Date value) {\n __getInternalInterface().setFieldValue(EXPIRATIONDATE_PROP.get(), value);\n }",
"public void setExpiryDate(SIPDateOrDeltaSeconds e) {\n expiryDate = e ;\n }",
"public void setExpirationDate(Date expirationDate) {\r\n this.expirationDate = expirationDate;\r\n }",
"public void setExpirationDate(Date expirationDate) {\n this.expirationDate = expirationDate;\n }",
"private void setExpiresDate(Date date, long offset)\n {\n date.setTime(System.currentTimeMillis() + offset);\n }",
"public void setExpiration(Date expiration) {\n this.expiration = expiration;\n }",
"public void setExpiryDate(Date expiryDate) {\n this.expiryDate = expiryDate;\n }",
"void setExpiresAt(long expiresAt);",
"public void setTRIAExpirationDate(java.util.Date value);",
"@Override\n\tpublic void setExpiration_Date(java.util.Date Expiration_Date) {\n\t\t_news_Blogs.setExpiration_Date(Expiration_Date);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if (null == reqMap || reqMap.isEmpty()) return CommonUtil.ReturnWarp(Constant.TRAN_PARAERCODE, Constant.ERRORTYPE); | @RequestMapping("/query.do")
public @ResponseBody Map<String, Object> query(@RequestParam Map reqMap) {
List<CpzProductLevelBean> cpzproductlevelBeans=null;
try {
cpzproductlevelBeans=cpzProductLevelService.get(reqMap);
} catch (Exception e) {
e.printStackTrace();
}
Map r=new HashMap();
r.put("returnData",cpzproductlevelBeans);
return CommonUtil.ReturnWarp(Constant.TRAN_SUCCESS, Constant.ERRORTYPE,"",r);
} | [
"private Spz requestParamsToSpz(Map<String, String[]> parameterMap) throws SPZException {\n if(!checkSpzParams(parameterMap)){\n return null;\n }\n Spz spz = new Spz();\n /*if(!parameterMap.containsKey(\"reqnumber\")){\n return null;\n }*/\n // spz.setShortname(parameterMap.get(\"shortname\")[0]);\n \n String requestDescription;\n String strDescription = parameterMap.get(\"requestdescription\")[0];\n if(strDescription.startsWith(\"<\"))\n {\n HTMLTransformer transformer = new HTMLTransformer();\n //try {\n transformer.convert(strDescription);\n requestDescription = transformer.getResult();\n }else{\n requestDescription = strDescription;\n }\n \n// } catch (SPZException ex) {\n// Logger.getLogger(SPZServlet.class.getName()).log(Level.SEVERE, \"Chyba v popisu/zadani SPZ\", ex);\n// requestDescription = strDescription;\n// request\n// }\n spz.setRequestdescription(requestDescription);\n spz.setContactperson(parameterMap.get(\"contactperson\")[0]);\n if(parameterMap.containsKey(\"shortname\")) spz.setShortName(parameterMap.get(\"shortname\")[0]);\n Date issueDate = null;\n if(parameterMap.containsKey(\"issuedate\")){\n String issueDateString = parameterMap.get(\"issuedate\")[0];\n issueDate = stringToDate(issueDateString);\n }else{\n Calendar cal = new GregorianCalendar();\n \n issueDate = cal.getTime();\n }\n /*if (issueDate == null) {\n return null;\n }*/\n spz.setIssuedate(issueDate);\n if(checkImplementationAcceptanceDate(parameterMap)){\n \n String implDateStr = parameterMap.get(\"implementationacceptancedate\")[0];\n Date implDate = stringToDate(implDateStr);\n spz.setImplementationacceptdate(implDate);\n }\n long ts = (new GregorianCalendar()).getTimeInMillis();\n spz.setTs(BigInteger.valueOf(ts));\n String strPriority = parameterMap.get(\"priority\")[0];\n String reqType=parameterMap.get(\"reqtype\")[0];\n spz.setRequesttype(reqType);\n short priority = Short.parseShort(strPriority);\n spz.setPriority(priority);\n String strCategory = parameterMap.get(\"category\")[0];\n short category = Short.parseShort(strCategory);\n spz.setCategory(category);\n spz.setRequesttype(parameterMap.get(\"reqtype\")[0]);\n return spz;\n }",
"public void service_REQ(){\n if ((eccState == index_IDLE) && (PERequest.value)) state_HasRequest();\n else if ((eccState == index_START) && (TokenIn.value)) state_IDLE();\n else if ((eccState == index_BagPassedEye) && (NoPERequest.value)) state_START();\n else if ((eccState == index_BagPassedEye) && (PERequest.value)) state_HasRequest();\n else if ((eccState == index_START) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_IDLE();\n else if ((eccState == index_IDLE) && (NoPERequest.value)) state_START();\n else if ((eccState == index_BAGPASSEDFIRST) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_HasRequest) && (NoPERequest.value)) state_BAGPASSEDFIRST();\n else if ((eccState == index_BAGPASSEDFIRST) && (!PEExit.value)) state_BAGPASSEDFIRST();\n }",
"private boolean checkReqType(Map<String, String[]> parameterMap) {\n return parameterMap.containsKey(\"reqtype\") && !parameterMap.get(\"reqtype\")[0].isEmpty();\n }",
"edu.usfca.cs.sift.Messages.RequestMsg getRequestMsg();",
"private boolean checkReqNumber(Map<String, String[]> parameterMap) {\n boolean result = parameterMap.containsKey(\"reqnumber\");\n if(!result)return false;\n String reqNumber = parameterMap.get(\"reqnumber\")[0];\n return !reqNumber.isEmpty();\n }",
"public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }",
"private boolean validate(Map<String,String> requestMap){\r\n\t\tboolean result = false;\r\n\t\tString zip = requestMap.get(PublicAPIConstant.ZIP);\r\n\t\tString soStatus = requestMap.get(PublicAPIConstant.SO_STATUS);\r\n\t\tList<String> soStatusList = new ArrayList<String>();\r\n\r\n\t\tif (null != soStatus) {\r\n\t\t\tStringTokenizer strTok = new StringTokenizer(\r\n\t\t\t\t\tsoStatus,\r\n\t\t\t\t\tPublicAPIConstant.SEPARATOR, false);\r\n\t\t\tint noOfStatuses = strTok.countTokens();\r\n\t\t\tfor (int i = 1; i <= noOfStatuses; i++) {\r\n\t\t\t\tsoStatusList.add(new String(strTok\r\n\t\t\t\t\t\t.nextToken()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tInteger pageSize = Integer.parseInt(requestMap.get(\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET));\r\n\t\t\r\n\t\tif(null!=zip&&zip.length() != 5){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.ZIP);\r\n\t\t\treturn result;\t\r\n\t\t}\r\n\t\tList<Integer> pageSizeSetValues = Arrays.asList(\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_10,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_20,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_50,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_100,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_200,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_500);\t\t\r\n\t\tif(!pageSizeSetValues.contains(pageSize)){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET);\r\n\t\t\treturn result;\t\r\n\t\t}\t\r\n\t\t\r\n\t\tList<String> soStatusValues = Arrays.asList(\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_POSTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_ACCEPTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_ACTIVE,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_CLOSED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_COMPLETED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_DRAFTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_PROBLEM,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_EXPIRED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_PENDINGCANCEL\r\n\t\t);\t\t\r\n\t\tif(!soStatusValues.containsAll(soStatusList)){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.SO_STATUS_SET);\r\n\t\t\treturn result;\t\r\n\t\t}\t\r\n\t\tresult = true;\r\n\t\treturn result;\r\n\t}",
"public HashMap<String, Object> callPWS(String mapId, HashMap<String, Object> mappingIdsMap) throws BaseException {\n\t\tString sourceKey, destinationkey;\r\n\t\tHashMap<String, Object> destinationMap = new HashMap<String, Object>(mappingIdsMap);\r\n\t\tDGTL_GTW_MAPPING_DETAILSVO DGTL_GTW_MAPPING_DETAILSVO = new DGTL_GTW_MAPPING_DETAILSVO();\r\n\t\tDGTL_GTW_MAPPINGVO DGTL_GTW_MAPPINGVO = new DGTL_GTW_MAPPINGVO();\r\n\t\tHashMap<String, Object> result = new HashMap<String,Object>();\r\n\t\tDGTL_GTW_MAPPINGVO.setMAPPING_ID(mapId);\r\n\t\tDGTL_GTW_MAPPINGVO = (DGTL_GTW_MAPPINGVO) genericDAO.selectByPK(DGTL_GTW_MAPPINGVO);\r\n\r\n\t\t// Master table needed information\r\n\t\tString wsName = DGTL_GTW_MAPPINGVO.getWS_NAME();\r\n\t\tString operName = DGTL_GTW_MAPPINGVO.getOPER_NAME();\r\n\r\n\t\tList<DGTL_GTW_MAPPING_DETAILSVO> mappingDetailsList = imcoPwsMappingDAO.returnPWSMappingParams(mapId);\r\n\r\n\t\tfor (int i = 0; i < mappingDetailsList.size(); i++) {\r\n\t\t\tDGTL_GTW_MAPPING_DETAILSVO = mappingDetailsList.get(i);\r\n\t\t\tsourceKey = DGTL_GTW_MAPPING_DETAILSVO.getSOURCE_KEY();\r\n\t\t\tdestinationkey = DGTL_GTW_MAPPING_DETAILSVO.getDESTINATION_KEY();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// if destination key is different than null , it can be constant value or a mapped object\r\n\t\t\t// the checking is done in returnOutputMap method\r\n\t\t\tif(destinationkey != null) {\r\n\t\t\t\tdestinationMap = returnOutputMap(sourceKey, destinationkey, mappingIdsMap,destinationMap);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString serviceUrl = null;\r\n\r\n\t\tString appName = \"IMCO\"; // this needs to be modifed to be dynamic from request\r\n\t\ttry {\r\n\t\t\t serviceUrl = PathPropertyUtil.returnPathPropertyFromFile(\"PathWebServicesList.properties\",\r\n\t\t\t\t\t\"app.\"+appName+\".serviceURL\");\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//wsName : needs to be linked to a hashmap containing bo reference\r\n\t\t//operName : needs to be linked to a hashmap cotaining bo method\r\n\t\t// call the ws through rmi\r\n\t\tButtonCustomizationRmiCallerBO buttonCustomizationRmiCallerBO;\r\n\t\ttry {\r\n\t\t\tbuttonCustomizationRmiCallerBO = (ButtonCustomizationRmiCallerBO) RmiServiceCaller\r\n\t\t\t\t\t.returnRmiInterface(serviceUrl.concat(\"buttonCustomizationRmiCallerBOService\"), ButtonCustomizationRmiCallerBO.class);\r\n//\t\t\tresult = buttonCustomizationRmiCallerBO.digitalExecuteBoMethod(wsName, operName, destinationMap);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e, e.getMessage());\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private boolean checkSpzParams(Map<String, String[]> parameterMap) {\n /*if(!checkReqNumber(parameterMap)){\n return false;\n }*/\n\n if(!checkReqType(parameterMap)){\n return false;\n }\n if(!checkShortName(parameterMap)){\n return false;\n }\n /* if(!checkIssueDate(parameterMap)){\n return false;\n }\n */\n if(!checkContactPerson(parameterMap)){\n return false;\n }\n \n /*if(!checkShortName(parameterMap)){\n return false;\n }*/\n \n if(!checkRequestDescription(parameterMap)){\n return false;\n }\n /*\n if(!checkImplementationAcceptanceDate(parameterMap)){\n return false;\n } \n */\n return true;\n }",
"String request(String flowName, Map paramsMap){\n throw new NoDescriptionException();\n }",
"protected GetMapDataRequest() {}",
"@Override\n\tpublic java.lang.String getRequestCode() {\n\t\treturn _tempNoTiceShipMessage.getRequestCode();\n\t}",
"public void sendfedexRequest(AascShipmentOrderInfo aascShipmentOrderInfo, \n AascShipMethodInfo aascShipMethodInfo, \n String chkReturnlabelstr, \n AascProfileOptionsBean aascProfileOptionsInfo, \n AascIntlInfo aascIntlInfo, \n String cloudLabelPath) throws Exception {\n logger.info(\"Entered sendfedexRequest method\");\n int pkgCount = aascShipmentOrderInfo.getShipmentPackageInfo().size();\n HashMap tempMap = null;\n\n String appendStr = \"\";\n\n if (chkReturnlabelstr.equals(\"NONRETURN\")) {\n fedExWSChkReturnlabelstr = chkReturnlabelstr;\n shipmentRequestHdr = \"\";\n appendStr = \"\";\n \n // \"<PersonName>\"+ Contact Name +\"</PersonName>\"+\n shipmentRequestHdr = \n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\" + \n \"<FDXShipRequest xmlns:api=\\\"http://www.fedex.com/fsmapi\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:noNamespaceSchemaLocation=\\\"FDXShipRequest.xsd\\\">\" + \n \"<RequestHeader>\" + \"<AccountNumber>\" + \n senderAccountNumber + \"</AccountNumber>\" + \n \"<MeterNumber>\" + fedExTestMeterNumber + \"</MeterNumber>\" + \n \"<CarrierCode>\" + carrierCode + \"</CarrierCode>\" + \n \"</RequestHeader>\" + \"<ShipDate>\" + shipDate + \n \"</ShipDate>\" + \"<ShipTime>\" + time + \"</ShipTime>\" + \n \"<DropoffType>\" + dropoffType + \"</DropoffType>\" + \n \"<Service>\" + service + \"</Service>\" + \"<Packaging>\" + \n packaging + \"</Packaging>\" + \"<WeightUnits>\" + pkgWtUom + \n \"</WeightUnits>\" + \"<Weight>\" + pkgWtVal + \"</Weight>\" + \n \"<CurrencyCode>\" + currencyCode + \"</CurrencyCode>\" + \n \"<ListRate>true</ListRate>\" + \"<Origin>\" + \"<Contact>\" + \n \"<CompanyName>\" + shipFromCompanyName + \"</CompanyName>\" + \n \"<PhoneNumber>\" + shipFromPhoneNumber1 + \"</PhoneNumber>\" + \n \"</Contact>\" + \"<Address>\" + \"<Line1>\" + \n shipFromAddressLine1 + \"</Line1>\" + \"<Line2>\" + \n shipFromAddressLine2 + \"</Line2>\" + \"<City>\" + \n shipFromAddressCity + \"</City>\" + \"<StateOrProvinceCode>\" + \n shipFromAddressState + \"</StateOrProvinceCode>\" + \n \"<PostalCode>\" + shipFromAddressPostalCode + \n \"</PostalCode>\" + \"<CountryCode>\" + shipFromCountry + \n \"</CountryCode>\" + \"</Address>\" + \"</Origin>\" + \n \"<Destination>\" + \"<Contact>\" + \n tagshipToContactPersonName + \"<CompanyName>\" + \n shipToCompanyName + \"</CompanyName>\" + \"<PhoneNumber>\" + \n shipToContactPhoneNumber + \"</PhoneNumber>\" + \n \"</Contact>\" + \"<Address>\" + \"<Line1>\" + \n shipToAddressLine1 + \"</Line1>\" + \"<Line2>\" + \n shipToAddressLine2 + \"</Line2>\" + \"<City>\" + \n shipToAddressCity + \"</City>\" + \"<StateOrProvinceCode>\" + \n shipToAddressState + \"</StateOrProvinceCode>\" + \n \"<PostalCode>\" + shipToAddressPostalCode + \n \"</PostalCode>\" + \"<CountryCode>\" + shipToCountry + \n \"</CountryCode>\" + \"</Address>\" + \"</Destination>\" + \n \"<Payment>\" + \"<PayorType>\" + carrierPayMethod + \n \"</PayorType>\";\n \n\n } else {\n fedExWSChkReturnlabelstr = chkReturnlabelstr;\n \n \n shipmentRequestHdr = \n rntHeader1 + header2 + header3 + listTag + rntHeader5 + \n rntHeader6;\n appendStr = \"Return_\";\n\n }\n\n tempMap = new HashMap();\n\n \n\n //Added by dedeepya on 22/06/07(start)\n\n if (carrierCode.equalsIgnoreCase(\"FDXE\")) {\n logger.info(\"carrierCode is FDXE\");\n orderNumber = \n \"<Value>FDXShipRequest/ReferenceInfo/CustomerReference</Value>\";\n Shipment = \n \"<Value>FDXShipReply/ReplyHeader/CustomerTransactionIdentifier</Value>\";\n Dept = \"<Value>FDXShipRequest/Origin/Contact/Department</Value>\";\n poNumber = \"<Value>FDXShipRequest/ReferenceInfo/PONumber</Value>\";\n ShipDate = \"<Value>FDXShipRequest/ShipDate</Value>\";\n Weight = \"<Value>FDXShipRequest/Weight</Value>\";\n COD = \n\"<Value>FDXShipRequest/SpecialServices/COD/CollectionAmount</Value>\";\n DV = \"<Value>FDXShipRequest/DeclaredValue</Value>\";\n Shipping = \n \"<Value>FDXShipReply/EstimatedCharges/DiscountedCharges/BaseCharge</Value>\";\n Special = \n \"<Value>FDXShipReply/EstimatedCharges/DiscountedCharges/TotalSurcharge</Value>\";\n Handling = \n \"<Value>FDXShipReply/EstimatedCharges/DiscountedCharges/TotalDiscount</Value>\";\n Total = \n \"<Value>FDXShipReply/EstimatedCharges/DiscountedCharges/NetCharge</Value>\";\n\n\n } else {\n logger.info(\"carrierCode is FDXG\");\n orderNumber = \n \"<Value>FDXShipRequestReferenceInfoCustomerReference</Value>\";\n Shipment = \n \"<Value>FDXShipReplyReplyHeaderCustomerTransactionIdentifier</Value>\";\n Dept = \"<Value>FDXShipRequestOriginContactDepartment</Value>\";\n poNumber = \"<Value>FDXShipRequestReferenceInfoPONumber</Value>\";\n ShipDate = \"<Value>FDXShipRequestShipDate</Value>\";\n Weight = \"<Value>FDXShipRequestWeight</Value>\";\n COD = \n\"<Value>FDXShipRequestSpecialServicesCODCollectionAmount</Value>\";\n DV = \"<Value>FDXShipRequestDeclaredValue</Value>\";\n Shipping = \n \"<Value>FDXShipReplyEstimatedChargesDiscountedChargesBaseCharge</Value>\";\n Special = \n \"<Value>FDXShipReplyEstimatedChargesDiscountedChargesTotalSurcharge</Value>\";\n Handling = \n \"<Value>FDXShipReplyEstimatedChargesDiscountedChargesTotalDiscount</Value>\";\n Total = \n \"<Value>FDXShipReplyEstimatedChargesDiscountedChargesNetCharge</Value>\";\n }\n\n //Added by dedeepya on 22/06/07(start)\n\n\n // If carrier code is FedExExpress and pay method is RECIPIENT or THIRDPARTY Or\n // carrier code is FedExGround and pay method is THIRDPARTY payer carrier account number is must.\n if (((carrierCode.equalsIgnoreCase(\"FDXE\")) && \n ((carrierPayMethodCode.equalsIgnoreCase(\"TP\")) || \n (carrierPayMethodCode.equalsIgnoreCase(\"CG\")))) || \n ((carrierCode.equalsIgnoreCase(\"FDXG\")) && \n (carrierPayMethodCode.equalsIgnoreCase(\"TP\")) || \n (carrierPayMethodCode.equalsIgnoreCase(\"CG\")))) {\n if (customerCarrierAccountNumber.length() < 9 || \n customerCarrierAccountNumber.length() > 12) {\n aascShipmentHeaderInfo.setMainError(\"third party or consignee's account number should not be less than 9 digits and greater than 12 digits \");\n responseStatus = 151;\n tempMap = new HashMap();\n tempMap.put(\"ResponseStatus\", String.valueOf(responseStatus));\n }\n \n shipmentRequestHdr = \n shipmentRequestHdr + \"<Payor><AccountNumber>\" + \n customerCarrierAccountNumber + \"</AccountNumber>\";\n if (carrierPayMethodCode.equalsIgnoreCase(\"TP\")) {\n\n String tpCountrySymbl = \n aascShipmentHeaderInfo.getTpCountrySymbol();\n shipmentRequestHdr = \n shipmentRequestHdr + \"<CountryCode>\" + tpCountrySymbl + \n \"</CountryCode></Payor>\";\n payorCountryCodeWS = tpCountrySymbl;\n } else {\n shipmentRequestHdr = \n shipmentRequestHdr + \"<CountryCode>\" + shipToCountry + \n \"</CountryCode></Payor>\";\n payorCountryCodeWS = shipToCountry;\n }\n }\n shipmentRequestHdr = shipmentRequestHdr + \"</Payment>\";\n\n /*if (carrierCode.equalsIgnoreCase(\"FDXE\")\n && (service.equalsIgnoreCase(\"FEDEX1DAYFREIGHT\")\n || service.equalsIgnoreCase(\"FEDEX2DAYFREIGHT\")\n || service.equalsIgnoreCase(\"FEDEX3DAYFREIGHT\"))) {*/\n shipmentRequestHdr = shipmentRequestHdr + header9;\n\n /*\"<Dimensions>\"\n + \"<Length>\" + length + \"</Length>\" + \"<Width>\"\n + width + \"</Width>\" + \"<Height>\" + height\n + \"</Height>\" + \"<Units>\" + units + \"</Units>\"\n + \"</Dimensions>\"\n */\n ;\n //}\n\n\n if (carrierCode.equalsIgnoreCase(\"FDXG\") && \n service.equalsIgnoreCase(\"GROUNDHOMEDELIVERY\")) {\n\n residentialTag = \"<ResidentialDelivery>true</ResidentialDelivery>\";\n\n } else {\n residentialTag = \"\";\n }\n\n if (!signatureOptions.equalsIgnoreCase(\"NONE\")) {\n signatureOptionString = \n \"<SignatureOption>\" + signatureOptions + \"</SignatureOption>\";\n } else {\n signatureOptionString = \"\";\n }\n\n shipmentHeader5 = \n \"<SpecialServices>\" + signatureOptionString + residentialTag + \n codTag + HazMat + hal + \"</SpecialServices>\";\n\n\n labelFormat = aascShipMethodInfo.getPrinterPort(carrierId);\n labelStockOrientation = \n aascShipMethodInfo.getLabelStockOrientation(carrierId);\n docTabLocation = aascShipMethodInfo.getDocTabLocation(carrierId);\n \n if (labelFormat.equalsIgnoreCase(\"ZEBRA\") || \n labelFormat.equalsIgnoreCase(\"ELTRON\") || \n labelFormat.equalsIgnoreCase(\"UNIMARK\")) { // LEADING\n // BOTTOM\n //Added by dedeepya on 22/06/07(start)\n labelFormatTag = \n \"<ImageType>\" + labelFormat + \"</ImageType>\" + \"<LabelStockOrientation>\" + \n labelStockOrientation + \"</LabelStockOrientation>\" + \n \"<DocTabLocation>\" + docTabLocation + \"</DocTabLocation>\" + \n \"<DocTabContent>\" + \"<Type>ZONE001</Type>\" + \"<Zone001>\" + \n \"<HeaderValuePair>\" + \"<ZoneNumber>01</ZoneNumber>\" + \n \"<Header>Order#</Header>\" + orderNumber + \n \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>02</ZoneNumber>\" + \n \"<Header>Delivery</Header>\" + Shipment + \n \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>03</ZoneNumber>\" + \"<Header>Dept</Header>\" + \n Dept + \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>04</ZoneNumber>\" + \"<Header>Ref</Header>\" + \n poNumber + \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>05</ZoneNumber>\" + \n \"<Header>ShipDate</Header>\" + ShipDate + \n \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>06</ZoneNumber>\" + \"<Header>Weight</Header>\" + \n Weight + \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>07</ZoneNumber>\" + \"<Header>COD</Header>\" + \n COD + \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>08</ZoneNumber>\" + \"<Header>DV</Header>\" + \n DV + \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>09</ZoneNumber>\" + \n \"<Header>Shipping</Header>\" + Shipping + \n \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>10</ZoneNumber>\" + \n \"<Header>Special</Header>\" + Special + \n \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>11</ZoneNumber>\" + \n \"<Header>Discount</Header>\" + Handling + \n \"</HeaderValuePair>\" + \"<HeaderValuePair>\" + \n \"<ZoneNumber>12</ZoneNumber>\" + \"<Header>Total</Header>\" + \n Total + \"</HeaderValuePair>\" + \"</Zone001>\" + \n \"</DocTabContent>\" + \n \"<MaskAccountNumber>true</MaskAccountNumber>\";\n //Added by dedeepya on 22/06/07(start)\n\n } else if (labelFormat.equalsIgnoreCase(\"PNG\")) {\n\n labelFormatTag = \"<ImageType>\" + labelFormat + \"</ImageType>\";\n } else {\n labelFormatTag = \n \"<ImageType>\" + \"PDF\" + \"</ImageType>\"; //labelFormat + \"</ImageType>\"; // remove pdf by labelFormat\n }\n\n pkgCount = aascShipmentOrderInfo.getShipmentPackageInfo().size();\n\n \n if (pkgCount == 1) {\n header4 = \"\";\n }\n shipmentRequestHdr = \n shipmentRequestHdr + internationalTags + shipmentHeader5 + \n \"<Label>\" + \"<Type>2DCOMMON</Type>\" + labelFormatTag + \n \"</Label>\" + header4 + rmaTag + \"</FDXShipRequest>\";\n //End\n\n\n /* shipmentRequestHdr = shipmentRequestHdr + internationalTags +shipmentHeader5+ \"<Label>\"\n + \"<Type>2DCOMMON</Type>\" + \"<ImageType>PNG</ImageType>\"\n + \"</Label>\" +rmaTag+ \"</FDXShipRequest>\"; */\n\n timeStampStr = \n (new Date().toString().replaceAll(\" \", \"_\")).replaceAll(\":\", \n \"_\");\n\n \n tempMap = null;\n tempMap = new HashMap();\n\n if (port != 0 && host != null && !(host.equals(\"\"))) {\n try {\n\n \n// try { logger.info(\"Before call\");\n// writeOutputFile(shipmentRequestHdr, \n// outputFile + orderNumberShip + \"_\" + \n// packageSequence + \"_\" + carrierCode + \"_\" + \n// appendStr + timeStampStr + \"_request.xml\");\n// \n// } catch (FileNotFoundException fileNotFoundException) {\n// logger.severe(\"file to which the request and response to be written is not found:\" + \n// fileNotFoundException.getMessage() + \n// \"\\n file name:\" + outputFile);\n//\n// }\n shipmentRequest = shipmentRequestHdr;\n \n\n fedExCarrierMode = nullStrToSpc(fedExCarrierMode);\n \n if (fedExCarrierMode.equalsIgnoreCase(\"WEBSERVICES\") || \n fedExCarrierMode.equalsIgnoreCase(\"FedexWebServices\")) {\n \n String intFlagLocal = \n nullStrToSpc(aascShipmentHeaderInfo.getInternationalFlag());\n Double totalWeight = \n aascShipmentHeaderInfo.getPackageWeight();\n\n replyOut = \n callFedexWS(fedExKey, fedExPassword, intFlagLocal, \n totalWeight, aascIntlInfo).getBytes();\n } else {\n replyOut = \n FedExAPI.transact(iUTI, shipmentRequest.getBytes(), \n host, port, timeOut);\n }\n\n\n \n shipmentResponse = new String(replyOut, \"ISO-8859-1\");\n \n if (shipmentResponse != null && !shipmentResponse.equals(\"\")) {\n \n {\n \n// try {\n// writeOutputFile(shipmentResponse, \n// outputFile + orderNumberShip + \n// \"_\" + packageSequence + \"_\" + \n// carrierCode + \"_\" + appendStr + \n// timeStampStr + \"_response.xml\");\n// \n// } catch (Exception fileNotFoundException) {\n// logger.severe(\"file path to which the fedex xml response to be written is not found:\" + \n// fileNotFoundException.getMessage() + \n// \"\\n file name:\" + outputFile);\n// }\n \n String nonDiscountedCost = \n aascProfileOptionsInfo.getNonDiscountedCost();\n \n\n AascFedexShipmentInfo aascFedexShipmentInfo = \n new AascFedexShipmentInfo();\n\n if (fedExCarrierMode.equalsIgnoreCase(\"WEBSERVICES\") || \n fedExCarrierMode.equalsIgnoreCase(\"FedexWebServices\")) {\n tempMap = aascFedexShipmentInfo.parseWebServiceResponse(shipmentResponse, \n aascShipmentOrderInfo, \n aascShipMethodInfo, \n aascProfileOptionsInfo, \n packageSequence, \n chkReturnlabelstr, \n cloudLabelPath);\n } else {\n tempMap = \n aascFedexShipmentInfo.parseResponse(shipmentResponse, \n aascShipmentOrderInfo, \n aascShipMethodInfo, \n aascProfileOptionsInfo, \n packageSequence, \n chkReturnlabelstr, \n cloudLabelPath);\n }\n\n\n // }\n\n\n hashMap = tempMap;\n parseStatus = (String)tempMap.get(\"status\");\n\n if (\"success\".equalsIgnoreCase(parseStatus) || \"WARNING\".equalsIgnoreCase(parseStatus) || \"NOTE\".equalsIgnoreCase(parseStatus)) {\n \n responseStatus = 150;\n tempMap.put(\"ResponseStatus\", \n String.valueOf(responseStatus));\n hashMap = tempMap;\n logger.info(\"response status:\" + responseStatus);\n aascShipmentHeaderInfo.setMainError(\"\");\n if(\"WARNING\".equalsIgnoreCase(parseStatus)){\n logger.info(\"Warning Message \"+(String)tempMap.get(\"warningMsg\"));\n aascShipmentHeaderInfo.setMainError((String)tempMap.get(\"warningMsg\"));\n }\n \n } else {\n \n aascShipmentHeaderInfo.setMainError(parseStatus);\n responseStatus = 151;\n tempMap.put(\"ResponseStatus\", \n String.valueOf(responseStatus));\n hashMap = tempMap;\n \n }\n }\n }\n } catch (FedExAPIException e) {\n responseStatus = 151;\n aascShipmentHeaderInfo.setMainError(e.getMessage());\n logger.severe(\"FedExAPIException: \" + e.getMessage());\n } catch (UnsupportedEncodingException e) {\n responseStatus = 151;\n aascShipmentHeaderInfo.setMainError(e.getMessage());\n logger.severe(\"UnsupportedEncodingException: \" + \n e.getMessage());\n }\n } else {\n logger.severe(\"either port or host is null:\" + \"\\n host:\" + host + \n \"\\n port:\" + port);\n aascShipmentHeaderInfo.setMainError(\"either port or host is null:\" + \n \"\\n host:\" + host + \n \"\\n port:\" + port);\n responseStatus = 151;\n tempMap.put(\"ResponseStatus\", String.valueOf(responseStatus));\n hashMap = tempMap;\n }\n logger.info(\"Exit from sendfedexRequest method\");\n }",
"private TransactionInitiateRespDTO accessKeyNull(String errorcode) {\n\n\t\tTransactionInitiateRespDTO\tstatus = new TransactionInitiateRespDTO();\n\n\tstatus.setCode(errorcode);\n\tstatus.setMessage(WebServiceConstants.ACCESS_KEY_NOT_EXIST);\n\tstatus.setType(WebServiceConstants.FIVE);\n\n\treturn status;\n\t}",
"private Map<String, String> convertPay(PayRequest request) {\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Action\", \"Pay\");\n if (request.isSetSenderTokenId()) {\n params.put(\"SenderTokenId\", request.getSenderTokenId());\n }\n if (request.isSetRecipientTokenId()) {\n params.put(\"RecipientTokenId\", request.getRecipientTokenId());\n }\n if (request.isSetTransactionAmount()) {\n Amount transactionAmount = request.getTransactionAmount();\n if (transactionAmount.isSetCurrencyCode()) {\n params.put(\"TransactionAmount\" + \".\" + \"CurrencyCode\", transactionAmount.getCurrencyCode().value());\n }\n if (transactionAmount.isSetValue()) {\n params.put(\"TransactionAmount\" + \".\" + \"Value\", transactionAmount.getValue());\n }\n }\n if (request.isSetChargeFeeTo()) {\n params.put(\"ChargeFeeTo\", request.getChargeFeeTo().value());\n }\n if (request.isSetCallerReference()) {\n params.put(\"CallerReference\", request.getCallerReference());\n }\n if (request.isSetCallerDescription()) {\n params.put(\"CallerDescription\", request.getCallerDescription());\n }\n if (request.isSetSenderDescription()) {\n params.put(\"SenderDescription\", request.getSenderDescription());\n }\n if (request.isSetDescriptorPolicy()) {\n DescriptorPolicy descriptorPolicy = request.getDescriptorPolicy();\n if (descriptorPolicy.isSetSoftDescriptorType()) {\n params.put(\"DescriptorPolicy\" + \".\" + \"SoftDescriptorType\", descriptorPolicy.getSoftDescriptorType()\n .value());\n }\n if (descriptorPolicy.isSetCSOwner()) {\n params.put(\"DescriptorPolicy\" + \".\" + \"CSOwner\", descriptorPolicy.getCSOwner().value());\n }\n }\n if (request.isSetTransactionTimeoutInMins()) {\n params.put(\"TransactionTimeoutInMins\", request.getTransactionTimeoutInMins() + \"\");\n }\n if (request.isSetMarketplaceFixedFee()) {\n Amount marketplaceFixedFee = request.getMarketplaceFixedFee();\n if (marketplaceFixedFee.isSetCurrencyCode()) {\n params.put(\"MarketplaceFixedFee\" + \".\" + \"CurrencyCode\", marketplaceFixedFee.getCurrencyCode().value());\n }\n if (marketplaceFixedFee.isSetValue()) {\n params.put(\"MarketplaceFixedFee\" + \".\" + \"Value\", marketplaceFixedFee.getValue());\n }\n }\n if (request.isSetMarketplaceVariableFee()) {\n params.put(\"MarketplaceVariableFee\", request.getMarketplaceVariableFee() + \"\");\n }\n\n return params;\n }",
"static void sendSMRInvokedMapRequestMessage(MapRequest mapRequest, IFlowMapping lms) {\n Eid eid = addMaximumPrefixIfNecessary(mapRequest.getSourceEid().getEid());\n final EidItemBuilder eidItemBuilder = new EidItemBuilder();\n eidItemBuilder.setEid(eid);\n eidItemBuilder.setEidItemId(LispAddressStringifier.getString(eid));\n final List<EidItem> eidItem = Collections.singletonList(eidItemBuilder.build());\n\n final MapRequestBuilder mapRequestBuilder = new MapRequestBuilder(mapRequest);\n mapRequestBuilder.setSmr(false);\n mapRequestBuilder.setSmrInvoked(true);\n mapRequestBuilder.setItrRloc(getDefaultItrRlocList(LispAddressUtil.asIpv4Rloc(RECEIVE_ADDRESS)));\n mapRequestBuilder.setEidItem(eidItem);\n for (EidItem srcEid : mapRequest.getEidItem()) {\n mapRequestBuilder.setSourceEid(new SourceEidBuilder().setEid(\n removePrefixIfNecessary(srcEid.getEid())).build());\n LOG.debug(\"Sending SMR-invoked Map-Request for EID {}, Source EID {}\",\n LispAddressStringifier.getString(eid),\n LispAddressStringifier.getString(srcEid.getEid()));\n lms.handleMapRequest(mapRequestBuilder.build());\n }\n }",
"pb4client.TransportRequest getReq(int index);",
"public String submitManRequest() {\r\n if (selectedRequest != null) {\r\n String formResponse;\r\n switch(reqStatus) {\r\n case PENDING:\r\n break;\r\n case REJECTED:\r\n formResponse = changeRequestStatus();\r\n break;\r\n case CONFIRMED:\r\n formResponse = changeRequestStatus();\r\n makePayment();\r\n break;\r\n default:\r\n break;\r\n }\r\n return \"home\"; \r\n } else {\r\n return null;\r\n }\r\n }",
"private void makeExportMapRequest(\n\t\t\tDetermineRouteParams determineRouteParams, String srvCfgMapService)\n\t\t\tthrows Throwable {\n\n\t\tImageOutput imgOutput = determineRouteParams.getRouteMap()\n\t\t\t\t.getImageOutput();\n\t\tOutput output = imgOutput.getOutput();\n\t\tdetermineRouteParams\n\t\t\t\t.getRouteMap()\n\t\t\t\t.getImageOutput()\n\t\t\t\t.setBboxContext(\n\t\t\t\t\t\tdetermineRouteParams.getRouteSummary().getBbox());\n\n\t\t// ISMapRequest request = (ISMapRequest) getRequest();\n\n\t\tString requestParameters = \"\";\n\t\t// m_version = request.getRequestVersion();\n\t\t// m_srsName = request.getSrsName();\n\n\t\t/*\n\t\t * use transparent background or not transparent = true | false\n\t\t */\n\t\t/*\n\t\t * if (request.getTransparent() != null &&\n\t\t * !request.getTransparent().equalsIgnoreCase(\"\")) requestParameters +=\n\t\t * \"transparent=\" + request.getTransparent().toLowerCase() + \"&\";\n\t\t */\n\n\t\t/*\n\t\t * set the output format format = png | png8 | png24 | jpg | pdf | bmp |\n\t\t * gif | svg | png32\n\t\t */\n\t\trequestParameters += \"format=\" + output.getFormat() + \"&\";\n\n\t\t/*\n\t\t * set the output size size = <width>, <height>\n\t\t */\n\t\trequestParameters += \"size=\" + output.getWidth() + \",\"\n\t\t\t\t+ output.getHeight() + \"&\";\n\n\t\t/*\n\t\t * set the output coordinate reference system imageSR = <wellknown id>\n\t\t */\n\t\t/*\n\t\t * if (m_srsName != null && !m_srsName.equalsIgnoreCase(\"\")) {\n\t\t * routeReq.getBoundingBox().setBoxSrs( ((ISMapRequest)\n\t\t * getRequest()).getSrsName()); requestParameters += \"imageSR=\" +\n\t\t * m_srsName + \"&\"; }\n\t\t */\n\n\t\t/*\n\t\t * set the coordinate reference system for the bounding box bboxSR =\n\t\t * <wellknown id>\n\t\t * \n\t\t * use imageSR if the bboxSR is not set\n\t\t */\n\t\tif (imgOutput.getBboxContext() != null)\n\t\t\trequestParameters += \"bboxSR=4326\" // +\n\t\t\t\t\t\t\t\t\t\t\t\t// imgOutput.getBoundingBox().getBoxSrs()\n\t\t\t\t\t+ \"&\";\n\t\telse\n\t\t\trequestParameters += \"bboxSR=4326&\";\n\n\t\t/*\n\t\t * set the bounding box bbox = <xmin>, <ymin>, <xmax>, <ymax>\n\t\t * \n\t\t * request may contain a bbox, a center point and scale, or a center\n\t\t * point and radius\n\t\t */\n\t\trequestParameters += \"bbox=\";\n\t\tBBoxContext bbox = imgOutput.getBboxContext();\n\t\tif (bbox != null) {\n\n\t\t\tif (bbox.getMinX() != 0.0 && bbox.getMaxY() != 0.0) {\n\n\t\t\t\trequestParameters += bbox.getMinX();\n\t\t\t\trequestParameters += \",\" + bbox.getMinY();\n\t\t\t\trequestParameters += \",\" + bbox.getMaxX();\n\t\t\t\trequestParameters += \",\" + bbox.getMaxY();\n\t\t\t} else {\n\t\t\t\trequestParameters += bbox.getMinX();\n\t\t\t\trequestParameters += \",\" + bbox.getMinY();\n\t\t\t\trequestParameters += \",\" + bbox.getMaxX();\n\t\t\t\trequestParameters += \",\" + bbox.getMaxY();\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * } else { // add else part for /* if (request.getCenterPoint() != null\n\t\t * && request.getScale() > 0) { // center point and scale provided\n\t\t * double widthScale = Double.parseDouble(routeReq.getImageWidth()) / 2\n\t\t * / 96 * request.getScale(); widthScale = Units.convert(widthScale, 2,\n\t\t * 0); double heightScale =\n\t\t * Double.parseDouble(routeReq.getImageHeight()) / 2 / 96 *\n\t\t * request.getScale(); heightScale = Units.convert(heightScale, 2, 0);\n\t\t * requestParameters += (request.getCenterPoint().getX() - widthScale);\n\t\t * requestParameters += \",\" + (request.getCenterPoint().getY() -\n\t\t * heightScale); requestParameters += \",\" +\n\t\t * (request.getCenterPoint().getX() + widthScale); requestParameters +=\n\t\t * \",\" + (request.getCenterPoint().getY() + heightScale);\n\t\t * \n\t\t * } else if (request.getCenterPoint() != null && request.getRadius() !=\n\t\t * null) { // center point and radius provided requestParameters +=\n\t\t * (request.getCenterPoint().getX() - Integer\n\t\t * .parseInt(request.getRadius())); requestParameters += \",\" +\n\t\t * (request.getCenterPoint().getY() - Integer.parseInt(request\n\t\t * .getRadius())); requestParameters += \",\" +\n\t\t * (request.getCenterPoint().getX() + Integer.parseInt(request\n\t\t * .getRadius())); requestParameters += \",\" +\n\t\t * (request.getCenterPoint().getY() + Integer.parseInt(request\n\t\t * .getRadius()));\n\t\t * \n\t\t * } else { // all else failed: default to world as extent\n\t\t * requestParameters += \"-180,-90,180,90\"; } }\n\t\t */\n\t\trequestParameters += \"&\";\n\n\t\t/*\n\t\t * set the layers to include layers= [show | hide | include |\n\t\t * exclude]:layerId1,layerId2\n\t\t */\n\t\t// TO DO\n\n\t\t/*\n\t\t * close the request parameters with asking for the image as output as\n\t\t * opposed to an HTML page...\n\t\t */\n\t\trequestParameters += \"&f=image\";\n\n\t\tLOGGER.info(\"*******Map Request = \" + requestParameters);\n\n\t\timgOutput.setUrl(srvCfgMapService + \"/export?\"\n\t\t\t\t+ Val.escapeXml(requestParameters));\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets status of an interview, identified by its ID | public void setInterviewStatus(String interview_id, String status) {
String url2_is=ec2_ip+"/setInterviewStatus.php?id="+interview_id+"&nstatus='"+status+"'";
urlCode(url2_is);
} | [
"@PutMapping(\"/update/{interviewId}/{interviewStatus}\")\r\n\t\tpublic Interview updateInterviewStatus(Interview interview, @PathVariable (\"interviewId\") long intId) {\r\n\t\t\t Interview existingInterview1 = this.interviewRepository.findById(intId)\r\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Interview not found with interviewId :\" + intId));\r\n\t\t\t existingInterview1.setInterviewStatus(interview.getInterviewStatus());\r\n\t\t\t return this.interviewRepository.save(existingInterview1);\r\n\t\t}",
"public void setStatusId(long statusId);",
"@Util\n public static Interview setInProgressInterview(Interview interview){\n \ttry {\n CachedEntity ce;\n ce = EntityCache.get(Interview.class);\n return EntityCache.savePrivate(interview, ce.getContext(), Interview.class).getEntity();\n } catch (CacheMiss e) {\n }\n \n return EntityCache.savePrivate(interview, Interview.class);\n }",
"public void setIdStatus(int idStatus) {\r\n this.idStatus = idStatus;\r\n }",
"public void setIdInterest(int value) {\n this.idInterest = value;\n }",
"public void setUpInterview(String jobID, String email){\n appList= JobSystemCoordinator.appManager.getPendingApplications(jobID);\n currentJob = getJobAtIndex(jobID);\n for(Application app : appList){\n if(app.getApplicant().getEmail().equals(email)){\n app.setStatus(\"Awaiting Interview\");\n String success = String.format(\"===========SETTING UP INTERVIEWS FOR A JOB========\\n\" +\n \"Details of setting up interviews:\\n\" +\n \"Job ID: %s\\n\" +\n \"Candidate list: %s\\n\",currentJob.getJobID(),app.getApplicant().getEmail());\n System.out.println(success);\n }\n }\n }",
"public void setStatusInReview() throws BusinessRuleException\n {\n this.testSetStatusInReview();\n this.doSetStatus(STATUS_IN_REVIEW);\n }",
"public void setItStatus(Integer itStatus) {\n this.itStatus = itStatus;\n }",
"public void setIdStatus(String idStatus) {\n this.idStatus = idStatus;\n }",
"public void setIdIndice(Integer idIndice) {\n this.idIndice = idIndice;\n }",
"@Override\n public void setStatus(int status) {\n _person.setStatus(status);\n }",
"void updateCandidateStatus(long candidateId, Result status);",
"public void setInterviewStatusIndicator(String aValue) {\n\t\tinterviewStatusIndicator = aValue;\n\t}",
"@Util\n public static Interview setInProgressInterview(Interview interview, InProgressInterviewContext context){\n \t\n \tCachedEntity<Interview, InProgressInterviewContext> ce = EntityCache.savePrivate(interview, context, Interview.class);\n \tif (ce != null){\n \t\treturn ce.getEntity();\n \t}\n \treturn null;\n }",
"void setStatus(Long id, String status) throws DaoException;",
"public void setStatusId(int tmp) {\n this.statusId = tmp;\n }",
"public final void setActivity_Interview(com.mendix.systemwideinterfaces.core.IContext context, ugs.proxies.Interview activity_interview)\n\t{\n\t\tif (activity_interview == null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Activity_Interview.toString(), null);\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Activity_Interview.toString(), activity_interview.getMendixObject().getId());\n\t}",
"@Override\n\tpublic void setStatus(int status) {\n\t\t_announcement.setStatus(status);\n\t}",
"public void setLectureVacancy(int ID){\n lectureList.get(ID).setVacancies();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns Email Address corresponding to the photo_id and contact_id provided. | private String getContactImageURI(Context argContext, String photo_id,
String contact_id) {
String contactImage = null;
// Fetching Contact image URL.
try {
if (photo_id != null) {
Uri contactUri = ContentUris
.withAppendedId(Contacts.CONTENT_LOOKUP_URI,
Long.parseLong(contact_id));
Uri photoUri = Uri.withAppendedPath(contactUri,
Contacts.Photo.CONTENT_DIRECTORY);
contactImage = photoUri.toString();
}
} catch (Exception e) {
if (debugMode)
Log.e("Exception Caught", "" + e.getMessage());
}
return contactImage;
} | [
"private String getEmailFromContact(\n\t\t\tJsArray<ong.eu.soon.mobile.json.ifx.element.Contact> contacts) {\n\t\tString eMail = \"\";\n\t\tfor (int i = 0; i < contacts.length(); i++) {\n\t\t\tLocator locator = contacts.get(i).getLocator();\n\t\t\tif (locator instanceof Email) {\n\t\t\t\tEmail email = (Email) locator;\n\t\t\t\teMail = email.getEmailAddr().getString();\n\t\t\t}\n\t\t}\n\t\treturn eMail;\n\t}",
"private ElectronicMailType getEmail(Contact contact) {\r\n String email = null;\r\n if (contact != null) {\r\n IMObjectBean bean = factory.createBean(contact);\r\n email = StringUtils.trimToNull(bean.getString(\"emailAddress\"));\r\n }\r\n return (email != null) ? UBLHelper.initText(new ElectronicMailType(), email) : null;\r\n }",
"public String getContactEmailId() {\n return contactEmailId;\n }",
"public String getContactEmail()\n {\n String v = (String)this.getFieldValue(FLD_contactEmail);\n return StringTools.trim(v);\n }",
"kr.pik.message.Profile.ProfileMessage.ContactAddress getContactAddress(int index);",
"public java.lang.String getContactEmail() {\n return contactEmail;\n }",
"public String getContactPicture(Integer id) {\n\t\t// On 0 invocation the current contact's will be returned\n\t\tif (id == 0) {\n\t\t\tif (currentContact == null)\n\t\t\t\treturn null;\n\t\t\treturn currentContact.getPicture();\n\t\t}\n\t\tOptional<Contacto> result = currentUser.getContacts().stream().filter(c -> c.getId() == id).findFirst();\n\t\tif (result.isPresent())\n\t\t\treturn result.get().getPicture();\n\t\treturn null;\n\t}",
"public static Identity getIdentityGivenEmail (SailPointContext context, String email) throws GeneralException\n\t{\n\t\tQueryOptions qo = new QueryOptions();\n\t\tqo.addFilter(Filter.eq(\"email\", email));\n\t\tqo.setIgnoreCase(true);\n\t\tIdentity identity = null;\n\t\tIterator<Identity> it = context.search(Identity.class, qo);\n\t\t// if found, return that identity\n\t\tif (it.hasNext()){\n\t\t\tidentity = (Identity) it.next();\n\t\t}\n\t\treturn identity;\n\t}",
"public String getContactEmail() {\r\n return this.contactEmail;\r\n }",
"kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder getContactAddressOrBuilder(\n int index);",
"public String getContactEmail() {\n return contactEmail;\n }",
"private String queryFlickrOnUserEmail(Flickr flickr, String presumedEmail)\n throws FlickrException {\n String flickrUserId = null;\n PeopleInterface pi = flickr.getPeopleInterface();\n User flickrUser = null;\n try {\n flickrUser = pi.findByEmail(presumedEmail);\n } catch (FlickrException fe) // NOSONAR - throw these in the raw, wrap\n // any others\n {\n throw fe;\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n\n if (flickrUser != null) {\n flickrUserId = flickrUser.getId();\n }\n\n return flickrUserId;\n }",
"public String getPrimaryContactEmail() {\n return _primaryContactEmail;\n }",
"Businessemailcontact getByBusinessFkAndEmailPurposeFk(Integer businessFk, Integer emailPurposeFk)throws EntityNotFoundException;",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.Address getContactAddress();",
"public static String getEmails(Context context) {\n String emlRecs = \"\";\n HashSet<String> emlRecsHS = new HashSet<String>();\n ContentResolver cr = context.getContentResolver();\n String[] PROJECTION = new String[]{ContactsContract.RawContacts._ID,\n ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_ID,\n ContactsContract.CommonDataKinds.Email.DATA,\n ContactsContract.CommonDataKinds.Photo.CONTACT_ID};\n String order = \"CASE WHEN \"\n + ContactsContract.Contacts.DISPLAY_NAME\n + \" NOT LIKE '%@%' THEN 1 ELSE 2 END, \"\n + ContactsContract.Contacts.DISPLAY_NAME\n + \", \"\n + ContactsContract.CommonDataKinds.Email.DATA\n + \" COLLATE NOCASE\";\n String filter = ContactsContract.CommonDataKinds.Email.DATA + \" NOT LIKE ''\";\n Cursor cur = cr.query(ContactsContract.CommonDataKinds.Email.CONTENT_URI, PROJECTION, filter, null, order);\n if (cur.moveToFirst()) {\n do {\n String emlAddr = cur.getString(3);\n // keep unique only\n if (emlRecsHS.add(emlAddr.toLowerCase())) {\n emlRecs += emlAddr + \",\";\n }\n } while (cur.moveToNext());\n }\n cur.close();\n return emlRecs;\n }",
"public void setContactEmail(String contactEmail) {\n this.contactEmail = contactEmail;\n }",
"public void setContactEmail(String contactEmail) {\r\n this.contactEmail = contactEmail;\r\n }",
"public static byte[] getPersonPhoto(Context context, String id) {\r\n \t\tif (id == null)\r\n \t\t\treturn null;\r\n \r\n \t\tif (\"0\".equals(id))\r\n \t\t\treturn null;\r\n \r\n \t\tbyte photo[] = null;\r\n \r\n \t\t// TODO: switch to API method:\r\n \t\t// Contacts.People.loadContactPhoto(arg0, arg1, arg2, arg3)\r\n \r\n \t\tCursor cursor = context.getContentResolver().query(Uri.withAppendedPath(Contacts.Photos.CONTENT_URI, id),\r\n \t\t\t\tnew String[] { PhotosColumns.DATA }, null, null, null);\r\n \t\tif (cursor != null) {\r\n \t\t\ttry {\r\n \t\t\t\tif (cursor.getCount() > 0) {\r\n \t\t\t\t\tcursor.moveToFirst();\r\n \t\t\t\t\tphoto = cursor.getBlob(0);\r\n \t\t\t\t\tif (photo != null) {\r\n \t\t\t\t\t\treturn photo;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t} finally {\r\n \t\t\t\tcursor.close();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn photo;\r\n \t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ ComienzaTimer(): Toma el valor del instante actual y lo guarda en "timer". | public static void ComienzaTimer(){
timer = System.nanoTime();
} | [
"long getTimerSeconds();",
"public int getTimer() {\n return timer;\n }",
"public static void ParaTimer(){\n tiempoTranscurrido = (System.nanoTime() - timer)/(1000000000.);\n }",
"public void temporizadorTiempo() {\n Timer timer = new Timer();\n tareaRestar = new TimerTask() {\n @Override\n public void run() {\n tiempoRonda--;\n }\n };\n timer.schedule(tareaRestar, 1,1000);\n }",
"long getExpirationTimer();",
"public long tempoPassato(){\n long tempoDopo= System.currentTimeMillis();\n this.millisecondiDiEsecuzione= (int) (tempoDopo - this.tempoPrima);\n this.tempoPrima= tempoDopo;\n return tempoDopo-this.firstTime;\n }",
"private static void ajustarTimer() {\n InfoEnemicManager iem = (InfoEnemicManager) llistaEnemics.get(0);\n if (iem.getTempsSortida() > tempsAnterior) {\n timer.setDelay(iem.getTempsSortida() - tempsAnterior);\n }\n unitatEnEspera = iem.getTipusEnemic();\n tempsAnterior = iem.getTempsSortida();\n llistaEnemics.remove(iem);\n }",
"public int getTimer() {\n return getOption(ArenaOption.TIMER);\n }",
"public int time(){\n\t\tRandom rnd = new Random(); //objecto random\n\t\treturn ((int) (rnd.nextDouble() * 3 + 9) * 1000); // funcion de tiempo\n\t}",
"TIMERType getTIMER();",
"Timer getCFAConstructionTime();",
"double getAcRestartTimer();",
"private void setupTimer() {\n //set up the timer for dynamite\n time = new Timer(1000, new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n int value = timePro.getValue();\n timePro.setValue(value - 1);\n if (value == 0) {\n update();\n }\n }\n });\n }",
"double getAcStallTimer();",
"public static double ParaTimer(){\n return (System.nanoTime() - timer)/(1000000000.);\n }",
"public long startTimer()\r\n\t{\r\n\t\tif(timer!=null&&time!=null)\r\n\t\t{\r\n\t\t\ttimer.start();\r\n\t\t\treturn Long.parseLong(time.getText());\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public int getTimer() {\n return worldTimer;\n }",
"public int getDialogueTimer(){\r\n\t\treturn dialogueTimer;\r\n\t}",
"public Timer() { start = System.nanoTime(); }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
StxJL sjl= new StxJL( "28Dec09", 50, 0, SRa); System.err.println( sjl.toString()); sjl= new JLRec( "28Dec09", 50, 0, NRa); System.err.println( sjl.toString()); sjl= new JLRec( "28Dec09", 50, 0, UT); System.err.println( sjl.toString()); sjl= new JLRec( "28Dec09", 50, 0, DT); System.err.println( sjl.toString()); sjl= new JLRec( "28Dec09", 50, 0, NRe); System.err.println( sjl.toString()); sjl= new JLRec( "28Dec09", 50, 0, SRe); System.err.println( sjl.toString()); | public static void main( String[] args) {
// sjl= new JLRec( "28-Dec-09", 50, 0, NRa);
// System.err.println( sjl.toString());
// sjl= new JLRec( "28-Dec-09", 50, 0, UT);
// System.err.println( sjl.toString());
// sjl= new JLRec( "28-Dec-09", 50, 0, DT);
// System.err.println( sjl.toString());
// sjl= new JLRec( "28-Dec-09", 50, 0, NRe);
// System.err.println( sjl.toString());
// sjl= new JLRec( "28-Dec-09", 50, 0, SRe);
// System.err.println( sjl.toString());
} | [
"public static void main(String[] args) {\n\n Studenti s1= new Studenti(\"Pera Peric\",\"drumski\",\"DR-123\");\n Studenti s2 = new Studenti(\"Laza Lazic\", \"logistika\",\"LO-267\");\n Studenti s3 = new Studenti(\"Marko Markovic\", \"vodni\", \"VO-745\");\n\n // menja broj indeksa\n s2.setBrIndeksa(\"LO-473\");\n\n // stampa sve podatke o studentu - kada nisu uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n\n //unos rezultata, stampanje rezultata i poruka da li je polozio ispit ili nije na osnovu rezultata\n s1.setRezultat(81);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s1.getRezultat()); //81\n s2.setRezultat(50);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s2.getRezultat()); //50\n s3.setRezultat(-4);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s3.getRezultat()); //0, ne prihvata -4\n\n // stampa sve podatke o studentu - kada su uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n }",
"public LSS() {\n\t\t\n\t}",
"RREC createRREC();",
"public StudyGroup()\n {\n s1 = new Student(\"Brianna\", 22, \"Neuroscience\");\n s2 = new Student(\"Noah\");\n s3 = new Student(\"Jenny\", 19, \"Applied Math\");\n s4 = new Student(\"Sean\", 22);\n \n System.out.println(\"Student 1 is \" + s1); // s1 is a Student object\n// i see a memory address\n System.out.println(\"Studnet 2 is \" + s2);\n System.out.println(\"Students in the group\");\n int x = 42;\n System.out.println(\" x is holding \" + x); //int --> Integer\n s1.printName();\n s2.printName();\n s3.printName();\n s4.printName();\n }",
"@Test\n public void testToString() {\n System.out.println(\"toString\");\n Receta instance = new Receta();\n String nom = \"nom1\";\n String inst = \"inst1\";\n Set<LineaDeReceta> lrs = new HashSet();\n LineaDeReceta lr = new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F);\n lrs.add(lr);\n instance.setInstrucciones(inst);\n instance.setNombre(nom);\n instance.nuevaLr(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F);\n String Str = \"Nombre: \"+ nom +\"\\nInstrucciones: \"+inst+\"\\nAlimentos de la receta:\\n\";\n \n Iterator it = lrs.iterator();\n \n while(it.hasNext()){\n LineaDeReceta aux = (LineaDeReceta)it.next();\n \n Str+= \" - \"+aux.toString()+\"\\n\";\n }\n String expResult = Str;\n String result = instance.toString();\n assertEquals(expResult, result);\n }",
"public static void main(String[] args) {\n Student sv;\n\n //cap phat bo nho cho bien doi tuong [sv] \n sv = new Student();\n\n //gan gia tri cho cac fields cua bien [sv]\n sv.id = \"student100\";\n sv.name = \"Luu Xuan Loc\";\n sv.yob = 2000;\n sv.mark = 69;\n sv.gender = true;\n\n //in thong tin doi tuong [sv]\n sv.output();\n\n //tao them 1 bien doi tuong [sv2] kieu [Student]\n Student sv2 = new Student();\n //gan gia tri cho cac fields cua doi tuong [sv2]\n sv2.id = \"student101\";\n sv2.name = \"Nguyen Ngoc Son\";\n sv2.yob = 2004;\n sv2.mark = 85;\n sv2.gender = false;\n\n //in thong tin doi tuong [sv2]\n sv2.output();\n\n //tao them 1 bien doi tuong [sv3] kieu [Student]\n Student sv3 = new Student();\n //in thong tin doi tuong [sv3]\n sv3.output();\n }",
"public static void main (String [] args){\r\n Jefatura jefe_RR=new Jefatura(\"Jeanpool\",55000,2006,9,25);\r\n jefe_RR.estableceIncentivo(2570);\r\n Empleado [] misEmpleados=new Empleado[6];\r\n misEmpleados[0]=new Empleado(\"Paco Gomez\",85000,1990,12,17);\r\n misEmpleados[1]=new Empleado(\"Ana Lopez\",95000,1995,06,02);\r\n misEmpleados[2]=new Empleado(\"Maria Martin\",105000,2002,03,15);\r\n misEmpleados[3]=new Empleado(\"Jeanpool Guerrero\");\r\n misEmpleados[4]=jefe_RR;/**--Polimorfismo: Prinicipio de sustitucion*/\r\n misEmpleados[5]=new Jefatura(\"Maria\",95000,1999,5,26);\r\n Jefatura jefa_Finanzas=(Jefatura)misEmpleados[5];/** CASTING CONVERTIR UN OBJETO A otro */\r\n jefa_Finanzas.estableceIncentivo(55000);\r\n \r\n \r\n \r\n /** for(int i=0;i<3; i++){\r\n misEmpleados[i].subeSueldo(5);\r\n \r\n }\r\n \r\n for(int i=0;i<3;i++){\r\n System.out.println(\"Nombre \"+misEmpleados[i].dimeNombre() + \"Sueldo: \"+misEmpleados[i].dimeSueldo()+ \"Fecha Alta: \"+misEmpleados[i].dameFechaContrato());\r\n }\r\n */\r\n\r\n for(Empleado elementos:misEmpleados){\r\n \r\n elementos.subeSueldo(5);\r\n \r\n }\r\n \r\n for(Empleado elementos:misEmpleados){\r\n System.out.println(\"Nombre: \"+elementos.dimeNombre()+ \" Sueldo: \"+elementos.dimeSueldo()+ \" Alta Contrato: \"+elementos.dameFechaContrato());\r\n }\r\n \r\n }",
"public static void main(String[] args) {\n StudentRecords studentRecordsFirstEntry; //Referencing to class StudentRecords\n studentRecordsFirstEntry = new StudentRecords(); // Allocating memory to the StudentsRecords\n StudentRecords studentRecordsSecondEntry = new StudentRecords();\n\n //Assigning values to studentRecordsFirstEntry\n studentRecordsFirstEntry.id =1;\n studentRecordsFirstEntry.name =\"John Doe\";\n studentRecordsFirstEntry.age = 18;\n studentRecordsFirstEntry.yearOfStudy= 3;\n studentRecordsFirstEntry.gender = 'M';\n studentRecordsFirstEntry.printStudentRecords();\n System.out.println(\"\\n=====================\");\n\n\n //Assigning values to studentRecordsSecondEntry\n studentRecordsSecondEntry.id =1;\n studentRecordsSecondEntry.name =\"Maria Doe\";\n studentRecordsSecondEntry.age = 17;\n studentRecordsSecondEntry.yearOfStudy =1;\n studentRecordsSecondEntry.gender = 'F';\n studentRecordsSecondEntry.printStudentRecords();\n System.out.println(\"\\n====================\");\n\n\n\n\n\n\n }",
"public static void main(String[] args) {\n Siswa s1 = new Siswa();\n //mengakses property (variable/\"punya apa?\")\n s1.nama = \"Amir\";\n s1.NIS = \"09876\";\n s1.nilai = 89.5f;\n\n System.out.println(\"Nama\\t: \"+s1.nama);\n System.out.println(\"NIS\\t: \"+s1.NIS);\n System.out.println(\"Nilai\\t: \"+s1.nilai);\n\n Siswa s2 = new Siswa();\n System.out.println(\"Nama s2\\t: \"+s2.nama);\n s2.nama=\"Wati\";\n System.out.println(\"Nama s2\\t: \"+s2.nama);\n\n Siswa s3 = s2;\n System.out.println(\"Nama s3\\t: \"+s3.nama);\n s3.nama = \"Ina\";\n System.out.println(\"Nama s2\\t: \"+s2.nama);\n\n //cloning\n Siswa s4 = new Siswa();\n s4.nama = s2.nama;\n\n float nilai_s1 = s1.cekNilai();\n System.out.println(\"Nilai s1:\"+nilai_s1);\n System.out.println(\"Nilai s2:\"+s2.cekNilai());\n System.out.println(\"Nilai s3:\"+s3.cekNilai());\n }",
"public String saisiepareleveseq1() {\n if (\"1\".equals(seq)) {\n if (seq != null && classe != null) {\n if ((noteSeq1Facade.listedesMatieresParClasseDeEleve(classe)) != null) {\n List<Matieres> matiereList = matiereFacade.listeMatieresParClasse(classe);\n Iterator i = matiereList.iterator();\n Matieres m;\n while (i.hasNext()) {\n m = (Matieres) i.next();\n if (!noteSeq1Facade.existEleve_et_sa_matiere(eleve.getMatriculeeleve(), m.getCodematiere())) {\n matiere_eleveseq1 = new Notesdeselevesseq1();\n Notesdeselevesseq1PK notseq1 = new Notesdeselevesseq1PK(eleve.getMatriculeeleve(), m.getCodematiere());\n matiere_eleveseq1.setNotesdeselevesseq1PK(notseq1);\n matiere_eleveseq1.setMatieres(m);\n noteSeq1Facade.create(matiere_eleveseq1);\n }\n if (!notetrim1Facade.existEleve_et_sa_matiere(eleve.getMatriculeeleve(), m.getCodematiere())) {\n matiere_elevetrim1 = new Notesdeselevestrim1();\n Notesdeselevestrim1PK notetrim1 = new Notesdeselevestrim1PK(eleve.getMatriculeeleve(), m.getCodematiere());\n matiere_elevetrim1.setNotesdeselevestrim1PK(notetrim1);\n matiere_elevetrim1.setMatieres(m);\n notetrim1Facade.create(matiere_elevetrim1);\n }\n if (!noteannFacade.existEleve_et_sa_matiere(eleve.getMatriculeeleve(), m.getCodematiere())) {\n matiere_eleveann = new Notesdeselevesann();\n NotesdeselevesannPK notann = new NotesdeselevesannPK(eleve.getMatriculeeleve(), m.getCodematiere());\n matiere_eleveann.setNotesdeselevesannPK(notann);\n matiere_eleveann.setMatieres(m);\n noteannFacade.create(matiere_eleveann);\n }\n }\n eleveListSeq1.clear();\n eleveListSeq1.addAll(noteSeq1Facade.Eleve_et_sa_matiere(eleve.getMatriculeeleve()));\n// matiere_eleveseq1 = new Notesdeselevesseq1();\n }\n return \"saisienotepareleveseq1.xhtml?faces-redirect=true\";\n } else {\n return \"\";\n }\n } else {\n return \"\";\n }\n }",
"public void loadStudentObjects(){\r\n\t\t//write your code here\r\n\t\tstudentObjects = new Student[rosterStrings.length];\r\n\t\tString[] temp = new String [7];\r\n\t\tfor(int i=0; i<rosterStrings.length;i++){\r\n\t\t\ttemp =rosterStrings[i].toString().split(\",\");\r\n\t\t\tif(temp[0].equals(\"A\")) {\r\n\t\t\t\tstudentObjects[i] = new StudentA(temp[0].charAt(0),temp[1],temp[2],temp[3],temp[4],Integer.parseInt(temp[5]), Double.parseDouble(temp[6]));\r\n\t\t\t\t((StudentA)studentObjects[i]).donate();\r\n\t\t\t}else if(temp[0].equals(\"B\")) {\r\n\t\t\t\tstudentObjects[i]= new StudentB(temp[0].charAt(0),temp[1],temp[2],temp[3],temp[4],Integer.parseInt(temp[5]), Double.parseDouble(temp[6]));\r\n\t\t\t\t((StudentB)studentObjects[i]).donate();\r\n\t\t\t}else {\r\n\t\t\t\tstudentObjects[i]= new StudentC(temp[0].charAt(0),temp[1],temp[2],temp[3],temp[4], Integer.parseInt(temp[5]), Double.parseDouble(temp[6]));\r\n\t\t\t\t((StudentC)studentObjects[i]).donate();\r\n\t\t\t\t((StudentC)studentObjects[i]).serve();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Seq createSeq();",
"@Test\n public void test01() throws Exception {\n SerialArray sa = new SerialArray(a);\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tSubjects ss = new Subjects(\"SS HOME TUITION \",\"ALL AREAS AROUND JOHOR BAHRU\",\"BAHASA MELAYU, ENGLISH, MATHEMATCS AND SCIENCE FOR FORM 3 AND FORM 5\", \"014-3166261\", 0, 0);\r\n\t\tss.details();\r\n\t\tSystem.out.println(ss.toString());\r\n\t\t\r\n\t\tMarketing m = new Marketing(\"https://www.facebook.com/\", \"https://www.instagram.com/_sharvetha_/\", 014-3166261, \"10%\");\r\n\t\tSystem.out.println(m.toString());\r\n\t\t\r\n\t\tStudents s = new Students();\r\n\t\ts.getInput();\r\n\t\tSystem.out.println(s.toString());\r\n\t\tSystem.out.println(\"\\n\\nThe payment for 1 subject is RM \" + s.getPayment(1));\r\n\t\tSystem.out.println(\"The payment for 1 subject with early bird discount is RM \" + s.getPayment(1, 0.1));\r\n\t\t\r\n\t\t;\r\n\t\tStaffs e = new Staffs(12, \"\", 4);\r\n\t\te.StaffsDetails();\r\n\t\te.CalSalary();\r\n\t\te.CalIncrement();\r\n\t\te.CalTotalSalary();\r\n\t\tSystem.out.println(e.toString());\r\n\t\t\r\n\t\tFinance f = new Finance(0, \"AHMAD BIN ABU\", 2);\r\n\t\tf.Calstudentsfee();\r\n\t\tf.Expenses();\r\n\t\tf.CalIncrement();\r\n\t\tf.CalProfit();\r\n\t\tSystem.out.println(f.toString());\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"java.lang.String getNewSeq();",
"public String saisiepareleveseq6() {\n if (\"6\".equals(seq)) {\n if (seq != null && classe != null) {\n if ((noteSeq6Facade.listedesMatieresParClasseDeEleve(classe)) != null) {\n List<Matieres> matiereList = matiereFacade.listeMatieresParClasse(classe);\n Iterator i = matiereList.iterator();\n Matieres m;\n while (i.hasNext()) {\n m = (Matieres) i.next();\n if (!noteSeq6Facade.existEleve_et_sa_matiere(eleve.getMatriculeeleve(), m.getCodematiere())) {\n matiere_eleveseq6 = new Notesdeselevesseq6();\n Notesdeselevesseq6PK notseq6 = new Notesdeselevesseq6PK(eleve.getMatriculeeleve(), m.getCodematiere());\n matiere_eleveseq6.setNotesdeselevesseq6PK(notseq6);\n matiere_eleveseq6.setMatieres(m);\n noteSeq6Facade.create(matiere_eleveseq6);\n }\n if (!notetrim3Facade.existEleve_et_sa_matiere(eleve.getMatriculeeleve(), m.getCodematiere())) {\n matiere_elevetrim3 = new Notesdeselevestrim3();\n Notesdeselevestrim3PK notetrim3 = new Notesdeselevestrim3PK(eleve.getMatriculeeleve(), m.getCodematiere());\n matiere_elevetrim3.setNotesdeselevestrim3PK(notetrim3);\n matiere_elevetrim3.setMatieres(m);\n notetrim3Facade.create(matiere_elevetrim3);\n }\n if (!noteannFacade.existEleve_et_sa_matiere(eleve.getMatriculeeleve(), m.getCodematiere())) {\n matiere_eleveann = new Notesdeselevesann();\n NotesdeselevesannPK notann = new NotesdeselevesannPK(eleve.getMatriculeeleve(), m.getCodematiere());\n matiere_eleveann.setNotesdeselevesannPK(notann);\n matiere_eleveann.setMatieres(m);\n noteannFacade.create(matiere_eleveann);\n }\n }\n eleveListSeq6.clear();\n eleveListSeq6.addAll(noteSeq6Facade.Eleve_et_sa_matiere(eleve.getMatriculeeleve()));\n matiere_eleveseq6 = new Notesdeselevesseq6();\n }\n return \"saisienotepareleveseq6.xhtml?faces-redirect=true\";\n } else {\n return \"\";\n }\n } else {\n return \"\";\n }\n }",
"@Test\n public void sdf() {\n StringANF anf = new StringANF(\"6996\");\n\n int k = 0;\n for (long i = 15; i > 1; i--)\n for (long j = i; j > 0; j--) {\n final List<Long> vectors = Arrays.asList(i, j);\n if (Canteaut.validateGJB(vectors, 4)) {\n List<Long> uVectors = Canteaut.fillU(vectors);\n// log.info(Canteaut.getBinary(uVectors, 4) + \" \" + Canteaut.getBinary(vectors, 4));\n// log.info(uVectors + \" \" + Canteaut.getBinary(vectors, 4));\n boolean constant = true;\n long ex = anf.getValue(uVectors.get(0)+1);\n for (long l : uVectors)\n if (ex != anf.getValue(l +1 ))\n constant = false;\n if (constant) {\n log.info(\"c: \" + ex + \" \" + Canteaut.getBinary(uVectors, 4) + \" \" + Canteaut.getBinary(vectors, 4));\n\n }\n k++;\n// ScrClass scrClass = new ScrClass(vectors, \"6996\", 0, 4);\n// if (!scrClass.isEmpty())\n// log.info(\"c: 0\"+ scrClass.getBody());\n// scrClass = new ScrClass(vectors, \"6996\", 1, 4);\n// if (!scrClass.isEmpty())\n// log.info(\"c: 1\"+ scrClass.getBody());\n }\n }\n log.info(\"Total GJB is \" + k);\n }",
"public classx1(int rollno, String name, int sub1, int sub2, int sub3, int sub4, int sub5, int sub6) {\r\n\t\tsuper(rollno, name);//calling super class (Student) constructor method to populate the roll number and name of the student\r\n\t\t// populating the marks obtained in each subject.\r\n\t\tthis.sub1 = sub1;\r\n\t\tthis.sub2 = sub2;\r\n\t\tthis.sub3 = sub3;\r\n\t\tthis.sub4 = sub4;\r\n\t\tthis.sub5 = sub5;\r\n\t\tthis.sub6 = sub6;\r\n\t}",
"public String saisiepareleveseq4() {\n if (\"4\".equals(seq)) {\n if (seq != null && classe != null) {\n if ((noteSeq4Facade.listedesMatieresParClasseDeEleve(classe)) != null) {\n List<Matieres> matiereList = matiereFacade.listeMatieresParClasse(classe);\n Iterator i = matiereList.iterator();\n Matieres m;\n while (i.hasNext()) {\n m = (Matieres) i.next();\n if (!noteSeq4Facade.existEleve_et_sa_matiere(eleve.getMatriculeeleve(), m.getCodematiere())) {\n matiere_eleveseq4 = new Notesdeselevesseq4();\n Notesdeselevesseq4PK notseq4 = new Notesdeselevesseq4PK(eleve.getMatriculeeleve(), m.getCodematiere());\n matiere_eleveseq4.setNotesdeselevesseq4PK(notseq4);\n matiere_eleveseq4.setMatieres(m);\n noteSeq4Facade.create(matiere_eleveseq4);\n }\n if (!notetrim2Facade.existEleve_et_sa_matiere(eleve.getMatriculeeleve(), m.getCodematiere())) {\n matiere_elevetrim2 = new Notesdeselevestrim2();\n Notesdeselevestrim2PK notetrim2 = new Notesdeselevestrim2PK(eleve.getMatriculeeleve(), m.getCodematiere());\n matiere_elevetrim2.setNotesdeselevestrim2PK(notetrim2);\n matiere_elevetrim2.setMatieres(m);\n notetrim2Facade.create(matiere_elevetrim2);\n }\n if (!noteannFacade.existEleve_et_sa_matiere(eleve.getMatriculeeleve(), m.getCodematiere())) {\n matiere_eleveann = new Notesdeselevesann();\n NotesdeselevesannPK notann = new NotesdeselevesannPK(eleve.getMatriculeeleve(), m.getCodematiere());\n matiere_eleveann.setNotesdeselevesannPK(notann);\n matiere_eleveann.setMatieres(m);\n noteannFacade.create(matiere_eleveann);\n }\n }\n eleveListSeq4.clear();\n eleveListSeq4.addAll(noteSeq4Facade.Eleve_et_sa_matiere(eleve.getMatriculeeleve()));\n matiere_eleveseq4 = new Notesdeselevesseq4();\n }\n return \"saisienotepareleveseq4.xhtml?faces-redirect=true\";\n } else {\n return \"\";\n }\n } else {\n return \"\";\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the mail server host. | public String getMailServerHost() {
return mailServerHost;
} | [
"Object getMailhost();",
"public String getSmtpHost() {\n\t\treturn _smtpHost;\n\t}",
"public static String getSmtpHost() {\n String value = null;\n try {\n XMLConfiguration xmlConf = new XMLConfiguration(AppConfig.class.getResource(\"/com/pimmanager/configuration/config.xml\"));\n value = xmlConf.getString(\"smtp.host\");\n } catch (ConfigurationException ce) {\n ce.printStackTrace();\n }\n return value;\n }",
"public String getSmtpHostname()\n {\n return smtpConnector.getHostname();\n }",
"public String getSmtpHost() {\n return smtpHost;\n }",
"public static String getSmtpHost() throws ConfigurationException {\n\t\tString result = Configuration.getConfiguration().smtpHost;\n\t\treturn checkProperty(result, \"smtphost\");\n\t}",
"public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }",
"public String getSmtpHostName() {\n return smtpHostName;\n }",
"private static final String HOST() {\n return PropertiesUtil.getContextProperty(\"host\");\n }",
"java.lang.String getHost();",
"public String getMailServer()\n {\n return _mailServer;\n }",
"public String getSmtpHostname() {\n return smtpHostname;\n }",
"public String getHost() {\n return this.getMessageProcessor().getIpAddress().getHostAddress();\n }",
"public String getHost() {\n return getHeaders(\"Host\");\n }",
"public String getHost() {\n return host.getText();\n }",
"public String getHost( ){\n\t\tif( socket == null || socket.getInetAddress() == null ){\n\t\t\treturn null;\n\t\t}\n\t\treturn socket.getInetAddress( ).getHostAddress( );\n\t}",
"public String getHost() {\n return url.getHost();\n }",
"public String getHost() {\n return this.uriBuilder.getHost();\n }",
"public static String hostname() {\n return getInstance().get(\"hostname\");\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets history of all drawings in a List | public List<AllShapes> getHistory() {
return history;
} | [
"public List<Drawing> getChangedDrawings() {\n// Set<String> changedDrawingNames = new HashSet<String>();\n// for (Drawing drawing : _changedDrawings) {\n// changedDrawingNames.add(drawing.getName());\n// }\n return new ArrayList<Drawing>(_changedDrawings);\n }",
"public List<Vector2D> getHistory() {\n return history;\n }",
"public ArrayList<Illness> getHistory()\n {}",
"static synchronized List<Drawing> getAllDrawings() {\r\n return new ArrayList(drawings.values());\r\n }",
"public java.util.List<InvocationMetric> getHistory() {\n return (Collections.unmodifiableList(_history));\n }",
"public void getHistory() {\n List<Map<String, String>> HistoryList = null;\n HistoryList = getData();\n String[] fromwhere = {\"Line\", \"Station\", \"Repair_Time_Start\", \"Repair_Time_Finish\", \"Repair_Duration\"};\n int[] viewwhere = {R.id.Line, R.id.Station, R.id.RepairTimeStart, R.id.RepairTimeFinish, R.id.Duration};\n ABH = new SimpleAdapter(BreakdownHistory.this, HistoryList, R.layout.list_history, fromwhere, viewwhere);\n BreakdownHistory.setAdapter(ABH);\n }",
"public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n // Adding to list\n history.add(glucosedata);\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }",
"public List<Order> getOrderHistory();",
"public List<History> getAllHistories() {\n List<History> result = new ArrayList<>();\n AttractionController attractionController = new AttractionController();\n WatchController watchController = new WatchController();\n this.connector.connect();\n try {\n Statement st = this.connector.getConnection().createStatement();\n String sql = \"SELECT * FROM history\";\n ResultSet rs = st.executeQuery(sql);\n\n while (rs.next()) {\n History history = new History(\n rs.getTimestamp(\"entry_time\"),\n rs.getTimestamp(\"exit_time\"),\n attractionController.getAttractionById(rs.getInt(\"attraction_id\")),\n watchController.getWatchById(rs.getInt(\"watch_id\"))\n );\n history.setId(rs.getInt(\"id\"));\n result.add(history);\n }\n System.out.println(\"Query has been executed\");\n } catch (SQLException e) {\n e.printStackTrace();\n this.connector.closeConnection(null);\n }\n this.connector.closeConnection(null);\n return result;\n }",
"public ArrayList<PlannerHistory> getHistoryList(){\n return historyList;\n }",
"private List<Performance> quizHistory(){\n\t\treturn history;\n\t}",
"public static ArrayList<BattleHistory> getHistory(Client client) {\n ArrayList<BattleHistory> battleHistories = new ArrayList<>();\n try {\n String query = \"select * from history where name='\" + client.getName() + \"';\";\n Config.statement.execute(query);\n ResultSet resultSet = Config.statement.getResultSet();\n\n while (resultSet.next()) {\n String opponentName = resultSet.getString(\"opponent\");\n Date date = resultSet.getDate(\"time\");\n int wonCrowns = resultSet.getInt(\"crowns\");\n int lostCrowns = resultSet.getInt(\"opponent_crowns\");\n BattleHistory.Result result = (resultSet.getBoolean(\"result\") ? BattleHistory.Result.WIN : BattleHistory.Result.LOOSE);\n battleHistories.add(new BattleHistory(opponentName, date, wonCrowns, lostCrowns, result));\n }\n } catch (SQLException throwable) {\n throwable.printStackTrace();\n }\n return battleHistories;\n }",
"public List<OrderHistory> getAllHistories() throws Exception;",
"public List<Point2D> getPositionHistory() {\n return Collections.unmodifiableList(positionHistory);\n }",
"public List<String> getHistory() {\n\t\treturn history;\n\t}",
"public List<String> getFullHistory() {\r\n List<String> result = new ArrayList(numbersHistory);\r\n result.add(value);\r\n return result;\r\n }",
"public List<History> getAllHistory() {\n LogUtils.LOGD_N(LOG_TAG, SQL_GET_ALL_HISTORY_ELEMENTS);\n\n List<History> historys = new ArrayList<History>();\n SQLiteDatabase db = DatabaseManager.getInstance().openDatabase();\n\n Cursor cursor = db.rawQuery(SQL_GET_ALL_HISTORY_ELEMENTS, null);\n // looping through all rows and adding to list\n\n if (cursor.moveToFirst()) {\n do {\n History h = new History();\n h.setId(cursor.getInt(cursor.getColumnIndex(COLUMN_ID)));\n h.setFolder(cursor.getString(cursor.getColumnIndex(COLUMN_FOLDER)));\n h.setFile_number(cursor.getInt(cursor.getColumnIndex(COLUMN_FILE_NUMBER)));\n h.setSize(cursor.getLong(cursor.getColumnIndex(COLUMN_SIZE)));\n try {\n h.setStart_time(Timestamp.valueOf(cursor.getString(cursor.getColumnIndex(COLUMN_START_TIMESTAMP))));\n } catch (Exception e) {\n h.setStart_time(null);\n }\n try {\n h.setEnd_time(Timestamp.valueOf(cursor.getString(cursor.getColumnIndex(COLUMN_END_TIMESTAMP))));\n } catch (Exception e) {\n h.setEnd_time(null);\n }\n historys.add(h);\n } while (cursor.moveToNext());\n }\n cursor.close();\n DatabaseManager.getInstance().closeDatabase();\n\n return historys;\n }",
"public ArrayList<Integer> getPointsHistory() {\n return pointsHistory;\n }",
"public float[] getCountHistory() {\n return countMonitor.getHistory();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to test mirrorTemple | public static void testMirrorTemple()
{
Picture temple = new Picture("temple.jpg");
temple.explore();
temple.mirrorTemple();
temple.explore();
} | [
"public static void testMirrorTemple()\n {\n CollageLab temple = new CollageLab(\"temple.jpg\");\n temple.explore();\n temple.mirrorTemple();\n temple.explore();\n }",
"public static void testMirrorTemple()\n {\n Picture temple = new Picture(\"temple.jpg\");\n temple.explore();\n temple.mirrorTemple();\n temple.explore();\n }",
"public void mirrorTemple(){\r\n //Declare local variables\r\n int mirrorPoint = 276;\r\n Pixel leftPix = null;\r\n Pixel rightPix = null;\r\n \r\n //Loop through all rows, where the temple must be mirrored\r\n for (int y=27;y<97;y++){\r\n for (int x=13; x<mirrorPoint; x++){\r\n leftPix = getPixel(x,y); //get left pixel (good pixel)\r\n //Get right pixel (the mirror location)\r\n rightPix = getPixel(mirrorPoint + (mirrorPoint-x),y);\r\n //Swap the colours\r\n rightPix.setColor(leftPix.getColor());\r\n }\r\n }\r\n }",
"public void testGetObjTemp() {\n System.out.println(\"getObjTemp\");\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n Object expResult = null;\n Object result = instance.getObjTemp();\n assertEquals(expResult, result);\n }",
"public static void testMirrorVertical()\n {\n Picture caterpillar = new Picture(\"caterpillar.jpg\");\n caterpillar.explore();\n caterpillar.mirrorVertical();\n caterpillar.explore();\n }",
"public static void testMirrorVertical()\r\n {\r\n Picture caterpillar = new Picture(\"caterpillar.jpg\");\r\n caterpillar.explore();\r\n caterpillar.mirrorVertical();\r\n caterpillar.explore();\r\n }",
"public static void testMirrorVertical()\n {\n CollageLab caterpillar = new CollageLab(\"caterpillar.jpg\");\n caterpillar.explore();\n caterpillar.mirrorVertical();\n caterpillar.explore();\n }",
"public boolean canMirror() {\n\t\tif (mirrorTime == true) {\n\t\t\tmirrorTime = false;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isMirror(BinaryNode<AnyType> t) \n {\n if(t == null && isEmpty())\n {\n return true; //they are both empty and therefore mirrors of each other\n }\n else if(t == null || isEmpty())\n {\n return false; //only one of the trees are empty, so they are not mirrors\n }\n else\n {\n return isMirror(t, root); //neither tree is empty\n }\n }",
"@Test\n public void testRotatePreviewClockwise() {\n System.out.println(\"rotatePreviewClockwise\");\n BoardView instance = new BoardView();\n instance.rotatePreviewClockwise();\n \n }",
"@Test\n public void totpUnlinkTest() {\n // TODO: test totpUnlink\n }",
"public void testGetObjSwap() {\n System.out.println(\"getObjSwap\");\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n HashMap result = instance.getObjSwap();\n assertNotNull(result);\n }",
"static boolean isMirror(TreeNode root1, TreeNode root2) {\n//\t\tTreePracticeSession.LevelordertraversalLinebyLine(root1);\n\n\t\tTreeNode invertedTreeNode = rotateTree(root2);\n\n\t\treturn isIdentical(root1, invertedTreeNode);\n\t}",
"@Test\n public void unmirrored() {\n Assert.assertEquals('a', MirrorChars.getMirrorChar('a'));\n }",
"@Test\n public void testRotatePreviewCounterClockwise() {\n System.out.println(\"rotatePreviewCounterClockwise\");\n BoardView instance = new BoardView();\n instance.rotatePreviewCounterClockwise();\n \n }",
"public void test() {\r\n\t\tassertEquals(\"cellardoor\", reverseMe(\"roodrallec\"));\r\n\t\tSystem.out.println(reverseMe(\"QcXgW9w4wQd=v?hctaw/moc.ebutuoy\"));\r\n\t}",
"@Test\n public void testUpdateTemperaturaExterna() {\n System.out.println(\"updateTemperaturaExterna\");\n boolean expResult = false;\n CorrerSimulacaoController instance = new CorrerSimulacaoController(sim);\n instance.setupSimulation();\n boolean result = instance.updateTemperaturaExterna();\n assertEquals(expResult, result);\n \n }",
"@Test\n public void testCopyTileTable() throws SQLException, IOException {\n AlterTableUtils.testCopyTileTable(activity, geoPackage);\n }",
"public void testGetObj() {\n System.out.println(\"getObj\");\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n Object expResult = null;\n Object result = instance.getObj();\n assertEquals(expResult, result);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates 'FROM' and the tables with their join expression | protected void generateFromClause( WrqInfo wrqInfo, SQLStatementWithParams sqlStatement ) throws BindingException
{
sqlStatement.append(" FROM ");
WrqBindingSet bs = wrqInfo.getResultingBindingSet();
resolvedBindingSets.addAll(bs.getResolvedBindingSets());
sqlStatement.append(wrqInfo.getSQLSelectWithParams());
} | [
"private String getFrom() {\n String selectSub = getSelectSubquery();\n\n String fromSub = \"from \" + jam.getFromSourceClause(params) + \" as \" + ANALYTICS_TBL_ALIAS + \" \";\n\n String whereSub = getWhereSubquery();\n\n String groupBySub = getGroupBySubquery();\n\n return \"from (\"\n + selectSub\n + fromSub\n + whereSub\n + groupBySub\n + \") as \"\n + ANALYTICS_TBL_ALIAS\n + \" \";\n }",
"public Table getJoinIntoTable();",
"@Override\n\tpublic String generate(String sql, String primaryKey) {\n\t\tsql += \" INNER JOIN \\\"\" + relationTableName + \"\\\" r ON r.\" + targetColumn + \"=e.\" + primaryKey + \" WHERE r.\" + sourceColumn + \"=?\";\n\t\treturn sql;\n\t}",
"FromTableJoin createFromTableJoin();",
"protected void generateFromAndWhere( SQLQueryModel query, List<LogicalTable> usedBusinessTables, LogicalModel model,\n Path path, List<Constraint> conditions, Map<LogicalTable, String> tableAliases,\n Map<Constraint, SqlOpenFormula> constraintFormulaMap, Map<String, Object> parameters,\n boolean genAsPreparedStatement, DatabaseMeta databaseMeta, String locale ) throws PentahoMetadataException {\n\n // Boolean delayConditionOnOuterJoin = null;\n // Object val = null;\n // FROM TABLES\n for ( int i = 0; i < usedBusinessTables.size(); i++ ) {\n LogicalTable businessTable = usedBusinessTables.get( i );\n String schemaName = null;\n if ( businessTable.getProperty( SqlPhysicalTable.TARGET_SCHEMA ) != null ) {\n schemaName = databaseMeta.quoteField( (String) businessTable.getProperty( SqlPhysicalTable.TARGET_SCHEMA ) );\n }\n // ToDo: Allow table-level override of delaying conditions.\n // val = businessTable.getProperty(\"delay_table_outer_join_conditions\");\n // if ( (val != null) && (val instanceof Boolean) ) {\n // delayConditionOnOuterJoin = (Boolean)val;\n // } else {\n // delayConditionOnOuterJoin = null;\n // }\n\n // This code allows subselects to drive the physical model.\n // TODO: make this key off a metadata flag vs. the\n // beginning of the table name.\n\n String tableName = (String) businessTable.getProperty( SqlPhysicalTable.TARGET_TABLE );\n TargetTableType type = (TargetTableType) businessTable.getProperty( SqlPhysicalTable.TARGET_TABLE_TYPE );\n if ( type == TargetTableType.INLINE_SQL ) {\n tableName = \"(\" + tableName + \")\"; //$NON-NLS-1$ //$NON-NLS-2$\n } else {\n tableName = databaseMeta.getQuotedSchemaTableCombination( schemaName, tableName );\n }\n query.addTable( tableName, databaseMeta.quoteField( tableAliases.get( businessTable ) ) );\n }\n\n // JOIN CONDITIONS\n if ( path != null ) {\n for ( int i = 0; i < path.size(); i++ ) {\n LogicalRelationship relation = path.getRelationship( i );\n String joinFormula =\n getJoin( model, relation, tableAliases, parameters, genAsPreparedStatement, databaseMeta, locale );\n String joinOrderKey = relation.getJoinOrderKey();\n JoinType joinType;\n switch ( RelationshipType.getJoinType( relation.getRelationshipType() ) ) {\n case LEFT_OUTER:\n joinType = JoinType.LEFT_OUTER_JOIN;\n break;\n case RIGHT_OUTER:\n joinType = JoinType.RIGHT_OUTER_JOIN;\n break;\n case FULL_OUTER:\n joinType = JoinType.FULL_OUTER_JOIN;\n break;\n default:\n joinType = JoinType.INNER_JOIN;\n break;\n }\n\n String leftTableName =\n databaseMeta.getQuotedSchemaTableCombination( (String) relation.getFromTable().getProperty(\n SqlPhysicalTable.TARGET_SCHEMA ), (String) relation.getFromTable().getProperty(\n SqlPhysicalTable.TARGET_TABLE ) );\n String leftTableAlias = databaseMeta.quoteField( tableAliases.get( relation.getFromTable() ) );\n String rightTableName =\n databaseMeta.getQuotedSchemaTableCombination( (String) relation.getToTable().getProperty(\n SqlPhysicalTable.TARGET_SCHEMA ), (String) relation.getToTable().getProperty(\n SqlPhysicalTable.TARGET_TABLE ) );\n String rightTableAlias = databaseMeta.quoteField( tableAliases.get( relation.getToTable() ) );\n\n boolean legacyJoin = Boolean.TRUE.equals( model.getProperty( LEGACY_JOIN_ORDER ) );\n query.addJoin( leftTableName, leftTableAlias, rightTableName, rightTableAlias, joinType, joinFormula,\n joinOrderKey, legacyJoin );\n // query.addWhereFormula(joinFormula, \"AND\"); //$NON-NLS-1$\n }\n }\n\n // WHERE CONDITIONS\n if ( conditions != null ) {\n boolean first = true;\n for ( Constraint condition : conditions ) {\n SqlOpenFormula formula = constraintFormulaMap.get( condition );\n\n // Configure formula to use table aliases.\n formula.setTableAliases( tableAliases );\n\n // The ones with aggregates in it are for the HAVING clause.\n if ( !formula.hasAggregate() ) {\n\n String sqlFormula = formula.generateSQL( locale );\n String[] usedTables = formula.getLogicalTableIDs();\n query.addWhereFormula( sqlFormula, condition.getCombinationType().toString(), usedTables );\n first = false;\n } else {\n query.addHavingFormula( formula.generateSQL( locale ), condition.getCombinationType().toString() );\n }\n }\n }\n }",
"private static void selectJoin(){\r\n System.out.println(\"JOIN - obteniendo los datos de una base de datos en cloud\");\r\n //nombre de las tablas para hacer join\r\n ArrayList<Map<String,String>> result=BasicDao.select(new String[]{\"testtable2\",\"testtable\"},new String[]{\"*\"},new String[]{\"table1_id\",\"table_id\"}, null);\r\n Set<String> colsNameSet;\r\n \r\n for(Map<String,String> row :result){\r\n colsNameSet=row.keySet();\r\n for(String colName: colsNameSet)\r\n System.out.println(colName+\" - \"+row.get(colName)); \r\n } \r\n /**/\r\n }",
"protected Expression buildBSRJoinQuery() {\n try {\n final InputStream input = ResourceUtil.getResourceAsStream(QUERY_FILE);\n final QueryExpression query = QueryExpressionParser.parse(input);\n return query.toExpression(new ReferenceTable(catalog));\n } catch (final Exception e) {\n throw new RuntimeException(e);\n }\n }",
"List<Join> getJoins();",
"public String getHqlJoinString(String rootKey, String entityKey) {\n ArrayList<String> joinTables = new ArrayList<>();\n for (FieldDefinition definition : this.fieldDefinitions) {\n joinTables.addAll(this.getHqlJoinParts(rootKey, definition));\n }\n if (!joinTables.isEmpty()) {\n String joinString = \" LEFT JOIN \";\n StringJoiner s = new StringJoiner(joinString);\n for (String table : joinTables) {\n s.add(table);\n }\n return joinString + s.toString();\n }\n return \"\";\n }",
"public void testMember(){\n\r\n parser.sqltext = \"select f from t1\";\r\n assertTrue(parser.parse() == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getKind() == TBaseType.join_source_fake );\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().toString().compareToIgnoreCase(\"t1\") == 0);\r\n\r\n parser.sqltext = \"select f from t as t1 join t2 on t1.f1 = t2.f1\";\r\n assertTrue(parser.parse() == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getKind() == TBaseType.join_source_table );\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().toString().compareToIgnoreCase(\"t\") == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().getAliasClause().toString().compareToIgnoreCase(\"t1\") == 0);\r\n\r\n\r\n parser.sqltext = \"select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1 ) as a_join join b on a_join.f1 = b.f1;\";\r\n assertTrue(parser.parse() == 0);\r\n TJoin lcJoin = parser.sqlstatements.get(0).joins.getJoin(0);\r\n //System.out.println(lcJoin.getKind());\r\n assertTrue(lcJoin.getKind() == TBaseType.join_source_join );\r\n\r\n assertTrue(lcJoin.getJoin().toString().compareToIgnoreCase(\"(a as a_alias left join a1 on a1.f1 = a_alias.f1 )\") == 0);\r\n assertTrue(lcJoin.getJoin().getAliasClause().toString().compareToIgnoreCase(\"a_join\") == 0);\r\n assertTrue(lcJoin.getJoin().getJoinItems().getJoinItem(0).getJoinType() == EJoinType.left);\r\n\r\n assertTrue(lcJoin.getJoinItems().getJoinItem(0).getJoinType() == EJoinType.join);\r\n\r\n parser.sqltext = \"select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1 ) as a_join\";\r\n assertTrue(parser.parse() == 0);\r\n TJoin lcJoin1 = parser.sqlstatements.get(0).joins.getJoin(0);\r\n assertTrue(lcJoin1.getKind() == TBaseType.join_source_join );\r\n assertTrue(lcJoin1.getJoin().toString().compareToIgnoreCase(\"(a as a_alias left join a1 on a1.f1 = a_alias.f1 )\") == 0);\r\n assertTrue(lcJoin1.getJoin().getAliasClause().toString().compareToIgnoreCase(\"a_join\") == 0);\r\n\r\n }",
"protected String getJoin( LogicalModel businessModel, LogicalRelationship relation,\n Map<LogicalTable, String> tableAliases, Map<String, Object> parameters, boolean genAsPreparedStatement,\n DatabaseMeta databaseMeta, String locale ) throws PentahoMetadataException {\n String join = \"\"; //$NON-NLS-1$\n if ( relation.isComplex() ) {\n try {\n // parse join as MQL\n SqlOpenFormula formula =\n new SqlOpenFormula( businessModel, databaseMeta, relation.getComplexJoin(), tableAliases, parameters,\n genAsPreparedStatement );\n formula.parseAndValidate();\n join = formula.generateSQL( locale );\n } catch ( PentahoMetadataException e ) {\n // backward compatibility, deprecate\n // FIXME: we need to get rid of this and just throw an exception\n logger.warn( Messages.getErrorString(\n \"SqlGenerator.ERROR_0017_FAILED_TO_PARSE_COMPLEX_JOIN\", relation.getComplexJoin() ), e ); //$NON-NLS-1$\n join = relation.getComplexJoin();\n }\n } else if ( relation.getFromTable() != null && relation.getToTable() != null && relation.getFromColumn() != null\n && relation.getToColumn() != null ) {\n // Left side\n String leftTableAlias = null;\n if ( tableAliases != null ) {\n leftTableAlias = tableAliases.get( relation.getFromColumn().getLogicalTable() );\n } else {\n leftTableAlias = relation.getFromColumn().getLogicalTable().getId();\n }\n\n join = databaseMeta.quoteField( leftTableAlias );\n join += \".\"; //$NON-NLS-1$\n join +=\n databaseMeta.quoteField( (String) relation.getFromColumn().getProperty( SqlPhysicalColumn.TARGET_COLUMN ) );\n\n // Equals\n join += \" = \"; //$NON-NLS-1$\n\n // Right side\n String rightTableAlias = null;\n if ( tableAliases != null ) {\n rightTableAlias = tableAliases.get( relation.getToColumn().getLogicalTable() );\n } else {\n rightTableAlias = relation.getToColumn().getLogicalTable().getId();\n }\n\n join += databaseMeta.quoteField( rightTableAlias );\n join += \".\"; //$NON-NLS-1$\n join += databaseMeta.quoteField( (String) relation.getToColumn().getProperty( SqlPhysicalColumn.TARGET_COLUMN ) );\n } else {\n throw new PentahoMetadataException( Messages.getErrorString(\n \"SqlGenerator.ERROR_0003_INVALID_RELATION\", relation.toString() ) ); //$NON-NLS-1$\n }\n\n return join;\n }",
"@Test\n public void testMixedJoin2() throws Exception {\n String sql = \"SELECT * FROM g1 cross join (g2 cross join g3), g4, g5 cross join g6\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, 1, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n \n Node jpNode2 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n \n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"g4\");\n\n Node jpNode3 = verify(fromNode, From.CLAUSES_REF_NAME, 3, JoinPredicate.ID);\n verifyJoin(jpNode3, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g5\");\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g6\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN (g2 CROSS JOIN g3), g4, g5 CROSS JOIN g6\", fileNode);\n }",
"private static SQLJoinDTO getJoinStr(List<FeaturegroupDTO> featuregroupDTOS, String joinKey) {\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = 1; i < featuregroupDTOS.size(); i++) {\n stringBuilder.append(\"JOIN \" + getTableName(featuregroupDTOS.get(i).getName(),\n featuregroupDTOS.get(i).getVersion()));\n stringBuilder.append(\" \");\n }\n stringBuilder.append(\"ON \");\n for (int i = 0; i < featuregroupDTOS.size(); i++) {\n if (i != 0 && i < (featuregroupDTOS.size() - 1)) {\n stringBuilder.append(getTableName(featuregroupDTOS.get(0).getName(), featuregroupDTOS.get(0).getVersion()));\n stringBuilder.append(\".`\");\n stringBuilder.append(joinKey);\n stringBuilder.append(\"`=\");\n stringBuilder.append(getTableName(featuregroupDTOS.get(i).getName(), featuregroupDTOS.get(i).getVersion()));\n stringBuilder.append(\".`\");\n stringBuilder.append(joinKey);\n stringBuilder.append(\"` AND \");\n }\n if (i != 0 && i == (featuregroupDTOS.size() - 1)) {\n stringBuilder.append(\n getTableName(featuregroupDTOS.get(0).getName(), featuregroupDTOS.get(0).getVersion()));\n stringBuilder.append(\".`\");\n stringBuilder.append(joinKey);\n stringBuilder.append(\"`=\");\n stringBuilder.append(getTableName(featuregroupDTOS.get(i).getName(), featuregroupDTOS.get(i).getVersion()));\n stringBuilder.append(\".`\");\n stringBuilder.append(joinKey);\n stringBuilder.append(\"`\");\n }\n }\n return new SQLJoinDTO(stringBuilder.toString(), featuregroupDTOS);\n }",
"@Test\n public void testRightOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG right outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_RIGHT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG RIGHT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }",
"Join createJoin();",
"private void buildJoinTableMetadata() {\n\t\tfinal Table joinDef = SqlResourceDefinitionUtils.getTable(definition,\n\t\t\t\tTableRole.Join);\n\t\tif (joinDef != null && joinTable == null) {\n\t\t\t// Determine table and database name\n\t\t\tString tableName, databaseName;\n\t\t\tfinal String possiblyQualifiedTableName = joinDef.getName();\n\t\t\tfinal int dotIndex = possiblyQualifiedTableName.indexOf('.');\n\t\t\tif (dotIndex > 0) {\n\t\t\t\ttableName = possiblyQualifiedTableName.substring(0, dotIndex);\n\t\t\t\tdatabaseName = possiblyQualifiedTableName\n\t\t\t\t\t\t.substring(dotIndex + 1);\n\t\t\t} else {\n\t\t\t\ttableName = possiblyQualifiedTableName;\n\t\t\t\tdatabaseName = SqlResourceDefinitionUtils\n\t\t\t\t\t\t.getDefaultDatabase(definition);\n\t\t\t}\n\n\t\t\tfinal String qualifiedTableName = getQualifiedTableName(\n\t\t\t\t\tdatabaseName, tableName);\n\n\t\t\t// Create table and add to special lists\n\t\t\tjoinTable = new TableMetaDataImpl(tableName, qualifiedTableName,\n\t\t\t\t\tdatabaseName, TableRole.Join);\n\t\t\ttableMap.put(joinTable.getQualifiedTableName(), joinTable);\n\t\t\ttables.add(joinTable);\n\t\t\tjoinList = new ArrayList<TableMetaData>(1);\n\t\t\tjoinList.add(joinTable);\n\n\t\t\t// Execute metadata query and populate metadata structure\n\n\t\t\tSqlRowSet resultSet = null;\n\n\t\t\tresultSet = this.jdbcTemplate.queryForRowSet(getSqlColumnsQuery(),\n\t\t\t\t\tdatabaseName, tableName);\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tfinal String columnName = resultSet.getString(1);\n\t\t\t\tfinal ColumnMetaDataImpl column = new ColumnMetaDataImpl(\n\t\t\t\t\t\tdatabaseName, qualifiedTableName, tableName,\n\t\t\t\t\t\tTableRole.Join, columnName, columnName,\n\t\t\t\t\t\tresultSet.getString(2), this);\n\t\t\t\t((TableMetaDataImpl) joinTable).addColumn(column);\n\t\t\t}\n\n\t\t}\n\t}",
"@Test\n public void testCrossJoin() throws Exception {\n String sql = \"SELECT * FROM g1 cross join g2\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g2\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN g2\", fileNode);\n }",
"private void appendJoinStatement(JoinStage left,\n JoinStage right) {\n String joinType;\n\n if (left.isRequired() && right.isRequired()) {\n joinType = \"INNER\";\n } else if (left.isRequired() && !right.isRequired()) {\n joinType = \"LEFT OUTER\";\n } else if (!left.isRequired() && right.isRequired()) {\n joinType = \"RIGHT OUTER\";\n } else {\n joinType = \"FULL OUTER\";\n }\n\n // ... <join_type> JOIN <right_table> ON ...\n builder.append(joinType);\n builder.append(JOIN);\n appendFullTableNameAndAlias(right.getStageName());\n builder.append(ON);\n }",
"@Test\n public void testFullOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG full outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_FULL_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG FULL OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ location(int) is the location_counter's current value isdw(boolean)is true if the range to be checked has to be changed from the default value returns true if the location is OUT OF RANGE else returns false | private static boolean Range(int location, boolean isdw) {
int lowl, highl;
if (isdw) {
lowl = 111;
highl = 127;
} else {
lowl = 0;
highl = 110;
}
if (location >= lowl && location <= highl)
return false;
else
return true;
} | [
"boolean isRanged();",
"private boolean inBounds(Location loc)\n {\n int row = loc.getRow();\n int col = loc.getCol();\n return (row < 8 && row >= 0 && col < 8 && col >= 0);\n }",
"boolean hasDestRange();",
"@Override\n public boolean isRange() {\n return true;\n }",
"private boolean isInRange(int a, int b, int c) {\n return c >= a ;\n }",
"private boolean checkRangeAddress(int address) {\r\n return (address >= startAddress && address < endAddress);\r\n }",
"boolean isValidRangeAppliesToCalibrated();",
"boolean X_Out_Of_Bounds(){\n \n if (X_Position + Width + X_Movement > Tilesize*20 || X_Position + X_Movement < 0)\n {\n \treturn true; // can't go out of bounds\n }\n return false;\n }",
"boolean hasVisibleRange();",
"boolean inRange(Posn pos);",
"boolean hasRangeExpectation();",
"private static boolean checkInRange(double start, double stop, double target) {\n return target >= start && target <= stop;\n }",
"int getTrackingRange();",
"boolean Y_Out_Of_Bounds(){\n \n if (Y_Position + Width + Y_Movement > Tilesize*15 || Y_Position + Y_Movement < 0)\n {\n \treturn true; // can't go out of bounds\n }\n return false;\n }",
"public boolean hasValueOverRange(Register reg, BigInteger value, AddressSetView addrSet);",
"private boolean checkWeightRange(String value){\n if(TextUtils.isEmpty(value))\n return false;\n else{\n return Utils.isWithinRange(15,180,value);\n }\n }",
"public int getLongitudeRange();",
"private void checkRanges(float [] obj_pos){\n //Euclidean distance\n float distance = (float)Math.sqrt(((obj_pos[0]-x)*(obj_pos[0]-x)) + ((obj_pos[1]-y)*(obj_pos[1]-y)) +\n ((obj_pos[2]-z)*(obj_pos[2]-z)));\n if (distance <= mining_range){\n addBelief(\"within_range(Asteroid)\");\n\n }\n }",
"boolean hasBarRange();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Put a long value (padded) in a byte array at a specific offset. | public static void putLong(long value, byte[] array, int offset) {
array[offset] = (byte) (0xff & (value >>> 56));
array[offset + 1] = (byte) (0xff & (value >>> 48));
array[offset + 2] = (byte) (0xff & (value >>> 40));
array[offset + 3] = (byte) (0xff & (value >>> 32));
array[offset + 4] = (byte) (0xff & (value >>> 24));
array[offset + 5] = (byte) (0xff & (value >>> 16));
array[offset + 6] = (byte) (0xff & (value >>> 8));
array[offset + 7] = (byte) (0xff & value);
} | [
"public static int putLong(byte[] bytes, int offset, long val) {\n if (bytes.length - offset < SIZEOF_LONG) {\n throw new IllegalArgumentException(\"Not enough room to put a long at\"\n + \" offset \" + offset + \" in a \" + bytes.length + \" byte array\");\n }\n\n for(int i = offset + 7; i > offset; i--) {\n bytes[i] = (byte) val;\n val >>>= 8;\n }\n bytes[offset] = (byte) val;\n return offset + SIZEOF_LONG;\n\n }",
"public void\n putLongAt( long value, int offset )\n {\n putIntAt( (int) (value >> 32), offset );\n putIntAt( (int) (value), offset + 4 );\n }",
"BigByteBuffer putLong(long[] src);",
"public void writeLong(long value, long offset) throws IOException {\n\t\tByteBuffer buf = ByteBuffer.allocate(8);\n\t\tbuf.putLong(0, value);\n\t\twrite(buf, offset);\n\t}",
"BigByteBuffer putLong(long value);",
"public Buffer putLong(int index, long value);",
"public static void uint64ToByteArrayLE(long val, byte[] out, int offset) {\n out[offset] = (byte) (0xFF & val);\n out[offset + 1] = (byte) (0xFF & (val >> 8));\n out[offset + 2] = (byte) (0xFF & (val >> 16));\n out[offset + 3] = (byte) (0xFF & (val >> 24));\n out[offset + 4] = (byte) (0xFF & (val >> 32));\n out[offset + 5] = (byte) (0xFF & (val >> 40));\n out[offset + 6] = (byte) (0xFF & (val >> 48));\n out[offset + 7] = (byte) (0xFF & (val >> 56));\n }",
"public static int writeLELong( byte[] b, int off, long val ) {\n\n b[off + 0] = (byte) ( ( val ) & 0xff );\n b[off + 1] = (byte) ( ( val >> 8 ) & 0xff );\n b[off + 2] = (byte) ( ( val >> 16 ) & 0xff );\n b[off + 3] = (byte) ( ( val >> 24 ) & 0xff );\n b[off + 4] = (byte) ( ( val >> 32 ) & 0xff );\n b[off + 5] = (byte) ( ( val >> 40 ) & 0xff );\n b[off + 6] = (byte) ( ( val >> 48 ) & 0xff );\n b[off + 7] = (byte) ( ( val >> 56 ) & 0xff );\n\n return 8;\n\n }",
"public Buffer putLong(long value);",
"void writeLongs(long[] l, int off, int len) throws IOException;",
"public static final long BuildLongBE(byte bytevec[], int offset) {\n return (((long) signedToInt(bytevec[0 + offset]) << 56) | ((long) signedToInt(bytevec[1 + offset]) << 48)\n | ((long) signedToInt(bytevec[2 + offset]) << 40) | ((long) signedToInt(bytevec[3 + offset]) << 32)\n | ((long) signedToInt(bytevec[4 + offset]) << 24) | ((long) signedToInt(bytevec[5 + offset]) << 16)\n | ((long) signedToInt(bytevec[6 + offset]) << 8) | (signedToInt(bytevec[7 + offset])));\n }",
"public void writeLongs(long[] l) throws IOException;",
"public void writeLongs(long[] l, int length) throws IOException;",
"public void setByteoffset(long value) {\n this.byteoffset = value;\n }",
"public void writeVarLong(long l) throws IOException;",
"void appendLong(long value);",
"public static final long BuildLongLE(byte bytevec[], int offset) {\n return (((long) signedToInt(bytevec[7 + offset]) << 56) | ((long) signedToInt(bytevec[6 + offset]) << 48)\n | ((long) signedToInt(bytevec[5 + offset]) << 40) | ((long) signedToInt(bytevec[4 + offset]) << 32)\n | ((long) signedToInt(bytevec[3 + offset]) << 24) | ((long) signedToInt(bytevec[2 + offset]) << 16)\n | ((long) signedToInt(bytevec[1 + offset]) << 8) | (signedToInt(bytevec[0 + offset])));\n }",
"void writeLong(long value);",
"private static int formatUnsignedLong(long val, int shift, char[] buf, int offset, int len) {\n int charPos = len;\n int radix = 1 << shift;\n int mask = radix - 1;\n do {\n buf[offset + --charPos] = digits[((int) val) & mask];\n val >>>= shift;\n } while (val != 0 && charPos > 0);\n\n return charPos;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Anonymous Definition'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseAnonymousDefinition(AnonymousDefinition object)
{
return null;
} | [
"public T casePrimitiveAnonymousDefinition(PrimitiveAnonymousDefinition object)\n {\n return null;\n }",
"public T caseCompositeAnonymousDefinition(CompositeAnonymousDefinition object)\n {\n return null;\n }",
"public T caseDefinition(Definition object)\n {\n return null;\n }",
"public T caseAnonymousClassDeclaration(AnonymousClassDeclaration object) {\n\t\treturn null;\n\t}",
"public T caseTypeDefinition(TypeDefinition object)\n {\n return null;\n }",
"public void testAnonymousType() throws JavaModelException {\n\t\tASTNode node = buildAST(\n\t\t\t\"public class X {\\n\" +\n\t\t\t\" Object foo() {\\n\" +\n\t\t\t\" return new Object() /*start*/{\\n\" +\n\t\t\t\" }/*end*/;\\n\" +\n\t\t\t\" }\\n\" +\n\t\t\t\"}\"\n\t\t);\n\t\tIBinding binding = ((AnonymousClassDeclaration) node).resolveBinding();\n\t\tassertNotNull(\"No binding\", binding);\n\t\tIJavaElement element = binding.getJavaElement();\n\t\tassertElementEquals(\n\t\t\t\"Unexpected Java element\",\n\t\t\t\"<anonymous #1> [in foo() [in X [in [Working copy] X.java [in <default> [in <project root> [in P]]]]]]\",\n\t\t\telement\n\t\t);\n\t\tassertTrue(\"Element should exist\", element.exists());\n\t}",
"public T caseDeclaration(Declaration object)\n {\n return null;\n }",
"public T caseTypeDefinition(TypeDefinition object) {\n\t\treturn null;\n\t}",
"public T caseIdentifierDefinition(IdentifierDefinition object) {\n\t\treturn null;\n\t}",
"public T caseDeclaration(Declaration object) {\r\n\t\treturn null;\r\n\t}",
"public T caseObjectDefinition(ObjectDefinition object) {\n\t\treturn null;\n\t}",
"public T caseSyntaxDefinition(SyntaxDefinition object)\n {\n return null;\n }",
"public T casePrimitiveDefinition(PrimitiveDefinition object)\n {\n return null;\n }",
"public T caseFDefinition(FDefinition object)\n {\n return null;\n }",
"public T caseTypeDeclaration(TypeDeclaration object)\n {\n return null;\n }",
"public T caseVariableDefinition(VariableDefinition object) {\r\n\t\treturn null;\r\n\t}",
"public T caseVariableDeclarationFragment(VariableDeclarationFragment object) {\n\t\treturn null;\n\t}",
"public NameTransformation getAnonymousTypeName();",
"public T caseAliasDef(AliasDef object) {\n\t\treturn null;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new DeviceInfo RecordBuilder by copying an existing Builder. | public static export.serializers.avro.DeviceInfo.Builder newBuilder(export.serializers.avro.DeviceInfo.Builder other) {
return new export.serializers.avro.DeviceInfo.Builder(other);
} | [
"public static export.serializers.avro.DeviceInfo.Builder newBuilder(export.serializers.avro.DeviceInfo other) {\n return new export.serializers.avro.DeviceInfo.Builder(other);\n }",
"public static export.serializers.avro.DeviceInfo.Builder newBuilder() {\n return new export.serializers.avro.DeviceInfo.Builder();\n }",
"private Builder(export.serializers.avro.DeviceInfo other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.site)) {\n this.site = data().deepCopy(fields()[0].schema(), other.site);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.service)) {\n this.service = data().deepCopy(fields()[1].schema(), other.service);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.sector)) {\n this.sector = data().deepCopy(fields()[2].schema(), other.sector);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.room)) {\n this.room = data().deepCopy(fields()[3].schema(), other.room);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.alias)) {\n this.alias = data().deepCopy(fields()[4].schema(), other.alias);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.serialPort)) {\n this.serialPort = data().deepCopy(fields()[5].schema(), other.serialPort);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.driver)) {\n this.driver = data().deepCopy(fields()[6].schema(), other.driver);\n fieldSetFlags()[6] = true;\n }\n }",
"private DeviceInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static DeviceIdentifierBuilder builder() {\n return new DeviceIdentifierBuilder();\n }",
"public static com.iot.data.schema.DevInfoContextData.Builder newBuilder(com.iot.data.schema.DevInfoContextData.Builder other) {\n return new com.iot.data.schema.DevInfoContextData.Builder(other);\n }",
"public static iodine.avro.TapRecord.Builder newBuilder(iodine.avro.TapRecord.Builder other) {\n return new iodine.avro.TapRecord.Builder(other);\n }",
"private DeviceInfos(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private Builder(com.iot.data.schema.DevInfoContextData other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.appBuild)) {\n this.appBuild = data().deepCopy(fields()[0].schema(), other.appBuild);\n fieldSetFlags()[0] = true;\n }\n this.appBuildBuilder = null;\n if (isValidValue(fields()[1], other.device)) {\n this.device = data().deepCopy(fields()[1].schema(), other.device);\n fieldSetFlags()[1] = true;\n }\n this.deviceBuilder = null;\n if (isValidValue(fields()[2], other.locale)) {\n this.locale = data().deepCopy(fields()[2].schema(), other.locale);\n fieldSetFlags()[2] = true;\n }\n this.localeBuilder = null;\n if (isValidValue(fields()[3], other.location)) {\n this.location = data().deepCopy(fields()[3].schema(), other.location);\n fieldSetFlags()[3] = true;\n }\n this.locationBuilder = null;\n if (isValidValue(fields()[4], other.telephone)) {\n this.telephone = data().deepCopy(fields()[4].schema(), other.telephone);\n fieldSetFlags()[4] = true;\n }\n this.telephoneBuilder = null;\n if (isValidValue(fields()[5], other.wifi)) {\n this.wifi = data().deepCopy(fields()[5].schema(), other.wifi);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.bluetoothInfo)) {\n this.bluetoothInfo = data().deepCopy(fields()[6].schema(), other.bluetoothInfo);\n fieldSetFlags()[6] = true;\n }\n this.bluetoothInfoBuilder = null;\n if (isValidValue(fields()[7], other.availableMemoryInfo)) {\n this.availableMemoryInfo = data().deepCopy(fields()[7].schema(), other.availableMemoryInfo);\n fieldSetFlags()[7] = true;\n }\n this.availableMemoryInfoBuilder = null;\n if (isValidValue(fields()[8], other.cpuInfo)) {\n this.cpuInfo = data().deepCopy(fields()[8].schema(), other.cpuInfo);\n fieldSetFlags()[8] = true;\n }\n this.cpuInfoBuilder = null;\n if (isValidValue(fields()[9], other.USER_AGENT_ACTION)) {\n this.USER_AGENT_ACTION = data().deepCopy(fields()[9].schema(), other.USER_AGENT_ACTION);\n fieldSetFlags()[9] = true;\n }\n this.USER_AGENT_ACTIONBuilder = null;\n }",
"public com.iot.data.schema.DevInfoContextData.Builder setBluetoothInfoBuilder(com.iot.data.schema.BluetoothInfoData.Builder value) {\n clearBluetoothInfo();\n bluetoothInfoBuilder = value;\n return this;\n }",
"private Builder(com.luisjrz96.streaming.birthsgenerator.models.BirthInfo other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.name)) {\n this.name = data().deepCopy(fields()[0].schema(), other.name);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.lastName)) {\n this.lastName = data().deepCopy(fields()[1].schema(), other.lastName);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.country)) {\n this.country = data().deepCopy(fields()[2].schema(), other.country);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.gender)) {\n this.gender = data().deepCopy(fields()[4].schema(), other.gender);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.date)) {\n this.date = data().deepCopy(fields()[5].schema(), other.date);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.height)) {\n this.height = data().deepCopy(fields()[6].schema(), other.height);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.weight)) {\n this.weight = data().deepCopy(fields()[7].schema(), other.weight);\n fieldSetFlags()[7] = true;\n }\n }",
"private CreateDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private DebugInfo(Builder builder) {\n super(builder);\n }",
"private RecordDetailsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private DeviceConfigurationProto(Builder builder) {\n super(builder);\n }",
"public static com.iot.data.schema.DevInfoContextData.Builder newBuilder() {\n return new com.iot.data.schema.DevInfoContextData.Builder();\n }",
"private CreateDeviceMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public POGOProtos.Rpc.GetFriendDetailsOutProto.DebugProto.Builder getFriendDetailsDebugInfoBuilder() {\n \n onChanged();\n return getFriendDetailsDebugInfoFieldBuilder().getBuilder();\n }",
"private Builder(iodine.avro.TapRecord other) {\n super(iodine.avro.TapRecord.SCHEMA$);\n if (isValidValue(fields()[0], other.bm_space_id)) {\n this.bm_space_id = data().deepCopy(fields()[0].schema(), other.bm_space_id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.tap_interface)) {\n this.tap_interface = data().deepCopy(fields()[1].schema(), other.tap_interface);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.tap_host)) {\n this.tap_host = data().deepCopy(fields()[2].schema(), other.tap_host);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.tap_interval)) {\n this.tap_interval = data().deepCopy(fields()[3].schema(), other.tap_interval);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.tap_time)) {\n this.tap_time = data().deepCopy(fields()[4].schema(), other.tap_time);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.tap_data)) {\n this.tap_data = data().deepCopy(fields()[5].schema(), other.tap_data);\n fieldSetFlags()[5] = true;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return new Result(200, "success", "hello,this is imooc"); | @RequestMapping("/test")
@ResponseBody
public Result<String> test() {
return Result.success("hello this imooc");
} | [
"Wrapper() {\n this(ResponseType.SUCCESS,\"\");\n }",
"public Response hello() {\n \t\t\n \t\treturn new StreamingResponse(\"text/xml\", \"<a f=\\\"\" + this.parameters.get(\"y\") + \"\\\" />\");\n \t}",
"@Override\n public void onResponseSuccess(final String resp) {\n }",
"java.lang.String getResult();",
"public Result() {\n\n }",
"@GET\r\n @Produces(MediaType.TEXT_PLAIN)\r\n public String getIt() {\r\n return \"Got it!\";\r\n }",
"Response createResponse();",
"public interface Response {\n\tpublic String response(Parse p, HashMap<String,Object> context);\n\t\n}",
"public SuccessResponse() {\r\n super(HttpStatus.OK, \"Successfully processed the request.\");\r\n }",
"@GET\n @Produces(MediaType.TEXT_PLAIN)\n public String getIt() {\n return \"Got it!\";\n }",
"@Override\n public String success(){\n return \"You have succesfully opened the door!!!\";\n }",
"public ActionReturn(String msg) {\r\n this.error = OK;\r\n this.msg = msg;\r\n }",
"public void setResult (String Result);",
"public HtmlResult()\n {\n\n }",
"String getResponse();",
"private static Response process(Object result) {\n if (result == null) return Response.serverError().build();\n if (result instanceof Response.Status) return Response.status((Response.Status) result).build();\n return Response.ok(result).build();\n }",
"public interface AjaxTextResult extends AjaxResult\n{\n /**\n * Gets the string representation of the rendered action result.\n *\n * @return string representation of rendered action\n */\n String getText();\n}",
"public PersonResult(String message){\n super(message);\n }",
"public EventResult(String result) {\n\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the search is completed, for situations where there is some final processing to do. | public void FinishedSearch(); | [
"void searchingFinished(boolean interrupted);",
"void searchThreadFinished(CardFinder finder, CardSearchResultSet results);",
"abstract SearchNode finish();",
"public synchronized void batchProcessComplete() {\n processed.clear();\n LOGGER.info(\"Completed \" + entityCount + \" documents\");\n }",
"protected void finished(){\n if (doFilterUpdate) {\n //runFilterUpdates();\n }\n \n double groupTotalTimeSecs = (System.currentTimeMillis() - (double) groupStartTime) / 1000;\n log.info(\"Job \"+id+\" finished \" /*+ parsedType*/ + \" after \"\n + groupTotalTimeSecs + \" seconds\");\n \n ((DistributedTileBreeder)breeder).jobDone(this);\n }",
"protected void onFinished() {\n if (log.isDebugEnabled()) {\n log.debug(\"Finished uploading files\");\n }\n }",
"public void processingComplete();",
"public synchronized void collectionProcessComplete() {\n\n long time = System.currentTimeMillis();\n LOGGER.info(\"Completed \" + entityCount + \" documents\");\n long processingTime = time - mInitCompleteTime;\n LOGGER.info(\"Processing Time: \" + processingTime + \" ms\");\n LOGGER.info(\"\\n\\n ------------------ PERFORMANCE REPORT ------------------\\n\");\n LOGGER.info(cpe.getPerformanceReport().toString());\n System.exit(0);\n }",
"@Override\n public final void onCompleted() {\n hideProgressBar();\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.search_fragment_container, resultsFragment, RESULTS_FRAGMENT_TAG)\n .commit();\n }",
"public void collectionProcessComplete() {\r\n System.out.print(\"Completed \" + entityCount + \" documents\");\r\n if (size > 0) {\r\n System.out.print(\"; \" + size + \" characters\");\r\n }\r\n System.out.println();\r\n long elapsedTime = System.currentTimeMillis() - mStartTime;\r\n System.out.println(\"Time Elapsed : \" + elapsedTime + \" ms \");\r\n \r\n String perfReport = uimaASEngine.getPerformanceReport();\r\n if (perfReport != null) {\r\n System.out.println(\"\\n\\n ------------------ PERFORMANCE REPORT ------------------\\n\");\r\n System.out.println(uimaASEngine.getPerformanceReport());\r\n }\r\n // stop the JVM.\r\n System.exit(1);\r\n }",
"void finishedScan();",
"void cardSearchFinished(Card card, CardResult result, CardFinder finder);",
"public void onChannelSearchFinished();",
"public void batchProcessComplete() {\r\n System.out.print(\"Completed \" + entityCount + \" documents\");\r\n if (size > 0) {\r\n System.out.print(\"; \" + size + \" characters\");\r\n }\r\n System.out.println();\r\n long elapsedTime = System.currentTimeMillis() - mStartTime;\r\n System.out.println(\"Time Elapsed : \" + elapsedTime + \" ms \");\r\n }",
"public void onSearchExit();",
"public void batchProcessComplete() {\n System.out.print(\"Completed \" + entityCount + \" documents\");\n if (size > 0) {\n System.out.print(\"; \" + size + \" characters\");\n }\n System.out.println();\n long elapsedTime = System.currentTimeMillis() - mStartTime;\n System.out.println(\"Time Elapsed : \" + elapsedTime + \" ms \");\n }",
"private void doSearch() {\n doSearch(searchString);\n }",
"@Override\n protected void searchStep() {\n // (1) execute subsearches in parallel\n searches.forEach(s -> futures.add(pool.submit(s)));\n // (2) wait for termination of subsearches\n while (!futures.isEmpty()) {\n try {\n futures.poll().get();\n } catch (InterruptedException | ExecutionException ex) {\n throw new SearchException(\"An error occured during concurrent execution of searches \"\n + \"in basic parallel search.\", ex);\n }\n }\n // (3) stop main search\n stop();\n }",
"protected void notifyScanFinished() {\n for (ScanListener l : listeners) l.scanFinished(contextId);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method returns the value of the database column KMORDER.COUPON_STATEMENT.STATEMENT_NO | public Long getStatementNo() {
return statementNo;
} | [
"public long getNutrientStatementNumber() {\n\t\treturn nutrientStatementNumber;\n\t}",
"public Integer getCno() {\n return cno;\n }",
"public void setStatementNo(Long statementNo) {\r\n this.statementNo = statementNo;\r\n }",
"String getConstraintClauseNumber();",
"private int getC_BankStatementLine_ID() {\n String sql = \"SELECT C_BankStatementLine_ID FROM C_BankStatementLine WHERE C_Payment_ID=?\";\n int id = DB.getSQLValue(get_TrxName(), sql, getC_Payment_ID());\n if (id < 0) {\n return 0;\n }\n return id;\n }",
"public String getOisCntrNo() {\n return oisCntrNo;\n }",
"protected int getC_BankStatementLine_ID()\r\n\t{\r\n\t\tString sql = \"SELECT C_BankStatementLine_ID FROM C_BankStatementLine WHERE C_Payment_ID=?\";\r\n\t\tint id = DB.getSQLValue(get_TrxName(), sql, getC_Payment_ID());\r\n\t\tif (id < 0)\r\n\t\t\treturn 0;\r\n\t\treturn id;\r\n\t}",
"public BigDecimal getOP_NO() {\r\n return OP_NO;\r\n }",
"public Integer getCocSeqNo() {\n\t\treturn cocSeqNo;\n\t}",
"public String getConstraintClauseNumber() {\n return clause;\n }",
"public String getTransactionNo() {\r\n return transactionNo;\r\n }",
"public Long getPAYMENT_REQ_NO() {\n return PAYMENT_REQ_NO;\n }",
"public BigDecimal getCHARGES_INS_NO()\r\n {\r\n\treturn CHARGES_INS_NO;\r\n }",
"public Long getOprNo() {\r\n\t\treturn oprNo;\r\n\t}",
"public String getDcpoNo() {\n return (String)getAttributeInternal(DCPONO);\n }",
"public String getConnumber() {\r\n return connumber;\r\n }",
"public Integer getCocSerialNo() {\n\t\treturn cocSerialNo;\n\t}",
"public Long getOrderNo() {\r\n return orderNo;\r\n }",
"public long getComNumber() {\r\n return comNumber;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Send an SPEP startup message to the ESOE and request startup. If the request is accepted the SPEP will begin processing, if not it will wait until it has clearance to start from the ESOE. | protected void doStartup()
{
this.logger.info(Messages.getString("StartupProcessorImpl.2")); //$NON-NLS-1$
setStartupResult(result.wait);
while (!result.allow.equals(allowProcessing()))
{
try
{
String samlID = this.identifierGenerator.generateSAMLID();
Element requestDocument = buildRequest(samlID);
TrustedESOERole trustedESOERole = this.metadata.getEntityRoleData(this.trustedESOEIdentifier, TrustedESOERole.class);
String endpoint = trustedESOERole.getSPEPStartupServiceEndpoint(IMPLEMENTED_BINDING);
this.logger.debug(MessageFormat.format(Messages.getString("StartupProcessorImpl.3"), endpoint) ); //$NON-NLS-1$
Element responseDocument = this.wsClient.spepStartup(requestDocument, endpoint);
this.logger.debug(Messages.getString("StartupProcessorImpl.4")); //$NON-NLS-1$
processResponse(responseDocument, samlID);
setStartupResult(result.allow);
break;
}
catch (WSClientException e)
{
setStartupResult(result.fail);
this.logger.error(MessageFormat.format(Messages.getString("StartupProcessorImpl.5"), e.getMessage())); //$NON-NLS-1$
}
catch (MarshallerException e)
{
setStartupResult(result.fail);
this.logger.error(MessageFormat.format(Messages.getString("StartupProcessorImpl.6"), e.getMessage())); //$NON-NLS-1$
}
catch (SignatureValueException e)
{
setStartupResult(result.fail);
this.logger.error(MessageFormat.format(Messages.getString("StartupProcessorImpl.7"), e.getMessage())); //$NON-NLS-1$
}
catch (ReferenceValueException e)
{
setStartupResult(result.fail);
this.logger.error(MessageFormat.format(Messages.getString("StartupProcessorImpl.8"), e.getMessage())); //$NON-NLS-1$
}
catch (UnmarshallerException e)
{
setStartupResult(result.fail);
this.logger.error(MessageFormat.format(Messages.getString("StartupProcessorImpl.9"), e.getMessage())); //$NON-NLS-1$
}
catch (SPEPInitializationException e)
{
setStartupResult(result.fail);
this.logger.error(MessageFormat.format(Messages.getString("StartupProcessorImpl.10"), e.getMessage())); //$NON-NLS-1$
}
catch (Exception e)
{
e.printStackTrace();
setStartupResult(result.fail);
this.logger.error(MessageFormat.format(Messages.getString("StartupProcessorImpl.11"), e.getMessage())); //$NON-NLS-1$
}
try
{
Thread.sleep(this.startupRetryInterval*1000);
this.logger.error(MessageFormat.format(Messages.getString("StartupProcessorImpl.30"), this.startupRetryInterval) ); //$NON-NLS-1$
}
catch (InterruptedException e)
{
// Ignore
}
}
this.logger.debug(Messages.getString("StartupProcessorImpl.33")); //$NON-NLS-1$
} | [
"public void RequestStart() {\n\t\tif (this.simulationState == SimulationState.Idle) {\n\t\t\tsendControlMessage(\"START\");\n\t\t}\n\t}",
"public void startup()\n\t{\t\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tplaySound(R.raw.startup);\n\t\t\t\t// Replace while and mHandler method with startup() function\n\t\t\t\twhile (mMediaPlayer.isPlaying())\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\t/*mHandler.sendEmptyMessage(Constants.STARTUP);*/\n\t\t\t}\n\t\t}.start();\n\t\t\t\n\t\tpd = ProgressDialog.show(getActivity(), null, \"Contacting server\");\n\t\tmakeMachineService(Constants.START_COMMAND);\n\t}",
"public void startup() throws Exception\n {\n\n CompletionInitiatorInitialisation.startup();\n TerminationParticipantInitialisation.startup();\n\n // there is no WSCF client startup\n\n // run WSTX startup code\n\n WSTXInitialisation.startup();\n }",
"public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }",
"protected void waitForStartup() {\n if (SalesforceSDKManager.getInstance() == null) {\n waitForEvent(EventType.AppCreateComplete);\n }\n }",
"public void service_REQ(){\n if ((eccState == index_IDLE) && (PERequest.value)) state_HasRequest();\n else if ((eccState == index_START) && (TokenIn.value)) state_IDLE();\n else if ((eccState == index_BagPassedEye) && (NoPERequest.value)) state_START();\n else if ((eccState == index_BagPassedEye) && (PERequest.value)) state_HasRequest();\n else if ((eccState == index_START) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_IDLE();\n else if ((eccState == index_IDLE) && (NoPERequest.value)) state_START();\n else if ((eccState == index_BAGPASSEDFIRST) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_HasRequest) && (NoPERequest.value)) state_BAGPASSEDFIRST();\n else if ((eccState == index_BAGPASSEDFIRST) && (!PEExit.value)) state_BAGPASSEDFIRST();\n }",
"public void service_REQ(){\n if ((eccState == index_START) && (Candidate.value)) state_REQ();\n }",
"protected void startupProcess() {\r\n \t\tAppTools.debug(this.getClass().getSimpleName() + \" is launching startup process (Check appVersion / get IS / Statistics / Enrollment)\");\r\n \t}",
"private void serverStartUp(){\r\n\t\ttry {\r\n\t\twelcomesock = new ServerSocket(51711);\r\n\t\t \r\n\t\t//while(true){\r\n\t\t\t/* server waits until client get connected to port\r\n\t\t\t */\r\n\t\t\t\tSystem.out.println(\"Server waiting...\");\r\n\t\t\t\tsocket = welcomesock.accept();\r\n\t\t\t\tprocessRequest();\r\n\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(\"Oops! serverStartUp error occured-->\"+e.getMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfinally{\r\n\t\t\t\tSystem.out.println(\"Connection terminated\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinStream.close();\r\n\t\t\t\t\tsocket.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tSystem.out.println(\"Oops! serverStartUp error occured-->\"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//}\r\n\t\t\r\n\t}",
"private void announceStarting () {\n DatagramConnection txConn = null;\n try {\n txConn = (DatagramConnection)Connector.open(\"radiogram://broadcast:\" + CONNECTED_PORT);\n Datagram dg = txConn.newDatagram(txConn.getMaximumLength());\n dg.writeByte(DISPLAY_SERVER_RESTART); // packet type\n txConn.send(dg); // broadcast it\n } catch (Exception ex) {\n System.out.println(\"Error sending display server startup message: \" + ex.toString());\n ex.printStackTrace();\n } finally {\n try {\n if (txConn != null) { \n txConn.close();\n }\n } catch (IOException ex) { /* ignore */ }\n }\n }",
"private void preRequest() {\n\t\tSystem.out.println(\"pre request, i am playing job\");\n\t}",
"@EventListener(classes = ApplicationReadyEvent.class, condition = \"@commonProperties.processingOnStartupEnabled\")\n public void startPublishingEvents() {\n log.info(\"Starting sun events\");\n scheduleNextEventPublish();\n }",
"private void processStart() {\n // broadcast HELLO to every neighbors\n for(int i = 0; i < this.nextAvailPort; i++) {\n if(this.ports[i].getRemoteRouterDesc() == null) {\n continue;\n }\n\n SOSPFPacket helloPak = SOSPFPacket.createHelloPak(this.routerDesc, this.ports[i].getRemoteRouterDesc());\n this.ports[i].send(helloPak);\n\n this.ports[i].initializeHeartbeat();\n }\n }",
"protected abstract SeShRequestInitial createInitialRequest();",
"public void execute() {\n try {\n PSSWorker pssWorker = PSSWorker.getInstance();\n PSSClient pssClient = pssWorker.getPSSClient();\n\n Object[] req = {this.getRequestData()};\n pssClient.invoke(PSSConstants.PSS_SETUP,req);\n\n this.setResultData(null); \n this.executed();\n \n } catch (OSCARSServiceException ex) {\n this.fail(ex);\n }\n }",
"public void sendStartSessionMessage() {\r\n\t\tMessage message = new Message();\r\n\t\tmessage.setType(MESSAGE_START_SESSION);\r\n\t\tsendMessage(message);\r\n\t}",
"public void startup() {\n if (thread != null) {\n Log.i(TAG, \"Robot already started ...\");\n return;\n }\n\n thread = new RobotThread(robotFace, kubiManager);\n thread.start();\n\n if(App.InWizardMode()) {\n responses.Listen();\n lessons.Listen();\n questions.Listen();\n quizzes.Listen();\n }\n }",
"@Override\n public void preStart() {\n greeter = getContext().actorOf(Props.create(Greeter.class), \"greeter\");\n System.out.println(\"Greeter actor path:\" + greeter.path());\n // tell it to perform the greeting\n greeter.tell(new Message(2, Arrays.asList(\"2\", \"dsf\")), getSelf());\n }",
"void sendStartMessage();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all project roles Gets a list of all project roles, complete with project role details and default actors. About project roles [Project roles]( are a flexible way to to associate users and groups with projects. In Jira Cloud, the list of project roles is shared globally with all projects, but each project can have a different set of actors associated with it (unlike groups, which have the same membership throughout all Jira applications). Project roles are used in [permission schemes](apirestapi2permissionschemeget), [email notification schemes](apirestapi2notificationschemeget), [issue security levels](apirestapi2issuesecurityschemesget), [comment visibility](apirestapi2commentlistpost), and workflow conditions. Members and actors In the Jira REST API, a member of a project role is called an actor. An actor is a group or user associated with a project role. Actors may be set as [default members]( of the project role or set at the project level: Default actors: Users and groups that are assigned to the project role for all newly created projects. The default actors can be removed at the project level later if desired. Actors: Users and groups that are associated with a project role for a project, which may differ from the default actors. This enables you to assign a user to different roles in different projects. [Permissions](permissions) required: Administer Jira [global permission]( 200 Returned if the request is successful. 401 Returned if the authentication credentials are incorrect or missing. 403 Returned if the user does not have administrative permissions. | public Flux<ProjectRole> getAllProjectRoles() throws WebClientResponseException {
Object postBody = null;
// create path and map variables
final Map<String, Object> pathParams = new HashMap<String, Object>();
final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" };
ParameterizedTypeReference<ProjectRole> localVarReturnType = new ParameterizedTypeReference<ProjectRole>() {};
return apiClient.invokeFluxAPI("/rest/api/2/role", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
} | [
"@RequestMapping(value = \"/project-role\", method = RequestMethod.GET)\n public\n @ResponseBody\n Collection<ProjectRole> getProjectRoles() {\n return Arrays.asList(ProjectRole.values());\n }",
"public List<Role> getAllRoles();",
"public List<SecRole> getAllRoles();",
"public ActionReturn getAllRoles() {\n ErrorRole errorRole = new ErrorRole();\n\n List<KalturaLtiRole> allKalturaLtiRoleMappings = new ArrayList<KalturaLtiRole>();\n\n try {\n allKalturaLtiRoleMappings = roleService.getAllRoleMappings();\n } catch (Exception e) {\n errorRole.updateErrorList(e.toString(), \"get\", null);\n log.error(e.toString(), e);\n }\n\n return restService.processActionReturn(errorRole, JsonUtil.parseToJson(allKalturaLtiRoleMappings));\n }",
"Role getRoles();",
"@GetMapping(\"/role\")\n @Timed\n public ResponseEntity<List<Role>> getAllRole() {\n log.debug(\"REST request to get all IGroup\");\n List<Role> roles = roleService.findAll();\n return new ResponseEntity<>(roles, null, HttpStatus.OK);\n }",
"@GetMapping(\"userroles\")\n\tpublic List<UserRole> getAllUserRoles() {\n\t\treturn iUserRoles.getAllUserRoles();\n\t}",
"@ApiModelProperty(value = \"List of roles for which to get logs and metrics. If set, this restricts the roles for log and metrics collection to the list specified. If empty, the default is to get logs for all roles (in the selected cluster, if one is selected). Introduced in API v10 of the API.\")\n\n\n public List<String> getRoles() {\n return roles;\n }",
"public ArrayList<Project> allProjects() {\n ArrayList<Project> projects = new ArrayList<>();\n for (Role role : this.roles) {\n if (role instanceof Member) {\n projects.add(((Member) role).getProject());\n } else if (role instanceof Leader) {\n projects.add(((Member) role).getProject());\n }\n }\n return projects;\n }",
"public ArrayList<Role> findAllRoles() {\r\n ArrayList<Role> roleList = new ArrayList<Role>();\r\n try {\r\n roleList = (ArrayList<Role>) rdao.loadAll();\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n return roleList;\r\n }",
"List<RoleEntity> getSystemRoles();",
"public List<Role> getRoles() {\n return roles;\n }",
"public Collection<Role> getRoles() {\n return Collections.unmodifiableCollection(roles);\n }",
"public ReactorResult<java.lang.String> getAllRole_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ROLE, java.lang.String.class);\r\n\t}",
"public List<UIRole> getAllRoles() {\r\n\t\tlogger.debug(\"Retrieve the smsu roles from the database\");\r\n\t\tList<UIRole> allUIRoles = new ArrayList<>();\r\n\t\tfor (Role role : daoService.getRoles()) {\r\n\t\t\tallUIRoles.add(convertToUI(role));\r\n\t\t}\r\n\t\treturn allUIRoles;\r\n\t}",
"public static Query<List<Role>> findAllRoles(){\n\t\treturn em -> em.createNamedQuery(\"Role.findAll\", Role.class)\n\t\t\t\t\t .getResultList();\n\t}",
"public List<org.kuali.kra.common.permissions.web.bean.Role> getProposalRoles() {\n List<org.kuali.kra.common.permissions.web.bean.Role> returnRoleBeans\n = new ArrayList<org.kuali.kra.common.permissions.web.bean.Role>();\n\n Collection<Role> roles = getKimProposalRoles();\n\n org.kuali.rice.core.api.criteria.QueryByCriteria.Builder queryBuilder = org.kuali.rice.core.api.criteria.QueryByCriteria.Builder.create();\n List<Predicate> predicates = new ArrayList<Predicate>();\n PermissionQueryResults permissionResults = null;\n\n for (Role role : roles) {\n if (!StringUtils.equals(role.getName(), RoleConstants.UNASSIGNED)) {\n predicates.add(PredicateFactory.equal(\"rolePermissions.roleId\", role.getId()));\n queryBuilder.setPredicates(PredicateFactory.and(predicates.toArray(new Predicate[]{})));\n permissionResults = getKimPermissionService().findPermissions(queryBuilder.build());\n if (permissionResults != null && permissionResults.getResults().size() > 0) {\n returnRoleBeans.add(new org.kuali.kra.common.permissions.web.bean.Role(\n role.getName(), role.getDescription(), permissionResults.getResults()));\n }\n predicates.clear();\n queryBuilder = org.kuali.rice.core.api.criteria.QueryByCriteria.Builder.create();\n permissionResults = null;\n }\n }\n\n return returnRoleBeans;\n }",
"@GetMapping(\"/sys-roles\")\n @Timed\n @ApiOperation(\"获取全部角色\")\n public List<SysRole> getAllSysRoles() {\n log.debug(\"REST request to get all SysRoles\");\n return sysRoleService.findAll();\n }",
"@PermitAll\n @Override\n public List<Role> getCurrentUserRoles() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_QUERY, Role.QUERY_GET_ROLES_BY_USER_NAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntityList(Role.class, params);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo para obtener la cola economico | public ColaG getColaEconomico() {
return ColaEconomico;
} | [
"public Fenetre_resultat_coaxial(float longueur, float largeur, float hauteur, float debit_m, float capacite_th, float tempc, float tempf, float masse_volumique, float viscosite, float epaisseur) {\n\n Coaxial coax1;\n Finance F1;\n\n coax1 = new Coaxial(longueur, largeur, hauteur, debit_m, capacite_th, tempc, tempf, masse_volumique);\n F1 = new Finance();\n\n double smod_main = coax1.calcul_smod(coax1.getter_surface_module());\n\n coax1.calcul_densite_couple();\n\n coax1.calcul_rcharge();\n\n coax1.calcul_rth(debit_m, masse_volumique, epaisseur, viscosite, capacite_th);\n\n double pe_main = coax1.calcul_Pe();\n float rayon_main = coax1.calcul_rayon();\n\n double prix_module_main = F1.calcul_prix_modules(coax1.getter_nbre_modules());\n if (prix_module_main < 0) {\n prix_module_main = 0;\n }\n \n F1.calcul_volume_coaxial(rayon_main, longueur, epaisseur);\n \n double prix_materiaux_main = F1.calcul_prix_matiere();\n if (prix_materiaux_main < 0) {\n prix_materiaux_main = 0;\n }\n \n double prix_total = prix_module_main + prix_materiaux_main;\n\n double energie_produite_main = F1.conversion_kwh(pe_main);\n double revenu_horaire_main = F1.calcul_revenu_horaire();\n double nbre_heures_main = F1.calcul_nbre_heures();\n \n DecimalFormat df2 = new DecimalFormat(\"#.##\");\n DecimalFormat df4 = new DecimalFormat(\"#.####\");\n DecimalFormat df5 = new DecimalFormat(\"#.#####\");\n DecimalFormat df7 = new DecimalFormat(\"#.#######\");\n \n\n String entetes[] = {\"Résultat\", \"Valeur\"};\n Object donnees[][] = {\n {\"Nombre de modules\", coax1.getter_nbre_modules()},\n {\"Surface proposée (en m²)\", df5.format(coax1.getter_surface_contact())},\n {\"Surface utilisée par les modules (en m²)\", df5.format(smod_main)},\n {\"Débit massique (en m3/h)\", debit_m},\n {\"Température chaude (en °C)\", tempc},\n {\"Température froide (en °C)\", tempf},\n {\"Différence de température\", coax1.getter_diff_temperature()},\n {\"Puissance électrique générée (en W)\", df2.format(pe_main)}};\n\n DefaultTableModel modele = new DefaultTableModel(donnees, entetes) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau = new JTable(modele);\n \n\n \n String entetes2[] = {\"Caractéristiques\", \"Valeurs\"};\n Object donnees2[][] = {\n {\"Surface d'un module (en m²)\", coax1.getter_surface_module()},\n {\"Longueur d'une jambe (en m)\", df4.format(coax1.getter_longueur_jambe())},\n {\"Surface d'une jambe (en m²)\", df7.format(coax1.getter_surface_jambe())},\n {\"Densité de couple\", df5.format(coax1.getter_densite_couple())},\n {\"Conductivité thermique du module (en W/m/K)\", df2.format(coax1.getter_conduct_th_module())}\n };\n\n DefaultTableModel modele2 = new DefaultTableModel(donnees2, entetes2) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n Object donnees3[][] = {\n {\"Prix des modules (en €)\", df2.format(prix_module_main)},\n {\"Prix de la matière première (en €)\", df2.format(prix_materiaux_main)},\n {\"Prix total échangeur (en €)\", df2.format(prix_total)},\n {\"Prix du kilowatt-heure\", F1.getter_prix_elec()},\n {\"Revenu horaire\", df2.format(revenu_horaire_main)},\n {\"Nbre d'heures pour remboursement\", df2.format(nbre_heures_main)}\n };\n String entetes3[] = {\"Caractéristiques\", \"Valeurs\"};\n\n DefaultTableModel modele3 = new DefaultTableModel(donnees3, entetes3) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau3 = new JTable(modele3);\n\n // Pour le graphique en camembert\n final JFXPanel fxPanel = new JFXPanel(); // On crée un panneau FX car on peut pas mettre des objet FX dans un JFRame\n final PieChart chart = new PieChart(); // on crée un objet de type camembert\n chart.setTitle(\"Répartition du prix de l'échangeur\"); // on change le titre de ce graph\n chart.getData().setAll(new PieChart.Data(\"Prix des modules \" + prix_module_main + \" €\", prix_module_main), new PieChart.Data(\"Prix du matériau \" + df2.format(prix_materiaux_main) + \" €\", prix_materiaux_main)\n ); // on implémente les différents case du camebert\n final Scene scene = new Scene(chart); // on crée une scene (FX) où l'on met le graph camembert\n fxPanel.setScene(scene);\n\n tableau2 = new JTable(modele2);\n\n JScrollPane tableau_entete = new JScrollPane(tableau);\n JScrollPane tableau_entete2 = new JScrollPane(tableau2);\n JScrollPane tableau_entete3 = new JScrollPane(tableau3);\n\n tableau_entete.setViewportView(tableau);\n tableau_entete2.setViewportView(tableau2);\n tableau_entete3.setViewportView(tableau3);\n\n tableau_entete.setPreferredSize(new Dimension(550, 155));\n tableau_entete2.setPreferredSize(new Dimension(550, 110));\n tableau_entete3.setPreferredSize(new Dimension(550, 120));\n\n JLabel label_resultat = new JLabel(\"Resultat de la simulation\");\n JLabel label_module = new JLabel(\"Caractéristiques du module utilisé\");\n JLabel label_prix = new JLabel(\"Prix de l'échangeur\");\n \n setBounds(0, 0, 600, 950);\n setTitle(\"Résultats Technologie Coaxial\");\n \n panneau = new JPanel();\n panneau.add(label_resultat);\n panneau.add(tableau_entete);\n panneau.add(label_module);\n panneau.add(tableau_entete2);\n panneau.add(label_prix);\n panneau.add(tableau_entete3);\n panneau.add(fxPanel);\n getContentPane().add(panneau);\n \n this.setLocation(600, 0);\n this.setResizable(false);\n }",
"public abstract int getCostoAcquisto();",
"@Override\r\n\tpublic double calcularValorEconomico() {\r\n\t\tvalorEconomico = (getMetrosEslora() * MULTI_VALOR_ECONOMICO) * getCarga();\r\n\t\treturn valorEconomico;\r\n\t}",
"public String getAlimentoMasCaloricoConsumido()\n {\n String nombreAlimento = null;\n if (listaComidaIngerida.size() > 0)\n {\n Comida comidaMasCalorias = listaComidaIngerida.get(0);\n for (Comida comidaActual : listaComidaIngerida)\n {\n if (comidaActual.getCalorias() >= comidaMasCalorias.getCalorias())\n {\n comidaMasCalorias = comidaActual;\n }\n }\n nombreAlimento = comidaMasCalorias.getNombre();\n }\n System.out.println(nombreAlimento);\n return nombreAlimento;\n }",
"public abstract java.lang.String getAcma_cierre();",
"float getCo();",
"public String getCGINF_LICENCIA_CONDUCIR(){\r\n\t\treturn this.myCginf_licencia_conducir;\r\n\t}",
"private Fornecedor buscarFornecedor() {\r\n\t\t\tString codigo = String.valueOf(((Fornecedor) comboFornecedor.getSelectedItem()).getCodigo());\r\n\t\t\tListaObjeto listaObjeto = this.fornecedor.search(\"Código\", \"Igual\", codigo);\r\n\t\t\tthis.fornecedor = (Fornecedor) listaObjeto.getObjeto(0);\r\n\t\t\treturn this.fornecedor;\r\n\r\n\t\t}",
"String getCADENA_TRAMA();",
"public String getCivico() {\r\n return this.civico;\r\n }",
"private void caricaListaCasseEconomali() {\n\t\tString methodName=\"caricaListaCasseEconomali\";\n\t\tList<CassaEconomale> listaCassaEconomale;\n\t\ttry {\n\t\t\tlistaCassaEconomale = ottieniListaCasseEconomali();\n\t\t} catch (WebServiceInvocationFailureException wsife) {\n\t\t\tlog.info(methodName, wsife.getMessage());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(listaCassaEconomale == null || listaCassaEconomale.isEmpty()) {\n\t\t\tErrore errore = ErroreCEC.CEC_ERR_0001.getErrore();\n\t\t\taddErrore(errore);\n\t\t\treturn;\n\t\t}\n\t\tmodel.setListaCasseEconomali(listaCassaEconomale);\n\t\tlog.debug(methodName, \"Numero di casse economali: \" + listaCassaEconomale.size());\n\t\t\n\t\tif(listaCassaEconomale.size() == 1) {\n\t\t\t// Imposto la cassa nel model\n\t\t\tmodel.setCassaEconomale(listaCassaEconomale.get(0));\n\t\t}\n\t}",
"public void setColaEconomico(ColaG ColaEconomico) {\r\n this.ColaEconomico = ColaEconomico;\r\n }",
"public int getCivico() {\n return civico; }",
"public abstract java.lang.String getTiido_cam_oficina_fk_cod_ofic();",
"public java.lang.String getCuota();",
"public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}",
"public int getCouleur() {\r\n return couleur;\r\n }",
"public abstract java.lang.String getAcma_valor();",
"public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
initiate saturation to 0 | public void initiateSaturation(HashMap <Integer, Integer> saturation, int numNodes) {
for(int i=1; i<=numNodes; i++) {
saturation.put(i, 0);
numEdges.put(i, 0);
}
} | [
"public void setSaturation(float saturation);",
"private ColorAdjust __setSaturation(double saturation) {\n ColorAdjust colorAdjust = new ColorAdjust();\n colorAdjust.setSaturation(saturation);\n return colorAdjust;\n }",
"public void adjustSaturation()\n\t{\n\t\tfinal int prevSaturationLevel = saturationLevel;\n\t\tfinal int endXformDist = 140 + (GameStats.difficulty * 3);\t//distance we start transforming\n\t\t//calculate the saturation level\n\t\tif(distFromCenter < (endXformDist + 0))\n\t\t\tsetDesatValue(4);\n\t\telse if(distFromCenter < (endXformDist + 12))\n\t\t\tsetDesatValue(3);\n\t\telse if(distFromCenter < (endXformDist + 24))\n\t\t\tsetDesatValue(2);\n\t\telse if(distFromCenter < (endXformDist + 36))\n\t\t\tsetDesatValue(1);\n\t\telse if(distFromCenter >= (endXformDist + 48))\n\t\t\tsetDesatValue(0);\n\t}",
"public float saturation() {\n int r = (color >> 16) & 0xFF;\n int g = (color >> 8) & 0xFF;\n int b = color & 0xFF;\n\n\n int V = Math.max(b, Math.max(r, g));\n int temp = Math.min(b, Math.min(r, g));\n\n float S;\n\n if (V == temp) {\n S = 0;\n } else {\n S = (V - temp) / (float) V;\n }\n\n return S;\n }",
"public void setSaturation(double saturation) {\n checkArgument(0.0 <= saturation && saturation <= 1.0,\n \"Saturation must be between 0.0 and 1.0 inclusive.\");\n this.saturation = saturation;\n updateColors();\n }",
"public int getSaturation()\n {\n return (int)(s * 100);\n }",
"public float getSaturation();",
"public void setSaturation ( float value ) {\n\t\texecute ( handle -> handle.setSaturation ( value ) );\n\t}",
"public void setSaturation(float value) {\n colorizerMatrix.setSaturation(value);\n ColorMatrixColorFilter colorizerFilter = new ColorMatrixColorFilter(colorizerMatrix);\n mBitmapDrawable.setColorFilter(colorizerFilter);\n }",
"public void applySaturationFilter(int level) {\n //get image size\n int width = rawImage.getWidth();\n int height = rawImage.getHeight();\n int[] pixels = new int[width * height];\n float[] HSV = new float[3];\n //get pixel array from source\n rawImage.getPixels(pixels, 0, width, 0, 0, width, height);\n\n int index;\n //iteration through pixels\n for (int y = 0; y < height; ++y) {\n for (int x = 0; x < width; ++x) {\n // get current index in 2D-matrix\n index = y * width + x;\n // convert to HSV\n Color.colorToHSV(pixels[index], HSV);\n // increase Saturation level\n HSV[1] *= level;\n HSV[1] = (float) Math.max(0.0, Math.min(HSV[1], 1.0));\n // take color back\n pixels[index] |= Color.HSVToColor(HSV);\n }\n }\n //output bitmap\n rawImage = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n rawImage.setPixels(pixels, 0, width, 0, 0, width, height);\n }",
"public short[][] getSaturation(){ return saturation; }",
"public void negative()\n {\n Pixel source = null;\n \n for (int x = 0; x<getWidth(); x++)\n {\n for (int y = 0; y<getHeight(); y++)\n {\n source = this.getPixel(x,y);\n source.setRed(255-source.getRed());\n source.setGreen(255-source.getGreen());\n source.setBlue(255-source.getBlue());\n }\n }\n }",
"public void showSaturation()\r\n {\r\n\tshowSaturation(\"Saturation\");\r\n }",
"public static void setColorWaveformStrengthOff(int c) { cacheColorWaveformStrengthOff.setInt(c); }",
"public static double convSaturation(double targetSaturation) {\n\t\treturn targetSaturation / 100;\n\t}",
"public void adjustIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tshort maxI;\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tmaxI = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t\tintensity[row][col] =\r\n\t\t (short)Math.min(intensity[row][col], maxI);\r\n\t }\r\n\t}\r\n }",
"public void updateColor0(){ \n\t\t_gui.updateColorScheme(ColorModelFactory.createRainbowColorModel(155));\n\t\t_currentFractal.compute(_escapeDist, _numThreads, _gui.getFractalPanel());\n\t}",
"private void sendSetSaturationCommand(int saturation) {\n byte[] buf = new byte[]{CMD_SET_SATURATUION, (byte) (saturation & 0xFF), 0x00};\n\n mCharacteristicTx.setValue(buf);\n mBluetoothLeService.writeCharacteristic(mCharacteristicTx);\n }",
"public void makeSunset(){\r\n //Create local variables and get array of pixels\r\n Pixel[] pixelArray = this.getPixels();\r\n Pixel pixel = null;\r\n int value = 0;\r\n int i=0;\r\n \r\n //Loop through all pixels\r\n while (i<pixelArray.length){\r\n pixel = pixelArray[i]; //get out current picture\r\n value = pixel.getBlue(); //get the blue value\r\n pixel.setBlue((int)(value*0.7)); //set a new blue\r\n value = pixel.getGreen(); //get the green value\r\n pixel.setGreen((int)(value*0.7)); //set the new green value\r\n i++; //increment counter\r\n }\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a ResponseAPDU from a byte array containing the complete APDU contents (conditional body and trailed). Note that the byte array is cloned to protect against subsequent modification. | public ResponseAPDU(byte[] apdu) {
apdu = apdu.clone();
check(apdu);
this.apdu = apdu;
} | [
"public CardCommandAPDU(byte[] commandAPDU) {\n\tSystem.arraycopy(commandAPDU, 0, header, 0, 4);\n\tsetBody(ByteUtils.copy(commandAPDU, 4, commandAPDU.length - 4));\n }",
"public static ResponseApdu fromBytes(byte[] buf) throws ParseException {\n return new ResponseApdu(new ByteArrayInputStreamExtension(buf));\n }",
"private CommandAPDU createCommandAPDU(byte[] commandNonce, byte[] responseNonce, byte[] commandAPDU) throws Exception {\r\n\t\tthis.validateNonce = responseNonce;\r\n\t\t\t\r\n\t\tint toFill = 64 - (commandNonce.length + responseNonce.length + commandAPDU.length);\r\n\t\t\r\n\t\tbyte[] encrypted;\r\n\t\tif (toFill > 0)\r\n\t\t\tencrypted = encrypt(concat(commandNonce,responseNonce,commandAPDU,new byte[toFill]));\r\n\t\telse\r\n\t\t\tencrypted = encrypt(concat(commandNonce,responseNonce,commandAPDU));\r\n\t\t\r\n\t\tbyte[] finale = concat(new byte[]{(byte)(encrypted.length * 2)},encrypted);\r\n\t\treturn new CommandAPDU(finale);\r\n\t}",
"public static byte[] getBody(byte[] commandAPDU) {\n\tif (commandAPDU.length < 4) {\n\t throw new IllegalArgumentException(\"Malformed APDU\");\n\t}\n\n\treturn ByteUtils.copy(commandAPDU, 4, commandAPDU.length - 4);\n }",
"public ISOCommandAPDU(byte classByte, byte instruction, byte p1, byte p2, byte[] data, int le) {\n this(data.length+5+4, classByte, instruction, p1, p2, data, le); // 5 = max overhead for coding data; 4 = header bytes\n }",
"private byte[] processResponseAPDU(ResponseAPDU response) throws Exception {\r\n\t\tString code = HexString.hexifyShort(response.sw1(),response.sw2());\r\n\t\tif (!code.equalsIgnoreCase(\"9000\"))\r\n\t\t\tif (code.equalsIgnoreCase(\"6a83\"))\r\n\t\t\t\treturn null;\r\n\t\t\telse\r\n\t\t\t\tthrow processErrorCode(code);\r\n\t\telse {\r\n\t\t\tif (response.data() == null && this.validateNonce != null)\r\n\t\t\t\tthrow new Exception(\"No response nonce.\");\r\n\t\t\tif (response.data() == null)\r\n\t\t\t\treturn new byte[0];\r\n\t\t\t\r\n\t\t\tbyte[] decrypted = decrypt(response.data());\r\n\t\t\tbyte[] responceNonce = Arrays.copyOfRange(decrypted,0,2);\r\n\t\t\tif (validateNonce(responceNonce)) {\r\n\t\t\t\tbyte[] data = Arrays.copyOfRange(decrypted,2,decrypted.length);\r\n\t\t\t\treturn rightTrim(data);\r\n\t\t\t} else\r\n\t\t\t\tthrow new Exception(\"Wrong response nonce.\");\r\n\t\t}\r\n\t}",
"public ISOCommandAPDU(int size, byte classByte, byte instruction, byte p1, byte p2, byte[] data) {\n this(size, classByte, instruction, p1, p2, data, -1);\n }",
"public ISOCommandAPDU(byte classByte, byte instruction, byte p1, byte p2) {\n this(4, classByte, instruction, p1, p2, null, -1); // size = header length\n }",
"public final byte[] toByteArray() {\n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\n\ttry {\n\t // Write APDU header\n\t baos.write(header);\n\t // Write APDU LC field.\n\t if (lc > 255 || (le > 256 && lc > 0)) {\n\t\t// Encoded extended LC field in three bytes.\n\t\tbaos.write(x00);\n\t\tbaos.write((byte) (lc >> 8));\n\t\tbaos.write((byte) lc);\n\t } else if (lc > 0) {\n\t\t// Write short LC field\n\t\tbaos.write((byte) lc);\n\t }\n\t // Write APDU data field\n\t baos.write(data);\n\t // Write APDU LE field.\n\t if (le > 256) {\n\t\t// Write extended LE field.\n\t\tif (lc == 0 || lc == -1) {\n\t\t // Encoded extended LE field in three bytes.\n\t\t baos.write(x00);\n\t\t}\n\t\t// Encoded extended LE field in two bytes if extended LC field is present.\n\t\t// If more bytes are requested than possible, assume the maximum.\n\t\tif (le >= 65536) {\n\t\t baos.write(x00);\n\t\t baos.write(x00);\n\t\t} else {\n\t\t baos.write((byte) (le >> 8));\n\t\t baos.write((byte) le);\n\t\t}\n\t } else if (le > 0) {\n\t\tif (lc > 255) {\n\t\t // Write extended LE field in two bytes because extended LC field is present.\n\t\t baos.write((byte) (le >> 8));\n\t\t baos.write((byte) le);\n\t\t} else {\n\t\t // Write short LE field\n\t\t baos.write((byte) le);\n\t\t}\n\t }\n\t} catch (IOException ex) {\n\t LOG.error(\"Failed to create APDU in memory.\", ex);\n\t}\n\n\treturn baos.toByteArray();\n }",
"public ISOCommandAPDU(byte classByte, byte instruction, byte p1, byte p2, int le) {\n this(4+2, classByte, instruction, p1, p2, null, le); // size = header length + le\n }",
"public static byte[] getAPDUBuffer(byte[] buffer) {\n short len = SATAccessor.getAPDUBufferLength();\n \n for (short i = 0; i < len; i++) {\n buffer[i] = SATAccessor.getAPDUBufferByte(i);\n }\n return buffer;\n }",
"public ISOCommandAPDU(int size, byte classByte, byte instruction, byte p1, byte p2) {\n this(size, classByte, instruction, p1, p2, null, -1);\n }",
"public ISOCommandAPDU(int size, byte classByte, byte instruction, byte p1, byte p2, int le) {\n this(size, classByte, instruction, p1, p2, null, le);\n }",
"public ResponsePacket() {\n MacAddr = new ArrayList<String>();\n content = new ArrayList<String>();\n }",
"public CardCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte[] data, byte le) {\n\tthis(cla, ins, p1, p2, data, le & 0xFF);\n }",
"public static byte[] getAPDUBuffer() {\n return getAPDUBuffer(currentTI.getAPDUBuffer());\n }",
"public static tA2Type fromPerUnaligned(byte[] encodedBytes) {\n tA2Type result = new tA2Type();\n result.decodePerUnaligned(new BitStreamReader(encodedBytes));\n return result;\n }",
"public void process(APDU adpu) throws ISOException {\r\n\r\n if (selectingApplet()) { // applet is selected\r\n\r\n isVerified = false; // reset verification flag\r\n\r\n // initialize DES key\r\n desKey.setKey(secretKey, (short) 0);\r\n\r\n return;\r\n }\r\n\r\n short commandLength = (short) 0x0000;\r\n\r\n byte[] apduBuffer = adpu.getBuffer();\r\n\r\n // Class Byte Switch.\r\n // Mask the logical channel info of CLASS\r\n switch (apduBuffer[ISO7816.OFFSET_CLA] & (byte) 0xFC) {\r\n case CLA:\r\n\r\n // Instruction Byte Switch.\r\n switch (apduBuffer[ISO7816.OFFSET_INS]) {\r\n\r\n // Verify access rights with encrypted key\r\n case INS_VERIFY: // 0xC0\r\n\r\n commandLength = receive(adpu);\r\n\r\n // initialize cipher object with 'our' key for decryption\r\n cipher.init(desKey, Cipher.MODE_DECRYPT);\r\n\r\n // decrypt data from APDU buffer\r\n cipher.doFinal(apduBuffer, (short) (ISO7816.OFFSET_CDATA & 0x00FF),\r\n commandLength, apduBuffer, (short) 0);\r\n\r\n // compare decrypted data with PIN\r\n commandLength = Util.arrayCompare(apduBuffer, (short) 0, pin,\r\n (short) 0, (short) 4);\r\n\r\n if (commandLength == (byte) 0x00)\r\n isVerified = true;\r\n else\r\n ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\r\n break;\r\n\r\n // Read plain data and signature\r\n case INS_READ_SIGNED: // 0xB6\r\n\r\n if (!isVerified)\r\n ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\r\n // sign 'Hello World' ...\r\n signature.init(desKey, Signature.MODE_SIGN);\r\n commandLength = signature.sign(userData, (short) 0, (short) 11,\r\n apduBuffer, (short) 11);\r\n\r\n Util.arrayCopy(userData, (short) 0, apduBuffer, (short) 0,\r\n (short) 11);\r\n\r\n // ... and send\r\n adpu.setOutgoing();\r\n adpu.setOutgoingLength((short) (commandLength + (short) 11));\r\n adpu.sendBytesLong(apduBuffer, (short) 0,\r\n (short) (commandLength + (short) 11));\r\n\r\n break;\r\n\r\n // Get encrypted data\r\n case INS_READ_ENCRYPTED:\r\n\r\n if (!isVerified)\r\n ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\r\n // encrypt 'Hello World' ...\r\n cipher.init(desKey, Cipher.MODE_ENCRYPT);\r\n commandLength = cipher.doFinal(userData, (short) 0, (short) 11,\r\n apduBuffer, (short) 0);\r\n\r\n // ... and send\r\n adpu.setOutgoing();\r\n adpu.setOutgoingLength((short) commandLength);\r\n adpu.sendBytesLong(apduBuffer, (short) 0, (short) commandLength);\r\n\r\n break;\r\n\r\n default:\r\n // Exception: 0x6D00\r\n ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);\r\n }\r\n break;\r\n\r\n default:\r\n // Exception: 0x6E00\r\n ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);\r\n }\r\n }",
"public CardCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte[] data, short le) {\n\tthis(cla, ins, p1, p2, data, le & 0xFFFF);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
reset the pending purchase and navigate to selection page. | @Override
public void onClick(View v) {
LBDataManager.GetInstance().resetPendingPurchase(source);
Intent intent = new Intent(PurchaseDetailActivity.this, SelectorsActivity.class);
startActivity(intent);
} | [
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tLBDataManager.GetInstance().resetPendingPurchase(source, true);\n\t\t\t\t\t\n\t\t\t\t\tIntent intent = new Intent(PurchaseDetailActivity.this, SelectorsActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}",
"void resetPurchaseNum(int slot);",
"public void reset() {\n _pageIndex = 0;\n //cbxPage.setSelectedIndex(0);\n dispatchEvent(new Event(\"reset\", true, false));\n }",
"public void resetSearchSelection() {\n this.quantSearchSelection = null;\n SelectionChanged(\"reset_quant_searching\");\n }",
"public void undoPurchase() {\n this.numberOfCopies--;\n }",
"public void payOrder() {\n\t\tOrder item = orderTableView.getSelectionModel().getSelectedItem();\n\t\tif (item == null) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error\");\n\t\t\talert.setHeaderText(\"Select an order to view.\");\n\t\t\talert.showAndWait();\n\t\t\treturn;\n\t\t}\n\t\tif (!item.getState()) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error\");\n\t\t\talert.setHeaderText(\"Order is inactive.\");\n\t\t\talert.showAndWait();\n\t\t\treturn;\n\t\t}\n\n\t\tPaymentPageUI.setOrder(item);\n\t\tPaymentPageUI.setBackPage(\"AllActiveOrdersUI.fxml\");\n\n\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"PaymentPageUI.fxml\"));\n\t\tNextStage.goTo(fxmlLoader, payOrderBtn);\n\t}",
"public void continue_billing() {\r\n\t\t\tthis.Continue_Billing.click();\r\n\t\t}",
"public void resetMachine() {\n\t\t// Called after checkout and payment is completed\n\t\tthis.currently_scanning = true;\n\t\tthis.scanListener.resetList(); // Clear items from scanner listener\n\t\tthis.cart.clear();\n\t}",
"public void clearPurchaseList()\r\n\t{\r\n\t\tm_purechaseList.clear();\r\n\t}",
"void unsetCurrentUnpaid();",
"public void reset(){\n\t\tthis.currentIndex = 0;\n\t}",
"public void selectItemsAndContinueToSubmitPage() {\n orderItems = orderItemDetails();\n selectedLineItem = (Map<String, Object>) ((List) orderItems.get(\"orderLineItemList\")).get(new Random().nextInt(((List) orderItems.get(\"orderLineItemList\")).size()));\n if (selectedLineItem.get(\"reasonForReturnDescription\").getClass() == ArrayList.class) {\n ((List) selectedLineItem.get(\"reasonForReturnDescription\")).remove(0);\n }\n if (Elements.elementPresent(\"return_selection.scheduled_date\")) {\n orderItems.put(\"PickUpDate\", DropDowns.getSelectedValue(By.id(\"rmPickupDate\")));\n orderItems.put(\"PickUpTime\", DropDowns.getSelectedValue(By.id(\"rmPickupTime\")));\n }\n productName = selectedLineItem.get(\"itemDescription\");\n Map<String, Object> item = new HashMap<>();\n item.put(\"upcId\", selectedLineItem.get(\"upcId\"));\n item.put(\"quantity\", \"1\");\n if (selectedLineItem.get(\"reasonForReturnDescription\").getClass() == ArrayList.class) {\n item.put(\"reasonForReturn\", ((List) selectedLineItem.get(\"reasonForReturnDescription\")).get(new Random().nextInt(((List) selectedLineItem.get(\"reasonForReturnDescription\")).size())));\n } else {\n item.put(\"reasonForReturn\", selectedLineItem.get(\"reasonForReturnDescription\"));\n }\n itemsSelected = new ArrayList<>();\n itemsSelected.add(item);\n logger.info(\"Select items to return\");\n selectItemsAndContinue(itemsSelected, returnOrderDetails);\n if (safari()) {\n Wait.secondsUntilElementPresent(\"return_submit.submit_return\", 15);\n }\n Wait.forPageReady();\n logger.info(\"Verify user is on returns submit page\");\n if (!onPage(\"return_submit\")) {\n Assert.fail(\"User is not navigated to return submission page!!\");\n }\n }",
"public void resetSelectedRecord(IClientContext context) throws Exception;",
"private void resetSelections() {\r\n if (currentlySelectedEnemyProvince != null) {\r\n featureLayer_provinces.unselectFeature(currentlySelectedEnemyProvince);\r\n }\r\n if (currentlySelectedHumanProvince != null) {\r\n featureLayer_provinces.unselectFeature(currentlySelectedHumanProvince);\r\n\r\n }\r\n currentlySelectedEnemyProvince = null;\r\n currentlySelectedHumanProvince = null;\r\n invading_province.setText(\"\");\r\n opponent_province.setText(\"\");\r\n }",
"public void reset()\n {\n pages.clear();\n ePortfolioTitle = \"\";\n selectedPage = null;\n }",
"@Test\n public void resetTest() {\n\n Match match = new Match();\n VirtualView virtualView = new VirtualView(new Server());\n SingleActionManager singleActionManager = new SingleActionManager(match, virtualView, new TurnManager(match, virtualView));\n Payment payment = new Payment(match, virtualView, singleActionManager);\n\n payment.reset();\n\n assertNull(payment.getLeftCost());\n assertNull(payment.getInitialCost());\n List<Powerup> powerups = new ArrayList<>();\n assertEquals(powerups, payment.getSelectedPowerups());\n assertNull(payment.getUsablePowerup());\n }",
"public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}",
"@Override\n\tpublic int purchaseSelection() { \n\t\tloadingEffect(\"\\n\\t\\t\\t\\t\\t*purchase button pressed*\\n\\n\", 40);\n\t\tif (validSelection(selection)) { /* If 'selection' has been set to a valid value (0, 1, 2) */\n\t\t\tif (selectionInStock(selection) && deposit >= cost[selection]) { \n\t\t\t\tdeposit -= cost[selection]; \n\t\t\t\tprofits += cost[selection]; \n\t\t\t\tinventory[selection] -= 1; \n\t\t\t\tloadingEffect(\"A \" + snackNames[selection] + \" item falls to the retrieval slot.\\n\"\n\t\t\t\t\t\t\t\t\t + \"The \" + snackNames[selection] + \" button is no longer glowing.\", 40);\n\t\t\t\tselection = -1; //Invalidate selection\t\t\t\t\t \n\t\t\t\treturn returnUnspentCents(); \n\t\t\t}\n\t\t\telse { \n\t\t\t\tloadingEffect(\"Insufficient funds to purchase a \" + snackNames[selection] + \" item.\", 40);\n\t\t\t\tint remainder = cost[selection] - deposit;\n\t\t\t\tthrow new ImproperPurchaseException(remainder); \n\t\t\t}\n\t\t}\n\t\telse \n\t\t{\n\t\t\tloadingEffect(\"Please make a selection before attempting to purchase an item.\", 40);\n\t\t\tthrow new ImproperPurchaseException(); \n\t\t}\n\n\t}",
"void resetPurchaseNum(int slot, IPlayer player);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the wrapped message on this instance (expert). | public void setWrappedMessage(Message wrappedMessage) {
this.wrappedMessage = wrappedMessage;
} | [
"void setMessage(Object message);",
"public void setMessage( Object msg )\n {\n // hold current message\n Object sMsg = getMessage();\n\n // assign new message\n super.setMessage( msg );\n\n // break it up\n try\n {\n tokenize();\n }\n catch ( TokenizeException e )\n {\n logErrorMessage( \"TokenizedMessage:setMessage() - unable to assign message \" + msg + \" - \" + e );\n\n // revert back to the previous msg to \n // ensure this object is in a usable state state\n super.setMessage( sMsg );\n }\n }",
"public Message getWrappedMessage() {\n return wrappedMessage;\n }",
"public void setMessage(Message msg){\n message = msg;\n setChanged();\n notifyObservers();\n }",
"public void setMsgObject( MsgObject thisMessageObject )\n throws WfControllerException\n {\n messageObject = thisMessageObject;\n }",
"public void setMessage(Message message) {\n this.message = message;\n setChanged();\n notifyObservers(); // This calls the update() in Processor.java\n }",
"public void setMessage2 (String Message2);",
"public final void setRequestingMessage( LDAPMessage msg)\n {\n requestMessage = msg;\n return;\n }",
"void setIn(Message in);",
"public void setMessage(String newMessage) {\n this.message = newMessage;\n }",
"void setHelloMsg(String value)\n {\n\tmarkModified();\n mHelloMsg = value;\n }",
"public void xsetMsg(org.apache.xmlbeans.XmlString msg)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MSG$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MSG$2);\r\n }\r\n target.set(msg);\r\n }\r\n }",
"@Override\r\n\tpublic void setWrappedData(Object arg0) {\n\r\n\t}",
"void setWrappedInstance(Object obj);",
"public static native void ChannelInfo_set_announcement_message(long this_ptr, long val);",
"public void setMessage3 (String Message3);",
"protected void setMessenger(SSLMessenger<?, JSONObject> msgr) {\n this.messenger = msgr;\n }",
"public void setMessage(String message)\n {\n writeMessagePanel.getEditorPane().setText(message);\n }",
"public void setAdminMessage(AbstractAdminMessage adminMsg) throws MessageNotWriteableException, MessageFormatException {\n if (RObody)\n throw new MessageNotWriteableException(\"Can't set an AbstractAdminMessage as the message body is read-only.\");\n\n try {\n clearBody();\n momMsg.setAdminMessage(adminMsg);\n } catch (Exception exc) {\n throw new MessageFormatException(\"Object serialization failed: \" + exc);\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column c_print.dysj | public void setDysj(String dysj) {
this.dysj = dysj;
} | [
"public String getDysj() {\n return dysj;\n }",
"public void setYDSJ(java.lang.String YDSJ) {\r\n this.YDSJ = YDSJ;\r\n }",
"public void setdCjsj(Date dCjsj) {\n this.dCjsj = dCjsj;\n }",
"public void setJkglStxxd(String jkglStxxd)\n\t{\n\t\tthis.jkglStxxd = jkglStxxd;\n\t}",
"public void setdZjsj(Date dZjsj) {\n this.dZjsj = dZjsj;\n }",
"public void setdJzsj(Date dJzsj) {\n this.dJzsj = dJzsj;\n }",
"public java.lang.String getYDSJ() {\r\n return YDSJ;\r\n }",
"protected void setJcampdx(String jcampdx) {\r\n this.jcampdx = jcampdx;\r\n }",
"public void setQysds(BigDecimal qysds) {\n\t\tthis.qysds = qysds;\n\t}",
"public void setDydj(String dydj) {\n this.dydj = dydj == null ? null : dydj.trim();\n }",
"public void setdXgsj(Date dXgsj) {\n this.dXgsj = dXgsj;\n }",
"public void setDlsbsdsj(Long dlsbsdsj) {\n this.dlsbsdsj = dlsbsdsj;\n }",
"public void setDoj(String doj) {\n\n this.doj.set(doj);\n }",
"public void setSfyDwdb(Integer sfyDwdb) {\r\n this.sfyDwdb = sfyDwdb;\r\n }",
"public void setDjsj2(java.lang.String djsj2) {\r\n this.djsj2 = djsj2;\r\n }",
"public void setJyzt(String jyzt) {\r\n this.jyzt = jyzt;\r\n }",
"public void setDdbj(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Ddbj ddbj)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Ddbj target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Ddbj)get_store().find_element_user(DDBJ$24, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Ddbj)get_store().add_element_user(DDBJ$24);\r\n }\r\n target.set(ddbj);\r\n }\r\n }",
"public void setZycd(String zycd) {\n this.zycd = zycd == null ? null : zycd.trim();\n }",
"public void setIsCxjd(String isCxjd) {\r\n\t\tthis.isCxjd = isCxjd;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Division__Group_1__2__Impl" $ANTLR start "rule__Primary__Group_0__0" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8122:1: rule__Primary__Group_0__0 : rule__Primary__Group_0__0__Impl rule__Primary__Group_0__1 ; | public final void rule__Primary__Group_0__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8126:1: ( rule__Primary__Group_0__0__Impl rule__Primary__Group_0__1 )
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8127:2: rule__Primary__Group_0__0__Impl rule__Primary__Group_0__1
{
pushFollow(FOLLOW_rule__Primary__Group_0__0__Impl_in_rule__Primary__Group_0__015955);
rule__Primary__Group_0__0__Impl();
state._fsp--;
pushFollow(FOLLOW_rule__Primary__Group_0__1_in_rule__Primary__Group_0__015958);
rule__Primary__Group_0__1();
state._fsp--;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__Division__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:7981:1: ( ( rulePrimary ) )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:7982:1: ( rulePrimary )\n {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:7982:1: ( rulePrimary )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:7983:1: rulePrimary\n {\n before(grammarAccess.getDivisionAccess().getPrimaryParserRuleCall_0()); \n pushFollow(FOLLOW_rulePrimary_in_rule__Division__Group__0__Impl15678);\n rulePrimary();\n\n state._fsp--;\n\n after(grammarAccess.getDivisionAccess().getPrimaryParserRuleCall_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8169:1: ( ( ruleExpression ) )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8170:1: ( ruleExpression )\n {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8170:1: ( ruleExpression )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8171:1: ruleExpression\n {\n before(grammarAccess.getPrimaryAccess().getExpressionParserRuleCall_0_1()); \n pushFollow(FOLLOW_ruleExpression_in_rule__Primary__Group_0__1__Impl16047);\n ruleExpression();\n\n state._fsp--;\n\n after(grammarAccess.getPrimaryAccess().getExpressionParserRuleCall_0_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:31029:1: ( rule__Primary__Group_0__0__Impl rule__Primary__Group_0__1 )\n // InternalDsl.g:31030:2: rule__Primary__Group_0__0__Impl rule__Primary__Group_0__1\n {\n pushFollow(FOLLOW_49);\n rule__Primary__Group_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Primary__Group_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8138:1: ( ( '(' ) )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8139:1: ( '(' )\n {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8139:1: ( '(' )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8140:1: '('\n {\n before(grammarAccess.getPrimaryAccess().getLeftParenthesisKeyword_0_0()); \n match(input,22,FOLLOW_22_in_rule__Primary__Group_0__0__Impl15986); \n after(grammarAccess.getPrimaryAccess().getLeftParenthesisKeyword_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8157:1: ( rule__Primary__Group_0__1__Impl rule__Primary__Group_0__2 )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8158:2: rule__Primary__Group_0__1__Impl rule__Primary__Group_0__2\n {\n pushFollow(FOLLOW_rule__Primary__Group_0__1__Impl_in_rule__Primary__Group_0__116017);\n rule__Primary__Group_0__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Primary__Group_0__2_in_rule__Primary__Group_0__116020);\n rule__Primary__Group_0__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8186:1: ( rule__Primary__Group_0__2__Impl )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8187:2: rule__Primary__Group_0__2__Impl\n {\n pushFollow(FOLLOW_rule__Primary__Group_0__2__Impl_in_rule__Primary__Group_0__216076);\n rule__Primary__Group_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8234:1: ( ( () ) )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8235:1: ( () )\n {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8235:1: ( () )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8236:1: ()\n {\n before(grammarAccess.getPrimaryAccess().getNotAction_1_0()); \n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8237:1: ()\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8239:1: \n {\n }\n\n after(grammarAccess.getPrimaryAccess().getNotAction_1_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:3017:1: ( rule__Primary__Group_0__0__Impl rule__Primary__Group_0__1 )\n // InternalTym.g:3018:2: rule__Primary__Group_0__0__Impl rule__Primary__Group_0__1\n {\n pushFollow(FOLLOW_17);\n rule__Primary__Group_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Primary__Group_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EPrimary__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:15615:1: ( ( ( rule__EPrimary__Group_0__0 ) ) )\n // InternalAADMParser.g:15616:1: ( ( rule__EPrimary__Group_0__0 ) )\n {\n // InternalAADMParser.g:15616:1: ( ( rule__EPrimary__Group_0__0 ) )\n // InternalAADMParser.g:15617:2: ( rule__EPrimary__Group_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEPrimaryAccess().getGroup_0()); \n }\n // InternalAADMParser.g:15618:2: ( rule__EPrimary__Group_0__0 )\n // InternalAADMParser.g:15618:3: rule__EPrimary__Group_0__0\n {\n pushFollow(FOLLOW_2);\n rule__EPrimary__Group_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEPrimaryAccess().getGroup_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_9_2__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3294:1: ( rule__Primary__Group_9_2__0__Impl rule__Primary__Group_9_2__1 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3295:2: rule__Primary__Group_9_2__0__Impl rule__Primary__Group_9_2__1\r\n {\r\n pushFollow(FOLLOW_rule__Primary__Group_9_2__0__Impl_in_rule__Primary__Group_9_2__06791);\r\n rule__Primary__Group_9_2__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Primary__Group_9_2__1_in_rule__Primary__Group_9_2__06794);\r\n rule__Primary__Group_9_2__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Primary__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:31056:1: ( rule__Primary__Group_0__1__Impl rule__Primary__Group_0__2 )\n // InternalDsl.g:31057:2: rule__Primary__Group_0__1__Impl rule__Primary__Group_0__2\n {\n pushFollow(FOLLOW_9);\n rule__Primary__Group_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Primary__Group_0__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_10__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3357:1: ( rule__Primary__Group_10__0__Impl rule__Primary__Group_10__1 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3358:2: rule__Primary__Group_10__0__Impl rule__Primary__Group_10__1\r\n {\r\n pushFollow(FOLLOW_rule__Primary__Group_10__0__Impl_in_rule__Primary__Group_10__06914);\r\n rule__Primary__Group_10__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Primary__Group_10__1_in_rule__Primary__Group_10__06917);\r\n rule__Primary__Group_10__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__PredicatePrimary__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4718:1: ( rule__PredicatePrimary__Group_0__2__Impl )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4719:2: rule__PredicatePrimary__Group_0__2__Impl\n {\n pushFollow(FOLLOW_rule__PredicatePrimary__Group_0__2__Impl_in_rule__PredicatePrimary__Group_0__29271);\n rule__PredicatePrimary__Group_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__PredicatePrimary__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4658:1: ( rule__PredicatePrimary__Group_0__0__Impl rule__PredicatePrimary__Group_0__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4659:2: rule__PredicatePrimary__Group_0__0__Impl rule__PredicatePrimary__Group_0__1\n {\n pushFollow(FOLLOW_rule__PredicatePrimary__Group_0__0__Impl_in_rule__PredicatePrimary__Group_0__09150);\n rule__PredicatePrimary__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__PredicatePrimary__Group_0__1_in_rule__PredicatePrimary__Group_0__09153);\n rule__PredicatePrimary__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EPrimary__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:15684:1: ( rule__EPrimary__Group_0__1__Impl )\n // InternalAADMParser.g:15685:2: rule__EPrimary__Group_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__EPrimary__Group_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Primary__Group_9__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3167:1: ( rule__Primary__Group_9__0__Impl rule__Primary__Group_9__1 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3168:2: rule__Primary__Group_9__0__Impl rule__Primary__Group_9__1\r\n {\r\n pushFollow(FOLLOW_rule__Primary__Group_9__0__Impl_in_rule__Primary__Group_9__06541);\r\n rule__Primary__Group_9__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Primary__Group_9__1_in_rule__Primary__Group_9__06544);\r\n rule__Primary__Group_9__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Primary__Group_9_2__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3325:1: ( rule__Primary__Group_9_2__1__Impl )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3326:2: rule__Primary__Group_9_2__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Primary__Group_9_2__1__Impl_in_rule__Primary__Group_9_2__16853);\r\n rule__Primary__Group_9_2__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Primary__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:31068:1: ( ( ruleExpression ) )\n // InternalDsl.g:31069:1: ( ruleExpression )\n {\n // InternalDsl.g:31069:1: ( ruleExpression )\n // InternalDsl.g:31070:2: ruleExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getExpressionParserRuleCall_0_1()); \n }\n pushFollow(FOLLOW_2);\n ruleExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getExpressionParserRuleCall_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EPrimary__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:15657:1: ( rule__EPrimary__Group_0__0__Impl rule__EPrimary__Group_0__1 )\n // InternalAADMParser.g:15658:2: rule__EPrimary__Group_0__0__Impl rule__EPrimary__Group_0__1\n {\n pushFollow(FOLLOW_3);\n rule__EPrimary__Group_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__EPrimary__Group_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all values of property Pagestart as a ReactorResult of java.lang.String | public ReactorResult<java.lang.String> getAllbiboPagestart_as() {
return Base.getAll_as(this.model, this.getResource(), PAGESTART, java.lang.String.class);
} | [
"java.lang.String getPages();",
"String getStartpage();",
"public String getPages() {\n return pages;\n }",
"public ReactorResult<java.lang.String> getAllbiboPageend_as() {\n\t\treturn Base.getAll_as(this.model, this.getResource(), PAGEEND, java.lang.String.class);\n\t}",
"Map<String, String> getStartQueryParameters();",
"String toStringStartValues();",
"public String streamIterate() {\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tstr += i;\n\t\t}\n\t\treturn str;\n\t}",
"public String getStart()\r\n\t{\r\n\t\treturn start;\r\n\t}",
"public ReactorResult<java.lang.String> getAllbiboPages_as() {\n\t\treturn Base.getAll_as(this.model, this.getResource(), PAGES, java.lang.String.class);\n\t}",
"io.dstore.values.StringValue getPage();",
"public String getPage() {\n return page;\n }",
"public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllbiboPagestart_asNode_() {\n\t\treturn Base.getAll_as(this.model, this.getResource(), PAGESTART, org.ontoware.rdf2go.model.node.Node.class);\n\t}",
"java.lang.String getRetStart();",
"@Test\r\n public void test2(){\n\r\n Map searchMap = new HashMap();\r\n searchMap.put(\"roleId\",\"2\");\r\n searchMap.put(\"startTime\",\"2019-05-18 21:58:52\");\r\n searchMap.put(\"endTime\",\"2019-05-22 21:58:52\");\r\n Page<Copartner> page = (Page<Copartner>) copartnerService.pageQuery(searchMap);\r\n System.out.println(\"total: \"+page.getTotal()+\"aaaaaaaaaaaa\");\r\n List<Copartner> result = page.getResult();\r\n for (Copartner copartner : result) {\r\n Date startTime = copartner.getStartTime();\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM:dd HH:mm:ss\");\r\n String format=\"\";\r\n if(startTime!=null){\r\n format = simpleDateFormat.format(startTime);\r\n }\r\n\r\n System.out.println(copartner.getRoleId()+\"aaaaaa\"+format);\r\n }\r\n// System.out.println(result+\"aaaaaaa\");\r\n }",
"public ReactorResult<java.lang.String> getAllbiboNumberofpages_as() {\n\t\treturn Base.getAll_as(this.model, this.getResource(), NUMBEROFPAGES, java.lang.String.class);\n\t}",
"public int getStartPage() {\n return startPage;\n }",
"sawtooth.sdk.protobuf.ClientPagingResponse getPaging();",
"public String getPropertiesForOutput()\n { //declare variable and assign its value\n String allPropertiesAppended = \"\";\n \n /*for loop to go through propertyList data \n and retrieving each element of propertyList \n assigning them to property variable*/\n for(Property property : propertyList)\n { /*store all properties into allPropertiesAppended variable\n (by concatenating it).*/\n allPropertiesAppended += property +\"\\n\";\n }//end of for\n //return allPropertiesAppended\n return allPropertiesAppended;\n }",
"public String getStartContinuation() {\n return this.startContinuation;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Open the user list. | protected void openUserList() {
new JDialogUsers(this.ctrl);
} | [
"public void displayUsers(){\n //go through the userName arraylist and add them to the listView\n for(String val:this.userNames){\n this.userListView.getItems().add(val);\n }\n }",
"private void loadUserList () {\n\t\tAgent owner = getAnonymous();\n\t\tboolean bLoadedOrCreated = false;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tactiveUserList = fetchArtifact( Envelope.getClassEnvelopeId(UserAgentList.class, MAINLIST_ID));\n\t\t\t\tactiveUserList.open ( owner );\n\t\t\t\tbLoadedOrCreated = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tif ( activeUserList == null ) {\n\t\t\t\t\tactiveUserList = Envelope.createClassIdEnvelope(new UserAgentList(), MAINLIST_ID, owner );\n\t\t\t\t\tactiveUserList.open ( owner );\n\t\t\t\t\tactiveUserList.setOverWriteBlindly(false);\n\t\t\t\t\tactiveUserList.lockContent();\n\t\t\t\t\tbLoadedOrCreated = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ( bLoadedOrCreated && hsUserUpdates.size() > 0 ) { \n\t\t\t\tfor ( UserAgent agent : hsUserUpdates)\n\t\t\t\t\tactiveUserList.getContent(UserAgentList.class).updateUser(agent);\n\t\t\t\tdoStoreUserList ();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tobserverNotice(Event.NODE_ERROR, \"Error updating the user registration list: \" + e.toString());\n\t\t\te.printStackTrace ();\n\t\t}\n\t}",
"public LIST_USERS(String id) { super(id); }",
"private static void readUserList() throws IOException {\n\t\tString line;\n\t\tFile file = new File(\"userlist.txt\");\n\t\tif (!file.exists()) \n\t\t\tfile.createNewFile();\n\t\t\n\t\tFileReader userfile = new FileReader(\"userlist.txt\");\n\t\tBufferedReader reader = new BufferedReader(userfile);\n\t\t\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tint i = line.indexOf(\" \");\n\t\t\tString name = line.substring(0, i);\n\t\t\tboolean hasuser = false;\n\t\t\tfor (int k=0; k<userlist.size(); k++) {\n\t\t\t\tif (userlist.get(k).getName().equals(name)) {\n\t\t\t\t\thasuser = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tif (!hasuser) {\n\t\t\t\tuserlist.add(new User(name, line.substring(i+1)));\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}",
"public ListUsers() {\n initComponents();\n }",
"public void viewAllUser() {\n\t\ttry {\n\t\t\tAdminDao dao = AdminFactory.getInstance();\n\t\t\tString type = \"User\";\n\t\t\tAdminBean adminBean = dao.viewAllUser(type);\n\t\t\tif (adminBean != null) {\n\t\t\t\tSystem.out.println(\"Above the list is displayed\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Failed to load the List\");\n\t\t\t} // End of else\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"You have entered Invalid Credential\");\n\t\t\tupdateProduct();\n\t\t} // End of catch()\n\t}",
"private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}",
"private void createUserList() {\n\t\tif (!userList.isEmpty() && !listUsers.isSelectionEmpty()) {\n\t\t\tlistUsers.clearSelection();\n\t\t}\t\t\n\t\tif (!archivedUserList.isEmpty() && !listArchivedUsers.isSelectionEmpty()) {\n\t\t\tlistArchivedUsers.clearSelection();\n\t\t}\t\t\n\t\tarchivedUserList.clear();\n\t\tuserList.clear();\n\t\tArrayList<User> users = jdbc.get_users();\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).active()) {\n\t\t\t\tuserList.addElement(String.format(\"%s, %s [%s]\", users.get(i).get_lastname(), users.get(i).get_firstname(), users.get(i).get_username()));\n\t\t\t} else {\n\t\t\t\tarchivedUserList.addElement(String.format(\"%s, %s [%s]\", users.get(i).get_lastname(), users.get(i).get_firstname(), users.get(i).get_username()));\n\t\t\t}\t\t\n\t\t}\n\t}",
"private void addUsersToListView() {\n listView = new ListView<>(userList);\n listView.getItems().clear();\n listView.setPrefSize(200, 500);\n listView.setEditable(true);\n boolean isPremium;\n for(User user : users) {\n isPremium = user instanceof PremiumAdult;\n userList.add(new CustomRow(user.getUserId(), user.getName(), user.getRegisterDate().toString(),\n user.getEmail(), isPremium));\n }\n listView.setItems(userList);\n vBoxList.getChildren().add(listView);\n listView.setCellFactory(customRowListView -> new CustomListCell());\n listView.getSelectionModel().selectedItemProperty().addListener((observableValue, s, t1) -> {\n if(t1 != null) {\n User user = UserManager.getUsersByName(t1.getName()).get(0);\n promoteButton.setDisable(user instanceof Kid || user instanceof PremiumAdult);\n UserManager.setPickedUser(UserManager.getUsersByName(t1.getName()).get(0));\n }\n });\n }",
"private void readUsersList() throws IOException {\n int usersCount = input.readInt();\n\n List<String> usersList = new ArrayList<>();\n for(int i = 0; i < usersCount; ++i) {\n usersList.add(input.readUTF());\n }\n\n Platform.runLater(() -> controller.usersList.setAll(usersList));\n Platform.runLater(() -> controller.changeLabel(\"RECEIVED: List of users\"));\n\n }",
"public void listOpenUserCollections() {\n menuAddToCollection.removeAll();\n ArrayList<ModelUserCollection> openUserCollections = modelOpenUserCollections.getOpenCollections();\n if(openUserCollections.size() > 0) {\n menuAddToCollection.setEnabled(true);\n for(ModelUserCollection modelUserCollection : openUserCollections) {\n JMenuItem menuItemUserCollection = new JMenuItem(\n new ActionAddReleaseToUserCollection(modelUserCollection.getName(), modelUserCollection, modelSelectedRelease));\n menuAddToCollection.add(menuItemUserCollection);\n // Toevoegen aan de collectie die openstaat in onmogelijk\n if(modelUserCollection == modelCollection) {\n menuItemUserCollection.setEnabled(false);\n }\n }\n } else {\n menuAddToCollection.setEnabled(false);\n }\n }",
"public void openAppList() throws UiObjectNotFoundException, RemoteException {\n\t\tunlock();\n\t\tUiObject uiObj = getObjByTxt(\"Apps\");\n\t\tif (uiObj.exists())\n\t\t\tuiObj.clickAndWaitForNewWindow();\n\t}",
"private void openUserView() {\n // get the currently selected node\n UserGroupComponent node = \n (UserGroupComponent) this.userGroupTreePane.getLastSelectedPathComponent();\n // if the node exists and is a leaf\n if(node != null && (node instanceof UserLeaf)){\n // get username\n String userName = node.toString();\n // open a user window if the twitter user exists\n if(twitterUsers.containsKey(userName)){\n new UserWindow(twitterUsers.get(userName));\n }\n }\n }",
"public List<Users> getUserList() {\n\t\t\tuserList = sysMan.listUsers();\n\t\t\treturn userList;\n\t\t}",
"public void updateUsersList() {\n\t adapter = new UsersAdapter(getActivity(), allUsers);\n setListAdapter(adapter);\n\t getListView().setOnItemClickListener(this);\n\t}",
"public static void initializeUserList() {\r\n\t\tUser newUser1 = new User(1, \"Elijah Hickey\", \"snhuEhick\", \"4255\", \"Admin\");\r\n\t\tuserList.add(newUser1);\r\n\t\t\r\n\t\tUser newUser2 = new User(2, \"Bob Ross\", \"HappyClouds\", \"200\", \"Employee\");\r\n\t\tuserList.add(newUser2);\r\n\t\t\r\n\t\tUser newUser3 = new User(3, \"Jane Doe\", \"unknown person\", \"0\", \"Intern\");\r\n\t\tuserList.add(newUser3);\r\n\t}",
"public static UserList readUserList() {\n\t\tArrayList<User> userList = new ArrayList<User>();\n\t\t// Open file and scanner\n\t\tFile file = null;\n\t\tScanner in = null;\n\t\ttry {\n\t\t\tfile = new File(\"network.txt\");\n\t\t\tin = new Scanner(file);\n\t\t} catch (FileNotFoundException e) { \t// If network.txt file doesn't exist\n\t\t\ttry {\t\t\t\t\t\t\t\t// then\n\t\t\t\tfile.createNewFile(); \t\t\t// create it\n\t\t\t\tfile = new File(\"network.txt\"); // and reopen file on it\n\t\t\t} catch (Exception d) {\n\t\t\t\tSystem.out.println(d);\n\t\t\t}\n\t\t}\n\t\twhile (in.hasNextLine()) {\t// While there is another username in network.txt\n\t\t\tFile userFile = new File(\"users\"+File.separator+\n\t\t\t\t\t\t\t\t\t in.nextLine()+File.separator+\n\t\t\t\t\t\t\t\t\t \"profile.txt\"); // Open the user's profile.txt\n\t\t\tif (userFile.exists()) {\n\t\t\t\tuserList.add(readUser(userFile.getPath()));\n\t\t\t}\n\t\t}\n\t\treturn new UserList(userList);\n\t}",
"private void openUser() {\n Intent intent = new Intent(this, MenuActivity.class);\n userResultLauncher.launch(intent);\n }",
"public static void showAll(ArrayList<User> listUser) {\n System.out.println(\"--------------------------------------------------------------------\");\n System.out.println(\"|************************** Danh sach User *************************|\");\n System.out.println(\"--------------------------------------------------------------------\");\n System.out.println(\"| ID | Name | Username | Password |\");\n System.out.println(\"--------------------------------------------------------------------\");\n listUser.forEach((user) -> {\n System.out.println(user);\n });\n System.out.println(\"--------------------------------------------------------------------\");\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last slogan in the ordered set where groupId = &63; and status = &63;. | public static com.inkwell.internet.slogan.model.Slogan findByG_S_Last(
long groupId, int status,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.inkwell.internet.slogan.NoSuchSloganException,
com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByG_S_Last(groupId, status, orderByComparator);
} | [
"public static com.inkwell.internet.slogan.model.Slogan fetchByG_S_Last(\n\t\tlong groupId, int status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence()\n\t\t\t\t .fetchByG_S_Last(groupId, status, orderByComparator);\n\t}",
"public Todo fetchByG_S_Last(\n\t\tlong groupId, int status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public ExpenseItem fetchByG_S_Last(\n\t\tlong groupId, int status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<ExpenseItem>\n\t\t\torderByComparator);",
"public org.liferay.jukebox.model.Album fetchByG_S_Last(long groupId,\n int status,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public org.liferay.jukebox.model.Album fetchByG_LikeN_S_Last(long groupId,\n java.lang.String name, int status,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public org.liferay.jukebox.model.Album findByG_S_Last(long groupId,\n int status,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n org.liferay.jukebox.NoSuchAlbumException;",
"public static com.inkwell.internet.slogan.model.Slogan fetchByGroupId_Last(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence().fetchByGroupId_Last(groupId, orderByComparator);\n\t}",
"public static com.dtt.portal.dao.vbpq.model.VanBanPhapQuy fetchByGroupId_Last(\n\t\tlong groupId, int status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence()\n\t\t\t\t .fetchByGroupId_Last(groupId, status, orderByComparator);\n\t}",
"public ServiceOrderLog getLastLog(){\n\t\t\n\t\tList<ServiceOrderLog> list = new ArrayList<ServiceOrderLog>(this.getLog());\n\t\t\n\t\tCollections.sort(list, new Comparator<ServiceOrderLog>() {\n\t\t public int compare(ServiceOrderLog log1, ServiceOrderLog log2) {\n\t\t int i1 = log1.getId();\n\t\t int i2 = log2.getId();\n\t\t return (i1 < i2 ? -1 : (i1 == i2 ? 0 : 1));\n\t\t }\n\t\t});\n\t\t\n\t\treturn list.get(list.size()-1);\n\t}",
"public static com.inkwell.internet.slogan.model.Slogan findByGroupId_Last(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.inkwell.internet.slogan.NoSuchSloganException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence().findByGroupId_Last(groupId, orderByComparator);\n\t}",
"public Todo findByG_S_Last(\n\t\t\tlong groupId, int status,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchTodoException;",
"public BookmarksEntry fetchByG_S_Last(long groupId, int status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<BookmarksEntry> orderByComparator);",
"public Product fetchByG_S_Last(\n\t\tlong groupId, int status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Product>\n\t\t\torderByComparator);",
"public Loan fetchByStatus_Last(String status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Loan> orderByComparator);",
"public Todo fetchByG_U_S_Last(\n\t\tlong groupId, long userId, int status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public org.liferay.jukebox.model.Album findByG_LikeN_S_Last(long groupId,\n java.lang.String name, int status,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n org.liferay.jukebox.NoSuchAlbumException;",
"public org.liferay.jukebox.model.Album fetchByG_A_S_Last(long groupId,\n long artistId, int status,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public ExpenseItem findByG_S_Last(\n\t\t\tlong groupId, int status,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<ExpenseItem>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchExpenseItemException;",
"public BookmarksEntry fetchByG_U_S_Last(long groupId, long userId,\n\t\tint status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<BookmarksEntry> orderByComparator);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get or create a vertex with given id. | synchronized Vertex<V, E, M> getOrCreateVertex(long id) {
Vertex<V, E, M> vertex = vertices.get(id);
if (vertex == null) {
vertex = new Vertex<>(id, this);
this.vertices.put(id, vertex);
}
return vertex;
} | [
"V getVertexById(String id);",
"Vertex getVertex(Long id){\n return graphDB.get(id);\n }",
"public Vertex getVertex(int id) {\n if (idVertexIndex.containsKey(id)) {\n return idVertexIndex.get(id);\n } else {\n throw new RuntimeException(\"Graph: getVertex: cannot retrieve vertex for invalid identifier.\");\n }\n }",
"public VertexV getVertex(int id) throws IllegalArgumentException {\n if (!vertices.containsKey(id))\n throw new IllegalArgumentException(\"Vertex not in graph\");\n return vertices.get(id);\n }",
"public Vertex findVertById(int id) throws SQLException {\n\t\treturn rDb.findVertById(id);\n\t}",
"public Vertex (String id){\r\n this.id = id;\r\n }",
"public HitVertex getVertex(String id) {\n\t\treturn hitVertices.get(id);\n\t}",
"private void newVertex(int v_id) {\n\t\tList<Integer> l = new ArrayList<Integer>();\n\t\tl.add(p.id());\n\t\tVertex v = new Vertex(v_id, p.id(), l, null, 1, 1, false);\n//\t\tVertexData v_data = p.toExecute.get(0).getVertexData(v_id, null, vertexFile);\n//\t\tv.setData(v_data);\n//\t\tv.flushData();\n\t\tvertices.put(v_id, v);\n\t\tinEdges.put(v_id, new TIntHashSet());\n\t\toutEdges.put(v_id, new TIntHashSet());\n\t}",
"String getVertexId();",
"Vertex createVertex();",
"public Vertex getVertex(String vertexId) {\r\n for (int i = 0; i < vertexList.size(); i++) {\r\n if (vertexList.get(i).getVertexId().equals(vertexId)) {\r\n return vertexList.get(i);\r\n }\r\n }\r\n return null;\r\n }",
"public Vertex(String id) { \n name = id; \n }",
"Vertex getVertex(int index);",
"void addVertex(Vertex v) {\n graphDB.put(v.getId(),v);\n\n }",
"boolean addVertex(int v);",
"public void addVertexWithID(int vertexID, V vertex) {\n vertices.put(vertexID, vertex);\n }",
"public V getVertex(int vertexID) {\n if (!hasVertex(vertexID)) {\n return null;\n }\n return vertices.get(vertexID);\n }",
"public V getVertex(int index);",
"private Vertex getOrCreateVertex(String vertexName){\n Vertex v = vertexMap.get(vertexName);\n if(v == null){\n v = new Vertex(vertexName);\n vertexMap.put(vertexName, v);\n }\n return v;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Or__Group__1" $ANTLR start "rule__Or__Group__1__Impl" InternalTym.g:2133:1: rule__Or__Group__1__Impl : ( ( rule__Or__Group_1__0 ) ) ; | public final void rule__Or__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalTym.g:2137:1: ( ( ( rule__Or__Group_1__0 )* ) )
// InternalTym.g:2138:1: ( ( rule__Or__Group_1__0 )* )
{
// InternalTym.g:2138:1: ( ( rule__Or__Group_1__0 )* )
// InternalTym.g:2139:2: ( rule__Or__Group_1__0 )*
{
if ( state.backtracking==0 ) {
before(grammarAccess.getOrAccess().getGroup_1());
}
// InternalTym.g:2140:2: ( rule__Or__Group_1__0 )*
loop26:
do {
int alt26=2;
int LA26_0 = input.LA(1);
if ( (LA26_0==35) ) {
alt26=1;
}
switch (alt26) {
case 1 :
// InternalTym.g:2140:3: rule__Or__Group_1__0
{
pushFollow(FOLLOW_19);
rule__Or__Group_1__0();
state._fsp--;
if (state.failed) return ;
}
break;
default :
break loop26;
}
} while (true);
if ( state.backtracking==0 ) {
after(grammarAccess.getOrAccess().getGroup_1());
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__Or__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:2126:1: ( rule__Or__Group__1__Impl )\n // InternalTym.g:2127:2: rule__Or__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Or__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6903:1: ( rule__Or__Group__1__Impl )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6904:2: rule__Or__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__Or__Group__1__Impl_in_rule__Or__Group__113562);\n rule__Or__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group__1() throws RecognitionException {\n int rule__Or__Group__1_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 670) ) { return ; }\n // InternalGaml.g:11560:1: ( rule__Or__Group__1__Impl )\n // InternalGaml.g:11561:2: rule__Or__Group__1__Impl\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Or__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 670, rule__Or__Group__1_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:2207:1: ( rule__Or__Group_1__2__Impl )\n // InternalTym.g:2208:2: rule__Or__Group_1__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Or__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6997:1: ( rule__Or__Group_1__2__Impl )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6998:2: rule__Or__Group_1__2__Impl\n {\n pushFollow(FOLLOW_rule__Or__Group_1__2__Impl_in_rule__Or__Group_1__213747);\n rule__Or__Group_1__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group__1__Impl() throws RecognitionException {\n int rule__Or__Group__1__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 671) ) { return ; }\n // InternalGaml.g:11571:1: ( ( ( rule__Or__Group_1__0 )* ) )\n // InternalGaml.g:11572:1: ( ( rule__Or__Group_1__0 )* )\n {\n // InternalGaml.g:11572:1: ( ( rule__Or__Group_1__0 )* )\n // InternalGaml.g:11573:1: ( rule__Or__Group_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOrAccess().getGroup_1()); \n }\n // InternalGaml.g:11574:1: ( rule__Or__Group_1__0 )*\n loop119:\n do {\n int alt119=2;\n int LA119_0 = input.LA(1);\n\n if ( (LA119_0==149) ) {\n alt119=1;\n }\n\n\n switch (alt119) {\n \tcase 1 :\n \t // InternalGaml.g:11574:2: rule__Or__Group_1__0\n \t {\n \t pushFollow(FollowSets000.FOLLOW_56);\n \t rule__Or__Group_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop119;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOrAccess().getGroup_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 671, rule__Or__Group__1__Impl_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:2153:1: ( rule__Or__Group_1__0__Impl rule__Or__Group_1__1 )\n // InternalTym.g:2154:2: rule__Or__Group_1__0__Impl rule__Or__Group_1__1\n {\n pushFollow(FOLLOW_18);\n rule__Or__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Or__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6935:1: ( rule__Or__Group_1__0__Impl rule__Or__Group_1__1 )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6936:2: rule__Or__Group_1__0__Impl rule__Or__Group_1__1\n {\n pushFollow(FOLLOW_rule__Or__Group_1__0__Impl_in_rule__Or__Group_1__013624);\n rule__Or__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Or__Group_1__1_in_rule__Or__Group_1__013627);\n rule__Or__Group_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6966:1: ( rule__Or__Group_1__1__Impl rule__Or__Group_1__2 )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6967:2: rule__Or__Group_1__1__Impl rule__Or__Group_1__2\n {\n pushFollow(FOLLOW_rule__Or__Group_1__1__Impl_in_rule__Or__Group_1__113685);\n rule__Or__Group_1__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Or__Group_1__2_in_rule__Or__Group_1__113688);\n rule__Or__Group_1__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6914:1: ( ( ( rule__Or__Group_1__0 )* ) )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6915:1: ( ( rule__Or__Group_1__0 )* )\n {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6915:1: ( ( rule__Or__Group_1__0 )* )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6916:1: ( rule__Or__Group_1__0 )*\n {\n before(grammarAccess.getOrAccess().getGroup_1()); \n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6917:1: ( rule__Or__Group_1__0 )*\n loop36:\n do {\n int alt36=2;\n int LA36_0 = input.LA(1);\n\n if ( (LA36_0==37) ) {\n alt36=1;\n }\n\n\n switch (alt36) {\n \tcase 1 :\n \t // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6917:2: rule__Or__Group_1__0\n \t {\n \t pushFollow(FOLLOW_rule__Or__Group_1__0_in_rule__Or__Group__1__Impl13589);\n \t rule__Or__Group_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop36;\n }\n } while (true);\n\n after(grammarAccess.getOrAccess().getGroup_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:30111:1: ( rule__Or__Group_1__2__Impl )\n // InternalDsl.g:30112:2: rule__Or__Group_1__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Or__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:30057:1: ( rule__Or__Group_1__0__Impl rule__Or__Group_1__1 )\n // InternalDsl.g:30058:2: rule__Or__Group_1__0__Impl rule__Or__Group_1__1\n {\n pushFollow(FOLLOW_177);\n rule__Or__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Or__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__OrExpr__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:3446:1: ( rule__OrExpr__Group__1__Impl )\n // InternalMGPL.g:3447:2: rule__OrExpr__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__OrExpr__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:30003:1: ( rule__Or__Group__0__Impl rule__Or__Group__1 )\n // InternalDsl.g:30004:2: rule__Or__Group__0__Impl rule__Or__Group__1\n {\n pushFollow(FOLLOW_177);\n rule__Or__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Or__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:2099:1: ( rule__Or__Group__0__Impl rule__Or__Group__1 )\n // InternalTym.g:2100:2: rule__Or__Group__0__Impl rule__Or__Group__1\n {\n pushFollow(FOLLOW_18);\n rule__Or__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Or__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6874:1: ( rule__Or__Group__0__Impl rule__Or__Group__1 )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6875:2: rule__Or__Group__0__Impl rule__Or__Group__1\n {\n pushFollow(FOLLOW_rule__Or__Group__0__Impl_in_rule__Or__Group__013503);\n rule__Or__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Or__Group__1_in_rule__Or__Group__013506);\n rule__Or__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Or__Group_1__2() throws RecognitionException {\n int rule__Or__Group_1__2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 676) ) { return ; }\n // InternalGaml.g:11652:1: ( rule__Or__Group_1__2__Impl )\n // InternalGaml.g:11653:2: rule__Or__Group_1__2__Impl\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Or__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 676, rule__Or__Group_1__2_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__OrExpression__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:6905:1: ( rule__OrExpression__Group__1__Impl )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:6906:2: rule__OrExpression__Group__1__Impl\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__OrExpression__Group__1__Impl_in_rule__OrExpression__Group__114162);\r\n rule__OrExpression__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__OrExpression__Group_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:6968:1: ( rule__OrExpression__Group_1__1__Impl )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:6969:2: rule__OrExpression__Group_1__1__Impl\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__OrExpression__Group_1__1__Impl_in_rule__OrExpression__Group_1__114286);\r\n rule__OrExpression__Group_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field checkStatus is set (has been assigned a value) and false otherwise | public boolean isSetCheckStatus() {
return EncodingUtils.testBit(__isset_bitfield, __CHECKSTATUS_ISSET_ID);
} | [
"boolean hasCheckField();",
"boolean getCheckState();",
"public boolean is_set_status() {\n return this.status != null;\n }",
"public boolean isSetCheckInfo() {\n return this.checkInfo != null;\n }",
"public boolean isSetGameStatus() {\n return this.gameStatus != null;\n }",
"public boolean isSetStep_status() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STEP_STATUS_ISSET_ID);\n }",
"public boolean isSetCheckTime() {\r\n return this.checkTime != null;\r\n }",
"public boolean isSetAuditStatus() {\n return EncodingUtils.testBit(__isset_bitfield, __AUDITSTATUS_ISSET_ID);\n }",
"public void setStatusCheck(boolean statusCheck) {\r\n\t\t\tthis.statusCheck = statusCheck;\r\n\t\t}",
"public String getCheckStatus() {\r\n return checkStatus;\r\n }",
"public String getCheckStatus() {\n return this.CheckStatus;\n }",
"public boolean isSetAssmStatus() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ASSMSTATUS_ISSET_ID);\n }",
"public boolean isSetPayStatus() {\n return EncodingUtils.testBit(__isset_bitfield, __PAYSTATUS_ISSET_ID);\n }",
"public String getCheckStatus() {\n\t\treturn checkStatus;\n\t}",
"public String getCheckstatus() {\n return checkstatus;\n }",
"public boolean getValidStatus()\r\n\t{\r\n\t\treturn validstatus;\r\n\t}",
"public boolean checkIn()\r\n\t{\r\n\t\tif(this.status == 'B')\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"public boolean isSetBoolVal() {\n return this.boolVal != null;\n }",
"public void setCheckStatus(String checkStatus) {\n\t\tthis.checkStatus = checkStatus;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get the initial data packet to request file from server | private DatagramPacket getRequestPacket() {
String requestFile = "REQUEST ", filePath;
DatagramPacket packet;
if (ip != null) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter file name: ");
filePath = reader.readLine();
try {
fileSavePath = filePath.substring(0, filePath.indexOf(".")) + "_copy"
+ filePath.substring(filePath.indexOf("."));
} catch(StringIndexOutOfBoundsException e) {
System.out.println("Time: " + System.currentTimeMillis() + "\t" +
"Warning file has no extension");
fileSavePath = filePath + "_copy";
}
requestFile += filePath + "\n\r";
byte[] data = requestFile.getBytes();
packet = new DatagramPacket(data, data.length, ip, port);
return packet;
} catch (IOException ex) {
Logger.getLogger(FClientSAW.class.getName()).log(Level.SEVERE, null, ex);
}
}
return null;
} | [
"private String makeInitialRequest() {\n StringBuilder sb = new StringBuilder(50\n + this.filePart.getFilename().length()\n + this.recDef.getJsonInputDef().length()\n + this.recDef.getJsonOutputDef().length());\n sb.append(\"{ \\\"format\\\" : \\\"binary\\\", \\\"node\\\" : \");\n sb.append(\"{\\n \\\"kind\\\" : \\\"diskread\\\",\\n \\\"fileName\\\" : \\\"\");\n sb.append(this.filePart.getFilename());\n sb.append(\"\\\",\\n \\\"input\\\" : \");\n sb.append(this.recDef.getJsonInputDef());\n sb.append(\", \\n \\\"output\\\" : \");\n sb.append(this.recDef.getJsonOutputDef());\n sb.append(\"\\n } }\\n\\n\");\n return sb.toString();\n }",
"com.google.protobuf.ByteString getRequestData();",
"com.google.protobuf.ByteString getDataInitialChunk();",
"RPCUploadFileResponse.UploadResult getData();",
"public void readRequest() {\r\n\t\tFileReader fr;\r\n\t\tBufferedReader br;\r\n\t\tString string_read, path;\r\n\t\tint request_count = 0, response_count = 0;\r\n\r\n\t\ttry {\r\n\t\t\tpath = file_dir + \"\\\\\" + file_name;\r\n\t\t\tfr = new FileReader(path);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\r\n\t\t\twhile ((string_read = br.readLine()) != null) {\r\n\t\t\t\tif (string_read.indexOf(\"REQUEST\") > -1) {\r\n\t\t\t\t\tif (protocol.equals(\"PROT_SOH\"))\r\n\t\t\t\t\t\trequest[request_count] = string_read.substring(\r\n\t\t\t\t\t\t\t\t(string_read.indexOf(\"=\") + 1)).toUpperCase();\r\n\t\t\t\t\telse if (protocol.equals(\"PROT_RAC\"))\r\n\t\t\t\t\t\trequest[request_count] = string_read\r\n\t\t\t\t\t\t\t\t.substring((string_read.indexOf(\"=\") + 1));\r\n\r\n\t\t\t\t\tif (Debug)\r\n\t\t\t\t\t\tSystem.out.println(\"Request \" + request[request_count]);\r\n\t\t\t\t\trequest_count++;\r\n\t\t\t\t\trequest_index++;\r\n\t\t\t\t}\r\n\t\t\t\tif (string_read.indexOf(\"EXPECTED\") > -1) {\r\n\t\t\t\t\tif (protocol.equals(\"PROT_SOH\"))\r\n\t\t\t\t\t\tresponse[response_count] = string_read.substring(\r\n\t\t\t\t\t\t\t\t(string_read.indexOf(\"=\") + 1)).toUpperCase();\r\n\t\t\t\t\telse if (protocol.equals(\"PROT_RAC\"))\r\n\t\t\t\t\t\tresponse[response_count] = string_read\r\n\t\t\t\t\t\t\t\t.substring((string_read.indexOf(\"=\") + 1));\r\n\r\n\t\t\t\t\tif (Debug)\r\n\t\t\t\t\t\tSystem.out.println(\"Response \"\r\n\t\t\t\t\t\t\t\t+ response[response_count]);\r\n\t\t\t\t\tresponse_count++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (Debug)\r\n\t\t\t\tSystem.out.println(\"Request Read Error\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"com.google.protobuf.ByteString getResponseData();",
"public void OnFileDataReceived(byte[] data,int read, int length, int downloaded);",
"void requestFile() {\n byte[] arr;\n\n InputStream is = null;\n BufferedOutputStream bos = null;\n\n try {\n Socket socket = new Socket(csIp,60000);\n //send file name to content server\n OutputStream outputServer = socket.getOutputStream();\n DataOutputStream out = new DataOutputStream(outputServer);\n out.writeUTF(fileName);\n\n //read file at client\n is = socket.getInputStream();\n //write file to client disk - buffer\n bos = new BufferedOutputStream(new FileOutputStream(fileName));\n\n int bufferSize = 5000;\n byte[] bytes = new byte[bufferSize];\n\n int count;\n while ((count = is.read(bytes)) > 0) {\n bos.write(bytes, 0, count);\n }\n // closing all open streams\n bos.flush();\n bos.close();\n is.close();\n socket.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"int getRequestBytes();",
"void requestFile() {\n byte[] arr;\n int fileCounter = 0;\n InputStream is = null;\n BufferedOutputStream bos = null;\n\n try {\n //connect to content server\n if ( csIp == null )\n return;\n\n System.out.println(Thread.currentThread().getName() + \" : Requesting file \" + fileName);\n Socket socket = new Socket(csIp,60000);\n\n //send file name to content server\n OutputStream outputServer = socket.getOutputStream();\n DataOutputStream out = new DataOutputStream(outputServer);\n out.writeUTF(fileName);\n\n //read file at client\n is = socket.getInputStream();\n //write file to client disk - buffer\n bos = new BufferedOutputStream(new FileOutputStream(fileName));\n\n int bufferSize = 5000;\n byte[] bytes = new byte[bufferSize];\n\n int count;\n while ((count = is.read(bytes)) > 0) {\n // bos.write(bytes, 0, count);\n }\n System.out.println(Thread.currentThread().getName() + \" : Received file..\");\n // closing all open streams\n bos.flush();\n bos.close();\n is.close();\n socket.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}",
"public void sendReadRequest() throws UnknownHostException, SocketException, IOException {\n InetAddress address = InetAddress.getByName(\"localhost\");\n socket = new DatagramSocket(rand.nextInt(4000) + 1024);\n byte[] readByteArray = new byte[516];\n byte[] requestByteArray = createRequest(OP_RRQ, fileName, \"octet\");\n DatagramPacket packet = new DatagramPacket(requestByteArray, requestByteArray.length, address, TFTP_DEFAULT_PORT);\n socket.send(packet);\n receiveFile();\n socket.close();\n }",
"byte[] getData();",
"com.google.protobuf.ByteString getDataChunk();",
"protected String readRequest()\n {\n ByteArrayOutputStream dataStream;\n DataOutputStream dataWriter = new DataOutputStream(dataStream = new ByteArrayOutputStream());\n \n try\n {\n do\n {\n dataWriter.writeByte(this.socketReader.read());\n }\n while(this.socketReader.available() > 0);\n \n if(this.server.isDebug())\n System.out.println(\"<- \" + this.socket.getInetAddress() + \":\" + this.socket.getPort() + \" \" + new String(dataStream.toByteArray()).trim());\n \n return new String(dataStream.toByteArray());\n }\n catch(IOException e)\n {\n this.server.getLogger().log(\"Couldn't read request : \" + e.getMessage());\n }\n \n return null;\n }",
"private final boolean ReadData()\n\t\tthrows SMBException, IOException {\n\n\t\t// Check if the file offset requires large file support (64bit offsets)\n\n\t\tif ( isNTDialect() == false && m_rxpos > Maximum32BitOffset)\n\t\t\tthrow new SMBException(SMBStatus.JLANErr, SMBStatus.JLANLargeFilesNotSupported);\n\n\t\t// Allocate and initialize a receive packet, if not already allocated\n\n\t\tif ( m_rxpkt == null) {\n\n\t\t\t// Allocate a receive packet\n\n\t\t\tm_rxpkt = m_sess.allocatePacket(PacketSize);\n\n\t\t\t// Initialize the packet\n\n\t\t\tm_rxpkt.setUserId(m_sess.getUserId());\n\t\t\tm_rxpkt.setTreeId(m_sess.getTreeId());\n\t\t}\n\n\t\t// Read a packet of data from the remote file\n\n\t\tm_rxpkt.setCommand(PacketType.ReadAndX);\n\t\tm_rxpkt.setParameterCount(isNTDialect() ? 12 : 10);\n\t\tm_rxpkt.setAndXCommand(PacketType.NoChainedCommand);\n\t\tm_rxpkt.setFlags(m_sess.getDefaultFlags());\n\t\tm_rxpkt.setFlags2(m_sess.getDefaultFlags2());\n\t\tm_rxpkt.setProcessId(m_sess.getProcessId());\n\n\t\t// Set the file id and read offset\n\n\t\tm_rxpkt.setParameter(2, getFileId());\n\t\tm_rxpkt.setParameterLong(3, (int) (m_rxpos & 0xFFFFFFFF));\n\n\t\t// Set the maximum/minimum read size\n\n\t\tint maxCount = m_rxpkt.getBuffer().length - 64;\n\n\t\tif ( (m_rxpos + maxCount) > getFileSize())\n\t\t\tmaxCount = (int) (getFileSize() - m_rxpos);\n\n\t\tm_rxpkt.setParameter(5, maxCount);\n\t\tm_rxpkt.setParameter(6, 0);\n\n\t\t// Reserved value, must be zero\n\n\t\tm_rxpkt.setParameterLong(7, 0);\n\n\t\t// Bytes remaining to satisfy request\n\n\t\tm_rxpkt.setParameter(9, maxCount);\n\n\t\t// Set the top 32bits of the file offset for NT dialect\n\n\t\tif ( isNTDialect())\n\t\t\tm_rxpkt.setParameterLong(10, (int) ((m_rxpos >> 32) & 0x0FFFFFFFFL));\n\n\t\t// No byte data\n\n\t\tm_rxpkt.setByteCount(0);\n\n\t\t// Exchange the read data SMB packet with the file server\n\n\t\tm_rxpkt.ExchangeSMB(m_sess, m_rxpkt, true);\n\n\t\t// Check if a valid response was received\n\n\t\tif ( m_rxpkt.isValidResponse()) {\n\n\t\t\t// Set the received data length and offset within the received data\n\n\t\t\tm_rxlen = m_rxpkt.getParameter(5);\n\t\t\tm_rxoffset = m_rxpkt.getParameter(6) + RFCNetBIOSProtocol.HEADER_LEN;\n\n\t\t\t// Update the current receive file position\n\n\t\t\tm_rxpos += m_rxlen;\n\n\t\t\t// Check if we have reached the end of file, indicated by a zero length\n\t\t\t// read.\n\n\t\t\tif ( m_rxlen == 0)\n\t\t\t\tsetStateFlag(SMBFile.EndOfFile, true);\n\t\t\treturn true;\n\t\t}\n\n\t\t// Return a failure status\n\n\t\treturn false;\n\t}",
"int getRequestDataLength();",
"sample.protbuf.Message.Data getData(int index);",
"public DiskRequest getRequest () { return this.request; }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build the neighboord for each instance of "instances1" using the "instances2" to take the neighbors. | public void build (Instances instances1, Instances instances2) {
Enumeration<Instance> e = instances1.enumerateInstances();
XNNNeighborhood row;
Instance inst; int i = 0;
// For each instance, build its XNNNeighborhood object and add it to the table.
while (e.hasMoreElements()) {
inst = e.nextElement();
row = new XNNNeighborhood(inst, i, knn);
row.processNeighbors(instances2);
//System.out.println(row);
table.add(row);
i++;
}
postProcess();
} | [
"public List<Sequence> createNeighborhood(Sequence seq, int range) {\n \tList<Sequence> neighbors = new ArrayList<Sequence>();\n \t\n \tfor (SingleConstraint c : singleConstraints) {\n Game game = c.getGame();\n // too early, move forward\n if (c.earliestStartPenalty() > 0) {\n Sequence copy;\n for (int i = 1; i <= range; i++) {\n copy = new Sequence(seq);\n for (int j = 1; j <= i; j++) {\n \tif(Constants.DEBUG) {\n \t\tSystem.out.println(\"Neighbor with Move Forward game\" + game.getName());\n \t\tSystem.out.println(\" \" + copy.toString());\n \t}\n copy.moveGameForward(game);\n }\n neighbors.add(copy);\n }\n }\n // too late, move backward\n if (c.latestStartPenalty() > 0) {\n Sequence copy;\n for (int i = 1; i <= range; i++) {\n copy = new Sequence(seq);\n for (int j = 1; j <= i; j++) {\n \tif(Constants.DEBUG) {\n \t\tSystem.out.println(\"Neighbor with Move Backward game\" + game.getName());\n \t\tSystem.out.println(\" \" + copy.toString());\n \t}\n copy.moveGameBackward(game);\n }\n neighbors.add(copy);\n }\n }\n }\n for (PairConstraint c : pairConstraints) {\n Game game1 = c.getGame1();\n Game game2 = c.getGame2();\n // games too far apart, move closer\n if (c.maxLagPenalty() > 0) {\n Sequence copy1; // move earlier game\n Sequence copy2; // move later game\n Sequence copy3; // move both\n for (int i = 1; i <= range; i++) {\n copy1 = new Sequence(seq);\n copy2 = new Sequence(seq);\n copy3 = new Sequence(seq);\n for (int j = 1; j <= i; j++) {\n copy1.moveGameForward(game1);\n copy2.moveGameBackward(game2);\n copy3.moveGameForward(game1);\n copy3.moveGameBackward(game2);\n if(Constants.DEBUG) {\n \t\tSystem.out.println(\"Neighbor with 1) Foward \" + game1.getName() + \"; 2) Backward \" + game2.getName() + \"; and 1) and 2) together\");\n \t\tSystem.out.println(\" 1) \" + copy1.toString());\n \t\tSystem.out.println(\" 2) \" + copy2.toString());\n \t\tSystem.out.println(\" 3) \" + copy3.toString());\n }\n }\n neighbors.add(copy1);\n neighbors.add(copy2);\n neighbors.add(copy3);\n }\n }\n // games too close, move apart\n if (c.minLagPenalty() > 0) {\n Sequence copy1; // move earlier game\n Sequence copy2; // move later game\n Sequence copy3; // move both\n for (int i = 1; i <= range; i++) {\n copy1 = new Sequence(seq);\n copy2 = new Sequence(seq);\n copy3 = new Sequence(seq);\n for (int j = 1; j <= i; j++) {\n copy1.moveGameBackward(game1);\n copy2.moveGameForward(game2);\n copy3.moveGameBackward(game1);\n copy3.moveGameForward(game2);\n }\n if(Constants.DEBUG) {\n \t\tSystem.out.println(\"Neighbor with 1) Backward \" + game1.getName() + \"; 2) Forward \" + game2.getName() + \"; and 1) and 2) together\");\n \t\tSystem.out.println(\" 1) \" + copy1.toString());\n \t\tSystem.out.println(\" 2) \" + copy2.toString());\n \t\tSystem.out.println(\" 3) \" + copy3.toString());\n }\n neighbors.add(copy1);\n neighbors.add(copy2);\n neighbors.add(copy3);\n }\n }\n }\n \n \n return neighbors;\n }",
"public boolean areNeighbors(int n1, int n2);",
"public void generateHotspots(){\n for(int i=0;i<Parameters.NUMBER_OF_HOTSPOTS;i++){\n Peer p;\n Random r = new Random();\n int x = r.nextInt(Parameters.BOARD_WIDTH) + 1;\n int y = r.nextInt(Parameters.BOARD_HEIGHT) + 1;\n Parameters.OS os = Parameters.OS.HOTSPOT;\n p = new Peer(x, y, os, i);\n hotspots.add(p);\n }\n }",
"private void initializeNeighbours() {\n\t\tneighbours = new int[N][T];\n\t\tponderi = UtilsMoeadQoS.ponderi;\n\t\t\n\t\tdouble[][] distMatrix = new double[N][N];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tdistMatrix[i][i] = 0;\n\t\t\tfor(int j=i+1;j<N;j++){\n\t\t\t\tdistMatrix[i][j] = UtilsMOO.getInstance().distanta(ponderi[i], ponderi[j]);\n\t\t\t\tdistMatrix[j][i] = distMatrix[i][j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint[] index = sortare(distMatrix[i]);\n\t\t\tint[] array = new int[T];\n\t\t\tSystem.arraycopy(index, 0, array, 0, T);\n\t\t\tneighbours[i] = array;\n\t\t}\n\t}",
"public void neighboring() {\n\n for (int i = 0; i < this.cells.size(); i = i + 1) {\n\n Cell cell = this.cells.get(i);\n ArrayList<Integer> candidates = new ArrayList<Integer>(Arrays.asList((i - this.xgridNum - 1),\n (i - this.xgridNum), (i - this.xgridNum + 1), (i + 1), (i + this.xgridNum + 1),\n (i + this.xgridNum), (i + this.xgridNum - 1), (i - 1)));\n\n for (int candidate : candidates) {\n if (!(this.invalidNeighbor(i, candidate))) {\n Cell neighbor = this.cells.get(candidate);\n cell.addNeighbor(neighbor);\n }\n }\n this.cells.set(i, cell);\n }\n }",
"public void initializeNeighbors() {\n\t\tfor (int r = 0; r < getRows(); r++) {\n\t\t\tfor (int c = 0; c < getCols(); c++) {\n\t\t\t\tList<Cell> nbs = new ArrayList<>();\n\t\t\t\tinitializeNF(shapeType, r, c);\n\t\t\t\tmyNF.findNeighbors();\n\t\t\t\tfor (int[] arr : myNF.getNeighborLocations()){\n\t\t\t\t\tif (contains(arr[0], arr[1])){\n\t\t\t\t\t\tnbs.add(get(arr[0], arr[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tget(r, c).setNeighbors(nbs);\n\t\t\t}\n\t\t}\n\t}",
"public abstract void setupNeighbours(ElectionNode... neighbours);",
"public Iterator<Example> getNeighbors(Instance instance){\n\t\tSet<Example> set=new HashSet<Example>();\n\t\tfor(Iterator<Feature> i=instance.featureIterator();i.hasNext();){\n\t\t\tFeature f=i.next();\n\t\t\tfor(Iterator<Example> j=featureIndex(f).iterator();j.hasNext();){\n\t\t\t\tset.add(j.next());\n\t\t\t}\n\t\t}\n\t\treturn set.iterator();\n\t}",
"public void calcAliveNeighbors() {\r\n this.aliveNeighbors = 0;\r\n this.neighbors.forEach(c -> {\r\n if (c.isAlive()) {\r\n this.aliveNeighbors++;\r\n }\r\n });\r\n }",
"public void instantiateNodes()\n\t{\n\t\tfor(int i = 0 ; i < rows ; i++) {\n\t\t\tfor( int j = 0 ; j < cols ; j++) {\n\t\t\t\tif (layout[i][j]==1){\n\t\t\t\t\tNode newNode = new Node(new Coordinate(j,i));\t\t//Yay for sign conventions\n\t\t\t\t\tnodes.add(newNode);\n\t\t\t\t\t//When node i,j is not on the bottom edge (i>0)\n\t\t\t\t\tif (i>0){\n\t\t\t\t\t\t//Check if there is a '1' above the current node \n\t\t\t\t\t\tif (layout[i-1][j]==1){\n\t\t\t\t\t\t\t//for all Node from ArrayList nodes\n\t\t\t\t\t\t\tfor (Node node : nodes){\n\t\t\t\t\t\t\t\t//get its coordinate\n\t\t\t\t\t\t\t\tCoordinate c = node.getCoordinate();\n\t\t\t\t\t\t\t\t//check if node is a neighbor of newNode and add each neighbor to both nodes\n\t\t\t\t\t\t\t\tif (c.getX()==j && c.getY()==i-1){\n\t\t\t\t\t\t\t\t\tnode.addNeighbor(newNode, 1);\n\t\t\t\t\t\t\t\t\tnewNode.addNeighbor(node, 1);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//When node i,j is not on the left edge (j>0) \n\t\t\t\t\tif (j>0){\n\t\t\t\t\t\t//Check if there is a '1' left from the current node\n\t\t\t\t\t\tif (layout[i][j-1]==1){\n\t\t\t\t\t\t\t//for all Node from ArrayList nodes\n\t\t\t\t\t\t\tfor (Node node : nodes){\n\t\t\t\t\t\t\t\t//get its coordinate\n\t\t\t\t\t\t\t\tCoordinate c = node.getCoordinate();\n\t\t\t\t\t\t\t\t//check if node is a neighbor of newNode and add each neighbor to both nodes\n\t\t\t\t\t\t\t\tif (c.getX()==j-1 && c.getY()==i){\n\t\t\t\t\t\t\t\t\tnode.addNeighbor(newNode, 1);\n\t\t\t\t\t\t\t\t\tnewNode.addNeighbor(node, 1);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public List<Node> generateNeighbours(){\n\t\tRandom random = new Random();\n\t\t//x and y are used to give a random position to start looking in the board\n\t\tint x;\n\t\tint y;\n\t\t//Booleans to check if we actually where able to remove or add an egg.\n\t\tboolean remove;\n\t\tboolean add;\n\t\t//The board we modify to create a neighbour\n\t\tint [][] neighbourBoard;\n\t\t//Create neighbours where we add eggs\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tadd=false;\n\t\t\t//Create an identical clone to our board\n\t\t\tneighbourBoard = cloneBoard(this.board);\n\t\t\tx = random.nextInt(width);\n\t\t\ty = random.nextInt(height);\n\t\t\t//If the cell is empty and it doesen't collide with too many other eggs\n\t\t\t//we are allowed to add an egg here\n\t\t\tif(neighbourBoard[y][x]==0 && cellIsAvailable(x, y)){\n\t\t\t\tneighbourBoard[y][x]=1;\n\t\t\t\tadd=true;\n\t\t\t}\n\t\t\t//else we check for the first place we can add an egg\n\t\t\telse{\n\t\t\t\tadd = placeNextPossibleCell(x,y, neighbourBoard);\n\t\t\t}\n\t\t\t//If we managed to add an egg we want to create the neighbor\n\t\t\tif(add){\n\t\t\t\taddNeighbour(new Node(height, width, k, neighbourBoard));\n\t\t\t}\n\t\t}\n\t\t//Create neighbours where we remove eggs\n\t\t//This works in the same way ass add egg\n\t\tfor(int i = 0;i<10 && i<eggs;i++){\n\t\t\tremove = false;\n\t\t\tneighbourBoard = cloneBoard(this.board);\n\t\t\tx = random.nextInt(width);\n\t\t\ty = random.nextInt(height);\n\t\t\tif(neighbourBoard[y][x]==1){\n\t\t\t\tneighbourBoard[y][x]=0;\n\t\t\t\tremove = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tremove = removeNextPossibleCell(x,y, neighbourBoard);\n\t\t\t}\n\t\t\tif(remove){\n\t\t\t\taddNeighbour(new Node(height, width, k, neighbourBoard));\n\t\t\t}\n\t\t}\n\t\t//Create neighbours where we move eggs\n\t\t//This is just a combination of add egg and remove egg\n\t\tfor(int i = 0;i<10 && i<eggs;i++){\n\t\t\tremove = false;\n\t\t\tadd = false;\n\t\t\tneighbourBoard = cloneBoard(this.board);\n\t\t\tx = random.nextInt(width);\n\t\t\ty = random.nextInt(height);\n\t\t\tif(neighbourBoard[y][x]==1){\n\t\t\t\tneighbourBoard[y][x]=0;\n\t\t\t\tremove = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tremove = removeNextPossibleCell(x,y, neighbourBoard);\n\t\t\t}\n\t\t\tx = random.nextInt(width);\n\t\t\ty = random.nextInt(height);\n\t\t\tif(neighbourBoard[y][x]==0 && cellIsAvailable(x, y)){\n\t\t\t\tneighbourBoard[y][x]=1;\n\t\t\t\tadd = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tadd = placeNextPossibleCell(x,y, neighbourBoard);\n\t\t\t}\n\t\t\tif(add && remove){\n\t\t\t\taddNeighbour(new Node(height, width, k, neighbourBoard));\n\t\t\t}\n\t\t}\n\t\treturn this.neighbours;\n\t}",
"private void initNeighbors() {\n \t// the problem of getting itself as neighbor is not yet solved\n \tList<Agent> poplist = new ArrayList<Agent>(population);\n \tfor (Agent human: population) {\n \t\tCollections.shuffle(poplist);\n \t\thuman.setNeighbors(poplist.subList(0, pref.neighbors));\n \t}\n \tpopulation = new ArrayList<Agent>(poplist);\n \tpoplist = null;\n }",
"void connectNeighbors() {\n for (int colNum = 0; colNum < width; colNum++) {\n for (int rowNum = 0; rowNum < height; rowNum++) {\n GamePiece currentCell = this.board.get(colNum).get(rowNum);\n currentCell.neighbors = new ArrayList<GamePiece>();\n if (rowNum != height - 1 && currentCell.bottom // if not in bottom row\n && this.board.get(colNum).get(rowNum + 1).top) { //and both cells point to ea/other\n currentCell.neighbors.add(this.board.get(colNum).get(rowNum + 1));\n }\n if (rowNum != 0 && currentCell.top // if not in top row\n && this.board.get(colNum).get(rowNum - 1).bottom) { //and both cells point to ea/other\n currentCell.neighbors.add(this.board.get(colNum).get(rowNum - 1));\n }\n if (colNum != 0 && currentCell.left // if not in left column\n && this.board.get(colNum - 1).get(rowNum).right) { // and both cells point to ea/other\n currentCell.neighbors.add(this.board.get(colNum - 1).get(rowNum));\n }\n if (colNum != width - 1 && currentCell.right // if not in right column\n && this.board.get(colNum + 1).get(rowNum).left) { // and both cells point to ea/other\n currentCell.neighbors.add(this.board.get(colNum + 1).get(rowNum));\n }\n }\n }\n }",
"private void addTcpClNeighborVariations(String[] words) {\n\t\t// At this point, we're guaranteed length >= 3\n\t\t// add tcpcl neighbor <nName> <eid>\n\t\t// 0 1 2 3 4\n\t\t// OR\n\t\t// add tcpcl neighbor <nName> -link <lName> <ipAddress>\n\t\t// 0 1 2 3 4 5 6\n\t\tif (words.length < 5) {\n\t\t\tSystem.err.println(\"Missing arguments from 'add tcpcl neighbor' command\");\n\t\t\treturn;\n\t\t}\n\t\tString neighborName = words[3];\n\t\tif (!words[4].equalsIgnoreCase(\"-link\")) {\n\t\t\t// add tcpcl neighbor <nName> <eid>\n\t\t\t// 0 1 2 3 4\n\t\t\tif (words.length != 5) {\n\t\t\t\tSystem.err.println(\n\t\t\t\t\t\t\"Incorrect number of arguments for 'add tcpcl neighbor \" +\n\t\t\t\t\t\t\"<nName> <eid>\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tEndPointId eid = EndPointId.createEndPointId(words[4]);\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Adding Neighbor neighborName=\" + neighborName + \n\t\t\t\t\t\t\" eid=\" + eid);\n\t\t\t\tTcpClManagement.getInstance().addNeighbor(neighborName, eid);\n\t\t\t} catch (BPException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t} catch (JDtnException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t\t} else if (words.length == 7) {\n\t\t\t// add tcpcl neighbor <nName> -link <lName> <ipAddress>\n\t\t\t// 0 1 2 3 4 5 6\n\t\t\tString linkName = words[5];\n\t\t\tLink link = LinksList.getInstance().findLinkByName(linkName);\n\t\t\tif (link == null) {\n\t\t\t\tSystem.err.println(\"No Link named '\" + linkName + \"'\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tIPAddress ipAddress = null;\n\t\t\ttry {\n\t\t\t\tipAddress = new IPAddress(words[6]);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tSystem.err.println(\"Unknown host or bad IPAddress: \" + words[6]);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tNeighbor neighbor =\n\t\t\t\tNeighborsList.getInstance().findNeighborByName(neighborName);\n\t\t\tif (neighbor == null) {\n\t\t\t\tSystem.err.println(\"No Neighbor named '\" + neighborName + \"'\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tLinkAddress linkAddress = new LinkAddress(link, ipAddress);\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Adding LinkAddress link=\" + linkName + \n\t\t\t\t\t\" address=\" + ipAddress + \n\t\t\t\t\t\" to Neighbor \" + neighborName);\n\t\t\tneighbor.addLinkAddress(linkAddress);\n\t\t}\n\t\t\t\n\t}",
"public void updateNeighbours(){\n\t\tif(field.getRecentlyChangedNodeNetwork()){\n\t\t\tneighboursList = field.getNodesWithinRangeofNode(this);\n\t\t}\n\t}",
"public Instances[] processDistancesAndIndices(Instances instances) throws Exception {\n \n int seriesLength = instances.numAttributes()-(instances.classIndex()>=0?1:0);\n \n if(windowSize < 3){\n throw new Exception(\"Error: window must be at least 3. You have specified \"+windowSize);\n }\n \n if(windowSize > seriesLength){\n throw new Exception(\"Error: window must be smaller than the number of attributes. Window length: \"+windowSize+\", series length: \"+seriesLength);\n }\n \n if(seriesLength/4 < windowSize){\n throw new Exception(\"Error: the series length must be at least 4 times larger than the window size to satisfy the exclusion zone criteria for trivial matches. These instances have a series length of \"+seriesLength+\"; the maximum window size is therefore \"+(seriesLength/4)+\" and you have specified \"+windowSize);\n }\n \n SingleInstanceMatrixProfile mpIns;\n Instances outputDistances = this.determineOutputFormat(instances);\n Instances outputIndices = this.determineOutputFormat(instances);\n Instance outDist, outIdx;\n \n this.distances = new double[instances.numInstances()][];\n this.indices = new int[instances.numInstances()][];\n \n for(int a = 0; a < seriesLength-windowSize+1; a++){\n outputIndices.renameAttribute(a, \"idx_\"+a);\n }\n outputIndices.setRelationName(outputIndices.relationName()+\"_indices\");\n \n for(int ins = 0; ins < instances.numInstances(); ins++){\n mpIns = new SingleInstanceMatrixProfile(instances.get(ins),this.windowSize, this.stride);\n outDist = new DenseInstance(outputDistances.numAttributes());\n outIdx = new DenseInstance(outputIndices.numAttributes());\n \n distances[ins] = mpIns.distances;\n indices[ins] = mpIns.indices;\n \n for(int i = 0; i < mpIns.distances.length; i++){\n outDist.setValue(i, mpIns.distances[i]);\n outIdx.setValue(i, mpIns.indices[i]);\n }\n \n if(instances.classIndex() >=0){\n outDist.setValue(mpIns.distances.length, instances.instance(ins).classValue());\n outIdx.setValue(mpIns.indices.length, instances.instance(ins).classValue());\n }\n \n outputDistances.add(outDist);\n outputIndices.add(outIdx);\n }\n return new Instances[]{outputDistances,outputIndices};\n }",
"public void setNeighbours ()\n {\n neighbours = new ArrayList<Cell> ();\n\n if (x != 0)\n {\n addNeighbour (x-1, y);\n }\n\n if (y != 0)\n {\n addNeighbour (x, y-1);\n }\n\n if (x < maze.getColumns () - 1)\n {\n addNeighbour (x+1, y);\n }\n\n if (y < maze.getRows () - 1)\n {\n addNeighbour (x, y+1);\n }\n }",
"@Override\n protected List<BayesNetz> mate(BayesNetz parent1,\n BayesNetz parent2,\n int numberOfCrossoverPoints,\n Random rng) {\n mat1=new int[parent1.getGraph().getLinearrepresentation().length];\n mat2=new int[parent2.getGraph().getLinearrepresentation().length];\n mat1=parent1.getGraph().getLinearrepresentation();\n \n mat2=parent2.getGraph().getLinearrepresentation();\n \n \n \n \n if (mat1.length != mat2.length) {\n throw new IllegalArgumentException(\"Cannot perform cross-over with different length parents.\");\n }\n int[] offspring1 = new int[mat1.length];\n System.arraycopy(mat1, 0, offspring1, 0, mat1.length);\n int[] offspring2 = new int[mat2.length];\n System.arraycopy(mat2, 0, offspring2, 0, mat2.length);\n // Apply as many cross-overs as required.\n int[] temp = new int[mat1.length];\n for (int i = 0; i < numberOfCrossoverPoints; i++) {\n // Cross-over index is always greater than zero and less than\n // the length of the parent so that we always pick a point that\n // will result in a meaningful cross-over.\n int crossoverIndex = (1 + rng.nextInt(mat1.length - 1));\n System.arraycopy(offspring1, 0, temp, 0, crossoverIndex);\n System.arraycopy(offspring2, 0, offspring1, 0, crossoverIndex);\n System.arraycopy(temp, 0, offspring2, 0, crossoverIndex);\n }\n List<BayesNetz> result = new ArrayList<BayesNetz>(2);\n parent1.setMatrix(parent1.getGraph().restructruriereGraph(offspring1));\n parent2.setMatrix(parent2.getGraph().restructruriereGraph(offspring2));\n result.add(parent1);\n result.add(parent2);\n return result;\n }",
"void initNeighborhoods(int adjMat[][]) {\n\t\tint i = 0;\n\t\t\n\t\tfor (NormAgent agent : agents) {\n\t\t\tBag neighbors = new Bag();\n\t\t\t/*\n\t\t\t * go through current row of adj. matrix and all the connections to the list of neighbors\n\t\t\t */\n\t\t\tfor (int j=0; j<adjMat.length;j++){\n\t\t\t\tif (adjMat[i][j]==1) {\n\t\t\t\t\tneighbors.add(agents.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\tagent.setNeighbors(neighbors);\n\t\t\ti++;\n\t\t}\n\t\t\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the opponent's board | public Board getOpponentsBoard() {
return opponentsBoard;
} | [
"int[][] getBoard();",
"private Board getBoard() {\n return gameStatus.getBoard();\n }",
"public String getBoard() {\r\n\t\tString r = \"\";\r\n\t\tfor (int y = 0; y < 3; y++) {\r\n\t\t\tfor (int x = 0; x < 3; x++) {\r\n\t\t\t\tr = r + board[y][x];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}",
"public String boardToString()\n {\n return board.toString();\n }",
"public Board getBoard(Player player){\n return (player.equals(getCurPlayer()) ? turnBoard : board);\n }",
"public Board getBoard() {\r\n\t\treturn boardCanvas.getBoard();\r\n\t}",
"private CellValue getWinnerOfCol() {\n\t\tCellValue winner = null;\n\t\tint oldBoardIndex = 1;\n\t\tfor(int i=0; i<BOARD_GRID_SIZE;i=i+BOARD_SUB_GRID_SIZE) {\n\t\t\tint gridsComplete = 0;\n\t\t\tint newBoardIndex = oldBoardIndex;\n\t\t\tCellValue winnerOfGrid = null;\n\t\t\tfor(int j=0; j<BOARD_GRID_SIZE; j=j+BOARD_SUB_GRID_SIZE) {\n\t\t\t\tCellValue winnerOfBoard = winningBoardToPlayerMapping.get(newBoardIndex);\n\t\t\t\tif(winnerOfBoard != null) {\n\t\t\t\t\tif(winnerOfGrid != null) {\n\t\t\t\t\t\tif(winnerOfBoard == winnerOfGrid) {\n\t\t\t\t\t\t\tgridsComplete++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\twinnerOfGrid = winnerOfBoard;\n\t\t\t\t\t\tgridsComplete++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnewBoardIndex += 3;\n\t\t\t}\n\t\t\tif(gridsComplete == BOARD_SUB_GRID_SIZE) {\n\t\t\t\twinner = winnerOfGrid;\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t}\t\n\t\t\toldBoardIndex += 1;\n\t\t}\n\t\treturn winner;\n\t}",
"public BoardView getActiveBoard() {\n if (activePlayer == Piece.COLOR.RED)\n return getRedBoard();\n else\n return getWhiteBoard();\n }",
"public IChessPiece[][] getBoard() {\n\t\treturn board;\n\t}",
"private int[][] getLogicalBoard() {\n int logicalBoard[][] = new int[board.getBoardSpecification().getWidth()][board.getBoardSpecification().getHeight()];\n \n PlayerID player1ID = player1.getPlayerSpecification().getPlayerID();\n PlayerID player2ID = player2.getPlayerSpecification().getPlayerID();\n for(int i = 0; i < logicalBoard[0].length; ++i) {\n for(int j = 0; j < logicalBoard.length; ++j) {\n // Get PlayerID at current location\n PlayerID tempPlayerID = board.getBeadSpecification(new BeadLOC(i, j)).getPlayerID();\n \n if(tempPlayerID.equals(player1ID)) {\n logicalBoard[i][j] = 1;\n } else if (tempPlayerID.equals(player2ID)) {\n logicalBoard[i][j] = 2;\n } else {\n logicalBoard[i][j] = 0;\n }\n }\n }\n \n return logicalBoard;\n }",
"public GameState won() {\n if ( (board[0][0] != TileState.BLANK) && (board[0][0] == board[0][1]) && (board[0][0] == board[0][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[1][0] != TileState.BLANK) && (board[1][0] == board[1][1]) && (board[1][0] == board[1][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[2][0] != TileState.BLANK) && (board[2][0] == board[2][1]) && (board[2][0] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][0] != TileState.BLANK) && (board[0][0] == board[1][1]) && (board[0][0] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ( (board[0][2] != TileState.BLANK) && (board[0][2] == board[1][1]) && (board[0][2] == board[2][0])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][0] != TileState.BLANK) && (board[0][0] == board[1][0]) && (board[0][0] == board[2][0])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][1] != TileState.BLANK) && (board[0][1] == board[1][1]) && (board[0][1] == board[2][1])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][2] != TileState.BLANK) && (board[0][2] == board[1][2]) && (board[0][2] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if (movesPlayed == 9)\n return GameState.DRAW;\n return GameState.IN_PROGRESS;\n }",
"private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }",
"String getBoardString();",
"Color getBoardColor();",
"@Override\r\n\tpublic Peg[][] getBoard() {\r\n\t\treturn SquareBoard.board;\r\n\t}",
"public BoardPiece[][] getBoardPieces();",
"public Board getBoard() {\n\t\tgenerate();\n\t\treturn board;\n\t}",
"public Board getBoard() {\n return this.board;\n }",
"public SetsBoard getBoard()\n {\n return new SetsBoard(false,true);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spring Data JPA repository for the Datasource entity. | public interface DatasourceRepository extends JpaRepository<Datasource, Long> {
Optional<Datasource> findOneById(Long id);
Optional<Datasource> findOneByTracksId(Long id);
} | [
"@Repository\npublic interface DataSourceConfigRepository extends JpaRepository<DataSourceConfig, Long> {\n \n}",
"@Repository\n@Table(name = \"fixed_device\")\npublic interface ScheduleContextRepository extends JpaRepository<ScheduleContextForDB, String> {\n\n}",
"String getRepositoryDatasource();",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SourcePriorityRepository extends JpaRepository<SourcePriority, Long> {}",
"@Repository\npublic interface TemperatureRepository extends JpaRepository<Temperature, Long> {\n\t\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DataColumnRepository extends JpaRepository<DataColumn, Long> {\n}",
"@Repository\npublic interface RackRepository extends JpaRepository<Rack, Long> {\n\n}",
"@Repository\npublic interface ProjectGenerationTaskRepository extends JpaRepository<ProjectGenerationTask, String> {\n\tList<ProjectGenerationTask> findAllByStorageLocation(String storageLocation);\n}",
"@Repository\npublic interface DistrictRepository extends JpaRepository<District, Long> {}",
"public interface ScheduleRepository extends JpaRepository<Schedule,Long> {\n\n}",
"@Repository\npublic interface ComentarioRepository extends JpaRepository<Comentario, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DsheadertemplateRepository extends JpaRepository<Dsheadertemplate, Long> {\n\n}",
"@Repository\npublic interface CountyRepository extends JpaRepository<County, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SlotInstanceRepository extends JpaRepository<SlotInstance, Long> {\n\n}",
"@Repository\npublic interface ProductRepository extends JpaRepository<Product, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CodeTablesRepository extends JpaRepository<CodeTables, Long> {}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventLanguageRepository extends JpaRepository<EventLanguage, Long> {\n\t\n}",
"public interface CurrencyRepository extends JpaRepository<Currency, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DDbRepository extends JpaRepository<DDb, Long>, JpaSpecificationExecutor<DDb> {}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the exchange id from the input URI. | public String getUriExchangeId() {
return _uriExchangeId;
} | [
"String getExchangeId();",
"private static long toId(URI uri)\n\t{\n\t\t// Releases are identified by \"<package>.release:<id>\" where <package> is the current package\n\t\t// and <id> is the database identifier.\n\t\tif (!uri.getScheme().startsWith(schema))\n\t\t\tthrow new IllegalArgumentException(uri.toString());\n\t\tString schemeSpecific = uri.getSchemeSpecificPart();\n\t\tint endIndex = schemeSpecific.indexOf(':');\n\t\tif (endIndex != -1)\n\t\t\tthrow new IllegalArgumentException(\"Invalid uri: \" + uri);\n\t\tendIndex = schemeSpecific.length();\n\t\ttry\n\t\t{\n\t\t\treturn Long.parseLong(schemeSpecific.substring(0, endIndex));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(e);\n\t\t}\n\t}",
"public static String getPlaceId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}",
"public static int getNewsIdFromUri(Uri uri) {\n return Integer.parseInt(uri.getPathSegments().get(1));\n }",
"public Identifier toIdentifier(java.net.URI uri) {\n\t\treturn ShortURIImpl.toIdentifier(toShortURI(uri));\n\t}",
"private Integer getId(final URI uri) {\n //Preconditions\n assert uri != null : \"uri must not be null\";\n\n final String uriString = RDFUtility.formatResource(uri);\n Integer id = uriToIdDictionary.get(uriString);\n if (id == null) {\n id = nextId++;\n uriToIdDictionary.put(uriString, id);\n uris.add(uriString);\n assert uris.get(id).equals(uriString);\n }\n return id;\n }",
"private String getEndpointId(long ssrc, MediaType mediaType)\n {\n synchronized (endpointsSyncRoot)\n {\n if (endpoints != null && !endpoints.isEmpty())\n {\n for (EndpointInfo endpoint : endpoints)\n {\n if (endpoint.getSsrc(mediaType) == ssrc)\n {\n return endpoint.getId();\n }\n }\n }\n else\n {\n logger.warn(\"The endpoints collection is empty!\");\n }\n\n return \"\";\n }\n }",
"public int getExchangeId() {\n return exchangeId_;\n }",
"public Integer getExchangeId() {\r\n return exchangeId;\r\n }",
"public String getBestExchangeUriId(final UniqueId overrideId) {\n if (overrideId != null) {\n return overrideId.toLatest().toString();\n }\n return getExchange() != null ? getExchange().getUniqueId().toLatest().toString() : getUriExchangeId();\n }",
"public static String getPlaceDetailId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}",
"protected String getMessageId(Exchange exchange) {\n switch (component) {\n case \"aws-sns\":\n return (String) exchange.getIn().getHeader(\"CamelAwsSnsMessageId\");\n case \"aws-sqs\":\n return (String) exchange.getIn().getHeader(\"CamelAwsSqsMessageId\");\n case \"ironmq\":\n return (String) exchange.getIn().getHeader(\"CamelIronMQMessageId\");\n case \"jms\":\n return (String) exchange.getIn().getHeader(\"JMSMessageID\");\n default:\n return null;\n }\n }",
"public Identifier toIdentifier(URI uri) {\n\t\treturn ShortURIImpl.toIdentifier(toShortURI(uri));\n\t}",
"private long splitID(String uri) {\n\t\tchar[] ch = uri.toCharArray();\n\t\tString id = \"\";\n\t\tfor (int i = ch.length - 1; i >= 0; i--) {\n\t\t\tif (ch[i] == '/') {\n\t\t\t\tif (id.length() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (ch[i] >= '0' && ch[i] <= '9') {\n\t\t\t\tid = ch[i] + id;\n\t\t\t}\n\t\t}\n\t\tlong splittedID = -1;\n\t\ttry {\n\t\t\tsplittedID = Long.parseLong(id);\n\t\t} catch (NumberFormatException e) {\n\t\t\tlogger.info(e.toString());\n\t\t}\n\t\treturn splittedID;\n\t}",
"private String getIdFromUrl(String url) {\n\t\tString[] halves = url.split(\"communityUuid=\");\n\t\tString[] quarters = halves[1].split(\"&\");\n\t\treturn quarters[0];\n\t}",
"public String getUserIdFromRequest(String requestUri);",
"public static long getMovieIdFromUri(Uri uri)\n {\n return ContentUris.parseId(uri);\n }",
"Exchange getExchange(UniqueIdentifier uniqueId);",
"private long parseReleaseId(URI uri) throws ParseException\n\t{\n\t\tif (!uri.getScheme().equals(schema))\n\t\t\tthrow new ParseException(\"Expected \" + schema + \", got: \" + uri.getScheme(), 0);\n\t\ttry\n\t\t{\n\t\t\tString schemeSpecificPart = uri.getSchemeSpecificPart();\n\t\t\tint index = schemeSpecificPart.indexOf(\":\");\n\t\t\tif (index == -1)\n\t\t\t\tthrow new ParseException(\"Missing colon in scheme-specific psrt\", uri.toString().length());\n\t\t\treturn Long.parseLong(schemeSpecificPart.substring(0, index));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tParseException e2 = new ParseException(\"Invalid release id\", uri.getScheme().length() + \":\".\n\t\t\t\tlength() + 1);\n\t\t\te2.initCause(e);\n\t\t\tthrow e2;\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method that fetches a record from the database and transforms it into an EmailBean | public EmailBean getEmail(int id) throws SQLException {
EmailBean bean = new EmailBean();
String query = "SELECT * FROM Emails e WHERE e.email_id = ?";
try (PreparedStatement ps = connection.prepareStatement(query)) {
ps.setInt(1, id);
ResultSet rs = ps.executeQuery();
if (rs.next()) {
bean.setFrom(rs.getString("senderEmail"));
bean.setId(id);
bean.setTo(recDao.read(id, "TO"));
bean.setCc(recDao.read(id, "CC"));
bean.setBcc(recDao.read(id, "BCC"));
bean.setTextMsg(rs.getString("textMsg"));
bean.setHTMLMsg(rs.getString("htmlMsg"));
bean.setSubject(rs.getString("subject"));
bean.setFolderName(folderDao.getFolderName(rs.getInt("folder_id")));
//Attachments
bean.setAttach(attachDao.read(id, false));
bean.setEmbedAttach(attachDao.read(id, true));
bean.setSentTime(rs.getTimestamp("sentDate").toLocalDateTime());
bean.setReceivedTime(rs.getTimestamp("receivedDate").toLocalDateTime());
} else {
throw new SQLException("Email with id: " + id + " doesn't exist");
}
}
return bean;
} | [
"public List<EmailBean> findAll() throws SQLException {\n String query = \"SELECT * FROM Emails\";\n List<EmailBean> allEmails = new ArrayList();\n try (Connection connection = DriverManager.getConnection(URL, UNAME, PASSWORD)) {\n PreparedStatement ps = connection.prepareStatement(query);\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n EmailBean bean = new EmailBean();\n bean.setId(rs.getInt(\"email_id\"));\n bean.setFrom(rs.getString(\"senderEmail\"));\n bean.setSubject(rs.getString(\"subject\"));\n bean.setTo(recDao.read(bean.getId(), \"TO\"));\n bean.setCc(recDao.read(bean.getId(), \"CC\"));\n bean.setBcc(recDao.read(bean.getId(), \"BCC\"));\n bean.setTextMsg(rs.getString(\"textMsg\"));\n bean.setHTMLMsg(rs.getString(\"htmlMsg\"));\n bean.setFolderName(folderDao.getFolderName(rs.getInt(\"folder_id\")));\n //Attachments\n bean.setAttach(attachDao.read(bean.getId(), false));\n bean.setEmbedAttach(attachDao.read(bean.getId(), true));\n\n // Timestamp \n bean.setSentTime(rs.getTimestamp(\"sentDate\").toLocalDateTime());\n bean.setReceivedTime(rs.getTimestamp(\"receivedDate\").toLocalDateTime());\n allEmails.add(bean);\n }\n }\n return allEmails;\n }",
"public DoctorDTO loadDoctor(String mail){\n Connection connection = c.JdbcConnection(); //Initialize database connection\n Statement stmt = null; //Initialize statement\n Doctor doctor = new Doctor(); //Initialize Doctor entity object\n try{\n stmt = connection.createStatement(); //Create statement for the connected database\n String sql = \"SELECT * FROM doctor WHERE mail ='\" + mail +\"'\"; //Create sql query\n ResultSet rs = stmt.executeQuery( sql); //Create result set\n while (rs.next()){\n //Get the data from the database\n String stringid = rs.getString(\"id\");\n UUID id = UUID.fromString(stringid);\n String full_name = rs.getString(\"full_name\");\n String email = rs.getString(\"mail\");\n String specialist = rs.getString(\"specialist\");\n String birthdate = rs.getString(\"birthdate\");\n String gender = rs.getString(\"gender\");\n String ip = rs.getString(\"ip\");\n String createDate = rs.getString(\"created_at\");\n String updateDate = rs.getString(\"updated_at\");\n String status = rs.getString(\"status\");\n doctor = new Doctor(id, full_name, email, birthdate, specialist, gender, ip, createDate, updateDate, status);\n }\n stmt.close();\n //connection.commit();\n connection.close();\n } catch(Exception e){\n System.err.println( e.getClass().getName()+\": \"+ e.getMessage() );\n System.exit(0);\n }\n DoctorDTO d = new DoctorDTO();\n d = convertDoctorEntityToDTO(doctor); //Convert object from entity to DTO\n return d;\n }",
"EmailInfo selectByPrimaryKey(Integer id);",
"private EmailBean setBean(ReceivedEmail email) {\n EmailBean bean = new EmailBean();\n LOG.info(\"===[\" + email.messageNumber() + \"]===\");\n\n // common info\n setCommonFields(bean, email);\n\n // process messages\n setMessages(bean, email);\n\n // process attachments\n setAttachments(bean, email);\n\n return bean;\n }",
"public static void toPersonObject() {\n\t\t\n\t\t// queries \n\t\tString getPersonQuery = \"SELECT * FROM Persons\";\n\t\tString getEmailQuery = \"SELECT (email) FROM Emails e WHERE e.personID=?;\";\n\t\t\n\t\t// Create connection and prepare Sql statement \n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet personRs = null;\n\t\tResultSet emailRs = null;\n\n\t\t// result\n\t\tPerson p = null;\n\t\tAddress a = null;\n\t\tString personCode=null, lastName=null, firstName=null;\n\t\n\t\ttry {\t\n\t\t\tconn = ConnectionFactory.getOne();\n\t\t\tps = conn.prepareStatement(getPersonQuery);\n\t\t\tpersonRs = ps.executeQuery();\n\t\t\twhile(personRs.next()) {\n\t\t\t\tpersonCode = personRs.getString(\"personCode\");\n\t\t\t\tlastName = personRs.getString(\"lastName\");\n\t\t\t\tfirstName = personRs.getString(\"firstName\");\n\t\t\t\tint addressID = personRs.getInt(\"addressID\");\n\t\t\t\tint personID = personRs.getInt(\"id\");\n\t\t\t\t\n\t\t\t\ta = ProcessDatabase.toAddressObjectFromDB(addressID);\n\t\t\t\t// create a set to store email and deposite to create an object \n\t\t\t\tArrayList<String> emails = new ArrayList<String>();\n\t\t\t\tString email = null;\n\t\t\t\t//seperate query to get email Address \n\t\t\t\tps = conn.prepareStatement(getEmailQuery);\n\t\t\t\tps.setInt(1, personID);\n\t\t\t\temailRs = ps.executeQuery();\n\t\t\t\twhile(emailRs.next()) {\n\t\t\t\t\temail = emailRs.getString(\"email\");\n\t\t\t\t\temails.add(email);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//create a person Object \n\t\t\t\t//Person(String personCode, String lastName, String firstName, Address address, Set<String> emails)\n\t\t\t\tp = new Person(personCode,lastName,firstName,a,emails);\n\t\t\t\t\n\t\t\t\t//add to Person list \n\t\t\t\tDataConverter.getPersons().add(p);\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\t//log error to logger\n\t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t\t}\n\t\t\n\t}",
"public FacultyBean findByEmail(String emailId) throws ApplicationException {\n\t\tFacultyBean fbean=null;\n\t\t\n\t\tConnection conn=null;\n\t\ttry{\n\t\t\tconn=JDBCDataSource.getConnection();\n\t\t PreparedStatement ps=conn.prepareStatement(\"select * from st_faculty where EMAIL_ID=?\");\n\t\t\tps.setString(1, emailId );\n\t\t\tResultSet rs=ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tfbean = new FacultyBean();\n\t\t\t\tfbean.setId(rs.getLong(1));\n\t\t\t\tfbean.setFirstName(rs.getString(2));\n\t\t\t\tfbean.setLastName(rs.getString(3));\n\t\t\t\tfbean.setGender(rs.getString(4));\n\t\t\t\tfbean.setJoiningDate(rs.getDate(5));\n\t\t\t\tfbean.setQualification(rs.getString(6));\n\t\t\t\tfbean.setEmailId(rs.getString(7));\n\t\t\t\tfbean.setMobileNo(rs.getString(8));\n\t\t\t\tfbean.setCollegeId(rs.getLong(9));\n\t\t\t\tfbean.setCollegeName(rs.getString(10));\n\t\t\t\tfbean.setCourseId(rs.getLong(11));\n\t\t\t\tfbean.setCourseName(rs.getString(12));\n\t\t\t\tfbean.setSubjectId(rs.getLong(13));\n\t\t\t\tfbean.setSubjectName(rs.getString(14));\n\t\t\t\tfbean.setCreatedBy(rs.getString(15)); \n\t\t fbean.setModifiedBy(rs.getString(16));\n\t\t fbean.setCreatedDateTime(rs.getTimestamp(17));\n\t\t fbean.setModifiedDateTime(rs.getTimestamp(18));\n\n\t\t\t}\n\t\t\tps.close();\n\t\t\tconn.close();\n\n\t\t\t\n\t\t}catch (Exception e) \n\t {\n\t \t throw new ApplicationException(\"exception in faculty findByEmail add..... \"+e.getMessage()); \n\t } finally \n\t {\n\t JDBCDataSource.closeConnection(conn);\n\t }\n\n\t\treturn fbean;\n\t}",
"public List<OfferModel> retrieveByUserId(String user_mail) throws SQLException {\n String query=\"SELECT * FROM `\"+this.table+\"` WHERE user_id ='\"+user_mail+\"'\";\n System.out.println(query);\n ResultSet rs=null;\n Statement statement=this.link.createStatement();\n rs=statement.executeQuery(query);\n List<OfferModel> res=new ArrayList<OfferModel>();\n while (rs.next()) {\n OfferModel offer;\n offer = new OfferModel(rs.getInt(\"id\"), rs.getString(\"user_id\"), rs.getInt(\"housing_id\"), rs.getString(\"dateStart\"),rs.getString(\"dateEnd\"),rs.getString(\"country\"));\n res.add(offer);\n }\n return res;\n }",
"private EnrolleeBean extractEnrolleeBean(ResultSet resultSet) throws SQLException {\n EnrolleeBean enrollee = new EnrolleeBean();\n enrollee.setId(resultSet.getLong(Field.ID));\n enrollee.setFirst_name(resultSet.getString(Field.FIRST_NAME));\n enrollee.setLast_name(resultSet.getString(Field.LAST_NAME));\n enrollee.setPatronymic(resultSet.getString(Field.PATRONYMIC));\n enrollee.setCertificate_score(resultSet.getInt(Field.CERTIFICATE_SCORE));\n enrollee.setIs_banned(resultSet.getBoolean(Field.IS_BANNED));\n enrollee.setLevel(resultSet.getString(Field.LEVEL));\n enrollee.setCertificate_path(resultSet.getString(Field.CERTIFICATE_PATH));\n return enrollee;\n }",
"private Entity getEntityFromDatastore(String email) {\n Query query = new Query(email);\n PreparedQuery results = datastore.prepare(query);\n Entity student = results.asSingleEntity();\n return student;\n }",
"ItemEmail get() throws ClientException;",
"@Override\n public String readFromStoreListEmail(String storeName) throws Exception{\n String email;\n String result;\n try{\n email = SendEmailNotificationDAO.readFromStoreListEmail(storeName);\n if(email.equals(\"\")){\n result = \"\";\n System.out.println(\"Mail dont exist\");\n }else{\n result = email;\n System.out.println(\"Store's email:\"+storeName+ \"\\t :\"+email);\n }\n } catch (Exception ex){\n result = null;\n System.out.println(ex);\n }\n\n return result;\n }",
"public Employee getEmployeeByEmail(String email) {\n\t\ttry {\r\n\t\t\tEmployee f = temp.queryForObject(\"Select * from fm_employees where EMAIL =?\",new EmployeeMapper(),email);\r\n\t\t\treturn f;\r\n\t\t} catch (EmptyResultDataAccessException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public void retrieveEmail(String mailID)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"select sender, mailSubject, message from mails where recipient = ? and mailID = ? and mailType = 's'\";\r\n\t\t\tpreparedStatement = connect.prepareStatement(query);\r\n\t\t\tpreparedStatement.setString(1, email_address);\r\n\t\t\tpreparedStatement.setString(2, mailID);\r\n\t\t\tresultSet = preparedStatement.executeQuery();\r\n\t\t\t\r\n\t\t\tif(resultSet.next())\r\n\t\t\t{\r\n\t\t\t\tMessageWindow emailView = new MessageWindow(resultSet.getString(\"mailSubject\"), resultSet.getString(\"sender\"), resultSet.getString(\"message\"), mailID);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"List<CatalogEmail> getCatalogEmail();",
"Customer getCustomer(String email);",
"mailIdentify selectByPrimaryKey(Integer id);",
"List<Mail> getAllMail();",
"@GetMapping(\"/emailnotifyjob\")\n public EmailNotifyJobRest getEmailNotifyJob() throws Exception {\n EmailNotifyJobEntity emailNotifyJobEntity = emailNotifyJobService.getEmailNotifyJob();\n if (null == emailNotifyJobEntity){\n return null;\n }\n\n Schedule schedule = scheduleService.getScheduleByWidgetId(emailNotifyJobEntity.getWidgetId());\n\n EmailNotifyJobRest emailNotifyJobRest = EmailNotifyJobRest.builder()\n .id(emailNotifyJobEntity.getId())\n .userName(emailNotifyJobEntity.getUserName())\n .dashboardId(emailNotifyJobEntity.getDashboardId())\n .widgetId(emailNotifyJobEntity.getWidgetId())\n .scheduleId(emailNotifyJobEntity.getScheduleId())\n .status(emailNotifyJobEntity.getStatus())\n .emailRecipients(schedule.getEmailRecipients())\n .customMessage(schedule.getCustomMessage())\n .build();\n return emailNotifyJobRest;\n }",
"public interface EmailDetails {\n \n public Long getId();\n\n public String getFromEmail();\n\n public void setFromEmail(String fromEmail);\n\n public String getToEmail();\n\n public void setToEmail(String toEmail);\n\n public String getSubject();\n\n public void setSubject(String subject);\n\n public String getContent();\n\n public void setContent(String content);\n\n public boolean isSent();\n\n public void setSent(boolean sent);\n\n public Integer getFailureCount();\n\n public void setFailureCount(Integer failureCount);\n\n public void addFailureCount();\n\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleNullLiteral" $ANTLR start "entryRuleStringLiteral" ../eu.artist.postmigration.nfrvt.lang.gml/srcgen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4309:1: entryRuleStringLiteral returns [EObject current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ; | public final EObject entryRuleStringLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleStringLiteral = null;
try {
// ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4310:2: (iv_ruleStringLiteral= ruleStringLiteral EOF )
// ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4311:2: iv_ruleStringLiteral= ruleStringLiteral EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getStringLiteralRule());
}
pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral9278);
iv_ruleStringLiteral=ruleStringLiteral();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleStringLiteral;
}
match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral9288); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
} | [
"public final EObject entryRuleStringLiteral() throws RecognitionException {\n EObject current = null;\n int entryRuleStringLiteral_StartIndex = input.index();\n EObject iv_ruleStringLiteral = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 107) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4625:2: (iv_ruleStringLiteral= ruleStringLiteral EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4626:2: iv_ruleStringLiteral= ruleStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getStringLiteralRule()); \n }\n pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral9376);\n iv_ruleStringLiteral=ruleStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleStringLiteral; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral9386); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 107, entryRuleStringLiteral_StartIndex); }\n }\n return current;\n }",
"public final EObject entryRuleStringLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleStringLiteral = null;\n\n\n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1862:2: (iv_ruleStringLiteral= ruleStringLiteral EOF )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1863:2: iv_ruleStringLiteral= ruleStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getStringLiteralRule()); \n }\n pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral4405);\n iv_ruleStringLiteral=ruleStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleStringLiteral; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral4415); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject entryRuleStringLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleStringLiteral = null;\n\n\n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4693:2: (iv_ruleStringLiteral= ruleStringLiteral EOF )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4694:2: iv_ruleStringLiteral= ruleStringLiteral EOF\n {\n currentNode = createCompositeNode(grammarAccess.getStringLiteralRule(), currentNode); \n pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral8176);\n iv_ruleStringLiteral=ruleStringLiteral();\n _fsp--;\n\n current =iv_ruleStringLiteral; \n match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral8186); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final String entryRuleStringLiteral() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleStringLiteral = null;\r\n\r\n\r\n try {\r\n // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:4510:2: (iv_ruleStringLiteral= ruleStringLiteral EOF )\r\n // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:4511:2: iv_ruleStringLiteral= ruleStringLiteral EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getStringLiteralRule()); \r\n }\r\n pushFollow(FollowSets000.FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral10069);\r\n iv_ruleStringLiteral=ruleStringLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleStringLiteral.getText(); \r\n }\r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleStringLiteral10080); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public final String entryRuleStringLiteral() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleStringLiteral = null;\n\n\n try {\n // InternalMyDsl.g:10110:53: (iv_ruleStringLiteral= ruleStringLiteral EOF )\n // InternalMyDsl.g:10111:2: iv_ruleStringLiteral= ruleStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getStringLiteralRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleStringLiteral=ruleStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleStringLiteral.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final void entryRuleStringLiteral() throws RecognitionException {\n try {\n // ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:818:1: ( ruleStringLiteral EOF )\n // ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:819:1: ruleStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getStringLiteralRule()); \n }\n pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral1687);\n ruleStringLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getStringLiteralRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral1694); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final EObject entryRuleXStringLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXStringLiteral = null;\n\n\n try {\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:4528:2: (iv_ruleXStringLiteral= ruleXStringLiteral EOF )\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:4529:2: iv_ruleXStringLiteral= ruleXStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXStringLiteralRule()); \n }\n pushFollow(FOLLOW_ruleXStringLiteral_in_entryRuleXStringLiteral10680);\n iv_ruleXStringLiteral=ruleXStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXStringLiteral; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXStringLiteral10690); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject entryRuleXStringLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXStringLiteral = null;\n\n\n \n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\n try {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:5740:2: (iv_ruleXStringLiteral= ruleXStringLiteral EOF )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:5741:2: iv_ruleXStringLiteral= ruleXStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXStringLiteralRule()); \n }\n pushFollow(FOLLOW_ruleXStringLiteral_in_entryRuleXStringLiteral12596);\n iv_ruleXStringLiteral=ruleXStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXStringLiteral; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXStringLiteral12606); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return current;\n }",
"public final EObject ruleStringLiteralExpCS() throws RecognitionException {\r\n EObject current = null;\r\n\r\n AntlrDatatypeRuleToken lv_name_0_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:5947:28: ( ( (lv_name_0_0= ruleStringLiteral ) )+ )\r\n // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:5948:1: ( (lv_name_0_0= ruleStringLiteral ) )+\r\n {\r\n // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:5948:1: ( (lv_name_0_0= ruleStringLiteral ) )+\r\n int cnt102=0;\r\n loop102:\r\n do {\r\n int alt102=2;\r\n int LA102_0 = input.LA(1);\r\n\r\n if ( (LA102_0==RULE_SINGLE_QUOTED_STRING) ) {\r\n alt102=1;\r\n }\r\n\r\n\r\n switch (alt102) {\r\n \tcase 1 :\r\n \t // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:5949:1: (lv_name_0_0= ruleStringLiteral )\r\n \t {\r\n \t // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:5949:1: (lv_name_0_0= ruleStringLiteral )\r\n \t // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:5950:3: lv_name_0_0= ruleStringLiteral\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getStringLiteralExpCSAccess().getNameStringLiteralParserRuleCall_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FollowSets000.FOLLOW_ruleStringLiteral_in_ruleStringLiteralExpCS13616);\r\n \t lv_name_0_0=ruleStringLiteral();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getStringLiteralExpCSRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"name\",\r\n \t \t\tlv_name_0_0, \r\n \t \t\t\"StringLiteral\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t if ( cnt102 >= 1 ) break loop102;\r\n \t if (state.backtracking>0) {state.failed=true; return current;}\r\n EarlyExitException eee =\r\n new EarlyExitException(102, input);\r\n throw eee;\r\n }\r\n cnt102++;\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public final EObject entryRuleXStringLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXStringLiteral = null;\n\n\n try {\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:6288:2: (iv_ruleXStringLiteral= ruleXStringLiteral EOF )\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:6289:2: iv_ruleXStringLiteral= ruleXStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXStringLiteralRule()); \n }\n pushFollow(FOLLOW_ruleXStringLiteral_in_entryRuleXStringLiteral13992);\n iv_ruleXStringLiteral=ruleXStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXStringLiteral; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXStringLiteral14002); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject ruleStringLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token lv_value_0_0=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4321:28: ( ( (lv_value_0_0= RULE_STRING ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4322:1: ( (lv_value_0_0= RULE_STRING ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4322:1: ( (lv_value_0_0= RULE_STRING ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4323:1: (lv_value_0_0= RULE_STRING )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4323:1: (lv_value_0_0= RULE_STRING )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4324:3: lv_value_0_0= RULE_STRING\r\n {\r\n lv_value_0_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral9329); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tnewLeafNode(lv_value_0_0, grammarAccess.getStringLiteralAccess().getValueSTRINGTerminalRuleCall_0()); \r\n \t\t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElement(grammarAccess.getStringLiteralRule());\r\n \t }\r\n \t\tsetWithLastConsumed(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_0_0, \r\n \t\t\"STRING\");\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public final EObject ruleStringLiteral() throws RecognitionException {\n EObject current = null;\n\n Token lv_value_1_0=null;\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1873:28: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1874:1: ( () ( (lv_value_1_0= RULE_STRING ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1874:1: ( () ( (lv_value_1_0= RULE_STRING ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1874:2: () ( (lv_value_1_0= RULE_STRING ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1874:2: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1875:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getStringLiteralAccess().getStringLiteralAction_0(),\n current);\n \n }\n\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1880:2: ( (lv_value_1_0= RULE_STRING ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1881:1: (lv_value_1_0= RULE_STRING )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1881:1: (lv_value_1_0= RULE_STRING )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1882:3: lv_value_1_0= RULE_STRING\n {\n lv_value_1_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral4466); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_1_0, grammarAccess.getStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getStringLiteralRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_1_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject entryRuleXStringLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleXStringLiteral = null;\r\n\r\n\r\n try {\r\n // ../com.avaloq.tools.dslsdk.checkcfg.core/src-gen/com/avaloq/tools/dslsdk/checkcfg/parser/antlr/internal/InternalCheckCfg.g:4027:2: (iv_ruleXStringLiteral= ruleXStringLiteral EOF )\r\n // ../com.avaloq.tools.dslsdk.checkcfg.core/src-gen/com/avaloq/tools/dslsdk/checkcfg/parser/antlr/internal/InternalCheckCfg.g:4028:2: iv_ruleXStringLiteral= ruleXStringLiteral EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getXStringLiteralRule()); \r\n }\r\n pushFollow(FOLLOW_ruleXStringLiteral_in_entryRuleXStringLiteral9306);\r\n iv_ruleXStringLiteral=ruleXStringLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleXStringLiteral; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleXStringLiteral9316); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public final EObject entryRuleXStringLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXStringLiteral = null;\n\n\n try {\n // InternalDsl.g:8101:2: (iv_ruleXStringLiteral= ruleXStringLiteral EOF )\n // InternalDsl.g:8102:2: iv_ruleXStringLiteral= ruleXStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXStringLiteralRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleXStringLiteral=ruleXStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXStringLiteral; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final void entryRuleXStringLiteral() throws RecognitionException {\r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3157:1: ( ruleXStringLiteral EOF )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3158:1: ruleXStringLiteral EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXStringLiteralRule()); \r\n }\r\n pushFollow(FOLLOW_ruleXStringLiteral_in_entryRuleXStringLiteral6692);\r\n ruleXStringLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXStringLiteralRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleXStringLiteral6699); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public final EObject ruleStringLiteral() throws RecognitionException {\n EObject current = null;\n\n Token lv_value_0_0=null;\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4706:6: ( ( (lv_value_0_0= RULE_STRING ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4707:1: ( (lv_value_0_0= RULE_STRING ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4707:1: ( (lv_value_0_0= RULE_STRING ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4708:1: (lv_value_0_0= RULE_STRING )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4708:1: (lv_value_0_0= RULE_STRING )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4709:3: lv_value_0_0= RULE_STRING\n {\n lv_value_0_0=(Token)input.LT(1);\n match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral8227); \n\n \t\t\tcreateLeafNode(grammarAccess.getStringLiteralAccess().getValueSTRINGTerminalRuleCall_0(), \"value\"); \n \t\t\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getStringLiteralRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"value\",\n \t \t\tlv_value_0_0, \n \t \t\t\"STRING\", \n \t \t\tlastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final void entryRuleXStringLiteral() throws RecognitionException {\n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1524:1: ( ruleXStringLiteral EOF )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1525:1: ruleXStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXStringLiteralRule()); \n }\n pushFollow(FOLLOW_ruleXStringLiteral_in_entryRuleXStringLiteral3192);\n ruleXStringLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXStringLiteralRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXStringLiteral3199); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final EObject ruleStringLiteral() throws RecognitionException {\n EObject current = null;\n int ruleStringLiteral_StartIndex = input.index();\n Token lv_stringValue_0_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 108) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4636:28: ( ( (lv_stringValue_0_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4637:1: ( (lv_stringValue_0_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4637:1: ( (lv_stringValue_0_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4638:1: (lv_stringValue_0_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4638:1: (lv_stringValue_0_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4639:3: lv_stringValue_0_0= RULE_STRING\n {\n lv_stringValue_0_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral9427); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_stringValue_0_0, grammarAccess.getStringLiteralAccess().getStringValueSTRINGTerminalRuleCall_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getStringLiteralRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"stringValue\",\n \t\tlv_stringValue_0_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 108, ruleStringLiteral_StartIndex); }\n }\n return current;\n }",
"public final void entryRuleXStringLiteral() throws RecognitionException {\n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1720:1: ( ruleXStringLiteral EOF )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1721:1: ruleXStringLiteral EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXStringLiteralRule()); \n }\n pushFollow(FOLLOW_ruleXStringLiteral_in_entryRuleXStringLiteral3612);\n ruleXStringLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXStringLiteralRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXStringLiteral3619); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test Constructor(Interface, UMLModelManager), with null interface. IllegalArgumentException is expected. | public void testCtor1WithNullInterface() {
try {
new AddInterfaceAction(null, manager);
fail("IllegalArgumentException is expected.");
} catch (IllegalArgumentException iae) {
// pass
}
} | [
"public void testCtor1WithNullManager() {\n try {\n new AddInterfaceAction(interfacee, null);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"public void testCtor2WithNullManager() {\n try {\n new AddInterfaceAction(interfacee, null, manager.getModel());\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"public void testCtor2WithNullInterface() {\n try {\n new AddInterfaceAction(null, manager, manager.getModel());\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"public void testCtor1() {\n AddInterfaceAction addAction = new AddInterfaceAction(interfacee, manager);\n\n assertEquals(\"Should return ModelElement instance.\", interfacee, addAction.getModelElement());\n }",
"public void testConstructorWithNullArgument() throws Exception {\r\n try {\r\n new ConfigurationObjectSpecificationFactory(null);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }",
"public void testCtor2() {\n AddInterfaceAction addAction = new AddInterfaceAction(interfacee, manager, manager.getModel());\n\n assertEquals(\"Should return ModelElement instance.\", interfacee, addAction.getModelElement());\n }",
"public void testCtor2WithNullNamespace() {\n try {\n new AddInterfaceAction(interfacee, manager, null);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"Interface()\n {\n // Empty\n }",
"public void testConstructor_NullMessage() {\r\n try {\r\n operationCheckResult = new OperationCheckResult(null);\r\n fail(\"IllegalArgumentException exception is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // expected\r\n }\r\n }",
"public void testCtor_NullClassifier() {\n try {\n new ClassifierCompartmentExtractor(null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"public void testExternalProjectImpl_NullArg() {\r\n try {\r\n new ExternalProjectImpl(10, 1, null);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n // Success\r\n }\r\n }",
"@Test\r\n public void testModelIsNull() {\r\n in = new StringReader(\"1 2 ppt 3 GOOG 100 2018-10-12 \"\r\n + \"init 3 FB 100 2018-10-12 ppt 3 FB 200 2018-10-12 ppt q\");\r\n modelTest = null;\r\n controllerTest = new SimulatorController(in, out, modelTest);\r\n\r\n\r\n try {\r\n controllerTest.execute();\r\n } catch (IllegalArgumentException e) {\r\n assertEquals(\"model parameter is null!\", e.getMessage());\r\n }\r\n }",
"@Test\r\n public void testJniInchiInputconstructornull() throws Exception {\r\n \tString dud = null;\r\n \tJniInchiInput test = new JniInchiInput(dud);\r\n assertEquals(test.getOptions(), \"\");\r\n }",
"public void testCtor4_NullName() {\n try {\n new DummyWeightedScorecardStructure(ID, null, WEIGHT);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"public void testCtor1_ZeroId() {\n try {\n new DummyWeightedScorecardStructure(0);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"public void testCtor_NullName() {\n try {\n new MockCutStateNodeAbstractAction(null, state, clipboard);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"public void testCtor3_ZeroId() {\n try {\n new DummyWeightedScorecardStructure(0, WEIGHT);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testGameViewConstructorNullFactory() throws IOException\r\n\t{\r\n\t\tnew GameView(null);\r\n\t}",
"public void testCtor_NullActivityGraph() {\n try {\n new AddActionStateAction(state, null, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the this object contains information associated with a connected Internet Gateway Device. | public GatewayInfo getGatewayInfo() {
return gatewayInfo;
} | [
"public String getDeviceInformation() {\n\t\treturn deviceInformation;\n\t}",
"public DeviceInformation getDeviceInformation() {\n if (deviceInformation == null) {\n deviceInformation = deviceManager.generateDeviceInformation();\n }\n return deviceInformation;\n }",
"@Override\n public DeviceInfo deviceInfo() {\n return DeviceInfo.getDeviceInfo();\n }",
"public DeviceInfo getDeviceInfo() {\n\t\treturn deviceInfo;\n\t}",
"public String getGatewayIp() {\n return gatewayIp;\n }",
"public InetAddress getGatewayIPAddress()\n {\n return gatewayIPAddress;\n }",
"public IoTDeviceInfo ioTEdgeDeviceDetails() {\n return this.ioTEdgeDeviceDetails;\n }",
"public String getGatewayId() {\r\n return this.gatewayId;\r\n }",
"public String getGatewayId() {\n return this.gatewayId;\n }",
"public IoTDeviceInfo ioTDeviceDetails() {\n return this.ioTDeviceDetails;\n }",
"public String getDeviceIp(){\n\t return deviceIP;\n }",
"public Device getRequestorDevice()\n {\n return this.deviceReq;\n }",
"public String getNatGatewayId() {\n return this.NatGatewayId;\n }",
"public String getGatewayId(){\r\n\t\treturn this.gatewayId;\r\n\t}",
"public Integer getGatewayId() {\n return gatewayId;\n }",
"public byte[] getIntegrateInterfaceInfo() {\n return integrateInterfaceInfo;\n }",
"public BraintreeGateway getGateway() {\n return this.gateway;\n }",
"public boolean getGateway() {return isGateway;}",
"public Device withGatewayInfo(GatewayInfo gatewayInfo) {\n\t\tthis.gatewayInfo = gatewayInfo;\n\t\treturn this;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Predicate to keep track of our (AbstractAsset) Maintenance orgs | private static UnaryPredicate maintAssetPred() {
return new UnaryPredicate() {
public boolean execute(Object o) {
if (o instanceof AbstractAsset) {
if (((AbstractAsset)o).getTypeIdentificationPG().getTypeIdentification().equals("MAINTENANCE"))
return true;
}
return false;
}
};
} | [
"private static UnaryPredicate assetPred() {\n return new UnaryPredicate() {\n\tpublic boolean execute( Object o ) {\n\t return ( o instanceof CargoVehicle );\n\t}\n };\n }",
"protected abstract boolean isAPowerUserEditableArtifact();",
"public boolean isArtifact(RepoArtifact art);",
"boolean isApplicableForAllAssetTypes();",
"public boolean isAssetSpecial(T asset);",
"boolean hasUsedInAnItemConditionGroup();",
"public interface AssetSelector {\n\n\n\t/**\n\t *\n\t * @param asset The asset to be tested.\n\t * @return true if asset it allowed.\n\t */\n\tboolean isAssetAllowed(AssetItem asset);\n\n}",
"@Override\n boolean ownersEqual(Artifact other) {\n return true;\n }",
"public interface AssetApplicable {\n\n /**\n * Applys the effect of this object to the given asset.\n * @param asset Asset to affect.\n * @return String message of action/event.\n */\n String useEffect(Asset asset);\n\n}",
"private boolean isValid(){\n\n Set<ResourceSingle> checkSet = new HashSet<>();\n return shelves.stream()\n .map(Shelf::getCurrentType)\n .filter(Objects::nonNull)\n .allMatch(checkSet::add);\n }",
"public abstract boolean manipulateRepositories();",
"boolean isOwner(IComment comment);",
"@java.lang.Override\n public boolean hasImageAsset() {\n return assetDataCase_ == 7;\n }",
"private static UnaryPredicate bepred() {\n return new UnaryPredicate() {\n public boolean execute(Object o) {\n\tif (o instanceof BulkEstimate) {\n\t return ((BulkEstimate)o).isComplete();\n }\n\treturn false;\n }\n };\n }",
"public void includeCommitmentsFromRule(Rule aRule)\n {\n int j;\n int x;\n int y;\n String commitmentType;\n String direccion;\n StringTokenizer tokenizer;\n Commitment aCommitment;\n int prioridad;\n //-------------\n\n j = 0;\n while(j < aRule.commitments.size())\n {\n tokenizer = new StringTokenizer(aRule.commitments.get(j).predicate,\"(), \");\n commitmentType = tokenizer.nextToken();\n if((commitmentType.equals(\"secuencia\")) && (!commitmentsWithPriority()))\n {\n prioridad = 1;\n while( tokenizer.hasMoreElements())\n {\n x = Integer.valueOf(tokenizer.nextToken());\n y = Integer.valueOf(tokenizer.nextToken());\n direccion = tokenizer.nextToken();\n aCommitment = new Commitment(\"mover(\"+ x + \",\"+ y+\",\"+direccion+\")\");\n\n aCommitment.setPriority(prioridad);\n commitments.add(aCommitment);\n prioridad = prioridad + 1;\n }//end while\n\n\n }//end if\n else\n {\n commitments.add(aRule.commitments.get(j));\n }//end else\n j = j + 1;\n }//end while\n\n }",
"protected boolean isAPowerUserEditableArtifact() {\n return false;\n }",
"@java.lang.Override\n public boolean hasSitelinkAsset() {\n return assetDataCase_ == 22;\n }",
"@Override\n public Predicate<Transaction> getPredicate() {\n return t -> t.getTags().stream().anyMatch(budgets::containsKey);\n }",
"public void filter(boolean onRepository, int type) {\r\n\t\t\r\n\t\tList changes = null;\r\n\t\tif (!onRepository) {\r\n\t\t\t// filter from ontChangeTT\r\n\t\t\tchanges = this.ontChanges;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// filter from repChangeTT\r\n\t\t\tchanges = this.repChanges;\t\t\t\r\n\t\t}\r\n\t\t// iterate through changes and remove any that match type\r\n\t\tfor (Iterator iter = new ArrayList(changes).iterator(); iter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\tif (swc.isRedundant && type==this.REDUNDANT_CHANGE) changes.remove(swc);\r\n\t\t\telse if (swc.isOnRepository && type==this.REPOSITORY_CHANGE) changes.remove(swc);\r\n\t\t\telse if (!swc.isOnRepository && type==this.LOCAL_CHANGE) changes.remove(swc);\r\n\t\t}\r\n\t\t\r\n\t\t// sort changes??\r\n\t\t\r\n\t\t// refresh UI of target after adding changes\r\n\t\tif (!onRepository) this.refreshOntTreeTable();\r\n\t\telse {\r\n\t\t\t// add (new) repChanges to newCommit node directly\r\n\t\t\tnewCommitNode.children = new Vector();\r\n\t\t\tfor (Iterator iter = changes.iterator(); iter.hasNext();) {\r\n\t\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\t\tTreeTableNode swcNode = new TreeTableNode(swc);\r\n\t\t\t\tnewCommitNode.addChild(swcNode);\t\r\n\t\t\t}\r\n\t\t\tthis.refreshRepTreeTable(true);\r\n\t\t}\t\t\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the AUTHOR_ICON_LINK_URL value for this ABSTRACTPORTAL_PAGE_PORTLET_VIEWType. | public void setAUTHOR_ICON_LINK_URL(java.lang.String AUTHOR_ICON_LINK_URL) {
this.AUTHOR_ICON_LINK_URL = AUTHOR_ICON_LINK_URL;
} | [
"public java.lang.String getAUTHOR_ICON_LINK_URL() {\r\n return AUTHOR_ICON_LINK_URL;\r\n }",
"public void setAUTHOR_ICON(java.lang.String AUTHOR_ICON) {\r\n this.AUTHOR_ICON = AUTHOR_ICON;\r\n }",
"public java.lang.String getAUTHOR_ICON() {\r\n return AUTHOR_ICON;\r\n }",
"public void setAUTHOR_ICON_TEXT(java.lang.String AUTHOR_ICON_TEXT) {\r\n this.AUTHOR_ICON_TEXT = AUTHOR_ICON_TEXT;\r\n }",
"public void setIconUrl(String iconUrl) {\r\n this.iconUrl = iconUrl;\r\n }",
"protected void addAuthorizationUrlPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_authorizationUrl_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_authorizationUrl_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__AUTHORIZATION_URL,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public void setHELP_ICON_LINK_URL(java.lang.String HELP_ICON_LINK_URL) {\r\n this.HELP_ICON_LINK_URL = HELP_ICON_LINK_URL;\r\n }",
"@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public void setURL(@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n String inURL);",
"public void addAuthorityURL(GSAuthorityURLInfoEncoder authorityURLInfo) {\n\t\tauthorityURLListEncoder.addContent(authorityURLInfo.getRoot());\n\t}",
"public void setImgUrl(String url){\n this.img_url_link = url;\n }",
"public void setIconUrl(String iconUrl) {\r\n this.iconUrl = iconUrl == null ? null : iconUrl.trim();\r\n }",
"public void setFigureAuthor(String value) {\n setAttributeInternal(FIGUREAUTHOR, value);\n }",
"public void setIconUrl(String iconUrl) {\n this.iconUrl = iconUrl == null ? null : iconUrl.trim();\n }",
"public void setCopyrightInformationURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COPYRIGHTINFORMATIONURL, value);\r\n\t}",
"public void setCommercialInformationURL(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMERCIALINFORMATIONURL, value);\r\n\t}",
"public void setCommercialInformationURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMERCIALINFORMATIONURL, value);\r\n\t}",
"public void setCopyrightInformationURL(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), COPYRIGHTINFORMATIONURL, value);\r\n\t}",
"void setHref(java.lang.String href);",
"public void setIconurl (java.lang.String iconurl) {\r\n\t\tthis.iconurl = iconurl;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of YahooSearchEngine | public YahooSearchEngine(String key) {
setKey(key);
client = new SearchClient(getKey());
} | [
"public static GwebSearch create(){ \n\t\treturn impl.create();\n\t}",
"public AbstractSearchEngine() {}",
"private YahooMeteoRetriever() {\r\n\t\tsuper();\r\n\t}",
"public static Analyzer createSearchAnalyzer()\r\n {\r\n return new SearchAnalyzer();\r\n }",
"public TinySearchEngine()\n {\n this.myIndex = new HashMap();\n this.documentData = new HashMap();\n this.sorted = false;\n this.sort = new Sort();\n this.search = new BinarySearch();\n }",
"Search createSearch();",
"public static GlobalSearch newInstance(String serviceName) {\n Authenticator authenticator = ConfigBasedAuthenticatorFactory.getAuthenticator(serviceName);\n GlobalSearch service = new GlobalSearch(serviceName, authenticator);\n service.configureService(serviceName);\n return service;\n }",
"public YahooSearch(List<String> terms) {\n \tquery = StringHelper.join(terms, \" \");\n }",
"YahooClient getClient(YahooFeedServices inFeedServices);",
"public XPathEngineImpl() {\n // Do NOT add arguments to the constructor!!\n }",
"public static BookEngine getInstance()\n {\n if(instance==null)\n {\n instance = new BookEngine();\n return instance;\n }\n else\n {\n return instance;\n }\n }",
"public static GlobalSearch newInstance() {\n return newInstance(DEFAULT_SERVICE_NAME);\n }",
"protected Engine createEngine() {\n\t\treturn createEngine(false);\n\t}",
"public Engine createEngine(String name) {\n\t\treturn delegate.createWrappedIndividual(name, Vocabulary.CLASS_ENGINE, DefaultEngine.class);\n }",
"TSearchResults createSearchResults(TSearchQuery searchQuery);",
"public SearchClient createSearchClient() {\n return SearchClient.create(this);\n }",
"public SearchOperation() {\r\n initComponents();\r\n db_engine = new DB_Engine();\r\n }",
"Analytics_Engine createAnalytics_Engine();",
"private LuceneDatastoreFactory() {}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the row of the matrix for assignations implying the host as a target and source as family of source agent. | public Set<Assignation<InteractionClass>> getHostAsTargetAssignation(
@SuppressWarnings("unused") Class<? extends IAgent> sourceClass) {
return null;
// MatrixRow<InteractionClass> row = this.getHostRow();
// if (row == null)
// return null;
// return row.getAssignations(sourceClass);
} | [
"public Set<Assignation<InteractionClass>> getHostAssignation(\n Class<? extends IAgent> targetClass) {\n MatrixRow<InteractionClass> row = this.getHostRow();\n if (row == null) {\n return null;\n }\n return row.getAssignations(targetClass);\n }",
"public Set<Assignation<InteractionClass>> getAssignations(\n Class<? extends IAgent> sourceClass,\n Class<? extends IAgent> targetClass) {\n MatrixRow<InteractionClass> row = this.getRow(sourceClass);\n if (row == null) {\n return null;\n }\n return row.getAssignations(targetClass);\n }",
"public void addSingleTargetAssignation(Class<? extends IAgent> source,\n Class<? extends IAgent> target,\n Assignation<InteractionClass> assignation) {\n MatrixRow<InteractionClass> row = this.rows.get(source);\n if (row == null) {\n row = new MatrixRow<InteractionClass>();\n this.rows.put(source, row);\n }\n row.addSingleTargetAssignation(target, assignation);\n this.families.add(source);\n this.families.add(target);\n }",
"public void addSingleTargetHostAssignation(Class<IAgent> target,\n Assignation<InteractionClass> assignation) {\n MatrixRow<InteractionClass> row = this.hostRow;\n row.addSingleTargetAssignation(target, assignation);\n this.families.add(target);\n }",
"private void assignAgent() {\n\t\tallocations = new int[sortedTeamAgents.size()];\n\t\tdouble clusterCenters[][] = new double[clusterNumber][3];\n\t\tfor (int i = 0; i < clusterNumber; i++) {\n\t\t\tclusterCenters[i][0] = 0;\n\t\t\tclusterCenters[i][1] = 0;\n\t\t\tclusterCenters[i][2] = 0;\n\t\t}\n\t\tfor (ClusterNode clusterNode : allNodes) {\n\t\t\tclusterCenters[clusterNode.clusterIndex][0] += clusterNode.point[0];\n\t\t\tclusterCenters[clusterNode.clusterIndex][1] += clusterNode.point[1];\n\t\t\tclusterCenters[clusterNode.clusterIndex][2] += 1;\n\t\t}\n\t\tfor (int i = 0; i < clusterNumber; i++) {\n\t\t\tif (clusterCenters[i][2] != 0) {\n\t\t\t\tclusterCenters[i][0] /= clusterCenters[i][2];\n\t\t\t\tclusterCenters[i][1] /= clusterCenters[i][2];\n\t\t\t}\n\t\t}\n\n\t\t// hangarian: costs matrix: for assign agent to every cluster\n\t\tdouble costs[][] = new double[sortedTeamAgents.size()][clusterNumber];\n\t\tfor (int i = 0; i < costs.length; i++) {\n\t\t\tfor (int j = 0; j < costs[0].length; j++) {\n\t\t\t\tStandardEntity agentStd = sortedTeamAgents.get(i);\n\t\t\t\tdouble ax = (int) (agentStd.getProperty(\"urn:rescuecore2.standard:property:x\").getValue());\n\t\t\t\tdouble ay = (int) (agentStd.getProperty(\"urn:rescuecore2.standard:property:y\").getValue());\n\t\t\t\tdouble dist = dist(ax, ay, clusterCenters[j][0], clusterCenters[j][1]);\n\t\t\t\tcosts[i][j] = dist;\n\t\t\t}\n\t\t}\n\t\tHungarianAgentAssign hungarianAgentAssign = new HungarianAgentAssign(costs);\n\n\t\tallocations = hungarianAgentAssign.execute();\n\t}",
"public Set<Assignation<InteractionClass>> getDegenerateHostAssignation() {\n MatrixRow<InteractionClass> row = this.getHostRow();\n if (row == null) {\n return null;\n }\n return row.getDegenerateAssignations().getAssignations();\n }",
"private static Matrix getTargetData() {\n\t\tMatrix M = new Matrix(4,1);\n\t \ttry {\n\t \t\tThread.sleep(500);\n \t\t\t\tdouble u = tracker.targetx;\n \t\t\t\tdouble v = tracker.targety;\n \t\t\t\tdouble y = tracker2.targetx;\n \t\t\t\tdouble z = tracker2.targety;\n//\t\t\t \t\t\tSystem.out.printf(\"\\nGOT TARGET DATA:\\nU: %.1f V: %.1f\\n\\n\", u, v);\n\t \t\t\tM.set(0, 0, u);\n\t \t\t\tM.set(1, 0, v);\n\t \t\t\tM.set(2, 0, y);\n\t \t\t\tM.set(3, 0, z);\n\t \t} catch (InterruptedException ex) {\n\t \t\tThread.currentThread().interrupt();\n\t \t}\n\t \t\n\t \treturn M;\n\t}",
"public MatrixRow<InteractionClass> getHostRow() {\n return this.hostRow;\n }",
"private double[][] computeTargetMatrix(TrainingData[] trainingData){\n double[][] targetMatrix = new double[trainingData.length][trainingData[1].getTarget().length];\n for(int i = 0; i<trainingData.length; i++){\n targetMatrix[i] = trainingData[i].getTarget();\n }\n return targetMatrix;\n }",
"public Set<Assignation<InteractionClass>> getDegenerateAssignation(\n Class<? extends IAgent> sourceClass) {\n MatrixRow<InteractionClass> row = this.getRow(sourceClass);\n if (row == null) {\n return null;\n }\n return row.getDegenerateAssignations().getAssignations();\n }",
"public void addDegenerateAssignation(Class<? extends IAgent> source,\n Assignation<InteractionClass> assignation) {\n MatrixRow<InteractionClass> row = this.rows.get(source);\n if (row == null) {\n row = new MatrixRow<InteractionClass>();\n this.rows.put(source, row);\n }\n row.addDegenerateAssignation(assignation);\n this.families.add(source);\n }",
"@Override public Map<L, Integer> targets(L source) {\r\n \t Map<L, Integer> res= new HashMap <L, Integer>();\r\n \tif(!vertices.contains(source)) {\r\n \t\t//System.out.println(source+\" is not in the graph!\");\r\n \t\treturn res;\r\n \t}\r\n \tIterator<Edge<L>> iter=edges.iterator();\r\n \twhile(iter.hasNext()) {\r\n \t\tEdge<L> tmp=iter.next();\r\n \t\t//if(tmp.getSource()==source)\r\n \t\tif(tmp.getSource().equals(source))\r\n \t\t\tres.put(tmp.getTarget(), tmp.getWeight());\r\n \t\t\r\n \t}\r\n \tcheckRep();\r\n \treturn res;\r\n\r\n }",
"public Hashtable getTargets() {\n return targets;\n }",
"public InsnTarget[] switchTargets() {\n return targetsOp;\n }",
"com.factset.protobuf.stach.v2.RowOrganizedProto.RowOrganizedPackage.HeaderCellDetail.TableSource getSource();",
"private Integer[] makeSourceColumnTable() {\r\n\t\tInteger[] ans = new Integer[] { null, null, null, null, null, null, null, 0, 0, null, 1, 1, null, 2, 2, null, 3,\r\n\t\t\t\t3, null, 4, 4, null, 5, 5, null, 6, 6, null, 7, 7, null, null, 8, 8, null, 9, 9, null, 10, 10, null, 11,\r\n\t\t\t\t11, null, 12, 12, null, 13, 13, null, 14, 14, null, 15, 15, null, null, null, 0, 1, 2, 3, 4, 5, 6, 7, 8,\r\n\t\t\t\t9, 10, 11, 12, 13, 14, 15, null, null };\r\n\t\treturn ans;\r\n\t}",
"@Override public Map<L, Integer> sources(L target) {\r\n Map<L, Integer> res= new HashMap <L, Integer>();\r\n \tif(!vertices.contains(target)) {\r\n \t\t//System.out.println(target+\" is not in the graph!\");\r\n \t\treturn res;\r\n \t}\r\n \tIterator<Edge<L>> iter=edges.iterator();\r\n \twhile(iter.hasNext()) {\r\n \t\tEdge<L> tmp=iter.next();\r\n \t\t//if(tmp.getTarget()==target)\r\n \t\tif(tmp.getTarget().equals(target))\r\n \t\t\r\n \t\t\tres.put(tmp.getSource(), tmp.getWeight());\r\n \t\t\r\n \t}\r\n \tcheckRep();\r\n \treturn res;\r\n }",
"public int[][] readMat() { \n\t\t\n\t\tint adjMat[][] = new int[agents.size()][agents.size()];\n\t\t\n\t\t/*\n\t\t * reads in the specified file with the adjacency matrix:\n\t\t */\n\t\tString csvFile=String.format(\"scale-free-%d-1\", agents.size(), (this.job()%100)+1); \n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString splitBy = \",\";\n\t\t\n\t\ttry {\n\t\t\t \n\t\t\tbr = new BufferedReader(new FileReader(csvFile));\n\t\t\tint i=0;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t \n\t\t\t // use comma as separator\n\t\t\t\tString[] row = line.split(splitBy);\n\t\t\t\t\n\t\t\t\tfor (int j=0; j<agents.size();j++) {\n\t\t\t\t\tadjMat[i][j]=Integer.valueOf(row[j]);\n\t\t\t\t}\n\t\t\t\ti++;\n\t \n\t\t\t}\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn adjMat;\n\t}",
"public String getTARGET_BY()\r\n {\r\n\treturn TARGET_BY;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the ObjectCache for the given key and objectKey | public ObjectCache getCache(String key, Object objectKey) {
return this.cache.getElement(key, objectKey);
} | [
"public Object get(Object key) throws CacheException;",
"T getCacheData(String key);",
"public T getObject(T object) {\r\n\t\t\r\n\t\tif(cache.contains(object) == false) //if not in the cache\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Element not found.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcache.get(cache.indexOf(object));\r\n\t\t\treturn object;\r\n\t\t\t\r\n\t\t}\r\n\t\t \r\n\t}",
"CacheEntry lookup( @Nonnull String key );",
"public T get(String key) throws CacheException;",
"public <V> V getElement(String key, Object objectKey) {\n\t\tObjectCache cache = this.cache.getElement(key, objectKey);\n\t\tif (cache == null)\n\t\t\treturn null;\n\t\t@SuppressWarnings(\"unchecked\") V element = (V) cache.getObject();\n\t\treturn element;\n\t}",
"@UnsupportedAppUsage\n private Object getObject(final int key) {\n if (containsKey(key)) {\n return mKeyObjectMap.get(key);\n } else {\n throw new IllegalArgumentException(\"Invalid key: \" + key);\n }\n }",
"public Object get(String key) {\n\n CacheObject cacheObject = cache.get(key).get();\n if (!cacheObject.isExpired()) {\n cacheObject.updateUseTime();\n return cacheObject.getValue();\n } else {\n cache.remove(key);\n queue.add(cacheObject);\n return null;\n }\n }",
"Goliath.ObjectCache getObjectCache();",
"protected ObjEntity _lookupObjEntity(Object object) {\n if (object instanceof ObjEntity) {\n return (ObjEntity) object;\n }\n\n if (object instanceof DataObject) {\n object = object.getClass();\n }\n\n ObjEntity result = (ObjEntity) objEntityCache.get(object);\n if (result == null) {\n // reconstruct cache just in case some of the datamaps\n // have changed and now contain the required information\n constructCache();\n result = (ObjEntity) objEntityCache.get(object);\n }\n return result;\n }",
"public Object getCacheKey() {\n return cacheKey;\n }",
"public Book findByObjectKey(String objectKey)\r\n {\r\n return (Book) findPersistentByObjectKey(objectKey, getObjectClass());\r\n }",
"public Object getFromCache(Object key, int x, int y, int zoomLevel) {\n CacheObject ret = searchCache(key);\n if (ret != null) {\n if (logger.isLoggable(Level.FINE)) {\n logger.fine(\"found tile (\" + x + \", \" + y + \") in cache\");\n }\n return ret.obj;\n }\n \n return null;\n }",
"Cache createCache();",
"public static <T> T getCacheObject(final String key, Class<T> type) {\n if (isNull(key, type)) {\n throw new NullPointerException(\"You can not use a null\" + (key == null ? \"key\" : \"type\"));\n }\n if (!cacheKeys.contains(key)) {\n return null;\n }\n T value;\n try {\n value = type.cast(cacheValues.get(cacheKeys.indexOf(key)).getValue());\n } catch (ClassCastException exception) {\n exception.printStackTrace();\n throw new ClassCastException(\"Invalid type \" + type.getName() + \" for value!\");\n }\n return value;\n }",
"public Object get(String key){\n return memCachedClient.get(key);\n }",
"Object getValueFromLocalCache(Object key);",
"public MemoryCache<ObjectID, ObjectMetaData> getObjectCache() {\n\t\treturn this.objectMDCache;\n\t}",
"public CacheEntry getEntry(String key) {\n\t\tCacheEntry entry = map.get(key);\n\t\tif (entry == null) {\n\t\t\ttry {\n\t\t\t\tCacheEntry newEntry = new CacheEntry(key);\n\t\t\t\tCacheEntry oldEntry = map.putIfAbsent(key, newEntry);\n\t\t\t\tif (oldEntry == null) {\n\t\t\t\t\tsize.incrementAndGet();\n\t\t\t\t\tcheckCapacity();\n\t\t\t\t\treturn newEntry;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn oldEntry;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t//log.error(\"Error creating CacheItem\", e);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn entry;\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.