query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Write searched keyword's snippet in a TextFile using ByteArray NIO method NIO method | @Override
public void WriteToTextFile() {
// Using a programmer-managed byte-array
try (FileOutputStream out = new FileOutputStream(outFileStr, true)) {
out.write(("\n\nBufferSize: " + bufferSize + "\n").getBytes());
for (String key : searchResults.keySet()) {
String keyName = "KeyWord:" + key + "\n";
out.write(keyName.getBytes());
for (String searchResult : searchResults.get(key)) {
searchResult = searchResult + "\n\n\n";
out.write(searchResult.getBytes());
}
}
out.write(
("-------------------------------------------------------- END OF Search Result--------------------------------------------------------")
.getBytes());
elapsedTime = System.nanoTime() - startTime;
out.close();
} catch (IOException ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeToFile(StringBuilder text)throws IOException{\n\n Path filePath = Paths.get(\"index.txt\");\n if (!Files.exists(filePath)) {\n \t Files.createFile(filePath);\n \t}\n \tFiles.write(filePath, text.toString().getBytes(), StandardOpenOption.APPEND);\n }",
"void writeText(FsPath path, String text);",
"@Override\n\tpublic void WriteToTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFileStr, true))) {\n\t\t\tout.write((\"\\n\\nBufferSize: \" + bufferSize + \"\\n\").getBytes());\n\t\t\tfor (String key : searchResults.keySet()) {\n\t\t\t\tString keyName = \"KeyWord:\" + key + \"\\n\";\n\t\t\t\tout.write(keyName.getBytes());\n\n\t\t\t\tfor (String searchResult : searchResults.get(key)) {\n\t\t\t\t\tsearchResult = searchResult + \"\\n\\n\\n\";\n\t\t\t\t\tout.write(searchResult.getBytes());\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tout.write(\n\t\t\t\t\t(\"-------------------------------------------------------- END OF Search Result--------------------------------------------------------\")\n\t\t\t\t\t\t\t.getBytes());\n\t\t\telapsedTime = System.nanoTime() - startTime;\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void writeToFile(ArrayList<String> word, ArrayList<String> abb) {\n String path =\n Environment.getExternalStorageDirectory() + File.separator + \"TextEasy\";\n // Create the folder.\n File folder = new File(path);\n folder.mkdirs();\n\n // Create the file.\n File file = new File(folder, filename);\n\n // Save your stream, don't forget to flush() it before closing it.\n\n try {\n file.createNewFile();\n FileOutputStream fOut = new FileOutputStream(file);\n OutputStreamWriter myOutWriter = new OutputStreamWriter(fOut);\n for (int i = 0; i < word.size(); i++) {\n String text = word.get(i) + \"\\n\" + abb.get(i) + \"\\n\";\n myOutWriter.append(text);\n }\n myOutWriter.close();\n fOut.flush();\n fOut.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"public void writeDocumentForA(String filename, String path) throws Exception\r\n\t{\n\t\tFile folder = new File(path);\r\n\t\tFile[] listOfFiles = folder.listFiles();\r\n\t \r\n\t \r\n\t \tFileWriter fwText;\r\n\t\tBufferedWriter bwText;\r\n\t\t\r\n\t\tfwText = new FileWriter(\"C:/Users/jipeng/Desktop/Qiang/updateSum/TAC2008/Parag/\"+ filename+\"/\" +\"A.txt\");\r\n\t\tbwText = new BufferedWriter(fwText);\r\n\t\t\r\n\t \tfor ( int i=0; i<listOfFiles.length; i++) {\r\n\t \t\t//String name = listOfFiles[i].getName();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString text = readText(listOfFiles[i].getAbsolutePath());\r\n\t\t\t\r\n\t\t\tFileWriter fwWI = new FileWriter(\"C:/pun.txt\");\r\n\t\t\tBufferedWriter bwWI = new BufferedWriter(fwWI);\r\n\t\t\t\r\n\t\t\tbwWI.write(text);\r\n\t\t\t\r\n\t\t\tbwWI.close();\r\n\t\t\tfwWI.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<List<HasWord>> sentences = MaxentTagger.tokenizeText(new BufferedReader(new FileReader(\"C:/pun.txt\")));\r\n\t\t\t\r\n\t\t\t//System.out.println(text);\r\n\t\t\tArrayList<Integer> textList = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t\tfor (List<HasWord> sentence : sentences)\r\n\t\t\t {\r\n\t\t\t ArrayList<TaggedWord> tSentence = tagger.tagSentence(sentence);\r\n\t\t\t \r\n\t\t\t for(int j=0; j<tSentence.size(); j++)\r\n\t\t\t {\r\n\t\t\t \t \tString word = tSentence.get(j).value();\r\n\t\t\t \t \t\r\n\t\t\t \t \tString token = word.toLowerCase();\r\n\t\t\t \t \r\n\t\t\t \t \tif(token.length()>2 )\r\n\t\t\t\t \t{\r\n\t\t\t \t\t\t if (!m_EnStopwords.isStopword(token)) \r\n\t\t\t \t\t\t {\r\n\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t\t\t if (word2IdHash.get(token)==null)\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t textList.add(id);\r\n\t\t\t\t\t\t\t\t\t // bwText.write(String.valueOf(id)+ \" \");\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t word2IdHash.put(token, id);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t allWordsArr.add(token);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t id++;\r\n\t\t\t\t\t\t\t\t } else\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t \tint wid=(Integer)word2IdHash.get(token);\r\n\t\t\t\t\t\t\t\t \tif(!textList.contains(wid))\r\n\t\t\t\t\t\t\t\t \t\ttextList.add(wid);\r\n\t\t\t\t\t\t\t\t \t//bwText.write(String.valueOf(wid)+ \" \");\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t \t}\r\n\t\t\t \t }\r\n\t\t\t }\r\n\t\t\tCollections.sort(textList);\r\n\t\t \r\n\t\t\tString text2 = valueFromList(textList);\r\n\t\t bwText.write(text2);\r\n\t\t //System.out.println(text2);\r\n\t\t bwText.newLine();\r\n\t\t textList.clear();\r\n\t\t \r\n\t \t}\r\n\t \tbwText.close();\r\n\t fwText.close();\r\n\t}",
"private static void writeText(FileWriter outputStream, TextArray textArray, TextArray pTextArray) throws IOException {\n if (pTextArray.compareTo(textArray) != 0) {\n textArray.write(outputStream);\n pTextArray.clone(textArray); // Update the previously save word for comparison in next turn\n }\n }",
"protected abstract void writeToExternal(byte[] b, int off, int len) throws IOException;",
"String write(byte[] content, boolean noPin);",
"@Override\n\tpublic void ReadTextFile() {\n\t\t// Using a programmer-managed byte-array\n\t\ttry (FileInputStream in = new FileInputStream(inFileStr)) {\n\t\t\tstartTime = System.nanoTime();\n\t\t\tbyte[] byteArray = new byte[bufferSize];\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(byteArray)) != -1) {\n\t\t\t\tsnippets.add(new String(byteArray));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"private void insertIntoFile(String data){\n\t\tOutputStream os = null;\n try {\n os = new FileOutputStream(file);\n os.write(data.getBytes(), 0, data.length());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}",
"@Override\n public void writeDataToTxtFile() {\n\n }",
"public static void writeStringToFile(String contents,\n \t\t\tFileOutputStream filePath) throws IOException {\n \t\tif (contents != null) {\n \t\t\tBufferedOutputStream bw = new BufferedOutputStream(filePath);\n \t\t\tbw.write(contents.getBytes(\"UTF-8\"));\n \t\t\tbw.flush();\n \t\t\tbw.close();\n \t\t}\n \t}",
"public static void writeToFile(String path, String text) throws IOException {\n Charset charSet = Charset.forName(\"US-ASCII\");\n BufferedWriter writer = new BufferedWriter(new FileWriter(path));\n writer.write(text,0,text.length());\n writer.close();\n }",
"private String[] writeText(TextObject text, String dir, String baseName, ZipOutputStream zipout)\n throws IOException {\n String encoding = mycfg.textEncoding != null ? mycfg.textEncoding : PMAB.defaultEncoding;\n String href;\n String type = text.getType();\n if (type.equals(TextObject.PLAIN)) {\n href = baseName + \".txt\";\n } else {\n href = baseName + \".\" + type;\n }\n href = dir + \"/\" + href;\n ZipUtils.writeText(text, href, encoding, zipout);\n return new String[]{href, encoding};\n }",
"void saveBookMark(){\n File dotFile = new File( bmFile);\n FileWriter fw;\n BufferedWriter bw;\n PrintWriter pw;\n String str;\n\n // open dotFile\n try{\n // if there is not dotFile, create new one\n fw = new FileWriter( dotFile );\n bw = new BufferedWriter( fw );\n pw = new PrintWriter( bw );\n //write\n for(int i=0;i<MAX_BOOKMARK;i++){\n str = miBookMark[i].getText();\n pw.println(str);\n }\n pw.close();\n bw.close();\n fw.close();\n }catch(IOException e){\n }\n }",
"public void example(){\n\t\tPath path=Paths.get(\"C:\\\\Users\\\\Sharath\\\\Downloads\",\"sharath.txt\");\r\n\t\t//get an instance of seekable byte channel using newByteChannel\r\n\t\ttry(SeekableByteChannel sekbchnl=Files.newByteChannel(path, EnumSet.of(StandardOpenOption.READ))){\r\n\t\t\t//new bytechanneel need a path and how to open in using std enumset.of\r\n\t\t\tByteBuffer buf = ByteBuffer.allocate(12);\r\n\t\t\t//buffer of 12 bytes\r\n\t\t\tString encoding=System.getProperty(\"file.encoding\");\r\n\t\t\t//get the system file encoding\r\n\t\t\tbuf.clear();\r\n\t\t\t//get ready for new sequence\r\n\t\t\twhile(sekbchnl.read(buf)>0){\r\n\t\t\t\t//read from channel to the buffer\r\n\t\t\t\tbuf.flip();\r\n\t\t\t\t//get ready for new seq chan read or get op\r\n\t\t\t\tSystem.out.print(Charset.forName(encoding).decode(buf));\r\n\t\t\t\t//decodes buf to uni char\r\n\t\t\t\tbuf.clear();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(IOException e){\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\t\t//truncate\r\n\t\t//write uses write option\r\n\t\ttry(SeekableByteChannel seekableByteChannel = Files.newByteChannel(path, EnumSet.of(StandardOpenOption.WRITE,StandardOpenOption.TRUNCATE_EXISTING))){\r\n\t\t\tByteBuffer bug=ByteBuffer.wrap(\"sharath hello\".getBytes());\r\n\t\t\tint write=seekableByteChannel.write(bug);\r\n\t\t\tSystem.out.println(\"Number of written bytes:\"+write);\r\n\t\t\tbug.clear();\r\n\t\t}\r\n\t\tcatch(IOException e){\r\n\t\t\t\r\n\t\t}\r\n\t}",
"private void writeVocabPost(FlIndexer fi) throws IOException{\n this.docNormPow = new HashMap<>();\n \n LinkedList<Integer> tf;\n LinkedList<String> files;\n String token;\n int position=0;\n File file = new File(\"CollectionIndex/VocabularyFile.txt\");\n File Postingfile = new File(\"CollectionIndex/PostingFile.txt\");\n \n\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\n FileWriter fw_posting = new FileWriter(Postingfile.getAbsolutePath());\n try (BufferedWriter bw = new BufferedWriter(fw)) {\n try (BufferedWriter bw_posting = new BufferedWriter(fw_posting)){\n for (Map.Entry<String, TermNode> entry : fi.mapTerms.entrySet()){\n double idf = ((double)this.docMap.size())/entry.getValue().getDf();\n //idf=log2(idf, 2);\n bw.write(entry.getValue().getTerm()+\" \"+entry.getValue().getDf()+\" \"+idf+\" \"+position+\"\\n\");\n \n tf=entry.getValue().getTfList();\n files=entry.getValue().getFileList();\n int i=tf.size();\n for (int j=0; j<i; j++){\n double tfidf=idf*((double)tf.get(j)/fi.getMaxTF(files.get(j)));\n double tfidfpow=Math.pow(tfidf, 2);\n\n \n if(this.docNormPow.containsKey(files.get(j))){\n //this.docNorm.put(files.get(j), this.docNorm.get(files.get(j))+tfidf);\n this.docNormPow.put(files.get(j), this.docNormPow.get(files.get(j))+tfidfpow);\n }\n else{\n //this.docNorm.put(files.get(j), tfidf);\n this.docNormPow.put(files.get(j), tfidfpow);\n }\n \n token=this.docMap.get(files.get(j))+\" \"+tf.get(j)+\" \"\n +entry.getValue().multiMap.get(files.get(j))+\" \"+tfidf+\"\\n\";\n position= position + token.length();\n \n bw_posting.write(token);\n }\n }\n }\n }\n \n System.out.println(\"Done creating VocabularyFile.txt\");\n System.out.println(\"Done creating PostingFile.txt\");\n }",
"void write(String text);",
"public static void write64Kib(File file, String contents) throws CWLException {\r\n if (file != null && contents != null) {\r\n try (FileOutputStream out = new FileOutputStream(file)) {\r\n byte[] bytes = contents.getBytes(StandardCharsets.UTF_8.name());\r\n byte[] buffer = new byte[bytes.length > 65536 ? 65536 : bytes.length];\r\n for (int i = 0; i < buffer.length; i++) {\r\n buffer[i] = bytes[i];\r\n }\r\n out.write(buffer);\r\n } catch (IOException e) {\r\n throw new CWLException(\r\n ResourceLoader.getMessage(\"cwl.io.write.failed\", file.getAbsolutePath(), e.getMessage()),\r\n 255);\r\n }\r\n }\r\n }",
"public void makeWord(String inputText,String pageId,createIndex createindex,String contentType)\n {\n int length,i;\n char c;\n boolean linkFound=false;\n int count1,count2,count3,count4,count5,count6,count7,count8,count9;\n\n\n\n StringBuilder word=new StringBuilder();\n // String finalWord=null,stemmedWord=null;\n docId=Integer.parseInt(pageId.trim());\n\n ci=createindex;\n // Stemmer st=new Stemmer();\n //createIndex createindex=new createIndex();\n\n length=inputText.length();\n\n for(i=0;i<length;i++)\n {\n c=inputText.charAt(i);\n if(c<123 && c>96)\n {\n word.append(c);\n }\n\n else if(c=='{')\n {\n if ( i+9 < length && inputText.substring(i+1,i+9).equals(\"{infobox\") )\n {\n\n StringBuilder infoboxString = new StringBuilder();\n\n count1 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n infoboxString.append(c);\n if ( c == '{') {\n count1++;\n }\n else if ( c == '}') {\n count1--;\n }\n if ( count1 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {infoboxString.deleteCharAt(infoboxString.length()-1);}\n break;\n }\n }\n\n processInfobox(infoboxString);\n\n }\n\n else if ( i+8 < length && inputText.substring(i+1,i+8).equals(\"{geobox\") )\n {\n\n StringBuilder geoboxString = new StringBuilder();\n\n count2 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n geoboxString.append(c);\n if ( c == '{') {\n count2++;\n }\n else if ( c == '}') {\n count2--;\n }\n if ( count2 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {geoboxString.deleteCharAt(geoboxString.length()-1);}\n break;\n }\n }\n\n // processGeobox(geoboxString);\n }\n\n else if ( i+6 < length && inputText.substring(i+1,i+6).equals(\"{cite\") )\n {\n\n /*\n * Citations are to be removed.\n */\n\n count3 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count3++;\n }\n else if ( c == '}') {\n count3--;\n }\n if ( count3 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n else if ( i+4 < length && inputText.substring(i+1,i+4).equals(\"{gr\") )\n {\n\n /*\n * {{GR .. to be removed\n */\n\n count4 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count4++;\n }\n else if ( c == '}') {\n count4--;\n }\n if ( count4 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equals(\"{coord\") )\n {\n\n /**\n * Coords to be removed\n */\n\n count5 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '{') {\n count5++;\n }\n else if ( c == '}') {\n count5--;\n }\n if ( count5 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n //System.out.println(\"process infobox\");\n }\n else if(c=='[')\n {\n // System.out.println(\"process square brace\");\n\n if ( i+11 < length && inputText.substring(i+1,i+11).equalsIgnoreCase(\"[category:\"))\n {\n\n StringBuilder categoryString = new StringBuilder();\n\n count6 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n categoryString.append(c);\n if ( c == '[') {\n count6++;\n }\n else if ( c == ']') {\n count6--;\n }\n if ( count6 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {categoryString.deleteCharAt(categoryString.length()-1);}\n break;\n }\n }\n\n // System.out.println(\"category string=\"+categoryString.toString());\n processCategories(categoryString);\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"[image:\") ) {\n\n /**\n * Images to be removed\n */\n\n count7 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '[') {\n count7++;\n }\n else if ( c == ']') {\n count7--;\n }\n if ( count7 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equalsIgnoreCase(\"[file:\") ) {\n\n /**\n * File to be removed\n */\n\n count8 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '[') {\n count8++;\n }\n else if ( c == ']') {\n count8--;\n }\n if ( count8 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n }\n else if(c=='<')\n {\n //System.out.println(\"Process < >\");\n\n if ( i+4 < length && inputText.substring(i+1,i+4).equalsIgnoreCase(\"!--\") ) {\n\n /**\n * Comments to be removed\n */\n\n int locationClose = inputText.indexOf(\"-->\" , i+1);\n if ( locationClose == -1 || locationClose+2 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+2;\n }\n\n }\n else if ( i+5 < length && inputText.substring(i+1,i+5).equalsIgnoreCase(\"ref>\") ) {\n\n /**\n * References to be removed\n */\n int locationClose = inputText.indexOf(\"</ref>\" , i+1);\n if ( locationClose == -1 || locationClose+5 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+5;\n }\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"gallery\") ) {\n\n /**\n * Gallery to be removed\n */\n int locationClose = inputText.indexOf(\"</gallery>\" , i+1);\n if ( locationClose == -1 || locationClose+9 > length) {\n i = length-1;\n }\n else {\n i = locationClose+9;\n }\n }\n\n }\n else if ( c == '=' && i+1 < length && inputText.charAt(i+1) == '=')\n {\n\n linkFound = false;\n i+=2;\n while ( i < length && ((c = inputText.charAt(i)) == ' ' || (c = inputText.charAt(i)) == '\\t') )\n {\n i++;\n }\n\n if ( i+14 < length && inputText.substring(i , i+14 ).equals(\"external links\") )\n {\n //System.out.println(\"External link found\");\n linkFound = true;\n i+= 14;\n }\n\n }\n else if ( c == '*' && linkFound == true )\n {\n\n //System.out.println(\"Link found\");\n count9 = 0;\n boolean spaceParsed = false;\n StringBuilder link = new StringBuilder();\n while ( count9 != 2 && i < length )\n {\n c = inputText.charAt(i);\n if ( c == '[' || c == ']' )\n {\n count9++;\n }\n if ( count9 == 1 && spaceParsed == true)\n {\n link.append(c);\n }\n else if ( count9 != 0 && spaceParsed == false && c == ' ')\n {\n spaceParsed = true;\n }\n i++;\n }\n\n StringBuilder linkWord = new StringBuilder();\n for ( int j = 0 ; j < link.length() ; j++ )\n {\n char currentCharTemp = link.charAt(j);\n if ( (int)currentCharTemp >= 'a' && (int)currentCharTemp <= 'z' )\n {\n linkWord.append(currentCharTemp);\n }\n else\n {\n\n // System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n }\n if ( linkWord.length() > 1 )\n {\n //System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n\n }\n else\n {\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n }\n }\n\n\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n /*\n if(word.length()>0)\n {\n finalWord=new String(word);\n if(!(checkStopword(finalWord)))\n {\n st.add(finalWord.toCharArray(),finalWord.length());\n stemmedWord=st.stem();\n\n createindex.addToTreeSet(stemmedWord,docId);\n\n }\n\n word.delete(0, word.length());\n } */\n\n }",
"@Override\n\tpublic void ReadTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedInputStream in = new BufferedInputStream(new FileInputStream(inFileStr))) {\n\t\t\tbyte[] contents = new byte[bufferSize];\n\t\t\tstartTime = System.nanoTime();\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(contents)) != -1) {\n\t\t\t\tsnippets.add(new String(contents));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"private void insertWordEntry(String file, String word, String partition) {\n\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\tfileList.add(file);\n\t\tindexedDir.get(partition).put(word, fileList);\n\t}",
"public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private int BinarySearchBytePage(String wordToBeSearched, byte[] bytePage, ArrayList<Integer> matchingPositions, String filename, int middleLine)\n {\n //If the wordToBeSearched's length is less than MinWordSize or greater than MaxWordSize, then the search fails automatically\n if(wordToBeSearched.length() > SizeConstants.getMaxWordSize() || wordToBeSearched.length() < SizeConstants.getMinWordSize())\n {\n return -1;\n }\n\n //Get the index entry size in ASCII characters\n int indexEntrySize = (SizeConstants.getMaxWordSize() + 4);\n\n //Record per data page\n int entriesPerPage = bytePage.length / indexEntrySize;\n\n //Initialize the String representation of the word in the data page entry\n String dataPageEntryWord = \"\";\n\n //Initialize the String representation of the last non blank(space filled) word in the page\n String lastNonBlankWord = \"\";\n\n //Flag, true if the word to be searched is matched to the first entry of the data page\n boolean foundAtFirstEntry = false;\n\n //Flag, true if the word to be searched is matched to the first entry of the data page\n boolean foundAtLastEntry = false;\n\n //Search for every entry in the byte page\n for(int index = 0; index < entriesPerPage; index++)\n {\n int entryStartingPosition = index * indexEntrySize;\n //Get only the word from the data page and convert the bytes to ASCII characters\n dataPageEntryWord = new String(Arrays.copyOfRange(bytePage, entryStartingPosition, entryStartingPosition + SizeConstants.getMaxWordSize())).replaceAll(\"\\\\s+\",\"\");\n\n //Compare the index entry word and the word to be searched\n if(dataPageEntryWord.equals(wordToBeSearched))\n {\n //Get the line number from the index entry and add it to the ArrayList\n matchingPositions.add(ByteBuffer.wrap(Arrays.copyOfRange(bytePage, entryStartingPosition + SizeConstants.getMaxWordSize(), entryStartingPosition + indexEntrySize)).getInt());\n if(index == 0)\n {\n //Mark that the word to be searched is matched to the first entry of the data page\n foundAtFirstEntry = true;\n }\n }\n\n //Check if the word in the data page entry is not blank\n if(!dataPageEntryWord.trim().isBlank())\n {\n //Store the last non blank data page entry word\n lastNonBlankWord = dataPageEntryWord;\n }\n }\n\n //Compare the last index entry word and the word to be searched\n if(dataPageEntryWord.equals(wordToBeSearched))\n {\n //Mark that the word to be searched is matched to the last entry of the data page\n foundAtLastEntry = true;\n }\n\n //If the ArrayList is empty, the word to be searched wasn't found in the data page\n if(matchingPositions.isEmpty())\n {\n //Check if the word to be searched is alphabetically before or after the last non blank word\n if(wordToBeSearched.compareTo(lastNonBlankWord) < 0)\n {\n //Search the bottom part of the search area\n return -4;\n }\n else if(wordToBeSearched.compareTo(lastNonBlankWord) > 0)\n {\n //Search the top part of the search area\n return -3;\n }\n }\n else\n {\n //Count the new data page accesses\n int dataPageAccesses = 0;\n\n //Search for other occurrences of the word to be searched in the bottom part\n if(foundAtFirstEntry)\n {\n //Search the bottom part of the search area\n dataPageAccesses += LinearSearchAfterBinary(filename, matchingPositions, wordToBeSearched, middleLine, true);\n }\n\n //Search for other occurrences of the word to be searched, in the top part\n if(foundAtLastEntry)\n {\n //Search the top part of the search area\n dataPageAccesses += LinearSearchAfterBinary(filename, matchingPositions, wordToBeSearched, middleLine, false);\n }\n return dataPageAccesses;\n }\n //Continue the binary search normally\n return -2;\n }",
"public static void main(String[] args) throws IOException {\n char[][] key = new char[8][8];\n\n String[] lines = new String[8];\n\n File fileCardan = new File(\"cardan.txt\");\n\n Scanner fileScanner = new Scanner(fileCardan);\n\n for (int i = 0; i < 8; i++) {\n lines[i] = fileScanner.nextLine();\n }\n\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n key[i][j] = lines[i].charAt(j);\n }\n\n }\n\n // reading text from input.txt file and getting count of 64 char blocks\n String text = new String(Files.readAllBytes(Paths.get(\"input.txt\")));\n\n int blocksCount = text.length() / 64 + 1;\n\n FileWriter fw = new FileWriter(\"encode.txt\");\n\n // encoding all 64 char blocks\n for (int i = 0; i < blocksCount; i++) {\n\n char[][] res;\n if(64+i*64 > text.length())\n res = encode(key, text.substring(i*64));\n else\n res = encode(key, text.substring(i*64,64+i*64));\n fileWrite(res,fw);\n\n }\n\n fw.close();\n\n text = new String(Files.readAllBytes(Paths.get(\"encode.txt\")));\n\n fw = new FileWriter(\"decode.txt\");\n\n for (int i = 0; i < blocksCount; i++) {\n\n fw.write(decode(text.substring(i*64,i*64+64),key));\n\n }\n\n fw.close();\n\n\n\n }",
"private void writeStringToFile(String string, String targetFilename, boolean appendFlag)\r\n\tthrows FileNotFoundException, IOException {\r\n\t\tStringBufferInputStream theTargetInputStream = new StringBufferInputStream(\r\n\t\t\t\tstring);\r\n\t\tFileOutputStream theFileOutputStream = new FileOutputStream(\r\n\t\t\t\ttargetFilename, appendFlag);\r\n\t\tcopyStreamContent(theTargetInputStream, theFileOutputStream);\r\n\t\ttheFileOutputStream.close();\r\n\t\ttheTargetInputStream.close();\r\n\t}",
"public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}",
"void appendFileInfo(byte[] key, byte[] value) throws IOException;",
"@Override\n\tpublic String setBinContents(ByteBuffer fileBytes, byte[] container) {\n\t\tfileBytes.get(container);\n\t\treturn Arrays.toString(container);\n\t}",
"public static void main(String[] args) throws Exception{\n\n FileOutputStream fos = new FileOutputStream(\"C:/Users/e678332/JavaProgrammingPractice/bytearrayfile.txt\");\n FileOutputStream fos1 = new FileOutputStream(\"C:/Users/e678332/JavaProgrammingPractice/bytearrayfile2.txt\");\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n String s = \"byteArrayStream\";\n byte[] b = s.getBytes();\n baos.write(b);\n baos.writeTo(fos);\n baos.writeTo(fos1);\n baos.flush();\n baos.close();\n\n }",
"public BufferedWriter saveSearch(BufferedWriter buffer) throws IOException {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"public void writeToFile(byte[] output) {\r\n try {\r\n file.seek(currOffset);\r\n file.write(output);\r\n currOffset += output.length;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private void fileModify(String text) throws IOException {\n text += \"\\n\";\n try {\n File filePath;\n filePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS);\n if (!filePath.exists()) {\n if (filePath.mkdir()) ; //directory is created;\n }\n\n fileOutputStream = new FileOutputStream(file);\n fileOutputStream.write(text.getBytes());\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n fileOutputStream.flush();\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public abstract void mo27380a(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr);",
"private static void sortWordAndWriteFile(List<TextArray> textArrays) throws IOException {\n SORT_TOOL.addAll(textArrays); // Sort and remove duplicates\n\n Path sortedFilePath = createTempFile(TEMP_SORTED_WORD_FOLDER);\n\n // Save to a new file\n try (FileWriter outputStream = new FileWriter(sortedFilePath.toFile().getAbsolutePath())) {\n SORT_TOOL.forEach(a -> {\n try {\n a.write(outputStream);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n });\n } finally {\n SORT_TOOL.clear();\n }\n }",
"public void write(String text) throws ShellIOException;",
"@Test\n public void test2() throws IOException {\n FileStore files = new FileStoreMemory();\n files.put(\"test.txt\", TestData.FILE_CONTENT.getBytes());\n BlockStore blocks = new BlockStoreMemory();\n\n CapturePrintStream out = CapturePrintStream.create();\n\n List<String> args = Arrays.asList(\"test.txt\");\n new StoreTagPutMain(blocks, files, out, args).run();\n\n out.flush();\n\n List<Tag> tags = tags(out);\n assertEquals(1, tags.size());\n assertEquals(\"6\", tags.get(0).get(\"size\"));\n assertEquals(\"sha-256:5891b5b522d5df086d0ff0b110fbd9d2\"\n + \"1bb4fc7163af34d08286a2e846f6be03\", tags.get(0).get(\"hash\"));\n }",
"public void stringOverWrite (String stringToFind, String stringToOverWrite) throws IOException{\n if (stringToOverWrite==null){\n return;\n }\n StringBuilder text = new StringBuilder();\n String line;\n while ((line=fileRead.readLine())!= null){\n text.append(line.replace(stringToFind, stringToOverWrite)).append(\"\\r\\n\");\n }\n fileWrite = new BufferedWriter(new FileWriter(filePATH));\n\n fileWrite.write(text.toString());\n fileWrite.flush();\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tFile file=new File(\"filename.txt\");\r\n\t\t//FileOutputStream fout=null;\r\n\t\ttry(FileOutputStream fout=new FileOutputStream(file);\r\n\t\t\t\tBufferedOutputStream bout=new BufferedOutputStream(fout);\r\n\t\t\t\tDataOutputStream dout=new DataOutputStream(bout)) {\r\n\t\t\tif(!file.exists()) \r\n\t\t\t{\r\n\t\t\t\tString value=\"This goes into the file\";\r\n\t\t\t\t//Byte[] valueToBeStored=\r\n\t\t\t\t\r\n\t\t\t\tdout.write(97);\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\r\n\t}",
"public static void main(String[] args) throws Exception {\n FileOutputStream fos=new FileOutputStream(\"e:/data/contents.txt\");\r\n //step-2 (write data)\r\n String s=\"Something We want To Write To A File\";\r\n byte b[]=s.getBytes();\r\n //fos.write(b);\r\n fos.write(b, 3, 10);\r\n //step-3 (close file)\r\n fos.close();\r\n System.out.println(\"DATA STORED\");\r\n }",
"FileContent createFileContent();",
"@Test\n public void test1() throws IOException {\n FileStore files = new FileStoreMemory();\n files.put(\"test.txt\", TestData.FILE_CONTENT.getBytes());\n BlockStore blocks = new BlockStoreMemory();\n\n CapturePrintStream out = CapturePrintStream.create();\n\n List<String> args = Arrays.asList(\"test.txt\");\n new StoreTagPutMain(blocks, files, out, args).run();\n\n out.flush();\n\n List<Tag> tags = tags(out);\n assertEquals(1, tags.size());\n assertEquals(\"test.txt\", tags.get(0).get(\"name\"));\n assertEquals(\"file\", tags.get(0).get(\"type\"));\n assertEquals(TestData.KEY_CONTENT_AES128.getFullKey().toString(), tags\n .get(0).get(\"data\"));\n }",
"private static Path analyzeFile(Path filePath) throws IOException {\n\n try (FileReader inputStream = new FileReader(filePath.toFile().getAbsolutePath())) {\n\n Path analyzeResultFilePath = createTempFile(TEMP_FOLDER);\n\n try (FileWriter outputStream = new FileWriter(analyzeResultFilePath.toFile().getAbsolutePath())) {\n\n int wordLength = 0;\n\n // Create a buffer of the given length to save each word in memory\n StringBuilder stringBuilder = new StringBuilder(WORD_LENGTH_THRESHOLD + 2);\n\n // Read the word from the input file, character by character\n int i;\n while ((i = inputStream.read()) != -1) {\n wordLength++;\n\n\n if (isWhitespace(i)) { // Finish reading a word, save it to the file\n if (wordLength > 1) {\n stringBuilder.append('\\n');\n outputStream.write(stringBuilder.toString());\n stringBuilder.setLength(0);\n }\n wordLength = 0;\n } else {\n // If the word is too long for the buffer, save it directly to a separate file, character by character\n if (wordLength > WORD_LENGTH_THRESHOLD) {\n Path longWordFilePath = createTempFile(TEMP_LONG_WORD_FOLDER);\n\n try (FileWriter longWordOutputStream = new FileWriter(longWordFilePath.toFile().getAbsolutePath())) {\n // First save what is already in the buffer\n longWordOutputStream.write(stringBuilder.toString());\n stringBuilder.setLength(0);\n wordLength = 0;\n\n // Then save the rest of the characters\n longWordOutputStream.write(toChars(i));\n\n while ((i = inputStream.read()) != -1) {\n if (!isWhitespace(i)) {\n longWordOutputStream.write(toChars(i));\n } else {\n break;\n }\n }\n }\n } else {\n // Keep adding character to buffer\n stringBuilder.append(toChars(i));\n }\n }\n }\n\n // Finish reading the input file, save what's left in the buffer to the file\n stringBuilder.append('\\n');\n outputStream.write(stringBuilder.toString());\n }\n\n return analyzeResultFilePath;\n }\n }",
"public static void writeWithFileOutputStreamByteByByte(String testSource, String path) throws IOException {\n byte[] buf = testSource.getBytes();\n try(FileOutputStream f = new FileOutputStream(path)) {\n for (int i = 0; i <buf.length ; i++) {\n f.write(buf[i]);\n }\n }\n }",
"public void saveWordsWithGivenLetter(Text text, char ch, String filePath) {\n\n List<Word> words = getWordsWithGivenLetter(text, ch);\n\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(new File(filePath)));\n\n for (Word word : words) {\n bw.write(word.getCharsSequence() + \"\\n\");\n }\n bw.close();\n } catch (IOException e) {\n System.out.println(\"File can't be read\");\n }\n }",
"private static void writeToFile(String string){\n try {\n buffer.write(string);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public abstract void addWordAudio(WordAudio audio) throws IOException;",
"public static void write(Index index, Integer dictId){\n\t\tFile file = new File(\"dict/block/block\"+Integer.toString(dictId)+\".dict\");\n\t\tfile.getParentFile().mkdirs();\n\t\tWriter writer;\n\t\ttry {\n\t\t\twriter = new FileWriter(file);\n\t\t\t\n\t\t\tStringBuffer blockString = new StringBuffer();\n\t\t\t\n\t\t\t//for each term write print term and posting list on new line (format: word[1, 2, 3, 4])\n\t\t\tfor(String term : index.sortEntries().keySet()){\n\t\t\t\tblockString.append(term+index.get(term).toString()+\"\\n\");\n\t\t\t\t\t\n }\n\t\t\t//System.out.println(blockString.toString());\n\t\t\t\n\t\t\twriter.write(blockString.toString());\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void writeFileContents(String filename, String contents) {\n }",
"public static void save(String indexFileName) throws FileNotFoundException, UnsupportedEncodingException{\n\t\tHashMap<String, String> sCurrentHashMap = globalHash.get(indexFileName);\n\t\t\n\t\tPrintWriter writer = new PrintWriter(indexFileName+\".txt\", \"UTF-8\");\n\n\t\tIterator it = sCurrentHashMap.entrySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tHashMap.Entry<String, String> entry = (HashMap.Entry<String, String>) it.next();\n\t\t\t//if this term appear more than one doc\n\t\t\tif(entry.getValue().length()>1) {\n\t\t\t\tStringTokenizer stDocID = new StringTokenizer(entry.getValue(),\",\");\n\t\t\t\twriter.println(entry.getKey()+\",\"+stDocID.countTokens()+\":<\"+entry.getValue()+\">\");\n\t\t\t} else{\n\t\t\t\twriter.println(entry.getKey()+\",1:<\"+entry.getValue()+\">\");\n\t\t\t}\n\t\t}\n\t\twriter.close();\n\t}",
"private static byte[] getWriteBytes(String contentType) {\n \treturn contentType.startsWith(\"text\") ? (contentType+\"; charset=UTF-8\").getBytes() : contentType.getBytes();\n }",
"private void append(byte[] bts) {\n checkFile();\n try {\n outputStream.write(bts);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void writeString(String path, String content) {\n //Open file\n Path jPath = Paths.get(path);\n\n //Create file if necessary\n if (!Files.exists(jPath, LinkOption.NOFOLLOW_LINKS)) {\n try {\n Files.createFile(jPath);\n } catch (IOException ex) {\n System.out.print(ex);\n System.exit(1);\n }\n }\n\n //Error if not writable\n if (!Files.isWritable(jPath)) {\n System.out.println(\"File \" + jPath + \" could not be written!\");\n System.exit(1);\n }\n //Write lines\n try {\n Files.write(jPath, content.getBytes(Charset.forName(\"UTF-8\")));\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }",
"public static void writeTextFile(String path, String content) throws IOException{\r\n FileWriter fw = new FileWriter(path, true);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n bw.write(content);\r\n bw.close();\r\n fw.close();\r\n }",
"@Override\n\tpublic void writeBlob(String contents) throws PersistBlobException {\n\t\tlog.debug(\"writeString: [{}]\",contents);\n\t\ttry {\n\t\t\tFiles.write(Paths.get(full_file_name), contents.getBytes());\n\t\t\treturn;\n\t\t} catch (RuntimeException | IOException e) {\n\t\t\tthrow new PersistBlobException(\"Wrapped Exception in PersistString\",e);\n\t\t}\n\t}",
"public static void writeChachedFile(Context ctx, String filename, String text){\n \t\t// write data to file\n \t\tFileOutputStream fos;\n \t\ttry {\n \t\t\tfilename = filePrefix + filename;\n \t\t\tfos = ctx.openFileOutput(filename, Context.MODE_PRIVATE);\n \t\t\tfos.write(text.getBytes());\t\t\t\n \t\t} catch (FileNotFoundException e) {\n \t\t} catch (IOException e) {}\n \t}",
"public static void writeFile(String inputFile, String outputFile, String[] encodings){\n File iFile = new File(inputFile);\n File oFile = new File(outputFile);\n //try catch for creating the output file\n try {\n //if it doesn't exist it creates the file. else if clears the output file\n\t if (oFile.createNewFile()){\n System.out.println(\"File is created!\");\n\t } else{\n PrintWriter writer = new PrintWriter(oFile);\n writer.print(\"\");\n writer.close();\n System.out.println(\"File cleared.\");\n\t }\n }\n catch(IOException e){\n e.printStackTrace();\n }\n //try catch to scan the input file\n try {\n Scanner scan = new Scanner(iFile);\n PrintWriter writer = new PrintWriter(oFile);\n //loop to look at each word in the file\n while (scan.hasNext()) {\n String s = scan.next();\n //loop to look at each character in the word\n for(int i = 0; i < s.length(); i++){\n if((int)s.charAt(i)-32 <= 94) {\n writer.print(encodings[(int)s.charAt(i)-32]);\n }\n }\n //gives the space between words\n writer.print(encodings[0]);\n }\n scan.close();\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"private void saveTextToFile(String content, File file) {\n try {\n PrintWriter writer;\n writer = new PrintWriter(file);\n writer.println(content);\n writer.close();\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void saveIt(String text, File file) {\n String[] line = text.split(\"\\n\");\n System.out.println(\"the size of string array is \" + line.length );\n if (file == null) {\n logger.debug(\"Null return because Closed the save stage\");\n return;\n }\n try {\n logger.info(\"saving file...\");\n PrintStream stream = new PrintStream(file);\n stream.write(text.getBytes());\n } catch(IOException io) {\n logger.error(io.getMessage());\n }\n logger.info(\"saved\");\n }",
"public void writeToTextFile(String fileName, String content) throws IOException {\n \tFiles.write(Paths.get(fileName), content.getBytes(), StandardOpenOption.CREATE);\n \t}",
"protected void openWriteFile(Path filePath, String s) throws IOException{\n\t\tBufferedWriter writer = Files.newBufferedWriter(filePath, ENCODING);\n\t\twriter.write(s, 0, s.length());\n\t\twriter.close();\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t\r\n File file = new File(\"C:\\\\Users\\\\balaji\\\\Desktop\\\\commons\\\\commons-io-2.6\\\\text file\\\\text1.txt\");\r\n\t\t\r\n\t\tFileUtils.write(file, \"Learning is Growing\", \"UTF-8\", false);\r\n\r\n\r\n\t}",
"ByteArrayIndex createByteArrayIndex();",
"private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private static void writeToOutput() {\r\n FileWriter salida = null;\r\n String archivo;\r\n JFileChooser jFC = new JFileChooser();\r\n jFC.setDialogTitle(\"KWIC - Seleccione el archivo de salida\");\r\n jFC.setCurrentDirectory(new File(\"src\"));\r\n int res = jFC.showSaveDialog(null);\r\n if (res == JFileChooser.APPROVE_OPTION) {\r\n archivo = jFC.getSelectedFile().getPath();\r\n } else {\r\n archivo = \"src/output.txt\";\r\n }\r\n try {\r\n salida = new FileWriter(archivo);\r\n PrintWriter bfw = new PrintWriter(salida);\r\n System.out.println(\"Índice-KWIC:\");\r\n for (String sentence : kwicIndex) {\r\n bfw.println(sentence);\r\n System.out.println(sentence);\r\n }\r\n bfw.close();\r\n System.out.println(\"Se ha creado satisfactoriamente el archivo de texto\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public static void bytesToFile(byte[] bytes, String filePath) throws IOException {\n final FileOutputStream stream = new FileOutputStream(filePath);\n try {\n stream.write(bytes);\n } finally {\n stream.close();\n }\n }",
"private static void writeWordLineToFile(Path wordFilePath, FileWriter outputStream) throws IOException {\n try (FileReader wordStream = new FileReader(wordFilePath.toFile().getAbsoluteFile())) {\n int iw;\n while ((iw = wordStream.read()) != -1 && !isWhitespace(iw)) {\n outputStream.write(toChars(iw));\n }\n outputStream.write('\\n');\n }\n }",
"public void testAppendBytesSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String writeString = \"Hello World\";\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.appendBytes(fileCreationId, writeString.getBytes());\r\n filePersistence.closeFile(fileCreationId);\r\n File file = new File(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"the file should exist\", file.exists());\r\n assertEquals(\"the current file size not correct\", file.length(), writeString.getBytes().length);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }",
"private void writeContent(String content) throws IOException {\n FileChannel ch = lockFile.getChannel();\n\n byte[] bytes = content.getBytes();\n\n ByteBuffer buf = ByteBuffer.allocate(bytes.length);\n buf.put(bytes);\n\n buf.flip();\n\n ch.write(buf, 1);\n\n ch.force(false);\n }",
"@Test\n public void shouldReplaceSingleWord() throws IOException {\n String searchStr = \"Bacon\";\n\n // replace all occurrences of search word with replacement\n String expected = srcContent.replaceAll(searchStr, replacementStr);\n\n // call main()\n invoke(searchStr);\n\n // read destination file\n String destContent = Files.readString(destFile.toPath());\n\n // does the expected content of the destination file meet the expected.\n assertEquals(expected.trim(),destContent.trim());\n }",
"public static void writeTextFile(File file, String content) throws IOException {\n BufferedWriter bw = new BufferedWriter(new FileWriter(file));\n bw.write(content, 0, content.length());\n bw.flush();\n bw.close();\n }",
"private int BinaryReadIndexFile(String filename, ArrayList<Integer> matchingPositions, String wordToBeSearched)\n {\n try\n {\n //Initialize the file object\n File LocalInputFile = new File(filename + \".ndx\");\n\n //Try to open the index file using a Scanner\n Scanner indexFileFileScanner = new Scanner(LocalInputFile);\n\n //Get the files lines number\n int mMaxFileLines = 0;\n while(indexFileFileScanner.hasNext())\n {\n //Read every line in the file\n indexFileFileScanner.nextLine();\n mMaxFileLines++;\n }\n\n //Index to the bottom part of the search area of the file\n int bottomFilePageIndex = 0;\n \n //Index to the top part of the search area of the file\n int topFilePageIndex = mMaxFileLines;\n\n //Index to the middle data page of the search area of the file\n int middleFilePageIndex;\n \n //Counter for the data page accesses\n int dataPageAccessesCounter = 0;\n \n //Status of the search process\n int searchStatus;\n\n //Search while there are data pages to access, if topFilePageIndex is greater than bottomFilePageIndex, the search fails automatically\n while (bottomFilePageIndex <= topFilePageIndex)\n {\n //Reinitialize the FileScanner object\n indexFileFileScanner = new Scanner(LocalInputFile);\n \n //Find the middle data page index\n middleFilePageIndex = (bottomFilePageIndex + topFilePageIndex)/2;\n\n //Skip the lines until the middle point\n SkipLines(indexFileFileScanner, middleFilePageIndex);\n\n //Fetch the data page from the file\n ByteBuffer bytePageBuffer = ByteBuffer.wrap(StringToByteArrayTranslator(indexFileFileScanner.nextLine(), SizeConstants.getBufferSize()));\n\n //Execute the binary search in the page\n searchStatus = BinarySearchBytePage(wordToBeSearched,bytePageBuffer.array(), matchingPositions, filename, middleFilePageIndex);\n\n //Count the data page access\n dataPageAccessesCounter++;\n\n //If the word's to be searched length is invalid or the word is found in the page, but is neither the first or the last word in the page\n if (searchStatus == -2 || searchStatus == -1)\n {\n //Complete the binary search\n break;\n }\n else if (searchStatus == -3)\n {\n //If the search must be continued in the top part of the search area of the file\n bottomFilePageIndex = middleFilePageIndex + 1;\n }\n else if (searchStatus == -4)\n {\n //If the search must be continued in the bottom part of the search area of the file\n topFilePageIndex = middleFilePageIndex - 1;\n }\n else\n {\n //Add the new data page accesses\n dataPageAccessesCounter += searchStatus;\n\n //Complete the binary search\n break;\n }\n }\n //Close the FileScanner object\n indexFileFileScanner.close();\n\n //Return the number of the data page file accesses\n return dataPageAccessesCounter;\n }\n catch (FileNotFoundException e)\n {\n //Catch the FileNotFoundException and inform the user\n System.out.println(\"File: \" + this.Filename + \" cannot be opened.\");\n e.printStackTrace();\n return 0;\n }\n }",
"public void addRef(char[] word) {\n if (indexedFile == null) {\n throw new IllegalStateException(); }\n index.addRef(indexedFile, word); }",
"public static void WriteStreamAppendByFileOutputStream(String fileName, String content) throws IOException {\n BufferedWriter out = null;\n try {\n out = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(fileName, true)));\n out.write(content);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n\tpublic String setAsciiContents(ByteBuffer fileBytes, char[] container) {\n\t\tCharBuffer chars = fileBytes.asCharBuffer().get(container);\n\t\treturn chars.toString();\n\t}",
"private void addTextfileToOutputStream(OutputStream outputStream) {\n Log.i(TAG, \"adding file to outputstream...\");\n byte[] buffer = new byte[1024];\n int bytesRead;\n try {\n BufferedInputStream inputStream = new BufferedInputStream(\n new FileInputStream(Upload_File));\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n } catch (IOException e) {\n Log.i(TAG, \"problem converting input stream to output stream: \" + e);\n e.printStackTrace();\n }\n }",
"private void writeOutputFile(String str, String file) throws Exception {\n FileOutputStream fout = new FileOutputStream(file);\n\n fout.write(str.getBytes());\n fout.close();\n }",
"void write (String s, int offset);",
"public void writeObject(RandomAccessFile arq) throws IOException{\n byte[] dados = this.getByteArray();\n arq.writeChar(' ');\n arq.writeShort(dados.length);\n arq.write(dados);\n }",
"private void indexDocument(File f) throws IOException {\n\n\t\tHashMap<String, StringBuilder> fm;\n\t\tif (!f.getName().equals(\".DS_Store\")) {\n\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\n\t\t\tString s = \"\";\n\t\t\twhile ((s = br.readLine()) != null) {\n\n\t\t\t\tString temp = \"\";\n\n\t\t\t\tif (s.contains(\"<DOC>\")) {\n\n\t\t\t\t\ts = br.readLine();\n\n\t\t\t\t\twhile (!s.contains(\"</DOC>\")) {\n\n\t\t\t\t\t\ttemp += s + \" \";\n\n\t\t\t\t\t\ts = br.readLine();\n\t\t\t\t\t}\n\n\t\t\t\t\tfm = parseTags(temp);\n\t\t\t\t\tindexDocumentHelper(fm);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\n\t}",
"@Test(timeout = 4000)\n public void test26() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchKeywordSearchFile(\"\\\"90hR%xB!V_E\", \"]2|1W!'`]^|wGK<v\", \"4Mt^CHhS%F8B\\\"H Y\", \"[\");\n assertNull(fileInputStream0);\n }",
"String readDocument(String path, Charset charset);",
"@Override\n public void write(String text) {\n }",
"public static void writeWithFileOutputStreamWithBufArr(String testSource, String path) throws IOException {\n byte[] buf = testSource.getBytes();\n try(FileOutputStream f = new FileOutputStream(path)) {\n f.write(buf);\n }\n }",
"public abstract void writeToFile( );",
"public void IndexADocument(String docno, String content) throws IOException {\n\t\t\n\t\tdocIdx.append(docno + \"\\n\");\n\t\n\t\tString[] tokens = content.split(\" \");\n\t\t\n\t\tfor(String word: tokens) {\n\t\t\tif(token.containsKey(word)) {\t\t\n\t\t\t\tLinkedHashMap<Integer, Integer> cur = token.get(word);\n\t\t\t\tif(cur.containsKey(docid))\n\t\t\t\t\tcur.put(docid, cur.get(docid)+1);\n\t\t\t\telse \n\t\t\t\t\tcur.put(docid, 1);\n\t\t\t} else {\n\t\t\t\tLinkedHashMap<Integer, Integer> cur = new LinkedHashMap<>();\n\t\t\t\tcur.put(docid, 1);\n\t\t\t\ttoken.put(word, cur);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t++docid;\n\t\t\n\t\tif(docid % BLOCK == 0) \n\t\t\tsaveBlock();\t\n\t}",
"private static void dosyaYazici(String text)\n {\n File log = new File(\"log.txt\");\n try\n {\n if (!log.exists())\n {\n log.createNewFile();\n }\n FileWriter fileWriter = new FileWriter(log,true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.append(text+\"\\n\");\n bufferedWriter.close();\n //System.out.print(\"TEST\");\n }\n catch (IOException e)\n {\n System.out.print(\"DOSYA HATASI!\");\n e.printStackTrace();\n }\n\n }",
"String transcribeFile(String filePath);",
"public static void WriteFile()throws java.io.FileNotFoundException,java.io.IOException\n {\n FileOutputStream out1= new FileOutputStream(\"Sample.bin\") ; \n String ab=\"Welcome to sample file\";\n out1.write(ab.getBytes());\n out1.flush();\n out1.close();\n }",
"void writeBytes(String s) throws IOException;",
"protected void createBasicData(File tmpFile)\r\n\t{\t\t \r\n\t\tfileNumber++;\r\n\t\tScanner sc2 = null;\r\n\t try {\r\n\t sc2 = new Scanner(tmpFile);\r\n\t } catch (FileNotFoundException e) {\r\n\t e.printStackTrace(); \r\n\t }\r\n\t while (sc2.hasNextLine()) {\r\n\t Scanner s2 = new Scanner(sc2.nextLine());\r\n\t while (s2.hasNext()) {\r\n\t String tmpWord = s2.next();\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\W\", \"\"); //replace all special characters with \"\"\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\d\", \"\"); //replace all digits with \"\"\r\n\t tmpWord = tmpWord.toLowerCase();\r\n\t if(!(tmpWord.equals(\"\")))\r\n\t {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Inserting into location_order table\r\n\t\t\t\t\t\t String query = \"insert ignore into location_order (word, docID, file_name, visible)\" + \" values (?, ?, ?, ?)\";\r\n\t\t\t\t\t // create the mysql insert preparedstatement\r\n\t\t\t\t\t PreparedStatement preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setInt (2, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (3,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (4, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t //Inserting into soundex table\r\n\t\t\t\t\t query = \"insert ignore into tmp_soundex (word, soundex, docID, file_name, visible)\" + \" values (?, ?, ?, ?, ?)\";\r\n\t\t\t\t\t // insert preparedstatement\r\n\t\t\t\t\t preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setString (2,sndx.encode(tmpWord));\r\n\t\t\t\t\t preparedStmt.setInt (3, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (4,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (5, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t preparedStmt.close();\r\n\t\t\t\t\t System.out.println(\"Inserted the word: \"+tmpWord+\" | DocID is: \"+fileNumber +\"|\" +\" Name:: \"+tmpFile.getName());\r\n\t\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t} catch(NumberFormatException nfe){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid data input!\", \"Error!\", 2);\r\n\t\t\t\t\t}\r\n\t }\r\n\t }\r\n\t s2.close();\r\n\t }\r\n\t sc2.close();\r\n\t}",
"public void IndexADocument(String docno, String content) throws IOException {\n\t\tdocid++;\n\t\tdoc2docid.put(docno, docid);\n\t\tdocid2doc.put(docid, docno);\n\n\t\t// Insert every term in this doc into docid2map\n\t\tString[] terms = content.trim().split(\" \");\n\t\tMap<Integer, Integer> docTerm = new HashMap<>();\n\t\tint thisTermid;\n\t\tfor(String term: terms){\n\t\t\t// get termid\n\t\t\tif(term2termid.get(term)!=null) thisTermid = term2termid.get(term);\n\t\t\telse{\n\t\t\t\tthisTermid = ++termid;\n\t\t\t\tterm2termid.put(term, thisTermid);\n\t\t\t}\n\t\t\tdocTerm.put(thisTermid, docTerm.getOrDefault(thisTermid, 0)+1);\n\t\t\t// Merge this term's information into termid2map\n\t\t\tMap<Integer, Integer> temp = termid2map.getOrDefault(thisTermid, new HashMap());\n\t\t\ttemp.put(docid, temp.getOrDefault(docid, 0)+1);\n\t\t\ttermid2map.put(thisTermid, temp);\n\t\t\ttermid2fre.put(thisTermid, termid2fre.getOrDefault(thisTermid, 0)+1);\n\t\t}\n\t\tdocid2map.put(docid, docTerm);\n\n//\t\t// Merge all the terms' information into termid2map\n//\t\tfor(Long tid: docTerm.keySet()){\n//\t\t\tMap<Long, Long> temp = termid2map.getOrDefault(tid, new HashMap());\n//\t\t\ttemp.put(docid,docTerm.get(tid));\n//\t\t\ttermid2map.put(tid, temp);\n//\t\t\t// update this term's frequency\n//\t\t\ttermid2fre.put(tid, termid2fre.getOrDefault(tid,0L)+docTerm.get(tid));\n//\t\t}\n\n\t\t// When termid2map and docid2map is big enough, put it into disk\n\t\tif(docid%blockSize==0){\n\t\t\tWritePostingFile();\n\t\t\tWriteDocFile();\n\t\t}\n\t}",
"public void writeFile(String content){\n\t\tFile file = new File(filePath);\n\t\t\n\t\tBufferedWriter bw = null;\n\t\t\n\t\ttry{\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\t\n\t\t\tbw = new BufferedWriter(new FileWriter(file));\n\t\t\tbw.write(content);\n\t\t}\n\t\tcatch (Exception oops){\n\t\t\tSystem.err.print(\"There was an error writing the file \"+oops.getStackTrace());\n\t\t}\n\t\tfinally{\n\t\t\ttry{\n\t\t\t\tbw.close();\n\t\t\t}\t\n\t\t\tcatch(IOException oops){\n\t\t\t\tSystem.err.print(\"There was an error closing the write buffer \"+oops.getStackTrace());\n\t\t\t}\n\t\t}\n\t}",
"public static void WriteStreamAppendByRandomAccessFile(String fileName, String content) throws IOException {\n try {\n RandomAccessFile randomFile = new RandomAccessFile(fileName, \"rw\");\n long fileLength = randomFile.length();\n // Write point to the end of file.\n randomFile.seek(fileLength);\n randomFile.writeBytes(content);\n randomFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void textFile(String path){\n\t\tBufferedReader br;\r\n\t\ttry {\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(path),Charset.forName(\"gbk\")));\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new IllegalArgumentException(e);\r\n\t\t}\r\n\t\tLineBufferReader myReader=new LineBufferReader(br);\r\n\t}",
"public static void main(String[] args) throws IOException {\n\n long count=0;\n int line_num = 0;\n try{\n\n File file = new File(\"C:\\\\Users\\\\achyutha.aluru\\\\Desktop\\\\Files\\\\newfile_shortest1.txt\");\n PrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\n\n Random random = new Random();\n// int randomInt = random.nextInt(10);\n for(long i = 0; i < 5000; i++) //858993451 for 6.2gb\n { \n char[] word = new char[random.nextInt(8)+3]; // words of length 3 through 10. (1 and 2 letter words are boring.)\n count+=word.length;\n for(int j = 0; j < word.length; j++)\n {\n word[j] = (char)('a' + random.nextInt(26));\n\n }\n writer.print(new String(word) + ' ');\n count+=1;\n if (i % 10 == 0){\n writer.print(\".\");\n// writer.print(\"\\n\");\n line_num+=1;\n count+=1;\n }\n// if (line_num == randomInt) {\n// \twriter.print(\"\\n\");\n// \tline_num=0;\n// \trandomInt = random.nextInt(10);\n// }\n }\n writer.close();\n } catch (IOException e) {\n // do something\n }\n \n FileWrite fw = new FileWrite();\n fw.AppendToFile(\"C:\\\\\\\\Users\\\\\\\\achyutha.aluru\\\\\\\\Desktop\\\\\\\\Files\\\\\\\\newfile_shortest1.txt\");\n System.out.println(count);\n\n}",
"public static void encode()\n {\n String s = BinaryStdIn.readString();\n CircularSuffixArray myCsa = new CircularSuffixArray(s);\n int first = 0;\n while (first < myCsa.length() && myCsa.index(first) != 0) {\n first++;\n }\n BinaryStdOut.write(first);\n int i = 0;\n while (i < myCsa.length()) {\n BinaryStdOut.write(s.charAt((myCsa.index(i) + s.length() - 1) % s.length()));\n i++;\n }\n BinaryStdOut.close();\n }",
"private void addFile(String file){\r\n\t\ttry(\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\r\n\t\t){\r\n\t\t\tString html = \"\";\r\n\t\t\tString line = \"\";\r\n\t\t\t// read in html from passed file argument\r\n\t\t\twhile((line=reader.readLine())!=null){\r\n\t\t\t\thtml += line;\r\n\t\t\t}\r\n\t\t\t// retrieve all text content elements from page\r\n\t\t\tElements paragraphs = Jsoup.parse(html).select(\"p\");\r\n\t\t\tString content = \"\";\r\n\t\t\tfor (Element i : paragraphs){\r\n\t\t\t\tcontent += i.text()+\" \";\r\n\t\t\t}\r\n\t\t\t// tokenize and log all unique words\r\n\t\t\tMatcher matcher = pattern.matcher(content);\r\n\t\t\tString[] results = matcher.results().map(MatchResult::group).toArray(String[]::new);\r\n\t\t\tHashMap<String, Integer> count = new HashMap<String, Integer>();\r\n\t\t\tfor (int i = 0;i<results.length;++i){\r\n\t\t\t\tString word = results[i];\r\n\t\t\t\tif (count.get(word) != null){\r\n\t\t\t\t\tcount.put(word, count.get(word)+1);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcount.put(word, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//create term objects with ids\r\n\t\t\tHashMap<Term, Integer> rCount = new HashMap<Term, Integer>();\r\n\t\t\tint id = 0;\r\n\t\t\tfor (Map.Entry<String, Integer> subset : count.entrySet()){\r\n\t\t\t\trCount.put(new Term(processWord(subset.getKey()),id), subset.getValue());\r\n\t\t\t}\r\n\t\t\t// store data from file\r\n\t\t\tindex.put(file, new IndexedDoc(rCount));\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static native boolean saveDocument(String doc, String toFile);",
"@Override\n\t\tpublic void map(LongWritable key, Text value, Context context) \n\t\t\t\tthrows IOException, InterruptedException \n\t\t{\n\t\t\tString[] lines = value.toString().split(\"\\\\r?\\\\n\"); /* Split input block on new line*/\n\t\t\tfor (String line : lines) /*For each line, search article.*/\n\t\t\t{\n\t\t\t\tif (line == null || line.trim().equals(\"\")) {continue;} //Skip over bank or null lines\n\t\t\t\tString[] elements = line.split(\"\\\\t\"); /*Split line over tabs*/\n\t\t\t\t\n\t\t\t\tif (elements[1].contains(Searchword) || elements[3].contains(Searchword))\n\t\t\t\t{\n\t\t\t\t\t// If the keyword is found in the string write the output the articleID and 1\n\t\t\t\t\tcontext.write(new Text(elements[0].toString()), one); \n\t\t\t\t}\n\t\t\t}\n\t\t}"
] | [
"0.53873384",
"0.53433394",
"0.52433103",
"0.5202409",
"0.515526",
"0.509834",
"0.50908667",
"0.5086845",
"0.5077665",
"0.5033373",
"0.5031615",
"0.49962088",
"0.49630868",
"0.4956927",
"0.49500552",
"0.49338984",
"0.4928291",
"0.48754418",
"0.48595712",
"0.48449153",
"0.48401424",
"0.48313496",
"0.48186204",
"0.48095196",
"0.48080754",
"0.47951064",
"0.47869426",
"0.4786525",
"0.4779516",
"0.47735035",
"0.47711924",
"0.47672358",
"0.47646543",
"0.47617513",
"0.47601822",
"0.47495404",
"0.4747514",
"0.47398818",
"0.47295117",
"0.47149518",
"0.470972",
"0.4705702",
"0.46984923",
"0.46939746",
"0.46904987",
"0.46692303",
"0.46687263",
"0.46636137",
"0.4660766",
"0.46521834",
"0.46415776",
"0.46407095",
"0.46390456",
"0.4637132",
"0.4623402",
"0.46183094",
"0.46180034",
"0.46038863",
"0.46012604",
"0.45997387",
"0.45891383",
"0.45870495",
"0.4586177",
"0.45817536",
"0.45780912",
"0.45768166",
"0.4573778",
"0.45648795",
"0.45621058",
"0.45583865",
"0.45540246",
"0.45522594",
"0.4547999",
"0.454553",
"0.45425588",
"0.45415583",
"0.45351592",
"0.45330554",
"0.45330256",
"0.45327336",
"0.45314318",
"0.45292088",
"0.4525399",
"0.45249224",
"0.45230767",
"0.45198733",
"0.4519656",
"0.45180517",
"0.45175377",
"0.45166752",
"0.4514844",
"0.45105767",
"0.45051467",
"0.4503199",
"0.450003",
"0.4499769",
"0.44978935",
"0.44955677",
"0.4492573",
"0.44921666"
] | 0.5633934 | 0 |
Write response time of keyword snippet search in a TextFile using ByteArray NIO method NIO method | @Override
public void WriteResponseTime() {
try (FileOutputStream out = new FileOutputStream(responseTimeFileStr, true)) {
String responseStr = "Using a programmer-managed byte-array of " + bufferSize + "\n";
responseStr += "Response Time: " + elapsedTime / 1000000.0 + " msec\n\n";
out.write(responseStr.getBytes());
out.close();
} catch (IOException ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void WriteToTextFile() {\n\t\t// Using a programmer-managed byte-array\n\t\ttry (FileOutputStream out = new FileOutputStream(outFileStr, true)) {\n\t\t\tout.write((\"\\n\\nBufferSize: \" + bufferSize + \"\\n\").getBytes());\n\t\t\tfor (String key : searchResults.keySet()) {\n\t\t\t\tString keyName = \"KeyWord:\" + key + \"\\n\";\n\t\t\t\tout.write(keyName.getBytes());\n\n\t\t\t\tfor (String searchResult : searchResults.get(key)) {\n\t\t\t\t\tsearchResult = searchResult + \"\\n\\n\\n\";\n\t\t\t\t\tout.write(searchResult.getBytes());\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.write(\n\t\t\t\t\t(\"-------------------------------------------------------- END OF Search Result--------------------------------------------------------\")\n\t\t\t\t\t\t\t.getBytes());\n\t\t\telapsedTime = System.nanoTime() - startTime;\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void WriteToTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFileStr, true))) {\n\t\t\tout.write((\"\\n\\nBufferSize: \" + bufferSize + \"\\n\").getBytes());\n\t\t\tfor (String key : searchResults.keySet()) {\n\t\t\t\tString keyName = \"KeyWord:\" + key + \"\\n\";\n\t\t\t\tout.write(keyName.getBytes());\n\n\t\t\t\tfor (String searchResult : searchResults.get(key)) {\n\t\t\t\t\tsearchResult = searchResult + \"\\n\\n\\n\";\n\t\t\t\t\tout.write(searchResult.getBytes());\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tout.write(\n\t\t\t\t\t(\"-------------------------------------------------------- END OF Search Result--------------------------------------------------------\")\n\t\t\t\t\t\t\t.getBytes());\n\t\t\telapsedTime = System.nanoTime() - startTime;\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void ReadTextFile() {\n\t\t// Using a programmer-managed byte-array\n\t\ttry (FileInputStream in = new FileInputStream(inFileStr)) {\n\t\t\tstartTime = System.nanoTime();\n\t\t\tbyte[] byteArray = new byte[bufferSize];\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(byteArray)) != -1) {\n\t\t\t\tsnippets.add(new String(byteArray));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void WriteResponseTime() {\n\t\ttry (BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(responseTimeFileStr, true))) {\n\t\t\tString responseStr = \"Using Buffered Stream with a Byte Size of \" + bufferSize + \"\\n\";\n\t\t\tresponseStr += \"Response Time: \" + elapsedTime / 1000000.0 + \" msec\\n\\n\";\n\t\t\tout.write(responseStr.getBytes());\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"void record(int actualReadBytes);",
"@Override\n\tpublic void ReadTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedInputStream in = new BufferedInputStream(new FileInputStream(inFileStr))) {\n\t\t\tbyte[] contents = new byte[bufferSize];\n\t\t\tstartTime = System.nanoTime();\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(contents)) != -1) {\n\t\t\t\tsnippets.add(new String(contents));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\n\n long count=0;\n int line_num = 0;\n try{\n\n File file = new File(\"C:\\\\Users\\\\achyutha.aluru\\\\Desktop\\\\Files\\\\newfile_shortest1.txt\");\n PrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\n\n Random random = new Random();\n// int randomInt = random.nextInt(10);\n for(long i = 0; i < 5000; i++) //858993451 for 6.2gb\n { \n char[] word = new char[random.nextInt(8)+3]; // words of length 3 through 10. (1 and 2 letter words are boring.)\n count+=word.length;\n for(int j = 0; j < word.length; j++)\n {\n word[j] = (char)('a' + random.nextInt(26));\n\n }\n writer.print(new String(word) + ' ');\n count+=1;\n if (i % 10 == 0){\n writer.print(\".\");\n// writer.print(\"\\n\");\n line_num+=1;\n count+=1;\n }\n// if (line_num == randomInt) {\n// \twriter.print(\"\\n\");\n// \tline_num=0;\n// \trandomInt = random.nextInt(10);\n// }\n }\n writer.close();\n } catch (IOException e) {\n // do something\n }\n \n FileWrite fw = new FileWrite();\n fw.AppendToFile(\"C:\\\\\\\\Users\\\\\\\\achyutha.aluru\\\\\\\\Desktop\\\\\\\\Files\\\\\\\\newfile_shortest1.txt\");\n System.out.println(count);\n\n}",
"public void example(){\n\t\tPath path=Paths.get(\"C:\\\\Users\\\\Sharath\\\\Downloads\",\"sharath.txt\");\r\n\t\t//get an instance of seekable byte channel using newByteChannel\r\n\t\ttry(SeekableByteChannel sekbchnl=Files.newByteChannel(path, EnumSet.of(StandardOpenOption.READ))){\r\n\t\t\t//new bytechanneel need a path and how to open in using std enumset.of\r\n\t\t\tByteBuffer buf = ByteBuffer.allocate(12);\r\n\t\t\t//buffer of 12 bytes\r\n\t\t\tString encoding=System.getProperty(\"file.encoding\");\r\n\t\t\t//get the system file encoding\r\n\t\t\tbuf.clear();\r\n\t\t\t//get ready for new sequence\r\n\t\t\twhile(sekbchnl.read(buf)>0){\r\n\t\t\t\t//read from channel to the buffer\r\n\t\t\t\tbuf.flip();\r\n\t\t\t\t//get ready for new seq chan read or get op\r\n\t\t\t\tSystem.out.print(Charset.forName(encoding).decode(buf));\r\n\t\t\t\t//decodes buf to uni char\r\n\t\t\t\tbuf.clear();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(IOException e){\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\t\t//truncate\r\n\t\t//write uses write option\r\n\t\ttry(SeekableByteChannel seekableByteChannel = Files.newByteChannel(path, EnumSet.of(StandardOpenOption.WRITE,StandardOpenOption.TRUNCATE_EXISTING))){\r\n\t\t\tByteBuffer bug=ByteBuffer.wrap(\"sharath hello\".getBytes());\r\n\t\t\tint write=seekableByteChannel.write(bug);\r\n\t\t\tSystem.out.println(\"Number of written bytes:\"+write);\r\n\t\t\tbug.clear();\r\n\t\t}\r\n\t\tcatch(IOException e){\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public String getSearchTime(String path) {\n \tlong start = System.nanoTime();\n \tString str = null;\n BufferedReader br = ExternalFunctions.getBufferedFile(path);\n\n try {\n while((str = br.readLine()) != null) { // Insert all the password to the tree by the algo. here the dog buried\n //str = str.toLowerCase();\n \tSearch(this.root, str);\n }\n br.close();\n }\n catch (IOException e) {\n System.out.println(\"Hash File text is wrong\");\n }\n \n long timeElapsed = System.nanoTime() - start;\n return ExternalFunctions.TimeInMiles(timeElapsed);\n }",
"public static String calculate(String path) throws IOException {\n initialize();\n double spam = 0.0;\n double ham = 0.0;\n int spamCount = 0;\n int hamCount = 0;\n\n Get g1 = new Get(\"spam\".getBytes());\n Result r = wordFreTable.get(g1);\n spam += Math.log(bytes2Double(r.getValue(\"spam\".getBytes())));\n Get g2 = new Get(\"ham\".getBytes());\n r = wordFreTable.get(g2);\n ham += Math.log(bytes2Double(result.getValue(\"ham\".getBytes())));\n\n BufferedWriter writer = new BufferedWriter(new FileWriter(path));\n writer.write(\"doc_id,class_id\");\n\n for (int i = 0; i < Document.size(); i++) {\n String[] doc = Document.get(i).split(\"\\t| \");\n for (String word : doc) {\n Get get = new Get(word.getBytes());\n if (!get.isCheckExistenceOnly()) {\n Result result = wordFreTable.get(get);\n for (Cell cell : result.rawCells()) {\n String colName = Bytes.toString(cell.getQualifierArray(), cell.getQualifierOffset(), cell.getQualifierLength());\n String value = Bytes.toString(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());\n if (colName.equals(\"spam\")) {\n spam += Math.log(Double.valueOf(value));\n } else if (colName.equals(\"ham\")) {\n ham += Math.log(Double.valueOf(value));\n }\n }\n } else {\n //word not exist\n get = new Get(\"SpamSpam\".getBytes());\n Result result = wordFreTable.get(get);\n spam += Math.log(bytes2Double(result.getValue(\"spam\".getBytes())));\n get = new Get(\"HamHam\".getBytes());\n result = wordFreTable.get(get);\n ham += Math.log(bytes2Double(result.getValue(\"ham\".getBytes())));\n }\n }\n if (spam > ham) {\n writer.write(i + \"1\");\n spamCount++;\n } else {\n writer.write(i + \"0\");\n hamCount++;\n }\n }\n writer.close();\n return spamCount * 1.0 / Document.size() + \", \" + hamCount * 1.0 / Document.size();\n }",
"@Test(timeout = 4000)\n public void test26() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchKeywordSearchFile(\"\\\"90hR%xB!V_E\", \"]2|1W!'`]^|wGK<v\", \"4Mt^CHhS%F8B\\\"H Y\", \"[\");\n assertNull(fileInputStream0);\n }",
"@Test\n public void whenReadFileAndAddNewLineToFileThenSecondReadFromHashWithoutLine() {\n Cache cache = new Cache(\"c:/temp\");\n String before = cache.readFile(\"names2.txt\");\n String result = cache.select(\"names2.txt\");\n String path = \"c:/temp/names2.txt\";\n try (FileWriter writer = new FileWriter(path, true);\n BufferedWriter bufferWriter = new BufferedWriter(writer)) {\n bufferWriter.write(\"test\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n result = cache.select(\"names2.txt\");\n assertThat(result, is(before));\n }",
"@Override\n public void writeDataToTxtFile() {\n\n }",
"public void writeDocumentForA(String filename, String path) throws Exception\r\n\t{\n\t\tFile folder = new File(path);\r\n\t\tFile[] listOfFiles = folder.listFiles();\r\n\t \r\n\t \r\n\t \tFileWriter fwText;\r\n\t\tBufferedWriter bwText;\r\n\t\t\r\n\t\tfwText = new FileWriter(\"C:/Users/jipeng/Desktop/Qiang/updateSum/TAC2008/Parag/\"+ filename+\"/\" +\"A.txt\");\r\n\t\tbwText = new BufferedWriter(fwText);\r\n\t\t\r\n\t \tfor ( int i=0; i<listOfFiles.length; i++) {\r\n\t \t\t//String name = listOfFiles[i].getName();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString text = readText(listOfFiles[i].getAbsolutePath());\r\n\t\t\t\r\n\t\t\tFileWriter fwWI = new FileWriter(\"C:/pun.txt\");\r\n\t\t\tBufferedWriter bwWI = new BufferedWriter(fwWI);\r\n\t\t\t\r\n\t\t\tbwWI.write(text);\r\n\t\t\t\r\n\t\t\tbwWI.close();\r\n\t\t\tfwWI.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<List<HasWord>> sentences = MaxentTagger.tokenizeText(new BufferedReader(new FileReader(\"C:/pun.txt\")));\r\n\t\t\t\r\n\t\t\t//System.out.println(text);\r\n\t\t\tArrayList<Integer> textList = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t\tfor (List<HasWord> sentence : sentences)\r\n\t\t\t {\r\n\t\t\t ArrayList<TaggedWord> tSentence = tagger.tagSentence(sentence);\r\n\t\t\t \r\n\t\t\t for(int j=0; j<tSentence.size(); j++)\r\n\t\t\t {\r\n\t\t\t \t \tString word = tSentence.get(j).value();\r\n\t\t\t \t \t\r\n\t\t\t \t \tString token = word.toLowerCase();\r\n\t\t\t \t \r\n\t\t\t \t \tif(token.length()>2 )\r\n\t\t\t\t \t{\r\n\t\t\t \t\t\t if (!m_EnStopwords.isStopword(token)) \r\n\t\t\t \t\t\t {\r\n\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t\t\t if (word2IdHash.get(token)==null)\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t textList.add(id);\r\n\t\t\t\t\t\t\t\t\t // bwText.write(String.valueOf(id)+ \" \");\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t word2IdHash.put(token, id);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t allWordsArr.add(token);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t id++;\r\n\t\t\t\t\t\t\t\t } else\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t \tint wid=(Integer)word2IdHash.get(token);\r\n\t\t\t\t\t\t\t\t \tif(!textList.contains(wid))\r\n\t\t\t\t\t\t\t\t \t\ttextList.add(wid);\r\n\t\t\t\t\t\t\t\t \t//bwText.write(String.valueOf(wid)+ \" \");\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t \t}\r\n\t\t\t \t }\r\n\t\t\t }\r\n\t\t\tCollections.sort(textList);\r\n\t\t \r\n\t\t\tString text2 = valueFromList(textList);\r\n\t\t bwText.write(text2);\r\n\t\t //System.out.println(text2);\r\n\t\t bwText.newLine();\r\n\t\t textList.clear();\r\n\t\t \r\n\t \t}\r\n\t \tbwText.close();\r\n\t fwText.close();\r\n\t}",
"public String getSearchTime(String path) {\n LinkedList<String> keysList = UsefulFunctions.createStringListFromFile(path);\n double startTime = System.nanoTime();\n if (keysList != null) {\n for (String key : keysList) {\n search(key);\n }\n }\n double endTime = System.nanoTime();\n return Double.toString((endTime - startTime) / 1000000.0).substring(0, 6);\n }",
"long getLastWriteTime(String path) throws IOException;",
"void writeText(FsPath path, String text);",
"String readText(FsPath path);",
"public void searchAndWriteQueryResultsToOutput() {\n\n List<String> queryList = fu.textFileToList(QUERY_FILE_PATH);\n\n for (int queryID = 0; queryID < queryList.size(); queryID++) {\n String query = queryList.get(queryID);\n // ===================================================\n // 4. Sort the documents by the BM25 scores.\n // ===================================================\n HashMap<String, Double> docScore = search(query);\n List<Map.Entry<String, Double>> rankedDocList =\n new LinkedList<Map.Entry<String, Double>>(docScore.entrySet());\n Collections.sort(rankedDocList, new MapComparatorByValues());\n\n // ===================================================\n // 5. Write Query Results to output\n // =================================================== \n String outputFilePath =\n RANKING_RESULTS_PATH + \"queryID_\" + (queryID + 1) + \".txt\";\n StringBuilder toOutput = new StringBuilder();\n // display results in console\n System.out.println(\"Found \" + docScore.size() + \" hits.\");\n int i = 0;\n for (Entry<String, Double> scoreEntry : rankedDocList) {\n if (i >= NUM_OF_RESULTS_TO_RETURN)\n break;\n String docId = scoreEntry.getKey();\n Double score = scoreEntry.getValue();\n String resultLine =\n (queryID + 1) + \" Q0 \" + docId + \" \" + (i + 1) + \" \" + score + \" BM25\";\n toOutput.append(resultLine);\n toOutput.append(System.getProperty(\"line.separator\"));\n System.out.println(resultLine);\n i++;\n }\n fu.writeStringToFile(toOutput.toString(), outputFilePath);\n }\n }",
"void appendFileInfo(byte[] key, byte[] value) throws IOException;",
"String getFileOutput();",
"private static IRubyObject write19(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject str, IRubyObject offset, RubyHash options) {\n // FIXME: process options\n \n RubyString pathStr = RubyFile.get_path(context, path);\n Ruby runtime = context.getRuntime();\n failIfDirectory(runtime, pathStr);\n RubyIO file = newFile(context, recv, pathStr, context.runtime.newString(\"w\"));\n \n try {\n if (!offset.isNil()) file.seek(context, offset);\n return file.write(context, str);\n } finally {\n file.close();\n }\n }",
"void get_timestamp (int reversed)\n{\n BytePtr str = new BytePtr(20);\n int i;\n\n if (timestamp != 0) return;\n str.at(19, (byte)0);\n if (reversed != 0)\n for (i=19; i-- != 0; ) str.at(i, (byte)CTOJ.fgetc(ifp));\n else\n CTOJ.fread (str, 19, 1, ifp);\n\n int year = ( str.at(0) - '0')*1000 + (str.at(1) - '0')*100 + (str.at(2) - '0' )*10 + str.at(3) - '0';\n int mon = (str.at(5) - '0')*10 + str.at(6)-'0';\n int day = (str.at(8) - '0')*10 + str.at(9)-'0';\n int hour = (str.at(11) - '0')*10 + str.at(12)-'0';\n int min = (str.at(14) - '0')*10 + str.at(15)-'0';\n int sec = (str.at(17) - '0')*10 + str.at(18)-'0';\n \n Calendar cal = new GregorianCalendar();\n cal.set(year,mon-1,day,hour,min,sec);\n timestamp = cal.getTimeInMillis();\n}",
"private static void writeFileToResponse(byte[] fileContent) throws IOException{\r\n\t\t// Write file to response.\r\n\t output = response.getOutputStream();\r\n\t output.write(fileContent);\r\n\t output.close();\r\n\t}",
"public void filecreate(String Response_details) throws IOException\n\t{\n\t\tFileWriter myWriter = new FileWriter(\"D://Loadtime.txt\",true);\n\t\tmyWriter.write(Response_details+System.lineSeparator());\n\t\tmyWriter.close();\n\t\tSystem.out.println(\"Successfully wrote to the file.\");\n\t\t\n\t\t\n\t}",
"private int BinaryReadIndexFile(String filename, ArrayList<Integer> matchingPositions, String wordToBeSearched)\n {\n try\n {\n //Initialize the file object\n File LocalInputFile = new File(filename + \".ndx\");\n\n //Try to open the index file using a Scanner\n Scanner indexFileFileScanner = new Scanner(LocalInputFile);\n\n //Get the files lines number\n int mMaxFileLines = 0;\n while(indexFileFileScanner.hasNext())\n {\n //Read every line in the file\n indexFileFileScanner.nextLine();\n mMaxFileLines++;\n }\n\n //Index to the bottom part of the search area of the file\n int bottomFilePageIndex = 0;\n \n //Index to the top part of the search area of the file\n int topFilePageIndex = mMaxFileLines;\n\n //Index to the middle data page of the search area of the file\n int middleFilePageIndex;\n \n //Counter for the data page accesses\n int dataPageAccessesCounter = 0;\n \n //Status of the search process\n int searchStatus;\n\n //Search while there are data pages to access, if topFilePageIndex is greater than bottomFilePageIndex, the search fails automatically\n while (bottomFilePageIndex <= topFilePageIndex)\n {\n //Reinitialize the FileScanner object\n indexFileFileScanner = new Scanner(LocalInputFile);\n \n //Find the middle data page index\n middleFilePageIndex = (bottomFilePageIndex + topFilePageIndex)/2;\n\n //Skip the lines until the middle point\n SkipLines(indexFileFileScanner, middleFilePageIndex);\n\n //Fetch the data page from the file\n ByteBuffer bytePageBuffer = ByteBuffer.wrap(StringToByteArrayTranslator(indexFileFileScanner.nextLine(), SizeConstants.getBufferSize()));\n\n //Execute the binary search in the page\n searchStatus = BinarySearchBytePage(wordToBeSearched,bytePageBuffer.array(), matchingPositions, filename, middleFilePageIndex);\n\n //Count the data page access\n dataPageAccessesCounter++;\n\n //If the word's to be searched length is invalid or the word is found in the page, but is neither the first or the last word in the page\n if (searchStatus == -2 || searchStatus == -1)\n {\n //Complete the binary search\n break;\n }\n else if (searchStatus == -3)\n {\n //If the search must be continued in the top part of the search area of the file\n bottomFilePageIndex = middleFilePageIndex + 1;\n }\n else if (searchStatus == -4)\n {\n //If the search must be continued in the bottom part of the search area of the file\n topFilePageIndex = middleFilePageIndex - 1;\n }\n else\n {\n //Add the new data page accesses\n dataPageAccessesCounter += searchStatus;\n\n //Complete the binary search\n break;\n }\n }\n //Close the FileScanner object\n indexFileFileScanner.close();\n\n //Return the number of the data page file accesses\n return dataPageAccessesCounter;\n }\n catch (FileNotFoundException e)\n {\n //Catch the FileNotFoundException and inform the user\n System.out.println(\"File: \" + this.Filename + \" cannot be opened.\");\n e.printStackTrace();\n return 0;\n }\n }",
"public void queryDataPreProcess(String queryText) throws Exception {\n StopwordRemover stopwordRemover = new StopwordRemover();\n WordNormalizer wordNormalizer = new WordNormalizer();\n\n // initiate the BufferedWriter to output result\n FilePathGenerator fpg = new FilePathGenerator(\"result.txt\");\n String path = fpg.getPath();\n\n // queryId\n String queryId = \"\";\n if (queryId == null || queryId.length() == 0){\n// queryId = UUID.randomUUID().toString().replace(\"-\", \"\");\n queryId = String.valueOf(FileConst.query_doc_id);\n }\n\n // append query_id:query_text to exiting doc_id:doc_content text file\n try (FileWriter fileWriter = new FileWriter(path, true); // Path.ResultAssignment1\n BufferedWriter bw = new BufferedWriter(fileWriter)){\n // write doc_id into the result file\n bw.write(queryId + '\\n');\n\n // load doc content\n char[] content = queryText.toCharArray();\n\n // initiate a word object to hold a word\n char[] word;\n\n // initiate the WordTokenizer\n WordTokenizer tokenizer = new WordTokenizer(content);\n\n // process the query word by word iteratively\n while ((word = tokenizer.nextWord()) != null){\n word = wordNormalizer.lowercase(word);\n // write only non-stopword into result file\n if (!stopwordRemover.isStopword(Arrays.toString(word))){\n bw.append(wordNormalizer.toStem(word)).append(\" \");\n query_tokens.add(wordNormalizer.toStem(word));\n }\n }\n bw.append(\"\\n\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private static Path analyzeFile(Path filePath) throws IOException {\n\n try (FileReader inputStream = new FileReader(filePath.toFile().getAbsolutePath())) {\n\n Path analyzeResultFilePath = createTempFile(TEMP_FOLDER);\n\n try (FileWriter outputStream = new FileWriter(analyzeResultFilePath.toFile().getAbsolutePath())) {\n\n int wordLength = 0;\n\n // Create a buffer of the given length to save each word in memory\n StringBuilder stringBuilder = new StringBuilder(WORD_LENGTH_THRESHOLD + 2);\n\n // Read the word from the input file, character by character\n int i;\n while ((i = inputStream.read()) != -1) {\n wordLength++;\n\n\n if (isWhitespace(i)) { // Finish reading a word, save it to the file\n if (wordLength > 1) {\n stringBuilder.append('\\n');\n outputStream.write(stringBuilder.toString());\n stringBuilder.setLength(0);\n }\n wordLength = 0;\n } else {\n // If the word is too long for the buffer, save it directly to a separate file, character by character\n if (wordLength > WORD_LENGTH_THRESHOLD) {\n Path longWordFilePath = createTempFile(TEMP_LONG_WORD_FOLDER);\n\n try (FileWriter longWordOutputStream = new FileWriter(longWordFilePath.toFile().getAbsolutePath())) {\n // First save what is already in the buffer\n longWordOutputStream.write(stringBuilder.toString());\n stringBuilder.setLength(0);\n wordLength = 0;\n\n // Then save the rest of the characters\n longWordOutputStream.write(toChars(i));\n\n while ((i = inputStream.read()) != -1) {\n if (!isWhitespace(i)) {\n longWordOutputStream.write(toChars(i));\n } else {\n break;\n }\n }\n }\n } else {\n // Keep adding character to buffer\n stringBuilder.append(toChars(i));\n }\n }\n }\n\n // Finish reading the input file, save what's left in the buffer to the file\n stringBuilder.append('\\n');\n outputStream.write(stringBuilder.toString());\n }\n\n return analyzeResultFilePath;\n }\n }",
"public void saveSearchTaskResult(String writePath, JsonObject request) {\t\n\t\t\tthis.rwl.lockRead();\n\t\t\t//Search songs according to request\n\t\t\tJsonObject result = this.search(request);\t\n\t\t\tPath outpath = Paths.get(writePath);\n\t\t\t//Create the file.\n\t\t\toutpath.getParent().toFile().mkdir();\n\t\t\ttry(BufferedWriter output = Files.newBufferedWriter(outpath)) {\n\t\t\t\t//Write the result to the file.\n\t\t\t\toutput.write(result.toString());\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Exception in saveSearchTaskResult in SongLibrary class!! \" + e.getMessage());\n\t\t\t}\n\t\t\tthis.rwl.unlockRead();\n\t\t}",
"private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }",
"public byte[] requestRTT() throws RemoteException {\n File f = new File(\"/home/ubuntu/RTTFile.txt\");\n byte[] arr = new byte[1000];\n\n try {\n FileInputStream is = new FileInputStream(f);\n is.read(arr, 0, 1000);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return arr;\n }",
"public abstract long bytesWritten();",
"private static void writeDataLog(String string, String result) throws IOException {\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(string), true));\n\t\tbw.write(result);\n\t\tbw.newLine();\n\t\tbw.flush();\n\t\tbw.close();\n\t}",
"private void outputResults()\n{\n try {\n PrintWriter pw = new PrintWriter(new FileWriter(output_file));\n pw.println(total_documents);\n for (Map.Entry<String,Integer> ent : document_counts.entrySet()) {\n String wd = ent.getKey();\n int ct = ent.getValue();\n pw.println(ct + \" \" + wd);\n }\n pw.println(START_KGRAMS);\n pw.println(total_kdocuments);\n for (Map.Entry<String,Integer> ent : kgram_counts.entrySet()) {\n String wd = ent.getKey();\n int ct = ent.getValue();\n pw.println(ct + \" \" + wd);\n } \n pw.close();\n }\n catch (IOException e) {\n IvyLog.logE(\"SWIFT\",\"Problem generating output\",e);\n }\n}",
"boolean write(byte[] data, int offset, int length, long time);",
"public static void main(String[] args) {\n Scanner inputScanner = new Scanner(System.in);\n System.out.println(\"Enter the filename to be used as the text:\");\n String file = inputScanner.nextLine();\n \n // Read in text from file\n String text = new String();\n try (BufferedReader reader = new BufferedReader(new FileReader(file))) {\n StringBuilder sb = new StringBuilder();\n String line = reader.readLine();\n \n while (line != null) {\n sb.append(line);\n line = reader.readLine();\n }\n text = sb.toString();\n }\n catch (Exception e) {\n System.out.println(e.toString());\n System.exit(-1);\n }\n \n // Preprocessing.\n long startTime = System.nanoTime();\n BWT L = new BWT(text);\n SuffixArray SA = new SuffixArray(text);\n WaveletTree WT = new WaveletTree(L.getBWT());\n \n // Obtain the alphabet of the text.\n HashSet<Character> textAlphabet = new HashSet<>();\n for (int i = 0; i < text.length(); i++) {\n textAlphabet.add(text.charAt(i));\n }\n \n System.out.println(\"The size of the alphabet of the text is \" + textAlphabet.size());\n \n // Compute the C mapping.\n Hashtable<Character, Integer> C = new Hashtable<>();\n for (Character c : textAlphabet) {\n // Add the character if it isn't already present.\n if (!C.contains(c))\n C.put(c, 0);\n \n // Iterate over the text, computing C.\n for (int i = 0; i < text.length(); i++) {\n if (text.charAt(i) < c) {\n C.put(c, C.get(c) + 1);\n }\n }\n }\n \n long endTime = System.nanoTime();\n long duration = (endTime - startTime);\n \n System.out.println(\"Construction time: \" + duration/1000000);\n \n // Search for patterns forever.\n Scanner input = new Scanner(System.in);\n String pattern = null;\n while (true) {\n System.out.println();\n System.out.println(\"Enter a pattern:\");\n pattern = input.nextLine();\n\n // Run the algorithm a hundred times to get a reasonable time value.\n startTime = System.nanoTime();\n int sp = 0;\n int ep = 0;\n for (int repeat = 0; repeat < 1000; repeat++) {\n // All values are prepared for the search.\n int i = pattern.length();\n sp = 1;\n ep = L.getBWT().length();\n while (sp <= ep && i >= 1) {\n char c = pattern.charAt(i-1);\n sp = C.get(c) + WT.occ(WT.getRoot(), sp - 1, c) + 1;\n ep = C.get(c) + WT.occ(WT.getRoot(), ep, c);\n i--;\n }\n }\n \n endTime = System.nanoTime();\n duration = (endTime - startTime);\n \n if (ep < sp)\n System.out.println(\"Pattern not found.\");\n else\n System.out.println(\"<sp, ep> pair is <\" + sp + \", \" + ep + \">\");\n\n// for (int j = sp; j <= ep; j++) {\n// System.out.println(SA.getSuffixArray().get(j-1).toString());\n// }\n \n System.out.println();\n System.out.println(\"The text length is \" + text.length());\n System.out.println(\"The pattern length is \" + pattern.length());\n System.out.println(\"1000 repetitions of the search took \" + duration/1000000 + \" milliseconds.\");\n }\n }",
"@Override\r\n\tpublic void Write_text(String CustomerCode, String Device, String Lot, String CP, File DataSorce,String FileName)\r\n\t\t\tthrows IOException {\n\t\tFile[] Filelist=DataSorce.listFiles();\r\n\t\tfor (int k = 0; k < Filelist.length; k++) {\t\t\t\t\t\r\n\t\t\tparseRawdata parseRawdata=new parseRawdata(Filelist[k]);\r\n\t\t\tLinkedHashMap<String, String> properties=parseRawdata.getProperties();\r\n\t\t\t\r\n\t\t\tString Wafer_ID_R=properties.get(\"Wafer ID\");\r\n\t\t\tString waferid=properties.get(\"Wafer ID\");\r\n\t\t\tString[][] MapCell_R=parseRawdata.getAllDiesDimensionalArray();\r\n\t\t\tString Flat_R=null;\r\n\t\t\tString notch=properties.get(\"Notch\");\r\n\t\t\tif (notch.equals(\"0-Degree\")) {\r\n\t\t\t\tFlat_R=\"Up\";\r\n\t\t\t}else if (notch.equals(\"90-Degree\")) {\r\n\t\t\t\tFlat_R=\"Right\";\r\n\t\t\t}else if (notch.equals(\"180-Degree\")) {\r\n\t\t\t\tFlat_R=\"Down\";\r\n\t\t\t}else {\r\n\t\t\t\tFlat_R=\"Left\";\r\n\t\t\t}\r\n\t\t\tInteger PassDie_R=Integer.parseInt(properties.get(\"Pass Die\"));\t\r\n\t\t\tInteger RightID_R=Integer.valueOf(properties.get(\"RightID\"));\r\n\t\t\tInteger Col_R=(Integer.parseInt(properties.get(\"Map Cols\"))) ;\r\n\t\t\tInteger Row_R=(Integer.parseInt(properties.get(\"Map Rows\")));\r\n\t\t\t\r\n\t\t\tMapCell_R=TurnNighteenDegree.turnNegativeNighteen(MapCell_R, Row_R, Col_R);\t\t\r\n\t\t\tInteger temp=Row_R;\r\n\t\t\tRow_R=Col_R;\r\n\t\t\tCol_R=temp;\r\n\t\t\t\r\n\t\t\tString FailDie_R=properties.get(\"Fail Die\");\r\n\t\t\tString FinalID=RightID_R.toString();\r\n\t\t\tString TestStartTime_R=properties.get(\"Test Start Time\");\r\n\t\t\tString Wafer_Load_Time_R=properties.get(\"Test Start Time\");\r\n\t\t\tTreeMap<Integer, Integer> Bin_Summary_R=parseRawdata.getBinSummary();\r\n\t\t\tString OPerater_R=properties.get(\"Operator\");\r\n\t\t\tString Yeild_R=properties.get(\"Wafer Yield\");\r\n\t\t\tString TestEndTime_R=properties.get(\"Test End Time\");\r\n\t\t\tInteger gross_die=Integer.parseInt(properties.get(\"Gross Die\"));\r\n\t\t\tString waferSize_R=properties.get(\"WF_Size\");\r\n\t\t\tString slotId=properties.get(\"Slot\");\r\n\t\t\tTextReportModel9TurnN90 model1=new TextReportModel9TurnN90();\r\n\t\t\tString VERSION=\"NA\";\r\n\t\t\tif (RightID_R<10) {\r\n\t\t\t\tFinalID=\"0\"+RightID_R.toString();\r\n\t\t\t}\r\n\t\t\tHashMap<String, String> NameMap=model1.InitMap(Lot, FinalID, CP, Wafer_Load_Time_R, Device, Wafer_ID_R, VERSION);\r\n\t\t\tSet<String> keyset1=NameMap.keySet();\r\n\t\t\tString FinalName=FileName;\r\n\t\t\tfor (String key : keyset1) {\r\n\t\t\t\tif (FinalName.contains(key)) {\r\n\t\t\t\t\tFinalName=FinalName.replace(key, NameMap.get(key));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tFile Result_Text=new File(reportBath+CustomerCode+\"/\"+Device+\"/\"+Lot+\"/\"+CP+\"/\"+FinalName);\r\n\r\n\t\t\tPrintWriter out=null;\r\n\t\t\ttry {\r\n\t\t\t\tout=new PrintWriter(new FileWriter(Result_Text));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tout.print(\" \");\r\n\t\t\tfor(int i = 1;i<Col_R;i++)\r\n\t\t\t{\r\n\t\t\t\tif (i<10) {\r\n\t\t\t\t\tout.print(\" 0\"+i);\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tout.print(\" \"+i);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tout.print(\" \");\r\n\t\t\tfor(int i = 1;i<Col_R;i++)\r\n\t\t\t{\r\n\t\t\t\tout.print(\"++-\");\r\n\t\t\t}\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tfor (int i = 0; i < Row_R; i++) {\r\n\t\t\t\tif (i<10) {\r\n\t\t\t\t\tout.print(\"00\"+i+\"|\");\r\n\t\t\t\t}else if (i>9&&i<100) {\r\n\t\t\t\t\tout.print(\"0\"+i+\"|\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tout.print(i+\"|\");\r\n\t\t\t\t}\r\n\t\t\t\tfor (int j = 0; j < Col_R; j++) {\r\n\t\t\t\t\tif (MapCell_R[i][j]==null) {\r\n\t\t\t\t\t\tout.print(String.format(\"%3s\",\" \"));\r\n\t\t\t\t\t}else if (MapCell_R[i][j].equals(\"S\")||MapCell_R[i][j].equals(\"M\")) {\r\n\t\t\t\t\t\tout.print(String.format(\"%3s\",\" \"));\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tif (Integer.valueOf(MapCell_R[i][j])>9) {\r\n\t\t\t\t\t\t\tout.print(String.format(\"%3s\", MapCell_R[i][j]));\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tout.print(String.format(\"%3s\", \"0\"+MapCell_R[i][j]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tout.print(\"\\r\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tout.print(\"============ Wafer Information () ===========\"+\"\\r\\n\");\r\n\t\t\tout.print(\" Device: \"+Device+\"\\r\\n\");\r\n\t\t\tout.print(\" Lot NO: \"+Lot+\"\\r\\n\");\r\n\t\t\tout.print(\" Slot No: \"+(slotId.length()==1?\"0\"+slotId:slotId)+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer ID: \"+waferid+\"\\r\\n\");\r\n\t\t\tout.print(\" Operater: \"+OPerater_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Size: \"+waferSize_R+\" Inch\"+\"\\r\\n\");\r\n\t\t\tout.print(\" Flat Dir: \"+Flat_R+\"\\r\\n\");\r\n//\t\t\tif (Flat_R.equals(\"LEFT\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+270+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n//\t\t\tif (Flat_R.equals(\"RIGHT\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+90+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n//\t\t\tif (Flat_R.equals(\"UP\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+0+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n//\t\t\tif (Flat_R.equals(\"DOWN\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+180+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n\t\t\tout.print(\" Wafer Test Start Time: \"+TestStartTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Test Finish Time: \"+TestEndTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Load Time: \"+TestStartTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Unload Time: \"+TestEndTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Total test die: \"+gross_die+\"\\r\\n\");\r\n\t\t\tout.print(\" Pass Die: \"+PassDie_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Fail Die: \"+FailDie_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Yield: \"+Yeild_R+\"\\r\\n\");\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tout.print(\" Bin (0~63) Data Deatil Summary\"+\"\\r\\n\");\r\n\t\t\tout.print(\"=======================================================================\"+\"\\r\\n\");\r\n\t\t \r\n\t\t\tString Bin_Sum=\"\";\r\n\t\t\tString Bin_yield_percent=\"\";\r\n\t\t\tfor (int i = 0; i < 64; i++) {\r\n\t\t\t\tString Every_Bininfor=\"\";\r\n\t\t\t\tInteger Sum=0;\r\n\t\t\t\tif (Bin_Summary_R.containsKey(i+1)) {\r\n\t\t\t\t\tSum=Bin_Summary_R.get(i+1);\r\n\t\t\t\t}\r\n\t\t\t\tfor(int j=0;j<5-(\"\"+Sum).length();j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEvery_Bininfor+=\"0\";\r\n\t\t\t\t}\r\n\t\t\t\tBin_Sum+=Every_Bininfor+Sum+\" | \";\r\n\t\t\t\tString percent=String.format(\"%.2f\", ((double)Sum*100/gross_die));\r\n\t\t\t\tif (percent.length()!=5) {\t\t\r\n\t\t\t\t\tpercent=\"0\"+percent;\r\n\t\t\t\t}\r\n\t\t\t\tBin_yield_percent+= percent+\"% | \";\r\n\t\t\t\t\r\n\t\t\t\tif ((i+1)>9) {\r\n\t\t\t\t\tout.print(\"Bin \"+(i+1)+\" | \");\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tout.print(\"Bin \"+(i+1)+\" | \");\r\n\t\t\t\t}\r\n\t\t\t\tif ((i+1)%8==0) {\r\n\t\t\t\r\n\t\t\t\t\tout.print(\"\\r\\n\");\t\t\r\n\t\t\t\t\tout.print(Bin_Sum);\r\n\t\t\t\t\tBin_Sum=\"\";\t\r\n\t\t\t\t\tout.print(\"\\r\\n\");\r\n\t\t\t\t\tout.print(Bin_yield_percent);\r\n\t\t\t\t\tBin_yield_percent=\"\";\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\tif ((i+1)%8==0) {\r\n\t\t\t\t\tout.print(\"\\r\\n\");\r\n\t\t\t\t\tout.print(\"=======================================================================\"+\"\\r\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t\tFTP_Release(CustomerCode, Device, Lot, CP, Result_Text);\r\n\t\t}\r\n\r\n\t}",
"public void addWritten(byte[] value) {\n\n writeSetLock.lock();\n writeSet.add(new TimestampValuePair(ets, value));\n writeSetLock.unlock();\n }",
"@Test\n public void test2() throws IOException {\n FileStore files = new FileStoreMemory();\n files.put(\"test.txt\", TestData.FILE_CONTENT.getBytes());\n BlockStore blocks = new BlockStoreMemory();\n\n CapturePrintStream out = CapturePrintStream.create();\n\n List<String> args = Arrays.asList(\"test.txt\");\n new StoreTagPutMain(blocks, files, out, args).run();\n\n out.flush();\n\n List<Tag> tags = tags(out);\n assertEquals(1, tags.size());\n assertEquals(\"6\", tags.get(0).get(\"size\"));\n assertEquals(\"sha-256:5891b5b522d5df086d0ff0b110fbd9d2\"\n + \"1bb4fc7163af34d08286a2e846f6be03\", tags.get(0).get(\"hash\"));\n }",
"public void getRawField(String path){\n\t\tString info; // content of each node\n\t\tArrayList<String> fileContent = new ArrayList<>();\n\t\tNodeList documentList = getDocumentsTagsPubmed(path);\n\t\tfor (int s = 0; s < documentList.getLength(); s++) { //transform document nodes in elements\n\t\t\tNode fstNode = documentList.item(s);\n\t\t\tElement element = (Element) fstNode;\n\t\t\tNodeList nodeList2 = element.getElementsByTagName(\"str\");\n\t\t\tfor (int j = 0; j < nodeList2.getLength(); j++) {\n\t\t\t\tNode text = nodeList2.item(j);\n\t\t\t\treadPubmedElements(fileContent,text);\n\t\t\t\tif(fileContent.get(0)!=null){\n\t\t\t\t\t//\tgetWindowSentences(List<String> tokenizedText, T, int window, fileContent.get(0));\n\t\t\t\t\tsaveContenttoFile(fileContent, \"Files\\\\result.txt\");\n\t\t\t\t\tfileContent.removeAll(fileContent);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"int writeTo(byte[] iStream, int pos, ORecordVersion version);",
"public void readFileA(DataOutputStream myDataOutputStream){\r\n try {\r\n Path file = Paths.get(\"/Users/jab/Desktop/Java/7_HW_access_file_from_client/FileA.txt\");\r\n BufferedReader reader = Files.newBufferedReader(file, StandardCharsets.UTF_8);\r\n String line = null;\r\n while ((line = reader.readLine()) != null) {\r\n myDataOutputStream.writeUTF(\"File A :\"+line);\r\n }\r\n myDataOutputStream.writeUTF(\"done\");\r\n myDataOutputStream.flush();\r\n } catch (IOException e){\r\n System.out.println(\"App Server :: IOException : \" + e.getMessage());\r\n }\r\n }",
"long getLastWriteTimeUtc(String path) throws IOException;",
"public static void main(String[] args) throws FileNotFoundException \r\n\t\t{\r\n\t\t\r\n\t\t\tdouble timestamp_difference ; \r\n\t\t{\r\n\t\t\ttry (BufferedReader br = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\" Captured Summary of the Microservices Log file located at C:\\\\mslog.txt is as below : \" );\r\n\t\t\t\t\tSystem.out.println(\" ************ Start of Log file Summary ************* \");\r\n\t\t\t\t\tSystem.out.println(\" Sr.No 1 - \" ); \r\n\t\t\t\t\t\r\n\t\t\t\t\tString sCurrentLine;\r\n\t\t\t \r\n\t\t\t String Search=\"(addClient:97900)\";\r\n\t\t\t while ((sCurrentLine = br.readLine()) != null) \r\n\t\t\t {\t \t\r\n\t\t\t \t \r\n\t\t\t \tif(sCurrentLine.contains(Search))\r\n\t\t\t {\t\t \r\n\t\t\t System.out.println(\" (addClient:97900) string found in log file where Name of service is = addClient & Request id is = 97900 \" ) ;\r\n\t\t\t }\r\n\t\t\t \t\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t { \r\n\t\t\t \t\tint count = 0;\r\n\t\t\t for (int i = 0; i <= 1 ; i++) {\r\n\t\t\t count++;\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t System.out.println( \" Sr.No 2 - Number of requests made to the service are = \" + count);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t\t\r\n\r\n\t\t\t }\t\r\n\t\t\t\r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br1 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search1=\"2015-10-28T12:24:33,903\";\r\n\t\t\t while ((sCurrentLine = br1.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search1))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 3 - Entry time stamp of Add Client Request (id-97900) found in logfile is = \" + Search1 );\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\r\n\t\t\ttry (BufferedReader br2 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search2=\"2015-10-28T12:24:34,002\";\r\n\t\t\t while ((sCurrentLine = br2.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search2))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 4 - Exit time stamp of Add Client Request (id-97900) found in logfile is = \" + Search2 );\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br3 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search3=\"33,903\";\t\t \r\n\t\t\t while ((sCurrentLine = br3.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search3))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 5 - Entry time stamp (in seconds) of Add Client Request (id-97900) found in logfile is = \" + Search3 );\r\n\t\t\t //double secexit = Integer.parseInt(Search3);\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br4 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search4=\"34,002\";\t\t \r\n\t\t\t while ((sCurrentLine = br4.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search4))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 6 - Exit time stamp (in seconds) of Add Client Request (id-97900) found in logfile is = \" + Search4 );\r\n\t\t\t //double secentry = Integer.parseInt(Search4);\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttimestamp_difference = ( 34002 - 33903 ) * 0.0001 ;\r\n\t\t\tSystem.out.println(\" Sr.No 7 - Maximum time required for Add Client request execution ( in seconds ) is = \" + timestamp_difference );\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" ************ End of Log file Summary ************* \");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private static void grep(File f) throws IOException {\r\n\r\n\t\t// Open the file and then get a channel from the stream\r\n\t\tFileInputStream fis = new FileInputStream(f);\r\n\t\tFileChannel fc = fis.getChannel();\r\n\r\n\t\t// Get the file's size and then map it into memory\r\n\t\tint sz = (int) fc.size();\r\n\t\tMappedByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, sz);\r\n\r\n\t\t// Decode the file into a char buffer\r\n\t\tCharBuffer cb = decoder.decode(bb);\r\n\r\n\t\t// Perform the search\r\n\t\tgrep(f, cb);\r\n\r\n\t\t// Close the channel and the stream\r\n\t\tfc.close();\r\n\t}",
"public static String query(String content, String url) throws ClientProtocolException, IOException {\n CloseableHttpClient httpclient = HttpClients.createDefault();\n// long qTest_end = System.currentTimeMillis();\n StringBuffer sb = new StringBuffer();\n// FileWriter fileWriter=new FileWriter(new File(\"/home/hadoop/wnd/usr/cmb/招行程序运行结果.txt\"),true);\n try {\n HttpPost httpPost = new HttpPost(url);\n HttpEntity entity = new ByteArrayEntity(content.getBytes());\n httpPost.setEntity(entity);\n// httpPost.setHeader(\"type\",\"0\");\n CloseableHttpResponse response = httpclient.execute(httpPost);\n try {\n// System.out.println(\"提交返回的状态:\"+response.getStatusLine());\n HttpEntity entity2 = response.getEntity();\n BufferedReader reader = new BufferedReader(new InputStreamReader(entity2.getContent()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n// System.out.println(line);\n// fileWriter.write(line+\"\\n\");\n sb.append(line+\"\\n\");\n }\n EntityUtils.consume(entity2);\n } finally {\n// fileWriter.flush();\n// fileWriter.close();\n response.close();\n }\n } finally {\n httpclient.close();\n }\n// System.out.print(\"qTest:\");\n// System.out.println(qTest_end - qTest_st);\n return sb.toString();\n }",
"private double getReadTime(int wordCount) {\n return wordCount / 130.0;\n }",
"double getFile(int index);",
"public static void write2File(String fileName) throws IOException{\n BufferedWriter output = null;\n try {\n File file = new File(fileName);\n output = new BufferedWriter(new FileWriter(file));\n for(BufferIOIntercept ob : bufferIOList){\n \n output.write(ob.op + \",\" + ob.strategy + \",\" + ob.numberBte + \",\" + ob.blkSize + \",\" + ob.time + \"\\n\");\n }\n } catch ( IOException e ) {\n e.printStackTrace();\n } finally {\n if ( output != null ) output.close();\n }\n }",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.fetchKeywordSearchFile(\"c(w\", \"U_w94([2tu\", \"popcornmonste2-20\", \"popcornmonste2-20\");\n fileUtil0.fetchBlendedSearchFile((String) null, \"cacheLife\");\n fileUtil0.fetchSimilarItems(\"SF*KdO/{3)AN:saQ[\", \"=E048F A6fmw7p6\");\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&KeywordSearch=&mode=popcornmonste2-20&type=Iz 6~/3ztsI&page=6&kX&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"pIIKg$f#s[uwS}eqYG\");\n fileUtil0.downloadBlendedSearchFile(\"SF*KdO/{3)AN:saQ[\", \"SF*KdO/{3)AN:saQ[\");\n fileUtil0.downloadKeywordSearchFile(\"\", \"popcornmonste2-20\", \"Iz 6~/3ztsI\", \"6&kX\");\n fileUtil0.fetchBNFile(\"\", (String) null, \"U_w94([2tu\");\n fileUtil0.downloadBrowseNodeFile(\"U_w94([2tu\", \"]pHI%@07}\", \"SF*KdO/{3)AN:saQ[\", \"\");\n fileUtil0.getASINFile(\"=E048F A6fmw7p6\", \"c(w\", (String) null, \"1n\");\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\"cacheLife\", \"pIIKg$f#s[uwS}eqYG\", \"nF+ad/p6I\", \"]pHI%@07}\", \"pIIKg$f#s[uwS}eqYG\", \"SF*KdO/{3)AN:saQ[\");\n assertNull(fileInputStream0);\n }",
"private int BinarySearchBytePage(String wordToBeSearched, byte[] bytePage, ArrayList<Integer> matchingPositions, String filename, int middleLine)\n {\n //If the wordToBeSearched's length is less than MinWordSize or greater than MaxWordSize, then the search fails automatically\n if(wordToBeSearched.length() > SizeConstants.getMaxWordSize() || wordToBeSearched.length() < SizeConstants.getMinWordSize())\n {\n return -1;\n }\n\n //Get the index entry size in ASCII characters\n int indexEntrySize = (SizeConstants.getMaxWordSize() + 4);\n\n //Record per data page\n int entriesPerPage = bytePage.length / indexEntrySize;\n\n //Initialize the String representation of the word in the data page entry\n String dataPageEntryWord = \"\";\n\n //Initialize the String representation of the last non blank(space filled) word in the page\n String lastNonBlankWord = \"\";\n\n //Flag, true if the word to be searched is matched to the first entry of the data page\n boolean foundAtFirstEntry = false;\n\n //Flag, true if the word to be searched is matched to the first entry of the data page\n boolean foundAtLastEntry = false;\n\n //Search for every entry in the byte page\n for(int index = 0; index < entriesPerPage; index++)\n {\n int entryStartingPosition = index * indexEntrySize;\n //Get only the word from the data page and convert the bytes to ASCII characters\n dataPageEntryWord = new String(Arrays.copyOfRange(bytePage, entryStartingPosition, entryStartingPosition + SizeConstants.getMaxWordSize())).replaceAll(\"\\\\s+\",\"\");\n\n //Compare the index entry word and the word to be searched\n if(dataPageEntryWord.equals(wordToBeSearched))\n {\n //Get the line number from the index entry and add it to the ArrayList\n matchingPositions.add(ByteBuffer.wrap(Arrays.copyOfRange(bytePage, entryStartingPosition + SizeConstants.getMaxWordSize(), entryStartingPosition + indexEntrySize)).getInt());\n if(index == 0)\n {\n //Mark that the word to be searched is matched to the first entry of the data page\n foundAtFirstEntry = true;\n }\n }\n\n //Check if the word in the data page entry is not blank\n if(!dataPageEntryWord.trim().isBlank())\n {\n //Store the last non blank data page entry word\n lastNonBlankWord = dataPageEntryWord;\n }\n }\n\n //Compare the last index entry word and the word to be searched\n if(dataPageEntryWord.equals(wordToBeSearched))\n {\n //Mark that the word to be searched is matched to the last entry of the data page\n foundAtLastEntry = true;\n }\n\n //If the ArrayList is empty, the word to be searched wasn't found in the data page\n if(matchingPositions.isEmpty())\n {\n //Check if the word to be searched is alphabetically before or after the last non blank word\n if(wordToBeSearched.compareTo(lastNonBlankWord) < 0)\n {\n //Search the bottom part of the search area\n return -4;\n }\n else if(wordToBeSearched.compareTo(lastNonBlankWord) > 0)\n {\n //Search the top part of the search area\n return -3;\n }\n }\n else\n {\n //Count the new data page accesses\n int dataPageAccesses = 0;\n\n //Search for other occurrences of the word to be searched in the bottom part\n if(foundAtFirstEntry)\n {\n //Search the bottom part of the search area\n dataPageAccesses += LinearSearchAfterBinary(filename, matchingPositions, wordToBeSearched, middleLine, true);\n }\n\n //Search for other occurrences of the word to be searched, in the top part\n if(foundAtLastEntry)\n {\n //Search the top part of the search area\n dataPageAccesses += LinearSearchAfterBinary(filename, matchingPositions, wordToBeSearched, middleLine, false);\n }\n return dataPageAccesses;\n }\n //Continue the binary search normally\n return -2;\n }",
"String transcribeFile(String filePath);",
"public void writeToFile(StringBuilder text)throws IOException{\n\n Path filePath = Paths.get(\"index.txt\");\n if (!Files.exists(filePath)) {\n \t Files.createFile(filePath);\n \t}\n \tFiles.write(filePath, text.toString().getBytes(), StandardOpenOption.APPEND);\n }",
"String write(byte[] content, boolean noPin);",
"private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }",
"public void map(Object key, Text value, Context context\n\t\t ) throws IOException, InterruptedException {\n\n\t\t\t\n\t\t\t\n\t\t\t \n\t\t\t String curr_string=value.toString();\n\t\t\t /// splitting based on \"*\" as a delimiter...\n\t\t\t String [] parts=curr_string.split(\"\\\\*\");\n\t\t\t String curr_key=parts[0];\n\t\t\t // Removing spaces from both left and right part of the string..\n\t\t\t String curr_value=parts[1].trim();\n\t\t\t String [] small_parts=curr_value.split(\",\");\n\t\t\t // Taking the count of unique files which are present in the input given to tfidf\n\t\t\t int no_of_unique_files=Integer.parseInt(small_parts[small_parts.length-1]);\n\t\t\t /// The formula to compute idf is log((1+no_of_files)/no_of_unique_files))....\n\t\t\t Configuration conf=context.getConfiguration();\n\t\t\t String value_count=conf.get(\"test\");\n\t\t\t if(!value_count.isEmpty())\n\t\t\t {\n\t\t\t int total_no_files=Integer.parseInt(value_count);\n\t\t\t double x=(total_no_files/no_of_unique_files);\n\t\t\t // Formula fo rcomputing the idf value....\n\t\t\t double idf_value=Math.log10(1+x);\n\t\t\t for(int i=0;i<small_parts.length-1;i++)\n\t\t\t {\n\t\t\t\t String [] waste=small_parts[i].split(\"=\");\n\t\t\t\t String file_name=waste[0];\n\t\t\t\t // Computing the tfidf on the fly...\n\t\t\t\t double tf_idf=idf_value*Double.parseDouble(waste[1]);\n\t\t\t\t Text word3 = new Text();\n\t\t\t\t Text word4 = new Text();\n\t\t\t\t word3.set(curr_key+\"#####\"+file_name+\",\");\n\t\t\t\t word4.set(tf_idf+\"\");\n\t\t\t\t context.write(word3,word4);\n\t\t\t\t \n\t\t\t }\n\t\t\t //word1.set(curr_key);\n\t\t\t //word2.set(idf_value+\"\");\n\t\t\t //context.write(word1,word2); \n\t\t\t} \n\t\t}",
"void onBytesWritten(int bytesWritten);",
"public void streamData(String pathToFile) throws IOException;",
"public void write_file(String filename)\n {\n out.println(\"WRITE\");\n out.println(filename);\n int timestamp = 0;\n synchronized(cnode.r_list)\n {\n timestamp = cnode.r_list.get(filename).cword.our_sn;\n }\n // content = client <ID>, <ts>\n out.println(\"Client \"+my_c_id+\", \"+timestamp);\n // check if write operation finished on server and then exit method\n try\n {\n String em = null;\n em = in.readLine();\n Matcher m_eom = eom.matcher(em);\n if (m_eom.find())\n {\n System.out.println(\"WRITE operation finished on server : \"+remote_c_id);\n }\n else\n {\n System.out.println(\"WRITE operation ERROR on server : \"+remote_c_id);\n }\n }\n catch (IOException e) \n {\n \tSystem.out.println(\"Read failed\");\n \tSystem.exit(-1);\n }\n }",
"private void writeBytes() {\n\t\tint needToWrite = rawBytes.length - bytesWritten;\n\t\tint actualWrit = line.write(rawBytes, bytesWritten, needToWrite);\n\t\t// if the total written is not equal to how much we needed to write\n\t\t// then we need to remember where we were so that we don't read more\n\t\t// until we finished writing our entire rawBytes array.\n\t\tif (actualWrit != needToWrite) {\n\t\t\tCCSoundIO.debug(\"writeBytes: wrote \" + actualWrit + \" of \" + needToWrite);\n\t\t\tshouldRead = false;\n\t\t\tbytesWritten += actualWrit;\n\t\t} else {\n\t\t\t// if it all got written, we should continue reading\n\t\t\t// and we reset our bytesWritten value.\n\t\t\tshouldRead = true;\n\t\t\tbytesWritten = 0;\n\t\t}\n\t}",
"private void append(byte[] bts) {\n checkFile();\n try {\n outputStream.write(bts);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static byte[] getWriteBytes(String contentType) {\n \treturn contentType.startsWith(\"text\") ? (contentType+\"; charset=UTF-8\").getBytes() : contentType.getBytes();\n }",
"@SuppressWarnings(\"Duplicates\")\n public static void readQueryFromFile(String fileName, String outputFile, String outputMetricsFile, String op, Indexer si, Thesaurus thesaurus) {\n try (BufferedReader in = new BufferedReader(new FileReader(fileName))) {\n String line, queryTimes;\n int id = 0;\n double latency, median;\n long start, end, tStart = System.currentTimeMillis();\n ArrayList<Double> medianLatency = new ArrayList<>();\n Query query;\n List<SearchData> results;\n a:\n while ((line = in.readLine()) != null) {\n id++;\n\n start = System.currentTimeMillis();\n\n if (thesaurus != null) {\n line = thesaurus.getExpandedQuery(line);\n }\n\n query = new Query(id, line);\n\n switch (op) {\n case \"words\":\n results = booleanSearchWord(query, si);\n break;\n\n case \"frequency\":\n results = booleanSearchFrequency(query, si);\n break;\n\n default:\n System.err.println(\"Option not found.\");\n break a;\n }\n\n end = System.currentTimeMillis();\n latency = (double) (end - start);\n medianLatency.add(latency);\n\n SaveToFile.saveResults(results, outputFile);\n\n }\n long tEnd = System.currentTimeMillis();\n\n Collections.sort(medianLatency);\n\n System.out.println(\"\\tQuery Throughput: \" + (double) Math.round((id / ((tEnd - tStart) / 1000.0)) * 10) / 10 + \" queries per second\");\n\n\n if (medianLatency.size() % 2 == 0) {\n median = (medianLatency.get(medianLatency.size() / 2) + medianLatency.get((medianLatency.size() / 2) + 1)) / 2;\n System.out.println(\"\\tMedian query latency: \" + median + \" ms\");\n queryTimes = \"Query Throughput: \" + (double) Math.round((id / ((tEnd - tStart) / 1000.0)) * 10) / 10 + \" queries per second\\n\" +\n \"Median query latency: \" + median + \" ms\\n\";\n\n } else {\n System.out.println(\"\\tMedian query latency: \" + medianLatency.get(Math.round(medianLatency.size() / 2)) + \" ms\");\n queryTimes = \"Query Throughput: \" + (double) Math.round((id / ((tEnd - tStart) / 1000.0)) * 10) / 10 + \" queries per second\\n\" +\n \"Median query latency: \" + medianLatency.get(Math.round(medianLatency.size() / 2)) + \" ms\\n\";\n }\n\n SaveToFile.saveMetrics(queryTimes, outputMetricsFile);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n protected Void call() {\n if(download_queue.isEmpty()) return null;\n \n //Proceed to create a file with a list of addresses\n Writer writer = null;\n String file_dir = Configuration.root_dir + \"Download_list.txt\";\n try{\n writer = new BufferedWriter(\n new OutputStreamWriter(\n new FileOutputStream(\n file_dir), \"utf-8\"));\n String server_root = Configuration.getInstance().getSina_server_root();\n //Traverse through the download list and write each download address to file\n String content = \"\";\n for(int i = 0; i < download_queue.size(); i++){\n SoundTrack track = download_queue.get(i);\n String address = server_root + track.getLocalFileName();\n content += address;\n if(i < (download_queue.size() - 1)){\n content += \"\\n\";\n }\n }\n //Write to file\n writer.write(content);\n \n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (FileNotFoundException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } finally{\n try {\n if(writer != null)\n writer.close();\n } catch (IOException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n //Run wget command to download the listed files\n String command = \"wget\";\n command += \" -P \" + Configuration.root_dir + \"SoundTracks/\";\n command += \" -i list\";\n try {\n Process p = Runtime.getRuntime().exec(command);\n p.waitFor();\n } catch (IOException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InterruptedException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return null;\n }",
"public final boolean writeToFile(byte[] bArr) {\n boolean z;\n VEssayLogUtil bVar;\n StringBuilder sb;\n File downloadTempFile;\n C32569u.m150519b(bArr, C6969H.m41409d(\"G6896D113B0\"));\n VEssayLogUtil bVar2 = VEssayLogUtil.f90847b;\n bVar2.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70\") + this);\n if (this.outputStream == null) {\n this.outputStream = getOutputStream(this.filePath);\n }\n VEssayLogUtil bVar3 = VEssayLogUtil.f90847b;\n bVar3.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70\") + this);\n Long l = null;\n try {\n VEssayLogUtil bVar4 = VEssayLogUtil.f90847b;\n bVar4.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70B83CE50D955BE1A59397\") + this);\n FileOutputStream fileOutputStream = this.outputStream;\n if (fileOutputStream != null) {\n fileOutputStream.write(bArr);\n }\n FileOutputStream fileOutputStream2 = this.outputStream;\n if (fileOutputStream2 != null) {\n fileOutputStream2.flush();\n }\n VEssayLogUtil bVar5 = VEssayLogUtil.f90847b;\n bVar5.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70B83CE50D955BE1A59297\") + this);\n z = true;\n bVar = VEssayLogUtil.f90847b;\n sb = new StringBuilder();\n sb.append(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC14BE3CA730A643D0\"));\n downloadTempFile = getDownloadTempFile(this.filePath);\n } catch (IOException e) {\n e.printStackTrace();\n VEssayLogUtil bVar6 = VEssayLogUtil.f90847b;\n bVar6.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70AE31E50B805CFBEACD9722C3\") + e.getMessage());\n z = false;\n bVar = VEssayLogUtil.f90847b;\n sb = new StringBuilder();\n sb.append(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC14BE3CA730A643D0\"));\n downloadTempFile = getDownloadTempFile(this.filePath);\n } catch (Throwable th) {\n VEssayLogUtil bVar7 = VEssayLogUtil.f90847b;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC14BE3CA730A643D0\"));\n File downloadTempFile2 = getDownloadTempFile(this.filePath);\n if (downloadTempFile2 != null) {\n l = Long.valueOf(downloadTempFile2.length());\n }\n sb2.append(l);\n sb2.append(C6969H.m41409d(\"G29CF95\"));\n sb2.append(this);\n bVar7.mo110964a(sb2.toString());\n throw th;\n }\n }",
"short getQ( byte[] buffer, short offset );",
"public void run(){\n\t\t\t\t\t\taddToHashmap(key, timestamp);\r\n\r\n\t\t\t\t\t\treq.response().putHeader(\"Content-Type\", \"text/plain\");\r\n\t\t\t\t\t\treq.response().end();\r\n\t\t\t\t\t\treq.response().close();\r\n\t\t\t\t\t}",
"private static void dosyaYazici(String text)\n {\n File log = new File(\"log.txt\");\n try\n {\n if (!log.exists())\n {\n log.createNewFile();\n }\n FileWriter fileWriter = new FileWriter(log,true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.append(text+\"\\n\");\n bufferedWriter.close();\n //System.out.print(\"TEST\");\n }\n catch (IOException e)\n {\n System.out.print(\"DOSYA HATASI!\");\n e.printStackTrace();\n }\n\n }",
"com.google.protobuf.ByteString getContentsBytes(int index);",
"public void search(String word)\r\n\t{\r\n\t\tHashtable<String, Integer> hashtable = new Hashtable<String, Integer>();\r\n\t\tFile dir = new File(\"C:\\\\Users\\\\jayad\\\\eclipse-workspace\\\\Search Engine\\\\src\\\\Webpages\\\\Text\\\\\");\r\n\t\tFile[] fileArray = dir.listFiles();\r\n\t\tint repeats = 0; // No. of times the searched word repeated in a same file\r\n\t\tint numofFiles = 0; // No. of files that contains the Searched word\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdouble startTime = System.nanoTime();\r\n\t\t\tdouble startTimesearch = System.nanoTime();\r\n\t\t\tfor (int i = 1; i < fileArray.length; i++)\r\n\t\t\t{\r\n\t\t\t\trepeats = searchWord(fileArray[i], word);\r\n\t\t\t\thashtable.put(fileArray[i].getName(), repeats);\r\n\t\t\t\tif (repeats != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tnumofFiles++;\r\n\t\t\t\t\tif (fileArray[i].getName().toString().substring(0, 3) == \"null\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfileArray[i].getName().toString();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\\nNumber of files containing the word '\" + word + \"' is = \" + numofFiles);\r\n\t\t\tlong endTimesearch = System.nanoTime();\r\n\t\t\tdouble srchtime = endTimesearch - startTimesearch;\r\n\t\t\tSystem.out.println(\"\\nSeacrh Result execution time: \" + srchtime/1000000 + \" Milli Seconds\");\r\n\t\t\tif (numofFiles == 0)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"\\nSearching closely related words\");\r\n\t\t\t\tsuggestword(word);\r\n\t\t\t}\r\n//\t\t\tSystem.out.println(\"\\nFor Synonyms of the word \"+ p+\" enter yes or no\");\r\n//\t\t\tString o =s1.nextLine();\r\n//\t\t\tif(o.equals(\"yes\")) {\r\n//\t\t\t\t\r\n//\t\t System.out.println(\"\\nSearching synonyms\");\r\n//\t\t \r\n//\t\t\t\twebsearch.suggestions(word);\t\r\n//\t\t\t\t\r\n//\t\t\t}\r\n\t\t\t\tdouble rankstart = System.nanoTime();\r\n\t\t\t\t\trank(hashtable, numofFiles);\r\n\t\t\t\tdouble rankend = System.nanoTime();\r\n\t\t\t\tdouble rankingTime = rankend - rankstart;\r\n\t\t\tSystem.out.println(\"\\nRanking Algorithm time: \" + rankingTime + \" nano Seconds\");\r\n\t\t\t\r\n\t\t\tdouble endTime = System.nanoTime();\r\n\t\t\tSystem.out.println(\"\\nTotal Execution Time: \" + (endTime - startTime)/1000000 + \" Milli Seconds\");\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception:\" + e);\r\n\t\t}\r\n\t}",
"public File searchIndex(String Key, int layerID) {\n\n ObjReturn obj = new ObjReturn();\n ObjReturn obj1 = new ObjReturn();\n String s=null;\n File f = null;\n obj = utility.search_entry(Key, layerID);\n boolean b = obj.timerType1;\n s = obj.getValue1();\n if(!(s==null)){\n if (!b) {\n updateIndex(Key, layerID);\n f = makeXML(Key, layerID, obj.getValue1(), obj.getTime1(), obj.getTotalCopies1(), obj.getCopyNum1(), obj.getTimerType1(), obj.getUserId(), obj.getTime(), obj.getcert());\n IMbuffer.addToIMOutputBuffer(f);\n\n } else {\n f = makeXML(Key, layerID, obj.getValue1(), obj.getTime1(), obj.getTotalCopies1(), obj.getCopyNum1(), obj.getTimerType1(), obj.getUserId(), obj.getTime(), obj.getcert());\n IMbuffer.addToIMOutputBuffer(f);\n\n } \n }\n else {\n System.out.println(Key);\n obj1 = utility.search_entryinpurge(Key);\n System.out.println(obj1.key1);\n utility.add_entry(obj1.getLayerid(),Key , obj1.getValue1(), obj1.getTime1(), obj1.getTotalCopies1(), obj1.getCopyNum1(), obj1.getTimerType1(), obj1.getUserId(), obj1.getTime(), obj1.getcert());\n\n\n }\n \n \n /* if (!b) {\n updateIndex(Key, layerID);\n f = makeXML(Key, layerID, obj.getValue1(), obj.getTime1(), obj.getTotalCopies1(), obj.getCopyNum1(), obj.getTimerType1(), obj.getUserId(), obj.getTime(), obj.getcert());\n IMbuffer.addToIMOutputBuffer(f);\n\n } else {\n f = makeXML(Key, layerID, obj.getValue1(), obj.getTime1(), obj.getTotalCopies1(), obj.getCopyNum1(), obj.getTimerType1(), obj.getUserId(), obj.getTime(), obj.getcert());\n IMbuffer.addToIMOutputBuffer(f);\n\n }\n\n if (s.equals(\"null\")) {\n System.out.println(\"hiiii\");\n obj1 = utility.search_entryinpurge(Key);\n utility.add_entry(obj1.getLayerid(), obj1.getKey1(), obj1.getValue1(), obj1.getTime1(), obj1.getTotalCopies1(), obj1.getCopyNum1(), obj1.getTimerType1(), obj1.getUserId(), obj1.getTime(), obj1.getcert());\n\n }*/\n return f;\n\n }",
"private void performSearchUsingFileContents(File file) {\n try {\n FileUtility.CustomFileReader customFileReader =\n new FileUtility.CustomFileReader(file.getAbsolutePath()\n .replace(\".txt\", \"\"));\n\n String queryString = null; int i = 1;\n while ((queryString = customFileReader.readLineFromFile()) != null) {\n \t\n Query q = new QueryParser(Version.LUCENE_47, \"contents\",\n analyzer).parse(QueryParser.escape(queryString));\n\n collector = TopScoreDocCollector\n .create(100, true);\n searcher.search(q, collector);\n ScoreDoc[] hits = collector.topDocs().scoreDocs;\n\n Map<String, Float> documentScoreMapper =\n new HashMap<>();\n Arrays.stream(hits).forEach(hit ->\n {\n int docId = hit.doc;\n Document d = null;\n try {\n d = searcher.doc(docId);\n documentScoreMapper.put(d.get(\"path\"), hit.score);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n SearchResult searchResult =\n new SearchResult(String.valueOf(i), documentScoreMapper);\n\n FileUtility.writeToFile(searchResult, SEARCH_RESULT_DIR + File.separator + i);\n i++;\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void\tread_track_data_info_buffer(int drive, int side, char[] ptr, int length );",
"@Override\n public void writeFile(String arg0, Map result) {\n\n // Initial variables\n ArrayList<HashMap> records;\n ArrayList<HashMap> recordT;\n ArrayList<HashMap> observeRecords; // Array of data holder for time series data\n BufferedWriter bwT; // output object\n StringBuilder sbData = new StringBuilder(); // construct the data info in the output\n HashMap<String, String> altTitleList = new HashMap(); // Define alternative fields for the necessary observation data fields; key is necessary field\n // P.S. Add alternative fields here\n HashMap titleOutput; // contain output data field id\n DssatObservedData obvDataList = DssatObservedData.INSTANCE; // Varibale list definition\n\n try {\n\n // Set default value for missing data\n setDefVal();\n\n // Get Data from input holder\n Object tmpData = getObjectOr(result, \"observed\", new Object());\n if (tmpData instanceof ArrayList) {\n records = (ArrayList) tmpData;\n } else if (tmpData instanceof HashMap) {\n records = new ArrayList();\n records.add((HashMap) tmpData);\n } else {\n return;\n }\n if (records.isEmpty()) {\n return;\n }\n\n observeRecords = new ArrayList();\n for (HashMap record : records) {\n recordT = getObjectOr(record, \"timeSeries\", new ArrayList());\n String trno = getValueOr(record, \"trno\", \"1\");\n if (!recordT.isEmpty()) {\n String[] sortIds = {\"date\"};\n Collections.sort(recordT, new DssatSortHelper(sortIds));\n for (HashMap recordT1 : recordT) {\n recordT1.put(\"trno\", trno);\n }\n observeRecords.addAll(recordT);\n }\n }\n\n // Initial BufferedWriter\n String fileName = getFileName(result, \"T\");\n if (fileName.endsWith(\".XXT\")) {\n String crid = DssatCRIDHelper.get2BitCrid(getValueOr(result, \"crid\", \"XX\"));\n fileName = fileName.replaceAll(\"XX\", crid);\n }\n arg0 = revisePath(arg0);\n outputFile = new File(arg0 + fileName);\n bwT = new BufferedWriter(new FileWriter(outputFile));\n\n // Output Observation File\n // Titel Section\n sbError.append(String.format(\"*EXP.DATA (T): %1$-10s %2$s\\r\\n\\r\\n\",\n fileName.replaceAll(\"\\\\.\", \"\").replaceAll(\"T$\", \"\"),\n getObjectOr(result, \"local_name\", defValBlank)));\n\n titleOutput = new HashMap();\n // TODO get title for output\n // Loop all records to find out all the titles\n for (HashMap record : observeRecords) {\n // Check if which field is available\n for (Object key : record.keySet()) {\n // check which optional data is exist, if not, remove from map\n if (obvDataList.isTimeSeriesData(key)) {\n titleOutput.put(key, key);\n\n } // check if the additional data is too long to output\n else if (key.toString().length() <= 5) {\n if (!key.equals(\"date\") && !key.equals(\"trno\")) {\n titleOutput.put(key, key);\n }\n\n } // If it is too long for DSSAT, give a warning message\n else {\n sbError.append(\"! Waring: Unsuitable data for DSSAT observed data (too long): [\").append(key).append(\"]\\r\\n\");\n }\n }\n // Check if all necessary field is available // P.S. conrently unuseful\n for (String title : altTitleList.keySet()) {\n\n // check which optional data is exist, if not, remove from map\n if (getValueOr(record, title, \"\").equals(\"\")) {\n\n if (!getValueOr(record, altTitleList.get(title), \"\").equals(\"\")) {\n titleOutput.put(title, altTitleList.get(title));\n } else {\n sbError.append(\"! Waring: Incompleted record because missing data : [\").append(title).append(\"]\\r\\n\");\n }\n\n } else {\n }\n }\n }\n\n // decompress observed data\n// decompressData(observeRecords);\n // Observation Data Section\n Object[] titleOutputId = titleOutput.keySet().toArray();\n Arrays.sort(titleOutputId);\n String pdate = getPdate(result);\n for (int i = 0; i < (titleOutputId.length / 39 + titleOutputId.length % 39 == 0 ? 0 : 1); i++) {\n\n sbData.append(\"@TRNO DATE\");\n int limit = Math.min(titleOutputId.length, (i + 1) * 39);\n for (int j = i * 39; j < limit; j++) {\n sbData.append(String.format(\"%1$6s\", titleOutput.get(titleOutputId[j]).toString().toUpperCase()));\n }\n sbData.append(\"\\r\\n\");\n\n for (HashMap record : observeRecords) {\n \n if (record.keySet().size() <= 2 && record.containsKey(\"trno\") && record.containsKey(\"date\")) {\n continue;\n }\n sbData.append(String.format(\" %1$5s\", getValueOr(record, \"trno\", \"1\")));\n sbData.append(String.format(\" %1$5s\", formatDateStr(getObjectOr(record, \"date\", defValI))));\n for (int k = i * 39; k < limit; k++) {\n\n if (obvDataList.isDapDateType(titleOutputId[k], titleOutput.get(titleOutputId[k]))) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(pdate, getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else if (obvDataList.isDateType(titleOutputId[k])) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else {\n sbData.append(\" \").append(formatNumStr(5, record, titleOutput.get(titleOutputId[k]), defValI));\n }\n\n }\n sbData.append(\"\\r\\n\");\n }\n }\n // Add section deviding line\n sbData.append(\"\\r\\n\");\n\n // Output finish\n bwT.write(sbError.toString());\n bwT.write(sbData.toString());\n bwT.close();\n } catch (IOException e) {\n LOG.error(DssatCommonOutput.getStackTrace(e));\n }\n }",
"private void writeVocabPost(FlIndexer fi) throws IOException{\n this.docNormPow = new HashMap<>();\n \n LinkedList<Integer> tf;\n LinkedList<String> files;\n String token;\n int position=0;\n File file = new File(\"CollectionIndex/VocabularyFile.txt\");\n File Postingfile = new File(\"CollectionIndex/PostingFile.txt\");\n \n\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\n FileWriter fw_posting = new FileWriter(Postingfile.getAbsolutePath());\n try (BufferedWriter bw = new BufferedWriter(fw)) {\n try (BufferedWriter bw_posting = new BufferedWriter(fw_posting)){\n for (Map.Entry<String, TermNode> entry : fi.mapTerms.entrySet()){\n double idf = ((double)this.docMap.size())/entry.getValue().getDf();\n //idf=log2(idf, 2);\n bw.write(entry.getValue().getTerm()+\" \"+entry.getValue().getDf()+\" \"+idf+\" \"+position+\"\\n\");\n \n tf=entry.getValue().getTfList();\n files=entry.getValue().getFileList();\n int i=tf.size();\n for (int j=0; j<i; j++){\n double tfidf=idf*((double)tf.get(j)/fi.getMaxTF(files.get(j)));\n double tfidfpow=Math.pow(tfidf, 2);\n\n \n if(this.docNormPow.containsKey(files.get(j))){\n //this.docNorm.put(files.get(j), this.docNorm.get(files.get(j))+tfidf);\n this.docNormPow.put(files.get(j), this.docNormPow.get(files.get(j))+tfidfpow);\n }\n else{\n //this.docNorm.put(files.get(j), tfidf);\n this.docNormPow.put(files.get(j), tfidfpow);\n }\n \n token=this.docMap.get(files.get(j))+\" \"+tf.get(j)+\" \"\n +entry.getValue().multiMap.get(files.get(j))+\" \"+tfidf+\"\\n\";\n position= position + token.length();\n \n bw_posting.write(token);\n }\n }\n }\n }\n \n System.out.println(\"Done creating VocabularyFile.txt\");\n System.out.println(\"Done creating PostingFile.txt\");\n }",
"public void writeRaw(String text)\n/* */ throws IOException\n/* */ {\n/* 442 */ int len = text.length();\n/* 443 */ int room = this._outputEnd - this._outputTail;\n/* */ \n/* 445 */ if (room == 0) {\n/* 446 */ _flushBuffer();\n/* 447 */ room = this._outputEnd - this._outputTail;\n/* */ }\n/* */ \n/* 450 */ if (room >= len) {\n/* 451 */ text.getChars(0, len, this._outputBuffer, this._outputTail);\n/* 452 */ this._outputTail += len;\n/* */ } else {\n/* 454 */ writeRawLong(text);\n/* */ }\n/* */ }",
"private static void writeText(FileWriter outputStream, TextArray textArray, TextArray pTextArray) throws IOException {\n if (pTextArray.compareTo(textArray) != 0) {\n textArray.write(outputStream);\n pTextArray.clone(textArray); // Update the previously save word for comparison in next turn\n }\n }",
"public abstract void mo27380a(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr);",
"public abstract void addFileToWrite(AsynchronousFileWriter.FileData fileData, CompilerMessageLogger logger);",
"private void read() throws IOException {\n\n ByteBuffer buffer = ByteBuffer.allocate(ProjectProperties.BYTE_BUFFER_SIZE);\n int read = 0;\n // Keep trying to write until all bytes are read\n while (buffer.hasRemaining() && read != -1) {\n read = channel.read(buffer);\n }\n checkIfClosed(read);// check for error\n\n // convert byte[] to hash string\n String rt = RandomByteAndHashCode.SHA1FromBytes(buffer.array());\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Read: \" + rt );\n }\n\n write(rt.getBytes()); // write hash string\n }",
"ByteArrayIndex createByteArrayIndex();",
"byte[] getFile(String sha) throws Exception;",
"public BufferedWriter saveSearch(BufferedWriter buffer) throws IOException {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"@Test\n public void test1() throws IOException {\n FileStore files = new FileStoreMemory();\n files.put(\"test.txt\", TestData.FILE_CONTENT.getBytes());\n BlockStore blocks = new BlockStoreMemory();\n\n CapturePrintStream out = CapturePrintStream.create();\n\n List<String> args = Arrays.asList(\"test.txt\");\n new StoreTagPutMain(blocks, files, out, args).run();\n\n out.flush();\n\n List<Tag> tags = tags(out);\n assertEquals(1, tags.size());\n assertEquals(\"test.txt\", tags.get(0).get(\"name\"));\n assertEquals(\"file\", tags.get(0).get(\"type\"));\n assertEquals(TestData.KEY_CONTENT_AES128.getFullKey().toString(), tags\n .get(0).get(\"data\"));\n }",
"public void logResult() {\r\n resTime = resTime * 1000;\r\n int b = (int) Math.round(resTime);\r\n resTime = (double) b / 1000;\r\n double averageTime = resTime / countTESTS;\r\n averageTime = averageTime * 1000;\r\n int i = (int) Math.round(averageTime);\r\n averageTime = (double) i / 1000;\r\n try (FileWriter writer = new FileWriter(\".//result.txt\")) {\r\n writer.write(resultOpen);\r\n writer.write(resultTitle);\r\n writer.write(resultSource);\r\n writer.write(resultLinkByName);\r\n writer.write(resultLinkByHref);\r\n writer.write(\"Total tests: \" + countTESTS + \"\\n\");\r\n writer.write(\"Passed/Failed: \" + PASSED_TEST + \"/\" + FAILED_TEST + \"\\n\");\r\n writer.write(\"Total time: \" + resTime + \"\\n\");\r\n writer.write(\"Average time: \" + averageTime + \"\\n\");\r\n writer.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void readText() {\n\t\ttry {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tstrResult = new StringBuilder();\n\t\t\tString strOriCopy = strOri;\n\t\t\tstrOriCopy = strOriCopy.replaceAll(\"\\r\\n\", \"\\r\");\n\t\t\tstrOriCopy = strOriCopy.replaceAll(\"\\n\\r\", \"\\r\");\n\t\t\tList<String> listFromStrOri = new ArrayList<String>();\n\t\t\tString strOneCharacter= \"\";\n\t\t\tlogger.info(\"strText : \" + this.strOri);\n\t\t\tMap<String, String> mapWord = new HashMap<String, String>();\n\t\t\tInteger pos = 0;\n\t\t\tInteger strOriMaxLen = strOriCopy.length();\n\t\t\t//문장을 돌면서 구둣점과 영어단어를 분리해서 저장한다. 유일한 영어단어 별도로 추출한다. \n\t\t\twhile(pos < strOriMaxLen) {\n\t\t\t\tif (strOriCopy.charAt(pos) == '\\n') {\n\t\t\t\t\tstrOneCharacter = \"\\r\";\n\t\t\t\t} else if (strOriCopy.charAt(pos) == '\\r') {\n\t\t\t\t\tstrOneCharacter = \"\\r\";\n\t\t\t\t} else {\t\t\t\t\t\n\t\t\t\t\tstrOneCharacter = Character.toString(strOriCopy.charAt(pos));\n\t\t\t\t}\n\t\t\t\tlogger.trace(\"strOne : '\" + strOneCharacter + \"'\");\n//\t\t\t\tif (performIsRightChar(strOneCharacter)) {\n\t\t\t\tif (isRightChar(strOneCharacter)) {\t\t\t\n\t\t\t\t\t//해당언어에 해당되는 글자이면 단어를 찾는다.\n\t\t\t\t\tInteger lastPos = getWordPos(strOriCopy, strOneCharacter, pos, strOriMaxLen);\n\t\t\t\t\tString strWord = strOriCopy.substring(pos, lastPos);\n\t\t\t\t\tlogger.info(\"strWord : -\" + strWord + \"-\");\n\t\t\t\t\tif (lastPos == pos) {\n\t\t\t\t\t\t//단어를 사전에서 못 찾았으면 현 글자를 추가한다....(이걸 타지는 않는다.. 항상 lastPos가 1이 더 크다)\n\t\t\t\t\t\tlistFromStrOri.add(strOneCharacter);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//단어이면... 추가한다. (영어는 사전에 있는거와 상관없이 영어이면 추가하고, 중국어는 사전에 있는지 체크해서 추가한다.\n\t\t\t\t\t\tpos = lastPos;\n\t\t\t\t\t\tlistFromStrOri.add(strWord);\n\t\t\t\t\t\tString strWordLowercase = strWord.toLowerCase();\n\t\t\t\t\t\tif (!mapWord.containsKey(strWordLowercase)) {\n\t\t\t\t\t\t\tmapWord.put(strWordLowercase, \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t//\t\t\t\tlogger.info(\"strWord : \" + strWord);\n\t\t\t\t} else {\n\t\t\t\t\tlistFromStrOri.add(strOneCharacter);\t\t\t\t\t\n//\t\t\t\t\tlogger.info(\"strOneCharacter : \" + strOneCharacter);\n\t\t\t\t\tpos++;\n\t\t\t\t}\n\t\t\t\t\n\t//\t\t\tlogger.info(\"strResult : \" + strResult);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//유일한 영어단어중 사전에 있는 단어만 별도로 추출한다.\t\t\n\t\t\tMap<String, String> mapWordUnique = uniqueWordsInDic(mapWord);\t\t\n\t\t\t\n\t\t\tlogger.info(\"before : \" + mapWord.size() + \", unique : \" + mapWordUnique.size());\n//\t\t\tlogger.info(\"Before : \" + mapWord.toString());\n//\t\t\tlogger.info(\"After : \" + mapWordUnique.toString());\n\t\t\t\n\t\t\t//분리한 영어단어를 다시 돌면서 HTML문장을 만든다.\n\t\t\tstrResult = new StringBuilder();\n\t\t\tfor (String string : listFromStrOri) {\n\t\t\t\tString strWord = string.toLowerCase();\n\t\t\t\tif (mapWordUnique.containsKey(strWord)) {\n\t\t\t\t\tstrResult.append(mapWordUnique.get(strWord));\n\t\t\t\t} else {\n\t\t\t\t\tif (string.equals(\"\\r\")) {\n\t\t\t\t\t\tstrResult.append(\"<br>\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstrResult.append(strWord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tlogger.info(\"Before Sorting : \" + listWordsTemp.toString());\n\t\t\tCollections.sort(listWordsTemp, String.CASE_INSENSITIVE_ORDER);\n//\t\t\tlogger.info(\"After Sorting : \" + listWordsTemp.toString());\n\t\t\tlong end = System.currentTimeMillis();\n\t\t\tlogger.info( \"실행 시간 readText : \" + ( end - start )/1000.0 );\n\t\t\t \n\t\t} catch(Exception e) {\n \t\t\t\n \t\t\te.printStackTrace();\n \t\t\t\n \t\t}\n\t}",
"public void testAppendBytesSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String writeString = \"Hello World\";\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.appendBytes(fileCreationId, writeString.getBytes());\r\n filePersistence.closeFile(fileCreationId);\r\n File file = new File(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"the file should exist\", file.exists());\r\n assertEquals(\"the current file size not correct\", file.length(), writeString.getBytes().length);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }",
"public void writeToFile(byte[] output) {\r\n try {\r\n file.seek(currOffset);\r\n file.write(output);\r\n currOffset += output.length;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\n public void write(byte[] b) throws IOException {\n byte lastByte = 0;\n int count = 0;\n List compressedBytes = new ArrayList();\n out.write(Arrays.copyOfRange(b, 0, metaData));\n for(int i=metaData; i < b.length; i++){\n if(b[i] == lastByte)\n count++;\n else{\n while(count>256){\n compressedBytes.add((byte)255);\n compressedBytes.add((byte)0);\n //out.write(255);\n //out.write(0);\n count = count - 255;\n }\n compressedBytes.add((byte)count);\n //out.write(count);\n count = 1;\n if (lastByte == 0)\n lastByte = 1;\n else\n lastByte = 0;\n }\n }\n compressedBytes.add((byte)count);\n //out.write(count);\n out.write(toByteArray(compressedBytes));\n\n System.out.println ((compressedBytes.size()/b.length)*100);\n }",
"public abstract byte[] toRawSECSItem();",
"private void saveData( ) throws IOException {\n \tString FILENAME = \"data_file\";\n String stringT = Long.toString((SystemClock.elapsedRealtime() - timer.getBase())/1000)+\"\\n\";\n String stringS = textView.getText().toString()+\"\\n\";\n String stringD = Long.toString(System.currentTimeMillis())+\"\\n\";\n FileOutputStream fos;\n\t\ttry {\n\t\t\tfos = openFileOutput(FILENAME, Context.MODE_APPEND); //MODE_APPEND\n\t\t\tfos.write(stringS.getBytes());\n\t\t\tfos.write(stringT.getBytes());\n\t\t\tfos.write(stringD.getBytes());\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"static void readWrite(FileInputStream raf,BufferedOutputStream bw, long numBytes) throws IOException {\n byte[] buf = new byte[(int) numBytes];\n int val = raf.read(buf);\n if(val != -1) {\n\n bw.write(buf);\n bw.flush();\n }\n else {\n \tSystem.out.println(\"Error read\");\n }\n}",
"public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;",
"public void makeWord(String inputText,String pageId,createIndex createindex,String contentType)\n {\n int length,i;\n char c;\n boolean linkFound=false;\n int count1,count2,count3,count4,count5,count6,count7,count8,count9;\n\n\n\n StringBuilder word=new StringBuilder();\n // String finalWord=null,stemmedWord=null;\n docId=Integer.parseInt(pageId.trim());\n\n ci=createindex;\n // Stemmer st=new Stemmer();\n //createIndex createindex=new createIndex();\n\n length=inputText.length();\n\n for(i=0;i<length;i++)\n {\n c=inputText.charAt(i);\n if(c<123 && c>96)\n {\n word.append(c);\n }\n\n else if(c=='{')\n {\n if ( i+9 < length && inputText.substring(i+1,i+9).equals(\"{infobox\") )\n {\n\n StringBuilder infoboxString = new StringBuilder();\n\n count1 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n infoboxString.append(c);\n if ( c == '{') {\n count1++;\n }\n else if ( c == '}') {\n count1--;\n }\n if ( count1 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {infoboxString.deleteCharAt(infoboxString.length()-1);}\n break;\n }\n }\n\n processInfobox(infoboxString);\n\n }\n\n else if ( i+8 < length && inputText.substring(i+1,i+8).equals(\"{geobox\") )\n {\n\n StringBuilder geoboxString = new StringBuilder();\n\n count2 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n geoboxString.append(c);\n if ( c == '{') {\n count2++;\n }\n else if ( c == '}') {\n count2--;\n }\n if ( count2 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {geoboxString.deleteCharAt(geoboxString.length()-1);}\n break;\n }\n }\n\n // processGeobox(geoboxString);\n }\n\n else if ( i+6 < length && inputText.substring(i+1,i+6).equals(\"{cite\") )\n {\n\n /*\n * Citations are to be removed.\n */\n\n count3 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count3++;\n }\n else if ( c == '}') {\n count3--;\n }\n if ( count3 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n else if ( i+4 < length && inputText.substring(i+1,i+4).equals(\"{gr\") )\n {\n\n /*\n * {{GR .. to be removed\n */\n\n count4 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count4++;\n }\n else if ( c == '}') {\n count4--;\n }\n if ( count4 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equals(\"{coord\") )\n {\n\n /**\n * Coords to be removed\n */\n\n count5 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '{') {\n count5++;\n }\n else if ( c == '}') {\n count5--;\n }\n if ( count5 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n //System.out.println(\"process infobox\");\n }\n else if(c=='[')\n {\n // System.out.println(\"process square brace\");\n\n if ( i+11 < length && inputText.substring(i+1,i+11).equalsIgnoreCase(\"[category:\"))\n {\n\n StringBuilder categoryString = new StringBuilder();\n\n count6 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n categoryString.append(c);\n if ( c == '[') {\n count6++;\n }\n else if ( c == ']') {\n count6--;\n }\n if ( count6 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {categoryString.deleteCharAt(categoryString.length()-1);}\n break;\n }\n }\n\n // System.out.println(\"category string=\"+categoryString.toString());\n processCategories(categoryString);\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"[image:\") ) {\n\n /**\n * Images to be removed\n */\n\n count7 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '[') {\n count7++;\n }\n else if ( c == ']') {\n count7--;\n }\n if ( count7 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equalsIgnoreCase(\"[file:\") ) {\n\n /**\n * File to be removed\n */\n\n count8 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '[') {\n count8++;\n }\n else if ( c == ']') {\n count8--;\n }\n if ( count8 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n }\n else if(c=='<')\n {\n //System.out.println(\"Process < >\");\n\n if ( i+4 < length && inputText.substring(i+1,i+4).equalsIgnoreCase(\"!--\") ) {\n\n /**\n * Comments to be removed\n */\n\n int locationClose = inputText.indexOf(\"-->\" , i+1);\n if ( locationClose == -1 || locationClose+2 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+2;\n }\n\n }\n else if ( i+5 < length && inputText.substring(i+1,i+5).equalsIgnoreCase(\"ref>\") ) {\n\n /**\n * References to be removed\n */\n int locationClose = inputText.indexOf(\"</ref>\" , i+1);\n if ( locationClose == -1 || locationClose+5 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+5;\n }\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"gallery\") ) {\n\n /**\n * Gallery to be removed\n */\n int locationClose = inputText.indexOf(\"</gallery>\" , i+1);\n if ( locationClose == -1 || locationClose+9 > length) {\n i = length-1;\n }\n else {\n i = locationClose+9;\n }\n }\n\n }\n else if ( c == '=' && i+1 < length && inputText.charAt(i+1) == '=')\n {\n\n linkFound = false;\n i+=2;\n while ( i < length && ((c = inputText.charAt(i)) == ' ' || (c = inputText.charAt(i)) == '\\t') )\n {\n i++;\n }\n\n if ( i+14 < length && inputText.substring(i , i+14 ).equals(\"external links\") )\n {\n //System.out.println(\"External link found\");\n linkFound = true;\n i+= 14;\n }\n\n }\n else if ( c == '*' && linkFound == true )\n {\n\n //System.out.println(\"Link found\");\n count9 = 0;\n boolean spaceParsed = false;\n StringBuilder link = new StringBuilder();\n while ( count9 != 2 && i < length )\n {\n c = inputText.charAt(i);\n if ( c == '[' || c == ']' )\n {\n count9++;\n }\n if ( count9 == 1 && spaceParsed == true)\n {\n link.append(c);\n }\n else if ( count9 != 0 && spaceParsed == false && c == ' ')\n {\n spaceParsed = true;\n }\n i++;\n }\n\n StringBuilder linkWord = new StringBuilder();\n for ( int j = 0 ; j < link.length() ; j++ )\n {\n char currentCharTemp = link.charAt(j);\n if ( (int)currentCharTemp >= 'a' && (int)currentCharTemp <= 'z' )\n {\n linkWord.append(currentCharTemp);\n }\n else\n {\n\n // System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n }\n if ( linkWord.length() > 1 )\n {\n //System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n\n }\n else\n {\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n }\n }\n\n\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n /*\n if(word.length()>0)\n {\n finalWord=new String(word);\n if(!(checkStopword(finalWord)))\n {\n st.add(finalWord.toCharArray(),finalWord.length());\n stemmedWord=st.stem();\n\n createindex.addToTreeSet(stemmedWord,docId);\n\n }\n\n word.delete(0, word.length());\n } */\n\n }",
"public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}",
"private void loadDocStatFromFile(String path) {\n docStat = new HashMap<String, Integer>();\n List<String> stats = fu.textFileToList(path);\n int totLength = 0;\n for (String stat : stats) {\n String docID = stat.split(\" \")[0];\n int docLen = Integer.parseInt(stat.split(\" \")[1]);\n totLength += docLen;\n docStat.put(docID, docLen);\n }\n avdl = totLength / N;\n }",
"private int LinearSearchAfterBinary(String filename, ArrayList<Integer> matchingPositions, String wordToBeSearched, int linesToSkip, boolean reverseFile)\n {\n try\n {\n //Try to open the index file using a Scanner\n Scanner indexFileFileScanner = new Scanner(new File(filename + \".ndx\"));\n\n //Counter for the data page accesses\n int dataPageCounter = 0;\n\n //Flag for the search process status\n boolean searchStatus = true;\n\n //Counter of the word matching\n int wordOccurrences = matchingPositions.size();\n\n //Check whether to search the top or the bottom part of the file\n if(reverseFile)\n {\n //Create an ArrayList object to store the part of the file to continue the search\n ArrayList<String> fileLines = new ArrayList<>();\n\n //Get the necessary lines from the file\n for(int index = 0; index < linesToSkip; index++)\n {\n fileLines.add(indexFileFileScanner.nextLine());\n }\n\n //If the word to be searched length is valid, scan every data page in the ArrayList, in reverse order\n while(fileLines.size() != dataPageCounter && searchStatus)\n {\n //Fetch the data page into the ByteBuffer\n ByteBuffer bytePageBuffer = ByteBuffer.wrap(StringToByteArrayTranslator(fileLines.get(fileLines.size() - dataPageCounter - 1), SizeConstants.getBufferSize()));\n\n //Search for the word to be searched in the data page\n searchStatus = LinearSearchBytePage(wordToBeSearched,bytePageBuffer.array(), matchingPositions);\n\n //Count the data page access\n dataPageCounter++;\n\n //Check if there no more occurrences of the word to be searched\n if(!matchingPositions.isEmpty())\n {\n //If there are continue the search\n if(wordOccurrences != matchingPositions.size())\n {\n wordOccurrences = matchingPositions.size();\n }\n else\n {\n //Stop the search\n searchStatus = false;\n }\n }\n }\n }\n else\n {\n //Skip lines of the file\n SkipLines(indexFileFileScanner, linesToSkip);\n\n //If the word to be searched length is valid, scan every data page in the file\n while(indexFileFileScanner.hasNext() && searchStatus)\n {\n //Fetch the data page into the ByteBuffer\n ByteBuffer bytePageBuffer = ByteBuffer.wrap(StringToByteArrayTranslator(indexFileFileScanner.nextLine(), SizeConstants.getBufferSize()));\n\n //Search for the word to be searched in the data page\n searchStatus = LinearSearchBytePage(wordToBeSearched,bytePageBuffer.array(), matchingPositions);\n\n //Count the data page access\n dataPageCounter++;\n\n //Check if there no more occurrences of the word to be searched\n if(!matchingPositions.isEmpty())\n {\n //If there are continue the search\n if(wordOccurrences != matchingPositions.size())\n {\n wordOccurrences = matchingPositions.size();\n }\n else\n {\n //Stop the search\n searchStatus = false;\n }\n }\n }\n }\n\n //Close the FileScanner\n indexFileFileScanner.close();\n\n //Return the number of data page accesses\n return dataPageCounter;\n }\n catch (FileNotFoundException e)\n {\n //Catch the FileNotFoundException and inform the user\n System.out.println(\"File: \" + this.Filename + \" cannot be opened.\");\n e.printStackTrace();\n return 0;\n }\n }",
"@Test(timeout = 4000)\n public void test27() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.downloadKeywordSearchFile(\"cacheLife\", \"cacheLife\", \"cacheLife\", \"cacheLife\");\n assertNull(file0);\n }",
"public static void addBatchResultsDecode(double finalTime, String factorQualitat){\n BufferedWriter output;\n try {\n output = new BufferedWriter(new FileWriter(\"encodeBatch.txt\", true));\n String result = \" | \" + finalTime + \" \" + factorQualitat + \"\\n\";\n output.append(result);\n output.newLine();\n output.close();\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void test() throws IOException, SQLException\r\n\t{\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"src/result.txt\")));\r\n\t\tList<String> sents = new ArrayList<>();\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"src/test_tmp_col.txt\")));\r\n\t\tString line = \"\";\r\n\t\tString wordseq = \"\";\r\n\t\tList<List<String>> tokens_list = new ArrayList<>();\r\n\t\tList<String> tokens = new ArrayList<>();\r\n\t\twhile((line=br.readLine())!=null)\r\n\t\t{\r\n\t\t\tif(line.trim().length()==0)\r\n\t\t\t{\r\n\t\t\t\tsents.add(wordseq);\r\n\t\t\t\ttokens_list.add(tokens);\r\n\t\t\t\twordseq = \"\";\r\n\t\t\t\ttokens = new ArrayList<>();\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tString word = line.split(\"#\")[0];\r\n\t\t\t\twordseq += word;\r\n\t\t\t\ttokens.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tfor(String sent : sents)\r\n\t\t{\r\n\t\t\tString newsURL = null;\r\n\t\t\tString imgAddress = null;\r\n\t\t\tString newsID = null;\r\n\t\t\tString saveTime = null;\r\n\t\t\tString newsTitle = null;\r\n\t\t\tString placeEntity = null;\r\n\t\t\tboolean isSummary = false;\r\n\t\t\tPair<String, LabelItem> result = extractbysentence(newsURL, imgAddress, newsID, saveTime, newsTitle, sent, placeEntity, isSummary);\r\n\t\t\t\r\n\t\t\tif(result!=null)\r\n\t\t\t{\r\n\t\t\t\r\n//\t\t\t\tSystem.out.print(result.getSecond().eventType+\"\\n\");\r\n\t\t\t\tbw.write(sent+'\\t'+result.getSecond().triggerWord+\"\\t\"+result.getSecond().sourceActor+'\\t'+result.getSecond().targetActor+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tbw.write(sent+'\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\tbw.close();\r\n\t\t\r\n\t}"
] | [
"0.5857829",
"0.56564283",
"0.52796656",
"0.5211314",
"0.5191181",
"0.51130146",
"0.50869894",
"0.49281734",
"0.49050897",
"0.48159155",
"0.47725102",
"0.47696197",
"0.4737041",
"0.47108653",
"0.46696636",
"0.4659914",
"0.4658399",
"0.46436647",
"0.4635338",
"0.4628154",
"0.46272963",
"0.46266738",
"0.4613416",
"0.461",
"0.46080625",
"0.46073288",
"0.46045572",
"0.4595422",
"0.4587331",
"0.45749348",
"0.4564043",
"0.45604667",
"0.45599407",
"0.45567352",
"0.4552588",
"0.45462888",
"0.45414874",
"0.45365947",
"0.45339647",
"0.4527953",
"0.45257536",
"0.451429",
"0.45133808",
"0.45073766",
"0.45025533",
"0.44913152",
"0.448249",
"0.44808787",
"0.44767964",
"0.44746035",
"0.4470643",
"0.4467716",
"0.4453903",
"0.44475275",
"0.4445391",
"0.44419783",
"0.4440776",
"0.44361657",
"0.44304287",
"0.4428591",
"0.44271776",
"0.44266823",
"0.4422744",
"0.44129607",
"0.44118997",
"0.44066805",
"0.4402851",
"0.4399313",
"0.43979532",
"0.43849277",
"0.43807074",
"0.43634555",
"0.43611214",
"0.43597755",
"0.43585044",
"0.4351461",
"0.4346532",
"0.43346962",
"0.43344584",
"0.4326675",
"0.43229476",
"0.43219364",
"0.4315912",
"0.43155962",
"0.4315265",
"0.43113545",
"0.43103656",
"0.4304035",
"0.43003508",
"0.42991418",
"0.42990598",
"0.42924452",
"0.42887014",
"0.42867497",
"0.42849645",
"0.4279891",
"0.4277297",
"0.42767933",
"0.42753956",
"0.4275127"
] | 0.5460289 | 2 |
Optional opt = userdao.findById(id); we don't write this code ,beacuse it throws exception if any parameter is null Users u = opt.get(); | @Override
public Users setEnable(Integer id) {
Users u = userdao.findUserById(id);
if (u.isEnabled()) {
u.setEnabled(false);//if enable is true ,admin changes it to false so user can't login app
} else {
u.setEnabled(true);//if enable is false,admin changes it to true,so he gives access for login to user
}
userdao.save(u);
return u;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<User> findById(long id);",
"public Optional<User> findById(Integer id);",
"Optional<User> findUserById(Long id);",
"Optional<User> findById(Long userId);",
"Optional<ParaUserDTO> findOne(Long id);",
"Optional<UsersDTO> findOne(Long id);",
"public Optional<TestUser> getUser(String id){\n\t\tSystem.out.println(\"getting the user details..\");\n\t\tOptional<TestUser> user=Optional.of(new TestUser());\n\t\tif(userRepositary.existsById(id)){\n\t\t\treturn userRepositary.findById(id);\n\t\t}else{\n\t\t\tSystem.out.println(\"data doesn't exists for this id: \"+id);\n\t\t\treturn user;\n\t\t}\n\t}",
"Optional<User> findUser(int id) throws ServiceException;",
"public User findOne(Long id){\n //findById is a CrudRepository method. it replaced findOne CrudRepostory method in earlier spring boot versions\n return userRepository.findById(id).orElse(null);//define this method in the repository\n }",
"Optional<ServiceUserDTO> findOne(Long id);",
"@Override\r\n\tpublic User findById(int id) {\n\t\treturn null;\r\n\t}",
"public UserDTO getUserById(long id) {\n return Optional.of(ObjectMapperUtility.map(dao.findById(id), UserDTO.class))\n .orElseThrow(() -> new UserNotFoundException(\"No users with matching id \" + id));\n // return Optional.of(dao.findById(id)).get().orElseThrow(()-> new UserNotFoundException(\"No users with\n // match\"));\n }",
"@Override\n\tpublic User findById(String id) {\n\t\treturn null;\n\t}",
"Optional<QnowUser> findOne(Long id);",
"public User findUserById(Long id) {\n \tOptional<User> u = userRepository.findById(id);\n \t\n \tif(u.isPresent()) {\n return u.get();\n \t} else {\n \t return null;\n \t}\n }",
"public User getById(@NotBlank String id){\n System.out.println(\"Sukses mengambil data User.\");\n return null;\n }",
"@Override\n\tpublic User findOne(long id) {\n\t\treturn null;\n\t}",
"Optional<E> getById(IApplicationUser user, ID id);",
"@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<User> getUser(@PathVariable(\"id\") long id) {\n Optional<User> user = userService.findById(id);\n\n// user.ifPresent(item -> user1 = item);\n\n if (user.isPresent())\n return new ResponseEntity<>(user.get(), HttpStatus.OK);\n else return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }",
"@Override\r\n public User userfindById(Integer u_id) {\n return userMapper.userfindById(u_id);\r\n }",
"public User findUserById(int id);",
"public Optional<Persona> findById(Long id);",
"@Override\n\tpublic User findById(int userid) {\n\t\tSystem.out.println(\"Inside findOne of UserService\");\n\t\tOptional<User> user = userdao.findById(userid);\n//\t\treturn dao.findById(id);\n\t\treturn user.get();\n\t}",
"public User getUserById(String id) {\n // return userRepo.findById(id);\n\n return null;\n }",
"@Override\n\tpublic UserDTO findById(Integer i) {\n\t\treturn null;\n\t}",
"@GetMapping(\"/{id}\")\n\tpublic Optional<User> getUser(@PathVariable int id) {\n\t\tOptional<User> u = userRepo.findById(id);\n\t\tif(u.isPresent())\n\t\t{\n\t\t\treturn u;\n\t\t}\n\t\telse\n\t\t\tthrow new ResponseStatusException(HttpStatus.NOT_FOUND, \"User not found\");\n\t}",
"Optional<User> findUserById(String userId) throws LogicException;",
"@Override\r\n public Dorm findById(Integer id) {\n return userMapper.findById(id);\r\n }",
"@Repository\npublic interface UserRepository extends JpaRepository<UserModel, Long> {\n UserModel findByUsername(String username);\n// UserModel findById(Long id);\n// Optional<UserModel> findById(Long id);\n UserModel findUserModelById(Long id);\n}",
"public User findById(Long id){\n return userRepository.findOne(id);\n }",
"Optional<T> find(long id);",
"public User findById(Long id);",
"@Override\n\tpublic SeguUsuario findById(Long id) {\n\t\treturn usuarioDao.findById(id).orElse(null);\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/user/get/{id}\")\n @ApiOperation(value = \"Getting the user by its id\")\n public Optional<User> getById(@RequestParam String id){ \n return userService.getUser(id);\n }",
"User findUserById(Long id) throws Exception;",
"Optional<User> get(String userName);",
"public static User findUser(int id) {\r\n return null;\r\n }",
"public User findById(int userId);",
"User findUserById(int id);",
"public Optional<CategoriaUsuario> findid(Long id){\n return categoriaUsuarioRepository.findById(id);\n }",
"Optional<Person> findOne(Long id);",
"@Override\r\n\tpublic SpUser findById(String id) {\n\t\treturn null;\r\n\t}",
"@Test\n public void testByName() {\n Optional<User> user1 = userRepository.findById(11L);\n //assertEquals(user, user1);\n }",
"Optional<T> findOne(K id);",
"public Optional<Employee> getEmployee(Long id){\n return employeeRepository.findById(id);\n }",
"@Override\n public User findById(long id) {\n return dao.findById(id);\n }",
"@Override\r\n\tpublic User getById(Integer id) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic User find(int id) {\n\t\tSystem.out.println(\"OracleDao is find\");\n\t\treturn null;\n\t}",
"User findById(long id);",
"@GetMapping(\"/findbyid\")\n\tpublic Optional<User> findUserById (@RequestParam int userId) {\n\t\treturn userRepo.findById(userId);\n\t}",
"User find(long id);",
"@Override\r\n\tpublic User findById(int id) {\n\t\treturn userDAO.findById(id);\r\n\t}",
"User findById(Long id);",
"@Override\n\tpublic Optional<com.example.demo.model.User> getUserById(int userId) {\n\t\treturn userRepository.findById(userId);\n\t}",
"@Override\n public Optional<T> findById(ID id) {\n T entity = getSession().get(this.getPersistentClass(), id);\n return Optional.ofNullable(entity);\n }",
"User findOneById(long id);",
"public Person findUserById(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n public Optional<User> find(long userId) throws ServiceException {\n Optional<User> user;\n try {\n manager.beginTransaction(userDao);\n user = userDao.findEntity(userId);\n manager.endTransaction();\n } catch (DaoException exception) {\n try {\n manager.rollback();\n } catch (DaoException rollbackException) {\n logger.error(rollbackException);\n }\n throw new ServiceException(exception);\n }\n return user;\n }",
"@Override\r\n public Optional<Product> findbyId(Long id) {\r\n return productRepository.findById(id);\r\n }",
"Optional<JUser> readById(Long id);",
"@Transactional(readOnly = true)\n public Optional<AppUser> findOne(Long id) {\n log.debug(\"Request to get AppUser : {}\", id);\n return appUserRepository.findById(id);\n }",
"@Override\r\n\tpublic User findOne(int id, Class<?> entity) {\n\t\treturn null;\r\n\t}",
"User getOne(long id) throws NotFoundException;",
"@Transactional(readOnly = true)\n\tpublic Optional<ResourceUserDTO> findOne(Long id) {\n\t\tlog.debug(\"Request to get ResourceUser : {}\", id);\n\t\treturn resourceUserRepository.findById(id)\n\t\t\t\t.map(resourceUserMapper::toDto);\n\t}",
"@Override\n\tpublic Users findOne(Users t) {\n\t\treturn null;\n\t}",
"@Override\n public User findById(Integer id) {\n try {\n return runner.query(con.getThreadConnection(),\"select *from user where id=?\",new BeanHandler<User>(User.class),id);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }",
"public UserInformation findInformationById(int id);",
"User findOne(Long id);",
"Optional<User> findUserByUsername(String username);",
"public User getUserById(Long id) throws Exception;",
"User get(int userId) throws UserNotFoundException, SQLException;",
"@Override\n\tpublic Optional<Login> findbyId(long usuario) {\n\t\treturn this.loginDao.findById(usuario);\n\t}",
"public User getUser(long id){\n User user = userRepository.findById(id);\n if (user != null){\n return user;\n } else throw new UserNotFoundException(\"User not found for user_id=\" + id);\n }",
"@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}",
"private User findById(String id) {\n User result = new NullUserOfDB();\n for (User user : this.users) {\n if (user.getId().equals(id)) {\n result = user;\n break;\n }\n }\n return result;\n }",
"@Override\r\n\tpublic Usuario findById(int id) {\n\t\treturn null;\r\n\t}",
"UserDTO findUserById(Long id);",
"@Override\n\tpublic Usuario find(Long id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic User getUserById(int id) {\n\t\treturn null;\n\t}",
"public User findById ( int id) {\n\t\t return users.stream().filter( user -> user.getId().equals(id)).findAny().orElse(null);\n\t}",
"@Override\r\n\tpublic Usuario findById(Usuario t) {\n\t\treturn null;\r\n\t}",
"T findOne(I id);",
"public User getSingleUser(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from User as user where user.userId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (User) results.get(0);\n }\n\n }",
"User findUser(String userId);",
"@Override\n\tpublic User findUserById(User user) {\n\t\tUser user1=userMapper.findUserById(user);\n\t\treturn user1;\n\t}",
"@Override\n public TechGalleryUser getUser(final Long id) throws NotFoundException {\n TechGalleryUser userEntity = userDao.findById(id);\n // if user is null, return a not found exception\n if (userEntity == null) {\n throw new NotFoundException(i18n.t(\"No user was found.\"));\n } else {\n return userEntity;\n }\n }",
"public Optional<User> getUser(UUID id) {\n return userRepository.findById(id);\n }",
"public EmployeeResponse getById(int id) throws EmployeeNotFoundException {\n\n Optional<Employee> result=employeeRepository.findById(id);\n if (result.isPresent()){\n EmployeeResponse response=new EmployeeResponse();\n response.setId(result.get().getId());\n response.setName(result.get().getName());\n return response;\n }\n\n throw new EmployeeNotFoundException(\"Employee not found id=\"+id);\n// return response;\n }",
"@Override\n @Transactional(readOnly = true)\n public Optional<RfpUser> findOne(Long id) {\n log.debug(\"Request to get RfpUser : {}\", id);\n return rfpUserRepository.findById(id);\n }",
"@Transactional(readOnly = true)\n\t@Override\n\tpublic Optional<Primaryuser> findById(Integer id) throws Exception {\n\t\treturn primaryRepository.findById(id);\n\t}",
"@Override\n\tpublic Usuario findById(Long id) {\n\t\treturn null;\n\t}",
"public interface UserRepository {\n\n User save(User user);\n\n Optional<User> findById(Id<User, Long> userId);\n\n UserExistResponse findByUserID(Id<User, Long> userId);\n\n}",
"@Cacheable(value = DEMO_CACHE_NAME)\r\n\t@Override\r\n\tpublic User selectByPrimaryKey(Integer id) {\n\t\tSystem.err.println (\"没有走缓存!\" + id);\r\n\t\treturn userDao.selectByPrimaryKey(id);\r\n\t}",
"@Override\r\n\tpublic User findByIdUser(Integer id) {\n\t\treturn userReposotory.findById(id).get();\r\n\t}",
"@Override\n\tpublic User getUserById(int userId){\n\t\treturn userRepository.findById(userId).orElseThrow(()->new BookException (HttpStatus.NOT_FOUND,\"Invalid User id\"));\n\t}",
"public Optional<Cliente>obtenerId(Long id){\n return clienteRepositori.findById(id);\n }",
"@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}",
"public User user(long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\treturn user.get();\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\n\t}",
"public Optional<User> retrieveUser(Long id) {\n\t\treturn userRepository.findById(id);\n\t}",
"@Override\r\n\tpublic Usuario encontrarUsuario(Long id) throws Exception {\n\t\treturn iUsuario.findById(id).orElseThrow(() -> new Exception(\"Error\"));\r\n\r\n\t}",
"public interface UserRepository extends JpaRepository<User, Long> {\n\n Optional<User> findOneByEmail(String email);\n}"
] | [
"0.8078052",
"0.80696565",
"0.8063953",
"0.7907781",
"0.78436524",
"0.7800634",
"0.7667114",
"0.760676",
"0.75339156",
"0.7488716",
"0.7480161",
"0.7467286",
"0.73697156",
"0.73406506",
"0.7335836",
"0.73353934",
"0.7310719",
"0.7298892",
"0.7275636",
"0.71939784",
"0.718503",
"0.7182803",
"0.71692365",
"0.7167383",
"0.7155601",
"0.71395475",
"0.7138821",
"0.7132564",
"0.71179587",
"0.7098941",
"0.7061967",
"0.70467585",
"0.70431054",
"0.70280313",
"0.70202994",
"0.7017417",
"0.7015321",
"0.7006906",
"0.7004934",
"0.69945973",
"0.6988549",
"0.69829404",
"0.69804615",
"0.6980355",
"0.6976314",
"0.6961934",
"0.69561976",
"0.6919041",
"0.6915585",
"0.69083273",
"0.68960106",
"0.6887477",
"0.6872573",
"0.6858856",
"0.68569267",
"0.68439156",
"0.68411964",
"0.6834244",
"0.68309885",
"0.6822569",
"0.68202055",
"0.6820096",
"0.68116283",
"0.68027043",
"0.68021655",
"0.67941976",
"0.6789128",
"0.678898",
"0.6780768",
"0.67807394",
"0.6774801",
"0.67607766",
"0.6760436",
"0.6754697",
"0.67430097",
"0.6729053",
"0.67255294",
"0.6719423",
"0.6717323",
"0.6699458",
"0.6690901",
"0.6665933",
"0.6665799",
"0.6659818",
"0.6654",
"0.66477686",
"0.6636759",
"0.6630674",
"0.6624078",
"0.66219103",
"0.66179603",
"0.6616363",
"0.6612852",
"0.66122615",
"0.660583",
"0.65983224",
"0.6597612",
"0.6592213",
"0.6589817",
"0.65884155",
"0.6571827"
] | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof RolesEntidadEntityPK)) {
return false;
}
RolesEntidadEntityPK other = (RolesEntidadEntityPK) object;
if (this.entidadId != other.entidadId) {
return false;
}
if ((this.rolId == null && other.rolId != null) || (this.rolId != null && !this.rolId.equals(other.rolId))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"protected abstract String getId();",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"public int getId(){\r\n return localId;\r\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"public abstract Long getId();",
"@Override\n public long getId() {\n return this.id;\n }",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"public String getId(){ return id.get(); }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public String getID(){\n return Id;\n }",
"public int getId()\n {\n return id;\n }"
] | [
"0.6893012",
"0.6836114",
"0.67019653",
"0.66372806",
"0.66372806",
"0.65897155",
"0.65749645",
"0.65749645",
"0.65715593",
"0.65715593",
"0.65715593",
"0.65715593",
"0.65715593",
"0.65715593",
"0.6557948",
"0.6557948",
"0.65415126",
"0.65214056",
"0.65128523",
"0.6484641",
"0.6473491",
"0.64238894",
"0.64159226",
"0.641386",
"0.63989466",
"0.6364057",
"0.6352782",
"0.6347942",
"0.63445175",
"0.6321274",
"0.6315944",
"0.6298331",
"0.6289866",
"0.6289866",
"0.6280222",
"0.6268834",
"0.6263404",
"0.6262361",
"0.6260325",
"0.62562025",
"0.62525773",
"0.6248666",
"0.6244097",
"0.6244097",
"0.6240389",
"0.6236627",
"0.6236627",
"0.6228308",
"0.6219926",
"0.62170756",
"0.6216491",
"0.62086207",
"0.62054634",
"0.61998713",
"0.6199115",
"0.61896425",
"0.61864936",
"0.61864936",
"0.6186184",
"0.6186184",
"0.6186184",
"0.6182088",
"0.6181062",
"0.61723566",
"0.61716026",
"0.6163693",
"0.61627716",
"0.61588794",
"0.6154449",
"0.6154449",
"0.6154449",
"0.6154449",
"0.6154449",
"0.6154449",
"0.6154449",
"0.61526424",
"0.61526424",
"0.6138601",
"0.6131248",
"0.6126135",
"0.6124427",
"0.61013985",
"0.61011",
"0.61011",
"0.61005044",
"0.61000377",
"0.60997367",
"0.6096409",
"0.6096036",
"0.6092533",
"0.60888046",
"0.60888046",
"0.60884815",
"0.60877126",
"0.60860056",
"0.60728115",
"0.60694075",
"0.6069278",
"0.6067362",
"0.6066771",
"0.60666025"
] | 0.0 | -1 |
prints the tree sideways including indenting and connecters between nodes | public void printTree() {
if (expressionRoot == null) {
return;
}
if (expressionRoot.right != null) {
printTree(expressionRoot.right, true, "");
}
System.out.println(expressionRoot.data);
if (expressionRoot.left != null) {
printTree(expressionRoot.left, false, "");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printSideways() {\n if (overallRoot == null) {\n System.out.println(\"empty tree\");\n } else {\n printSideways(overallRoot, 0);\n }\n }",
"public String printTree() {\n printSideways();\n return \"\";\n }",
"private void printTree(OutputStreamWriter out, boolean isRight, String indent) throws IOException {\n\t if (right != null) {\n\t right.printTree(out, true, indent + (isRight ? \" \" : \" | \"));\n\t }\n\t out.write(indent);\n\t if (isRight) {\n\t out.write(\" /\");\n\t } else {\n\t out.write(\" \\\\\");\n\t }\n\t out.write(\"----- \");\n\t printNodeValue(out);\n\t if (left != null) {\n\t left.printTree(out, false, indent + (isRight ? \" | \" : \" \"));\n\t }\n\t }",
"private void printSideways(IntTreeNode root, int level) {\n if (root != null) {\n printSideways(root.right, level + 1);\n for (int i = 0; i < level; i++) {\n System.out.print(\" \");\n } \n }\n }",
"private void recursivePrintSideways(BSTNode<K> current, String indent) {\n if (current != null) {\n recursivePrintSideways(current.getRightChild(), indent + \" \");\n System.out.println(indent + current.getId());\n recursivePrintSideways(current.getLeftChild(), indent + \" \");\n }\n }",
"public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getValue());\n\t\t}\n\t}",
"public void prettyPrintTree() {\r\n\t\tSystem.out.print(\"prettyPrintTree starting\");\r\n\t\tfor (int i = 0; i <= this.getTreeDepth(); i++) {\r\n\t\t\tprettyPrintTree(root, 0, i);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public void printTree() {\n Object[] nodeArray = this.toArray();\n for (int i = 0; i < nodeArray.length; i++) {\n System.out.println(nodeArray[i]);\n }\n }",
"private void printTree(TreeNode root, boolean isRight, String indent){\r\n if (root.right != null) {\r\n printTree(root.right, true, indent + (isRight ? \" \" : \" | \"));\r\n }\r\n System.out.print(indent);\r\n if (isRight) {\r\n System.out.print(\" /\");\r\n } else {\r\n System.out.print(\" \\\\\");\r\n }\r\n System.out.print(\"----- \");\r\n System.out.println(root.data);\r\n if (root.left != null) {\r\n printTree(root.left, false, indent + (isRight ? \" | \" : \" \"));\r\n }\r\n }",
"public void printTree() {\n printTreeHelper(root);\n }",
"public void print() {\n\t\tSystem.out.println(\"DECISION TREE\");\n\t\tString indent = \" \";\n\t\tprint(root, indent, \"\");\n\t}",
"@Override\n public void printTree() {\n System.out.println(\"node with char: \" + this.getChar() + \" and key: \" + this.getKey());\n int i = 0;\n for(IABTNode node : this.sons) {\n if(!node.isNull()) {\n System.out.print(\"Son \" + i + \" :\");\n node.printTree();\n }\n i++;\n }\n }",
"private void printTree(Tree parse) {\n \t\tparse.pennPrint();\n \t}",
"public static void main(String[] args) {\n IntTree tree = new IntTree(\r\n new IntTreeNode(\r\n 9, \r\n new IntTreeNode(8,\r\n null,\r\n new IntTreeNode(3)), \r\n new IntTreeNode(7,\r\n new IntTreeNode(5),\r\n null)\r\n ));\r\n\r\n\r\n\r\n\r\n\r\n\r\n tree.printSideways();\r\n tree.slightStutter();\r\n System.out.println(\"---------------------------------\");\r\n tree.printSideways();\r\n\r\n }",
"public void printTree() {\n\t\tSystem.out.println(printHelp(root));\r\n\t\t\r\n\t}",
"void Print() {\r\n\r\n AVLTreeNode node = root;\r\n\r\n printInorder(node);\r\n\r\n }",
"public static String printTree()\r\n {\r\n String result = \"\";\r\n for (String s: tree.toArrayList())\r\n result = result + \" \" + s;\r\n return result;\r\n }",
"public void printTree() {\r\n printTree(overallRoot, 0);\r\n }",
"public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }",
"protected void printTree(){\n if (this.leftNode != null){\n leftNode.printTree();\n }\n System.out.println(value);\n\n if (this.rightNode != null){\n rightNode.printTree();\n }\n }",
"void printLevelOrder() {\n TreeNode2 nextLevelRoot = this;\n while (nextLevelRoot != null) {\n TreeNode2 current = nextLevelRoot;\n nextLevelRoot = null;\n while (current != null) {\n System.out.print(current.val + \" \");\n if (nextLevelRoot == null) {\n if (current.left != null)\n nextLevelRoot = current.left;\n else if (current.right != null)\n nextLevelRoot = current.right;\n }\n current = current.next;\n }\n System.out.println();\n }\n }",
"private void printTree(Tree parse) {\n\t\tparse.pennPrint();\n\t}",
"public void print()\n\t{\n\t\tDNode tem=first;\n\t\tSystem.out.print(tem.distance+\" \");\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\ttem=tem.nextDNode;\n\t\t\tSystem.out.print(tem.distance+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"@Override\n public void traverse()\n {\n System.out.print(\"DFS Tree: \");\n DFSHelper(root);\n System.out.println();\n }",
"public static String printTree()\n {\n \tString tree = \"\";\n ArrayList<String> letters = converter.toArrayList();\n for(int i = 0; i < letters.size(); i++)\n {\n tree += letters.get(i);\n if(i + 1 < letters.size())\n \t tree += \" \";\n }\n \n return tree;\n }",
"public void printLaptops(){\n\t\tSystem.out.println(\"Root is: \"+vertices.get(root));\n\t\tSystem.out.println(\"Edges: \");\n\t\tfor(int i=0;i<parent.length;i++){\n\t\t\tif(parent[i] != -1){\n\t\t\t\tSystem.out.print(\"(\"+vertices.get(parent[i])+\", \"+\n\t\t\tvertices.get(i)+\") \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t}",
"public void printNodes() {\n\t\tprintNodes(root);\n\n\t}",
"private void printTree(AvlNode<E> node){\n if(node != null){\n printTree(node.left);\n System.out.print(node.value);\n System.out.print(\" \");\n printTree(node.right);\n }\n }",
"public void printGraphStructure() {\n\t\tSystem.out.println(\"Vector size \" + nodes.size());\n\t\tSystem.out.println(\"Nodes: \"+ this.getSize());\n\t\tfor (int i=0; i<nodes.size(); i++) {\n\t\t\tSystem.out.print(\"pos \"+i+\": \");\n\t\t\tNode<T> node = nodes.get(i);\n\t\t\tSystem.out.print(node.data+\" -- \");\n\t\t\tIterator<EDEdge<W>> it = node.lEdges.listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tEDEdge<W> e = it.next();\n\t\t\t\tSystem.out.print(\"(\"+e.getSource()+\",\"+e.getTarget()+\", \"+e.getWeight()+\")->\" );\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"static void postorderPrint(TreeNode node, String indent) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((TreeNode) iter.next(), indent + \"| \");\n }\n System.out.println(\" \" + indent + node.data);\n }",
"public void levelOrderPrint() {\n\t\tlevelOrderPrint(root);\n\t}",
"public void printOut() {\n\t\tif(root.left != null) {\n\t\t\tprintOut(root.left);\n\t\t}\n\t\t\n\t\tSystem.out.println(root.element);\n\t\t\n\t\tif(root.right != null) {\n\t\t\tprintOut(root.right);\n\t\t}\n\t}",
"static void preorderPrint(TreeNode node, String indent) {\n if (node == null)\n return;\n\n System.out.println(\" \" + indent + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next(), indent + \"| \");\n }\n }",
"public void printTree() {\r\n\t\tif (isEmpty())\r\n\t\t\tSystem.out.println(\"Empty tree\");\r\n\t\telse\r\n\t\t\tprintTree(root);\r\n\t}",
"public void postOrderPrint() {\n\t\tpostOrderPrint(root);\n\t\tSystem.out.println();\n\t}",
"public void printTree( )\r\n\t{\r\n\t\tif( isEmpty( ) )\r\n\t\t\tSystem.out.println( \"Empty tree\" );\r\n\t\telse\r\n\t\t\tprintTree( root );\r\n\t}",
"static void postorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((TreeNode) iter.next());\n }\n System.out.print(\" \" + node.data);\n }",
"public void print(){\n inorderTraversal(this.root);\n }",
"public static String printTree(Tree t) {\n\tStringWriter sw = new StringWriter();\n\tPrintWriter pw = new PrintWriter(sw);\n\tTreePrint tp = new TreePrint(\"penn\", \"markHeadNodes\", tlp);\n\ttp.printTree(t, pw);\n\treturn sw.toString();\n }",
"public void display() {\n ITree.Node root = this.createNode(0);\n TreePrinter.printNode(root);\n }",
"public void printDLR() {\n if(!empty()) {\n printDLRNodes(root);\n System.out.println();\n }\n }",
"public void printLevelOrder() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tSystem.out.println(\"Empty Tree\");\r\n\t\t} else {\r\n\t\t\tQueueLi<BinaryNode<AnyType>> q = new QueueLi<>();\r\n\t\t\tBinaryNode<AnyType> currentNode;\r\n\t\t\tq.enqueue(root);\r\n\t\t\twhile (!q.isEmpty()) {\r\n\t\t\t\tcurrentNode = q.dequeue();\r\n\t\t\t\tif (currentNode.left != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.left);\r\n\t\t\t\t} // if\r\n\t\t\t\tif (currentNode.right != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.right);\r\n\t\t\t\t} // if\r\n\t\t\t\tSystem.out.print(currentNode.element + \" \");\r\n\t\t\t} // while\r\n\t\t} // else\r\n\t}",
"public void print(Node node) \n{\n PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out), true);\n print(node, w);\n}",
"public void display() {\r\n int v;\r\n Node n;\r\n \r\n for(v=1; v<=V; ++v){\r\n System.out.print(\"\\nadj[\" + toChar(v) + \"] ->\" );\r\n for(n = adj[v]; n != z; n = n.next) \r\n System.out.print(\" |\" + toChar(n.vert) + \" | \" + n.wgt + \"| ->\"); \r\n }\r\n System.out.println(\"\");\r\n }",
"public void print() {\n\t\tint l = 0;\n\t\tSystem.out.println();\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tSystem.out.print(vertexList[v].id);\n\t\t\tfor (Neighbor nbr = vertexList[v].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tSystem.out.print(\" -> \" + vertexList[nbr.vertexNumber].id + \"(\"\n\t\t\t\t\t\t+ nbr.weight + \")\");\n\t\t\t\tl++;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\tSystem.out.println(\"Number of edges = \" + l / 2);\n\t}",
"public void printTree(){ \n System.out.format(\"The suffix tree for S = %s is: %n\",this.text); \n this.print(0, this.root); \n }",
"public void printTree(Node n) {\r\n\t\tif( !n.isNil ) {\r\n\t\t\tSystem.out.print(\"Key: \" + n.key + \" c: \" + n.color + \" p: \" + n.p + \" v: \"+ n.val + \" mv: \" + n.maxval + \"\\t\\tleft.key: \" + n.left.key + \"\\t\\tright.key: \" + n.right.key + \"\\n\");\r\n\t\t\tprintTree(n.left);\r\n\t\t\tprintTree(n.right);\r\n\t\t}\r\n\t}",
"private void print( org.antlr.v4.tool.Grammar grammar, ParseTree tree, String indentStep, String indent )\n {\n if ( tree != null )\n {\n Object payload = tree.getPayload();\n if ( payload instanceof InterpreterRuleContext )\n {\n String ruleName = grammar.getRule( ((InterpreterRuleContext) payload).getRuleIndex() ).name;\n System.out.println( indent + ruleName );\n }\n else\n {\n System.out.println( indent + \"\\\"\" + tree.getText() + \"\\\"\" );\n }\n for ( int i = 0; i <= tree.getChildCount(); i++ )\n {\n print( grammar, tree.getChild( i ), indentStep, indent + indentStep );\n }\n }\n }",
"void printZigZagTraversal() {\n\n\t\t// if null then return\n\t\tif (rootNode == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// declare two stacks\n\t\tStack<ZNode> currentLevel = new Stack<>();\n\t\tStack<ZNode> nextLevel = new Stack<>();\n\n\t\t// push the root\n\t\tcurrentLevel.push(rootNode);\n\t\tboolean leftToRight = true;\n\n\t\t// check if stack is empty\n\t\twhile (!currentLevel.isEmpty()) {\n\n\t\t\t// pop out of stack\n\t\t\tZNode node = currentLevel.pop();\n\n\t\t\t// print the data in it\n\t\t\tSystem.out.print(node.data + \" \");\n\n\t\t\t// store data according to current\n\t\t\t// order.\n\t\t\tif (leftToRight) {\n\t\t\t\tif (node.leftChild != null) {\n\t\t\t\t\tnextLevel.push(node.leftChild);\n\t\t\t\t}\n\n\t\t\t\tif (node.rightChild != null) {\n\t\t\t\t\tnextLevel.push(node.rightChild);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (node.rightChild != null) {\n\t\t\t\t\tnextLevel.push(node.rightChild);\n\t\t\t\t}\n\n\t\t\t\tif (node.leftChild != null) {\n\t\t\t\t\tnextLevel.push(node.leftChild);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (currentLevel.isEmpty()) {\n\t\t\t\tleftToRight = !leftToRight;\n\t\t\t\tStack<ZNode> temp = currentLevel;\n\t\t\t\tcurrentLevel = nextLevel;\n\t\t\t\tnextLevel = temp;\n\t\t\t}\n\t\t}\n\t}",
"void printNodesWithEdges()\n {\n for ( int i = 0; i < this.numNodes; i++ )\n {\n Node currNode = this.nodeList.get(i);\n System.out.println(\"Node id: \" + currNode.id );\n \n int numEdges = currNode.connectedNodes.size();\n for ( int j = 0; j < numEdges; j++ )\n {\n Node currEdge = currNode.connectedNodes.get(j);\n System.out.print(currEdge.id + \",\");\n }\n\n System.out.println();\n } \n\n \n }",
"private static void traversals(Node root) {\n\t\tSystem.out.println(\"Node Pre \" + root.data);\n\t\tfor(Node child : root.children) {\n\t\t\tSystem.out.println(\"Edge Pre \" + root.data + \"--\" + child.data);\n\t\t\ttraversals(child);\n\t\t\tSystem.out.println(\"Edge Post \" + root.data + \"--\" + child.data);\n\t\t}\n\t\tSystem.out.println(\"Node Post \" + root.data);\n\t}",
"static void printTree(AbstractNode root) throws IOException {\n if (root == null) {\n return;\n }\n System.out.println(root.toString());\n if(root.getTypeNode() == 0) {\n ConscellNode nextNode = (ConscellNode)root;\n printTree(nextNode.getFirst());\n printTree(nextNode.getNext());\n }\n }",
"@Override\n public String print() {\n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n \n System.out.print(\"In ascending order: \");\n for (int i=0; i<inorderTraverse.size(); i++) {\n System.out.print(inorderTraverse.get(i)+\" \");\n }\n System.out.println(\"\");\n return \"\";\n }",
"public void outputForGraphviz() {\n\t\tString label = \"\";\n\t\tfor (int j = 0; j <= lastindex; j++) {\n\t\t\tif (j > 0) label += \"|\";\n\t\t\tlabel += \"<p\" + ptrs[j].myname + \">\";\n\t\t\tif (j != lastindex) label += \"|\" + String.valueOf(keys[j+1]);\n\t\t\t// Write out any link now\n\t\t\tBTree.writeOut(myname + \":p\" + ptrs[j].myname + \" -> \" + ptrs[j].myname + \"\\n\");\n\t\t\t// Tell your child to output itself\n\t\t\tptrs[j].outputForGraphviz();\n\t\t}\n\t\t// Write out this node\n\t\tBTree.writeOut(myname + \" [shape=record, label=\\\"\" + label + \"\\\"];\\n\");\n\t}",
"private void showTree(EarleyParser.Node root,int level, String previous) {\n\t\tSystem.out.print(level);\n\t\tfor(int i = 0; i <= level; i++)\n\t\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(root.text);\n\t\tString cur = root.text;\n\t\twhile(graph.containsVertex(cur)) {\n\t\t\tcur = cur + \" \";\n\t\t}\n\n\t\tgraph.addVertex(cur);\n\t\tif(previous != null) {\n\t\t\tgraph.addEdge(edgeid++, previous, cur);\n\t\t}\n\t\tfor(EarleyParser.Node sibling : root.siblings) {\n\t\t\tshowTree(sibling, level+1, cur);\n\t\t}\n\t}",
"private void print(int indent) {\n \tif (myRight != null) {\n \t\tmyRight.print(indent + 1);\t\n \t}\n println (myItem, indent);\n // TODO your code here\n if (myLeft != null) {\n myLeft.print(indent + 1);\n }\n }",
"static void preorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n System.out.print(\" \" + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next());\n }\n }",
"public void printInOrder() { // not to be changed\n\t\tprintInOrder(root);\n\t}",
"private void printTreeLevel(AvlNode<E> node){\n if(node == null){\n System.out.print(\"\");\n return;\n }\n Queue<AvlNode<E>> queue = new Queue<AvlNode<E>>();\n queue.enqueue(node);\n while(!queue.isEmpty()){\n AvlNode<E> currentNode = queue.dequeue();\n\n System.out.print(currentNode.value);\n System.out.print(\" \");\n\n if(currentNode.left != null)\n queue.enqueue(currentNode.left);\n if(currentNode.right != null)\n queue.enqueue(currentNode.right);\n }\n }",
"void printTree(Node root, int space)\n\t{\n\t\t\n\t\tif(root == null)\n\t\t\treturn;\n\t\t\n\t\tprintTree(root.right, space + 5);\n\t\t\n\t\tfor(int i=0; i<space; i++)\n\t\t\tSystem.out.print(\" \");\n\t\tSystem.out.print(root.data);\n\t\tSystem.out.println();\n\t\t\n\t\tprintTree(root.left, space + 5);\n\t}",
"public String print(int option)\r\n\t{\r\n\t\t// The binary tree hasn't been created yet so no Nodes exist\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\treturn \"The binary tree is empty!\";\r\n\t\t}\r\n\t\t\r\n\t\t// Create the temporary String array to write the name of the Nodes in\r\n\t\t// and set the array counter to 0 for the proper insertion\r\n\t\tString[] temp = new String[getCounter()]; // getCounter() returns the number of Nodes currently in the Tree\r\n\t\tsetArrayCounter(0);\r\n\t\t\r\n\t\t// Option is passed into the method to determine which traversing order to use\r\n\t\tswitch(option)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t\tinorder(temp, getRoot());\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tpreorder(temp, getRoot());\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tpostorder(temp,getRoot());\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// Create the empty String that will be storing the names of each Node\r\n\t\t// minor adjustment so a newline isn't inserted at the end of the last String\r\n\t\tString content = new String();\r\n\t\tfor(int i = 0; i < temp.length; i++)\r\n\t\t{\r\n\t\t\tif(i == temp.length - 1)\r\n\t\t\t{\r\n\t\t\t\tcontent += temp[i];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tcontent += temp[i] + \"\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn content;\r\n\t}",
"private void printInOrder(TreeNode N) {\n\t\tSystem.out.print(\"(\");\n\t\tif (N!=null) {\n\t\t\tprintInOrder(N.getLeftChild());\n\t\t\tSystem.out.print(N.getIsUsed());\n\t\t\tprintInOrder(N.getRightChild());\n\n\t\t}\n\t\tSystem.out.print(\")\");\n\t}",
"public static void main(String[] args) {\n offer_60_Print test = new offer_60_Print();\n TreeNode t = test.new TreeNode(1);\n t.left = test.new TreeNode(2);\n t.right = test.new TreeNode(3);\n t.left.left = test.new TreeNode(4);\n t.left.left.right = test.new TreeNode(9);\n t.left.left.right.left = test.new TreeNode(10);\n t.left.left.right.right = test.new TreeNode(11);\n t.left.right = test.new TreeNode(5);\n t.right.left = test.new TreeNode(6);\n t.right.right = test.new TreeNode(7);\n test.Print(t);\n }",
"private void indent(StringBuffer output, Node node) {\n\t\toutput.append(\"\\n\");\n\t\tString lineNumber = (node == null) ? \"\" : \"[\" + node.getLine() + \"]\";\n\t\toutput.append(String.format(\"%5s \", lineNumber));\n\t\tfor (int i = 0; i < depth; ++i)\n\t\t\toutput.append(\" \");\n\t\toutput.append(\"+-- \");\n\t}",
"public void print(Node node, PrintWriter w)\n{\n print(node, 0, w);\n}",
"public void printLevelOrder(Node tree){\n\t\tint h = height(tree);\n\t\tSystem.out.println(\"The height is \"+ h);\n\t\tfor(int i=1;i<=h;i++){\n\t\t\tprintGivenLevel(tree, i);\n\t\t}\n\t}",
"public static void printTree(Node head) {\r\n System.out.println(\"Binary Tree:\");\r\n printInOrder(head, 0, \"H\", 17);\r\n System.out.println();\r\n }",
"public void print() {\n\t\ttraversePreOrder(root, 0);\n\t}",
"public void printAll() {\n\t\tNode node = root;\n\t\twhile (node != null) {\n\t\t\tSystem.out.println(node.data);\n\t\t\tnode = node.left;\n\t\t}\n\t}",
"void printLevelOrder() {\n\t\tint h = height(root);\n\t\tint i;\n\t\tfor (i = h; i >= 1; i--)\n\t\t\tprintGivenLevel(root, i);\n\t}",
"public void printNodes(){\n for(int i =0; i<n;i++)\n System.out.print(key[i]+\" \");\n System.out.println(isLeaf);\n if (!isLeaf){\n for(int i =0; i<=n;i++){\n c[i].printNodes();\n }\n }\n }",
"public void print() {\n\t\tfor (int count = 0; count < adjacencyList.length; count++) {\n\t\t\tLinkedList<Integer> edges = adjacencyList[count];\n\t\t\tSystem.out.println(\"Adjacency list for \" + count);\n\n\t\t\tSystem.out.print(\"head\");\n\t\t\tfor (Integer edge : edges) {\n\t\t\t\tSystem.out.print(\" -> \" + edge);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void traversals(Node node){\r\n System.out.println(\"Node Pre \" + node.data);\r\n for(Node child : node.children){\r\n System.out.println(\"Edge Pre \" + node.data + \"--\" + child.data);\r\n traversals(child);\r\n System.out.println(\"Edge Post \" + node.data + \"--\" + child.data);\r\n }\r\n System.out.println(\"Node Post \" + node.data);\r\n }",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void print() {\n\t\tprint(root);\n\t}",
"void printPostorder() { \n\t\tprintPostorder(root);\n\t}",
"private void writeTree(QuestionNode current,PrintStream output){\n if (current != null) {\n //assign type, 'Q' or 'A'\n String type = \"\";\n if (current.left == null && current.right == null){\n type = \"A:\";\n } else {\n type = \"Q:\";\n } \n //print data of tree node\n output.println(type);\n output.println(current.data);\n //print left branch\n writeTree(current.left,output);\n //print right branch\n writeTree(current.right,output); \n }\n }",
"private void printTree( BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t != null )\r\n\t\t{\t\t\t\r\n\t\t\tprintTree( t.left );\r\n\t\t\tSystem.out.print( t.element+\" \");\r\n\t\t\tprintTree( t.right );\r\n\t\t}\r\n\t}",
"public void printTreeNodes(){\n logger.trace(\"Name: \"+this.getName());\n for(int i=0;i<this.getChildCount();i++){\n SearchBaseNode node = (SearchBaseNode) this.getChildAt(i);\n node.printTreeNodes();\n }\n }",
"public void printGraph() {\n\t\tSystem.out.println(\"-------------------\");\n\t\tSystem.out.println(\"Printing graph...\");\n\t\tSystem.out.println(\"Vertex=>[Neighbors]\");\n\t\tIterator<Integer> i = vertices.keySet().iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tint name = i.next();\n\t\t\tSystem.out.println(name + \"=>\" + vertices.get(name).printNeighbors());\n\t\t}\n\t\tSystem.out.println(\"-------------------\");\n\t}",
"public void print()\r\n {\r\n print(root);\r\n }",
"public void printPreorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printPreorder();\n System.out.println();\n }\n }",
"public void printPreorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printPreorder();\n System.out.println();\n }\n }",
"public void printLRD() {\n if(!empty()){\n printLRDNodes(root);\n System.out.println();\n }\n }",
"public AvlTree<E> printTree(){\n printTree(root);\n return this;\n }",
"public void printMST() {\n\t\t\n\t\tString mstPath = \"\";\n\t\t\n\t\t/**Stores the parent child hierarchy*/\n\t\tint distance[] = new int[this.vertices];\n\t\t\n\t\t/**Stores all the vertices with their distances from source vertex*/\n\t\tMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\tmap.put(0, 0);\n\t\t\n\t\tfor(int i = 1; i < vertices; i++){\n\t\t\tmap.put(i, Integer.MAX_VALUE);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < vertices; i++){\n\t\t\t\n\t\t\tInteger minVertex = extractMin(map), minValue = map.get(minVertex);\n\t\t\tdistance[minVertex] = minValue;\n\t\t\t\n\t\t\tmstPath += minVertex + \" --> \";\n\t\t\t\n\t\t\t/**Removing min vertex from map*/\n\t\t\tmap.remove(minVertex);\n\t\t\t\n\t\t\t/**Exploring edges of min vertex*/\n\t\t\tArrayList<GraphEdge> edges = this.adjList[minVertex];\n\t\t\tfor(GraphEdge edge : edges){\n\t\t\t\tif(map.containsKey(edge.destination)){\n\t\t\t\t\tif(map.get(edge.destination) > distance[edge.source] + edge.weight){\n\t\t\t\t\t\tmap.put(edge.destination, distance[edge.source] + edge.weight);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(mstPath);\n\t}",
"public void printTreePostOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n printTreePostOrder(node.left);\n printTreePostOrder(node.right);\n\n System.out.print(node.item + \" \");\n }",
"public static void printTreeHelper(BinarySearchTreeNode<Integer> node) {\n // base case\n if (node == null) {\n return;\n }\n\n System.out.print(node.data + \": \");\n if (node.left != null) {\n System.out.print(\"L\" + node.left.data + \", \");\n }\n\n if (node.right != null) {\n System.out.print(\"R\" + node.right.data);\n }\n System.out.println();\n\n printTreeHelper(node.left);\n printTreeHelper(node.right);\n }",
"public void printGraph() {\n\t\tStringJoiner j = new StringJoiner(\", \");\n\t\tfor(Edge e : edgeList) {\n\t\t\tj.add(e.toString());\n\t\t}\n\t\t\n\t\tSystem.out.println(j.toString());\n\t}",
"public void printTreeInOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n printTreeInOrder(node.left);\n System.out.print(node.item + \" \");\n\n printTreeInOrder(node.right);\n }",
"public void printBSTree(Node<T> u) {\n\t\tpT = new ArrayList<ArrayList<String>>();\n\n\t\tint n = 0;\n\t\tconstructBSTPTree(u, n);\n\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"NOTE: positions are only correct for (a) depth or (b) horizontal position,\");\n\t\tSystem.out.println(\" but not both at the same time.\");\n\t\tSystem.out.println();\n\n\t\tfor (int i = 1; i < pT.size(); i++) {\n\t\t\tSystem.out.printf(\"d %3d: \", i-1);\n\t\t\tint theSize = pT.get(i).size();\n\t\t\tint baseWidth = 90;\n\t\t\tString thePadding = CommonSuite.stringRepeat(\" \",\n\t\t\t\t\t(int) ((baseWidth - 3 * theSize) / (theSize + 1)));\n\t\t\tfor (int j = 0; j < theSize; j++)\n\t\t\t\tSystem.out.printf(\"%s%3s\", thePadding, pT.get(i).get(j));\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void printDebug(int depth) {\n\n for (int i = 0; i < depth; i++) {\n System.out.print(\"\\t\");\n }\n System.out.println(data);\n\n if (left != null) {\n left.printDebug(depth + 1);\n }\n if (right != null) {\n right.printDebug(depth + 1);\n }\n }",
"void printLevel()\r\n\t {\r\n\t int h = height(root);\r\n\t int i;\r\n\t for (i=1; i<=h+1; i++)\r\n\t printGivenLevel(root, i);\r\n\t }",
"static void displayOtherWay(BinaryTree bt){\n EveryTwoLevelsChangeDirection e= new EveryTwoLevelsChangeDirection();\n System.out.println(\" ===== Level order traversal with direction change after every two levels ===== \");\n e.modifiedLevelOrder(bt.root);\n }",
"public void printTree(){\n if(root!=null) // มี node ใน tree\n {\n super.printTree(root); // ปริ้นโดยส่ง node root ไป static fn\n }\n else\n {\n System.out.println(\"Empty tree!!!\");\n }\n }",
"public void printEdges()\n\t{\n\t\tSystem.out.println(\"Printing all Edges:\");\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\titr.next().printAdjacent();\n\t\t}\n\t}",
"private static void printTree(HuffmanNode tree, String direction, FileWriter newVersion) throws IOException {\n\t\tif(tree.inChar != null) {\n\t\t\tnewVersion.write(tree.inChar + \": \" + direction + \" | \" + tree.frequency + System.getProperty(\"line.separator\"));\n\t\t\tresults[resultIndex][0] = tree.inChar;\n\t\t\tresults[resultIndex][1] = direction;\n\t\t\tresults[resultIndex][2] = tree.frequency;\n\t\t\tresultIndex++;\n\t\t}\n\t\telse {\n\t\t\tprintTree(tree.right, direction + \"1\", newVersion);\n\t\t\tprintTree(tree.left, direction + \"0\", newVersion);\n\t\t}\n\t}",
"public void printPath()\r\n\t{\r\n\t\tSystem.out.print(\"+ +\");\r\n\t\tfor (int i = 1; i < this.getWidth(); i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"-+\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t\tfor (int i = 0; i < this.getHeight(); i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < this.getWidth(); j++)\r\n\t\t\t{\r\n\t\t\t\tCell c = this.getCellAt(i, j);\r\n\t\t\t\t// if cells are connected, no wall is printed in between them\r\n\t\t\t\tif (c.hasDoorwayTo(Cell.WEST))\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\"|\");\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(path.contains(c))\r\n\t\t\t\t\tSystem.out.print(\"#\");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < this.getWidth(); j++)\r\n\t\t\t{\r\n\t\t\t\tCell c = this.getCellAt(i, j);\r\n\t\t\t\tSystem.out.print(\"+\");\r\n\r\n\t\t\t\tif (c.hasDoorwayTo(Cell.SOUTH) || c == this.getCellAt(getHeight()-1, getWidth()-1))\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"+\");\r\n\t\t}\r\n\t}",
"public void printInOrder() {\n printInOrderHelper(root);\n }",
"public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }"
] | [
"0.7981266",
"0.785778",
"0.73293394",
"0.73222685",
"0.7302973",
"0.7062757",
"0.69990313",
"0.6999022",
"0.6899179",
"0.6861908",
"0.683375",
"0.6767808",
"0.6733467",
"0.67124355",
"0.67055917",
"0.6701587",
"0.67014605",
"0.66914016",
"0.6641917",
"0.66266644",
"0.66159827",
"0.6571554",
"0.655471",
"0.6530917",
"0.65303165",
"0.6506517",
"0.64918673",
"0.64916384",
"0.6483224",
"0.648213",
"0.64809585",
"0.6461756",
"0.64417773",
"0.6433569",
"0.6412229",
"0.63999486",
"0.63786745",
"0.6369281",
"0.6340834",
"0.6328551",
"0.63225275",
"0.63068384",
"0.6306374",
"0.62994057",
"0.6295441",
"0.62931204",
"0.6284598",
"0.6280239",
"0.6270268",
"0.6256637",
"0.62506765",
"0.62407225",
"0.6231513",
"0.6223022",
"0.62132144",
"0.61913043",
"0.61811936",
"0.6174511",
"0.61744344",
"0.6167275",
"0.6163723",
"0.616067",
"0.6156054",
"0.6154022",
"0.61390966",
"0.6116582",
"0.6111469",
"0.6111123",
"0.61099726",
"0.61098754",
"0.610633",
"0.6105061",
"0.61022353",
"0.60964346",
"0.6095052",
"0.60949576",
"0.6093751",
"0.60714406",
"0.6052202",
"0.60480016",
"0.6043604",
"0.6025029",
"0.6025029",
"0.60189706",
"0.6018781",
"0.60152304",
"0.6012037",
"0.60103524",
"0.6008818",
"0.59975284",
"0.59957653",
"0.59936404",
"0.598778",
"0.5987772",
"0.59816664",
"0.5981267",
"0.59754634",
"0.5973898",
"0.5967461",
"0.59582126"
] | 0.6154274 | 63 |
use string and not stringbuffer on purpose as we need to change the indent at each recursion | private void printTree(TreeNode root, boolean isRight, String indent){
if (root.right != null) {
printTree(root.right, true, indent + (isRight ? " " : " | "));
}
System.out.print(indent);
if (isRight) {
System.out.print(" /");
} else {
System.out.print(" \\");
}
System.out.print("----- ");
System.out.println(root.data);
if (root.left != null) {
printTree(root.left, false, indent + (isRight ? " | " : " "));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static String indent()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i<toStringIndent; i++) sb.append(\" \");\n\t\treturn sb.toString();\n\t}",
"private String indent(int level) throws IOException {\n return Utility.repeat(\" \", level);\n }",
"private static void render(String s)\n {\n if (s.equals(\"{\"))\n {\n buf_.append(\"\\n\");\n indent();\n buf_.append(s);\n _n_ = _n_ + INDENT_WIDTH;\n buf_.append(\"\\n\");\n indent();\n }\n else if (s.equals(\"(\") || s.equals(\"[\"))\n buf_.append(s);\n else if (s.equals(\")\") || s.equals(\"]\"))\n {\n backup();\n buf_.append(s);\n buf_.append(\" \");\n }\n else if (s.equals(\"}\"))\n {\n int t;\n _n_ = _n_ - INDENT_WIDTH;\n for(t=0; t<INDENT_WIDTH; t++) {\n backup();\n }\n buf_.append(s);\n buf_.append(\"\\n\");\n indent();\n }\n else if (s.equals(\",\"))\n {\n backup();\n buf_.append(s);\n buf_.append(\" \");\n }\n else if (s.equals(\";\"))\n {\n backup();\n buf_.append(s);\n buf_.append(\"\\n\");\n indent();\n }\n else if (s.equals(\"\")) return;\n else\n {\n buf_.append(s);\n buf_.append(\" \");\n }\n }",
"private void indent(StringBuffer output, Node node) {\n\t\toutput.append(\"\\n\");\n\t\tString lineNumber = (node == null) ? \"\" : \"[\" + node.getLine() + \"]\";\n\t\toutput.append(String.format(\"%5s \", lineNumber));\n\t\tfor (int i = 0; i < depth; ++i)\n\t\t\toutput.append(\" \");\n\t\toutput.append(\"+-- \");\n\t}",
"private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private void indent(StringBuilder sb) {\n for (int i = 0; i < indentLevel; i++) {\n sb.append('\\t');\n }\n }",
"@Override\n public final String asString(int indentSize, int innerIndentInc) {\n return \"\";\n }",
"static void write() {\n try {\n b.setLength(0); // clear the line buffer\n\n // this next section builds the output string while protecting\n // string literals. All extra spaces are removed from the output\n // string, except that string literals are left as is.\n ArrayList list = new ArrayList();\n String s = new String(\"\");\n for (int i = 0; i < a.size(); i++) {\n Object o = a.get(i);\n if (o instanceof Token) {\n Token token = (Token)o;\n if (token.kind == JavaParserConstants.STRING_LITERAL) {\n s = s.replaceAll(\"[ ]+\", \" \");\n list.add(s);\n s = new String(\"\");\n list.add(token.image);\n }\n else {\n s += ((Token)o).image;\n s = s.replaceAll(\"[ ]+\", \" \");\n }\n }\n else {\n s += (String)o;\n s = s.replaceAll(\"[ ]+\", \" \");\n }\n }\n for (int i = 0; i < list.size(); i++) {\n b.append((String)list.get(i));\n }\n\n b.append(s);\n s = b.toString();\n\n // check for blank line(s)\n String maybe_blank = new String(s);\n if (maybe_blank.trim().length() == 0) {\n // yep, it's a blank, so just print it out\n if (s.length() >= ls.length()) {\n s = s.substring(0, s.length() - ls.length());\n }\n outputBuffer.append(s);\n a.clear();\n return;\n }\n\n // indent --\n // most lines get indented, but there are a few special cases:\n // \"else\" gets put on the same line as the closing \"}\" for the \"if\",\n // so don't want to indent. Similarly with \"catch\" and \"finally\".\n // The \"while\" at the end of a \"do\" loop is marked as \"^while\" to\n // differentiate it from a regular \"while\" block. \"else if\" is also\n // a special case.\n if (!s.startsWith(\" else\")\n && !s.startsWith(\" catch\")\n && !s.startsWith(\" finally\")\n && !s.startsWith(\" ^while\")\n && !s.startsWith(\" {\")\n && (!endsWith(outputBuffer, \"else\") && !endsWith(outputBuffer, \"else \"))) {\n s = s.trim();\n for (int i = 0; i < level; i++) {\n s = indent + s;\n }\n }\n\n // maybe clean out the ^ from the specially marked \"while\" at the\n // end of a \"do\" loop\n if (s.startsWith(\" ^while\")) {\n b.deleteCharAt(1);\n s = b.toString();\n }\n\n // check if the output buffer does NOT end with a new line. If it\n // doesn't, remove any leading whitespace from this line\n if (!endsWith(outputBuffer, \"\\u005cn\") && !endsWith(outputBuffer, \"\\u005cr\")) {\n s = trimStart(s);\n }\n\n // check that there aren't extra spaces in the buffer already --\n // this handles the case where the output buffer ends with a space\n // and the new string starts with a space, don't want 2 spaces.\n if (s.startsWith(\" \") && endsWith(outputBuffer, \" \")) {\n s = s.substring(1);\n }\n\n // check that there is one space between the end of the output\n // buffer and this line -- this handles the case where the output\n // buffer does not end in a space and the new string does not start\n // with a space, want one space in between.\n if (!s.startsWith(\" \")\n && !endsWith(outputBuffer, \" \")\n && !endsWith(outputBuffer, \"\\u005cr\")\n && !endsWith(outputBuffer, \"\\u005cn\")\n && outputBuffer.length() > 0) {\n outputBuffer.append(\" \");\n }\n\n // by the Sun standard, there is no situation where '(' is followed\n // by a space or ')' is preceded with by a space\n s = s.replaceAll(\"[(][ ]\", \"(\");\n s = s.replaceAll(\"[ ][)]\", \")\");\n\n // there should be no situation where a comma is preceded by a space,\n // although that seems to happen when formatting string arrays.\n s = s.replaceAll(\"\\u005c\\u005cs+[,]\", \",\");\n\n // finally! add the string to the output buffer\n // check for line length, may need to wrap. Sun says to avoid lines\n // longer than 80 characters. This doesn't work well yet, so I've \n // commented out the wrapping code. Still need to clean out the\n // wrapping markers.\n //s = s.replaceAll(\"[\u001c]\", \"\");\n outputBuffer.append(s);\n /*\n int wrap_sep_count = countWrapSep(s);\n if (s.length() - wrap_sep_count > 80) {\n String[] lines = wrapLines(s);\n if ( lines != null ) {\n for (int i = 0; i < lines.length; i++) {\n outputBuffer.append(lines[i]).append(ls);\n }\n }\n else {\n // whack any remaining \u001c characters\n s = s.replaceAll(\"[\u001c]\", \"\");\n outputBuffer.append(s);\n }\n }\n else {\n // whack any remaining \u001c characters\n s = s.replaceAll(\"[\u001c]\", \"\");\n outputBuffer.append(s);\n }\n */\n // clear the accumulator for the next line\n a.clear();\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }",
"protected static void indent(StringBuilder buffer, int number, String character) {\n\t\tfor (int i = 0; i < number; ++i) {\n\t\t\tbuffer.append(character);\n\t\t}\n\t}",
"protected String getLevelString()\n {\n\tStringBuffer buf = new StringBuffer();\n\tfor (int i = 0; i < nestLevel; i++)\n\t buf.append(\">\");\n\treturn buf.toString();\n\t}",
"public void indent()\n {\n indent += 1;\n }",
"public TypescriptStringBuilder indent() {\n indent(1);\n return this;\n }",
"public static final void indent(final StringBuilder buf, int level)\n {\n while (level > 0)\n {\n buf.append(\" \");\n --level;\n }\n }",
"private static StringBuffer Pad(int depth) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor (int i = 0; i < depth; i++)\r\n\t\t\tsb.append(\" \");\r\n\t\treturn sb;\r\n\t}",
"protected String getIndent() \r\n\t{\r\n\tStringBuffer buffer = new StringBuffer();\r\n\tfor (int i = 0; i < indent; ++i)\r\n\t\tbuffer.append(' ');\r\n\treturn buffer.toString();\r\n\t}",
"void indent(final StringBuilder xml, final int level) {\n if (INDENT != null) {\n for (int i = 0; i < level; i++)\n xml.append(INDENT);\n }\n }",
"public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"public String toString()\n {\n return getIndentation();\n }",
"public String indentedToString( int level ){\n\n\t\tString answer = \n\t\t\t\"ProgramNode.\" \n\t\t\t+ \" Name: \" + name \n\t\t\t+ \"\\n\"\n\t\t\t+ variables.indentedToString( level + 1 )\n\t\t\t+ functions.indentedToString( level + 1 )\n\t\t\t+ main.indentedToString( level + 1 );\n\n\t\treturn answer;\n\n\t}",
"private String toIndentedString(java.lang.Object o) {\r\n\t\tif (o == null) {\r\n\t\t\treturn \"null\";\r\n\t\t}\r\n\t\treturn o.toString().replace(\"\\n\", \"\\n\t\t\");\r\n\t}",
"private String toIndentedString(java.lang.Object o)\n {\n if (o == null) { return \"null\"; }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }"
] | [
"0.62158084",
"0.6089079",
"0.6065286",
"0.6041692",
"0.5961436",
"0.5941176",
"0.58985436",
"0.58968323",
"0.5859702",
"0.5787874",
"0.5753291",
"0.56833035",
"0.56788015",
"0.5676659",
"0.563637",
"0.5622822",
"0.55896926",
"0.55848014",
"0.5572809",
"0.5554271",
"0.5541248",
"0.5520268",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411",
"0.5518411"
] | 0.0 | -1 |
checks if char is a binary operator +, , , / | private boolean isOperator(char ch) {
return (ch == '+' || ch == '-' || ch == '*' || ch == '/');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isOperator(char ch)\n {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^')\n//returns true if either of the operator is found\n return true;\n//else returns false\n return false;\n }",
"private static boolean isOperator(char c) {\n return c == '+' ||\n c == '-' ||\n c == '*' ||\n c == '/';\n }",
"private static boolean check_if_operator(char c)\n {\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '^'|| c == 'r'\n || c == '(' || c == ')'|| c == 's' || c == 'c' || c == 't' || c == 'l';\n }",
"public static boolean checkOperator(String inputChar){\r\n\t\tchar tempChar = inputChar.charAt(0);\r\n\t\t\r\n\t\tswitch(tempChar){\r\n\t\t\tcase '+': return true;\r\n\t\t\tcase '-': return true;\r\n\t\t\tcase '*': return true;\r\n\t\t\tcase '/': return true;\r\n\t\t\tcase '%': return true;\r\n\t\t\tcase '&': return true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"static boolean isOperator(char c) {\n return \"+\\u2212\\u00d7\\u00f7/*\".indexOf(c) != -1;\n }",
"boolean operator(Character input){\r\n //detects operands\r\n if(input == '^'||input == '-'||input == '+'||input == '/'||input == '*'|| input =='('|| input ==')'){\r\n return true;\r\n }\r\n else\r\n return false;\r\n }",
"private boolean isOperator(char x) {\n return (x == '^' ||\n x == '*' ||\n x == '/' ||\n x == '+' ||\n x == '-');\n }",
"public static boolean isOperator(char c){\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '%' \n || c == '(' || c == ')';\n }",
"public boolean isOperator(char ch) {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^' || ch == '(' || ch == ')') {\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean isOperator(final char ch) {\n return (ch == '+' || ch == '-' \n || ch == '*' || ch == '/' \n || ch == '^');\n }",
"public boolean isOperator(char c){\n char[] operator = { '+', '-', '*', '/','^', ')', '(' };\r\n int temp = 0;\r\n for (int i = 0; i < operator.length; i++) {\r\n if (c == operator[i])\r\n temp +=1;\r\n }\r\n return temp != 0;\r\n }",
"private boolean isOperator(char input) {\n\t\tboolean isOperator = false;\n\t\t\n\t\tif((input == '+') || (input == '-') || (input == '*') || (input == '/'))\n\t\t{\n\t\t\tisOperator = true;\n\t\t}\n\t\t\n\t\treturn isOperator;\n\t}",
"public boolean validOperator(char op){\n switch(op){\n case '+':\n case '-':\n case '*':\n case '/':\n case '^':\n case ')':\n case '(':\n return true;\n }\n\n return false;\n }",
"private boolean isOperator(char c) {\n\t\treturn c == '<' || c == '=' || c == '>' || c == '!';\n\t}",
"private static boolean isOperator(String c)\n\t\t{\t\n\t\t\tif (c.equals(\"+\") || c.equals(\"-\") || c.equals(\"*\") || c.equals(\"/\") ) \n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"private boolean isOperator(String s) {\n\t\treturn (s.equals(\"+\") || s.equals(\"-\") || s.equals(\"*\") || s.equals(\"/\") || s.equals(\"^\"));\n\t}",
"private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }",
"public boolean isOperator(char operator) {\r\n \tif (operator == '+' || operator == '-' ||\r\n \t\t\t\toperator == '*' || operator == '/' || \r\n \t\t\t\toperator == '^' || operator == '%') {\r\n \t\t\r\n \t\treturn true;\r\n \t} else {\r\n \t\treturn false;\r\n \t}\r\n \r\n }",
"public static boolean isArithmeticOperand(char c)\n {\n return (c == '+') || (c == '-') || \n (c == '*') || (c == '/');\n }",
"public boolean isOperator(char ch) {\n\t\tString operatorPrefixes = \"=<>+*-/\";\n\t\tif (operatorPrefixes.indexOf(ch) != -1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"protected boolean isAddOp(char c) {\r\n\t\treturn (c == '+' || c == '-');\r\n\t}",
"public boolean isOperator(char character) {\n\t\tfor (int index= 0; index < JAVA_OPERATORS.length; index++) {\n\t\t\tif (JAVA_OPERATORS[index] == character)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isOperator() {\n\t\treturn (letter == '+') || (letter == '*') ||\n\t\t\t (letter == '%') || (letter == '-') ? true : false;\n\t}",
"private static boolean isOperator(String value){\r\n\t\tif (value.equals(\"+\") ||value.equals(\"-\")|| value.equals(\"*\")|| value.equals(\"/\"))\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}",
"private static boolean isOperand(char ch) {\n return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');\n }",
"public boolean checkOperation(char operation) {\n boolean result = false;\n if (operation == '+' | operation == '-' | operation == '/' | operation == '*') {\n result = true;\n }\n return result;\n }",
"private boolean isSign( char in )\r\n\t{\r\n\t\treturn ( in=='*' || in=='/' || in=='+' || in=='-' );\r\n\t}",
"private boolean isOperator(String operator)\n {\n switch(operator)\n {\n case \"+\":\n case \"-\":\n case \"*\":\n case \"/\":\n case \"%\":\n return true;\n default:\n return false;\n }\n }",
"private boolean isOperator(String value) {\r\n return value.equals(\"*\") || value.equals(\"/\") || value.equals(\"-\") || value.equals(\"+\") || value.equals(\"(\") || value.equals(\")\");\r\n }",
"private boolean isOperator(String input) {\n return new String(this.operator).contains(input);\n }",
"static boolean isaNonMinusOperator(char s){\n boolean nonMinusOperator = false;\n switch (s){\n case '+':nonMinusOperator = true; break;\n case '*':nonMinusOperator = true; break;\n case '/':nonMinusOperator = true; break;\n case '^':nonMinusOperator = true; break;\n }\n return nonMinusOperator;\n }",
"public static boolean checkOperand(String inputChar){\r\n\t\tchar tempChar = inputChar.charAt(0);\r\n\t\t\r\n\t\tif(tempChar >= 48 && tempChar <= 57)\r\n\t\t\treturn true;\r\n\t\telse if(tempChar == 'x' || tempChar == 'X')\r\n\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public boolean isOperand(char ch) {\n if (Character.isDigit(ch)) {\n return true;\n }\n else {\n return false;\n }\n }",
"boolean isLetra(char caracter){\n\r\n if(caracter=='+'||caracter=='-'||caracter=='/'||caracter=='^'||caracter=='*'||caracter=='('||caracter==')'){\r\n return false;\r\n }else{\r\n return true;\r\n }\r\n \r\n }",
"boolean hasOperator();",
"public boolean isChar(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif (((int) c > 64 && (int) c < 90) || ((int) c > 96 && (int) c < 123))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private static char getOperator() throws ParseError {\n TextIO.skipBlanks(); // Skip past any blanks in the input.\n\n char op = TextIO.peek();\n\n if ( op == '+' || op == '-' || op == '*' || op == '/' )\n TextIO.getAnyChar(); // Read the operator.\n else\n throw new ParseError( \"Found \" + op + \" instead of an operator.\" );\n\n return op;\n\n }",
"private boolean isSymbolOperatorAhead() {\r\n\t\treturn expression[currentIndex] == '*' || expression[currentIndex] == '+' || expression[currentIndex] == '!'\r\n\t\t\t\t|| (currentIndex + 2 < expression.length && expression[currentIndex] == ':'\r\n\t\t\t\t\t\t&& expression[currentIndex + 1] == '+' && expression[currentIndex + 2] == ':');\r\n\t}",
"public static boolean isOperator(String name) {\n if (name.length() == 0) {\n return false;\n }\n // Pieced together from various sources (JsYaccLexer, DefaultJsParser, ...)\n switch (name.charAt(0)) {\n case '+':\n return name.equals(\"+\") || name.equals(\"+@\");\n case '-':\n return name.equals(\"-\") || name.equals(\"-@\");\n case '*':\n return name.equals(\"*\") || name.equals(\"**\");\n case '<':\n return name.equals(\"<\") || name.equals(\"<<\") || name.equals(\"<=\") || name.equals(\"<=>\");\n case '>':\n return name.equals(\">\") || name.equals(\">>\") || name.equals(\">=\");\n case '=':\n return name.equals(\"=\") || name.equals(\"==\") || name.equals(\"===\") || name.equals(\"=~\");\n case '!':\n return name.equals(\"!=\") || name.equals(\"!~\");\n case '&':\n return name.equals(\"&\") || name.equals(\"&&\");\n case '|':\n return name.equals(\"|\") || name.equals(\"||\");\n case '[':\n return name.equals(\"[]\") || name.equals(\"[]=\");\n case '%':\n return name.equals(\"%\");\n case '/':\n return name.equals(\"/\");\n case '~':\n return name.equals(\"~\");\n case '^':\n return name.equals(\"^\");\n case '`':\n return name.equals(\"`\");\n default:\n return false;\n }\n }",
"private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}",
"private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }",
"private Operator checkOperator(char c){\n if (c == '+'){\n return new AddOperator(); \n }\n else if (c == '-'){\n return new SubOperator(); \n }\n else if (c == '*'){\n return new MulOperator(); \n }\n else if (c == '/'){\n return new DivOperator(); \n }\n else \n return null;\n }",
"private boolean isValid(char input) {\n if (this.isLetter(input) || this.isDigit(input) || this.isOperator(input)\n || this.isIgnored(input)) {\n return true;\n } else return false;\n }",
"private boolean isOperator (String s){ \n for (int i = 0; i<operators.length; i++){\n if (s.equals(operators[i])){\n return true;\n }\n }\n return false;\n }",
"public boolean isValidOperator(String op)\n {\n return (normalizeOperator(op) != null);\n }",
"private final boolean IsBinaryOp(String expression, String symbol, String leftExpression, String rightExpression) {\r\n boolean isBinaryOp = false;\r\n if (expression.contains(symbol)) {\r\n int openParanthesisCount = 0;\r\n int closeParanthesisCount = 0;\r\n for (int i = 0; (i < expression.length()); i++) {\r\n String currentChar = expression.substring(i, 1);\r\n if ((currentChar.equals(symbol) \r\n && (openParanthesisCount == closeParanthesisCount))) {\r\n leftExpression = expression.substring(0, i);\r\n rightExpression = expression.substring((i + 1), (expression.length() - (i - 1)));\r\n isBinaryOp = true;\r\n break;\r\n }\r\n else if (currentChar.equals(\"(\")) {\r\n openParanthesisCount++;\r\n }\r\n else if (currentChar.equals(\")\")) {\r\n closeParanthesisCount++;\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n return isBinaryOp;\r\n }",
"private boolean hasPrecedence(char op1, char op2) {\n if (op1 == '(' || op1 == ')') {\n return false;\n }\n if ((op1 == '+' || op1 == '-') && (op2 == '*' || op2 == '/')) {\n return false;\n }\n return true;\n }",
"public void checkOperator (TextView tv){\n String s = tv.getText().toString().substring(tv.getText().length() - 1);\n if (s.equals(\")\") || s.equals(\"!\")) {\n //int a = 1;\n isOperator = false;\n } else if (Character.isDigit(tv.getText().toString().charAt(tv.getText().toString().length() - 1)))\n isOperator = false;\n else\n isOperator = true;\n }",
"private boolean esDelimitador(char c){\n if ((\"+-/*^=%()\".indexOf (c) != -1)){\n return true;\n }else{\n return false;\n }\n }",
"public static boolean hasPrecedence(char op1, char op2) {\n\n\t\tif (op2 == '(' || op2 == ')') {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ((op1 == '*' || op1 == '/') && (op2 == '+' || op2 == '-')){\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"boolean hasChar();",
"public static boolean isOperator(String token) {\n if (Connective.getValueFromSymbol(token) == null) {\n return false;\n } else {\n return true;\n }\n }",
"private static boolean c(char paramChar)\r\n/* 680: */ {\r\n/* 681:674 */ return ((paramChar >= '0') && (paramChar <= '9')) || ((paramChar >= 'a') && (paramChar <= 'f')) || ((paramChar >= 'A') && (paramChar <= 'F'));\r\n/* 682: */ }",
"private static boolean isOperator(String token) {\n\t\treturn OPERATORS.containsKey(token);\n\t}",
"private boolean hasValidCharacters(final String exp)\n {\n for(int i=0; i<exp.length(); i++)\n {\n /*\n If the character is not a part of an operand, an\n operator, or a space, then expression is invalid\n */\n if(!isNumPart(i,exp)\n && !isOperator(exp.charAt(i))\n && exp.charAt(i) != ' ')\n return false; //Invalid character detected\n }\n return true; //All characters are valid\n }",
"public static boolean checkValid(String text)\r\n {\n if (text.length() == 0)\r\n {\r\n return false;\r\n }\r\n // should only have characters 0, 1, +, -.\r\n int counter = 0; // will count occurrences of + and - characters\r\n for (int i = 0; i < text.length(); i++)\r\n {\r\n char c = text.charAt(i);\r\n if (\"01+-\".indexOf(c) < 0)\r\n {\r\n return false;\r\n } \r\n if (\"+-\".indexOf(c) >= 0)\r\n {\r\n counter++;\r\n }\r\n }\r\n \r\n // should only have one occurrence of a + or - character\r\n if (counter != 1)\r\n {\r\n return false;\r\n }\r\n \r\n // the operator (+ or - character) should not be at the beginning\r\n // or end of the string\r\n char start = text.charAt(0);\r\n char end = text.charAt(text.length() - 1);\r\n if (\"01\".indexOf(start) < 0)\r\n {\r\n return false;\r\n }\r\n if (\"01\".indexOf(end) < 0)\r\n {\r\n return false;\r\n }\r\n \r\n return true;\r\n }",
"public boolean is(char chIn) {\n for (char ch: allOps) {\n if (chIn == ch){\n return true;\n }\n }\n return false;\n }",
"public static boolean containLogicOperators(String str){\n return contains(str, logicOperatorPattern);\n }",
"public boolean isOprBiner() /*const*/{\n\t\treturn Tkn!=TipeToken.Not && Tkn!=TipeToken.Bilangan && !isPunctuator();\n\t}",
"private void checkChar(String s) {\n\n\t\t// When it is any digit, just add to queue\n\t\tif (s.matches(\"\\\\d\")) {\n\t\t\tqueue.add(s);\n\n\t\t} else if (s.matches(\"[(]\")) {\n\t\t\tstack.add(s);\n\n\t\t} else if (s.matches(\"[)]\")) {\n\t\t\temptyBracket();\n\n\t\t} else if (s.matches(\"[+-]\")) {\n\t\t\tif (stack.empty()) {\n\t\t\t\tstack.add(s);\n\n\t\t\t} else {\n\t\t\t\tplusMinus(s);\n\t\t\t}\n\n\t\t} else if (s.matches(\"[*/]\")) {\n\t\t\tif (stack.empty()) {\n\t\t\t\tstack.add(s);\n\n\t\t\t} else {\n\t\t\t\tmultiDiv(s);\n\t\t\t}\n\t\t} else if (s.matches(\"[\\\\^]\")) {\n\t\t\tpower(s);\n\t\t}\n\t}",
"private boolean isChar(char c){\n\t\tif(Character.isISOControl(c))\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public boolean isOperand(String s)\n {\n return !Operator.isOperator(s) && !Brackets.isLeftBracket(s) && !Brackets.isRightBracket(s);\n }",
"public boolean isOperator(){\n return true;\n }",
"public boolean is(String strIn) {\n for (char ch: allOps) {\n if (strIn.equals(ch + \"\")){\n return true;\n }\n }\n return false;\n }",
"private boolean isArithOp() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isRelation())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.PLUS)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isArithOp())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(theNextToken.TokenType == TokenType.MINUS)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isArithOp())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"boolean ifLegalSign(char ch) {\n\t\tchar[] illegal = { '/', '\\\\', ':', '*', '?', '\"', '<', '>', '|' };\n\t\tfor (char i : illegal) {\n\t\t\tif (ch == i) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private boolean peekedHasPrecedence(\tchar peeked,\r\n\t\t\t\t\t\t\t\t\t\t\tchar current )\r\n\t{\r\n\t\tif ( ( peeked == '+' || peeked == '-' ) && ( current == '*' || current == '/' ) )\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}//end if\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}//end else\r\n\t}",
"private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }",
"private static boolean isPathCharacter (char p_char) {\n return (p_char <= '~' && (fgLookupTable[p_char] & MASK_PATH_CHARACTER) != 0);\n }",
"private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }",
"private static boolean checkPrecedence(String operator1, String operator2){\n\n\t\tif((operator1.equals(\"*\") || operator1.equals(\"/\")) && (operator2.equals(\"*\") || operator2.equals(\"/\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"*\") || operator1.equals(\"/\")) && (operator2.equals(\"+\") || operator2.equals(\"-\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"+\") || operator1.equals(\"-\")) && (operator2.equals(\"+\") || operator2.equals(\"-\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"+\") || operator1.equals(\"-\")) && (operator2.equals(\"*\") || operator2.equals(\"/\"))){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isNotOperator(String substring) {\n\t\tString[] Operators = { \"*\", \"-\", \"+\", \"/\" };\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (substring.equals(Operators[i]))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"boolean checkChar(String s1, String s2);",
"private boolean containsOperands(final String exp)\n {\n for (int i = 0; i < 10; i++) {\n if (exp.contains(\"\"+i))\n return true; //Expression contains a digit\n }\n return false; //Expression does not contain digits\n }",
"private boolean precedence(String input) {\n\t\tboolean complies = true;\n\t\t\n\t\tif(((input.equals(\"+\")) || (input.equals(\"-\"))) && (operationStack.empty() == false))\n\t\t{\n\t\t\tif((operationStack.peek().equals(\"*\")) || (operationStack.peek().equals(\"/\")))\n\t\t\t{\n\t\t\t\tcomplies = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn complies;\n\t}",
"private static boolean d(char paramChar)\r\n/* 685: */ {\r\n/* 686:678 */ return ((paramChar >= 'k') && (paramChar <= 'o')) || ((paramChar >= 'K') && (paramChar <= 'O')) || (paramChar == 'r') || (paramChar == 'R');\r\n/* 687: */ }",
"int isSymbol(String h) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tif (h.equals(\"+\") || h.equals(\"-\") || h.equals(\"*\") || h.equals(\"/\") || h.equals(\"=\")) {\r\n\t\t\t\tisToken(h);\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\tif (h.equals(\";\")) {\r\n\t\t\t\tisToken(h);\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\r\n\t\t\tif (h.contains(\"(){\")) {\r\n\t\t\t\tisToken(\"(\");\r\n\t\t\t\tisToken(\")\");\r\n\t\t\t\tisToken(\"{\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\r\n\t\t\tif (h.contains(\"*\")) {\r\n\t\t\t\tisToken(\"*\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\tif (h.contains(\"/\")) {\r\n\t\t\t\tisToken(\"/\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\tif (h.contains(\"-\")) {\r\n\t\t\t\tisToken(\"-\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\tif (h.contains(\"+\")) {\r\n\t\t\t\tisToken(\"+\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\r\n\t\t\tif (h.contains(\"(\") || h.equals(\"(\") || h.contains(\")\") || h.equals(\")\")) {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\r\n\t\t\tisToken(h);\r\n\t\t\treturn 1;\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"Program will not run because of this symbol = \" + h);\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public static String SimpleSymbols(String str) {\n \n for(int i = 0; i < str.length(); i++){\n \n if(Character.isLetter(str.charAt(i))){\n \n if(i == 0){\n return \"false\";\n }\n if(str.charAt(i - 1) != '+'){\n return \"false\";\n }\n if((i+ 1) < str.length()){\n if(str.charAt(i+1) != '+'){\n return \"false\";\n }\n }\n }\n }\n \n return \"true\";\n \n }",
"@Override\n protected boolean isValidChar(char character) {\n return character == SQ_BRACKET.getRuleStartChar() || character == BRACES.getRuleStartChar()\n || character == PARENTHESES.getRuleStartChar();\n }",
"private static boolean validOperation(String op) {\n\t\tfor (String goodOp : validOps) {\n\t\t\tif (goodOp.equalsIgnoreCase(op)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private static boolean isAlphanum(char p_char) {\n return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_ALPHA_NUMERIC) != 0);\n }",
"public boolean validate(String userInput){\n int operandCount = 0, operatorCount = 0, leftParenCount = 0, rightParenCount = 0, inputLength = userInput.length();\n char ch;\n\n for(int i = 0; i < inputLength; i++){\n ch = userInput.charAt(i);\n\n if(ch == '('){\n leftParenCount++;\n }\n else if(ch == ')'){\n rightParenCount++;\n }\n\n if(isOperator(ch)){\n operatorCount++;\n }\n if(isOperand(ch)){\n operandCount++;\n }\n }\n\n for(int i = 0; i < inputLength - 1; i++){\n char ch1 = userInput.charAt(i);\n char ch2 = userInput.charAt(i + 1);\n if(isOperator(ch1) && isOperator(ch2)){\n return false;\n }\n }\n\n if(operandCount == 1 && operatorCount == 1){\n return false;\n }\n\n if((operandCount == 0) || (operatorCount == 0) || (leftParenCount != rightParenCount)){\n return false;\n }\n\n else if(isOperator(userInput.charAt(0)) && (userInput.charAt(0) != '(')){\n return false;\n }\n\n return true; // Validation Successful!\n }",
"boolean isBinary(String str)\n\t{\n\t if(str.length() < 1) return false;\n\t \n\t for(int i=0; i<str.length(); i++){\n\t char t = str.charAt(i);\n\t if(t=='1' || t=='0') continue;\n\t else return false;\n\t }\n\t \n\t return true;\n\t}",
"public InvalidOperatorException(char op){\n super(LocalizationHelper.getMessage(LocalizationHelper.Message.INVALID_OPERATOR, Character.toString(op)));\n }",
"public boolean checkForChar(String str) {\n\t\tif (str.contains(\"a\") || str.contains(\"A\") || str.contains(\"e\") || str.contains(\"E\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// TO DO\n\n\t\treturn false;\n\t}",
"public boolean isChar(char c) \n\t{\n\t\tif (this.numBytes==1 && (charBytes[0]==c))\n\t\t\treturn true; \n\t\treturn false; \n\t}",
"private static boolean isDigit(char p_char) {\n return p_char >= '0' && p_char <= '9';\n }",
"boolean hasHasCharacter();",
"public String operator( String op);",
"public char getOper(){\n\t\treturn oper;\n\t}",
"private static boolean isPNCharsBase(int ch) {\n return\n r(ch, 'a', 'z') || r(ch, 'A', 'Z') || r(ch, 0x00C0, 0x00D6) || r(ch, 0x00D8, 0x00F6) || r(ch, 0x00F8, 0x02FF) ||\n r(ch, 0x0370, 0x037D) || r(ch, 0x037F, 0x1FFF) || r(ch, 0x200C, 0x200D) || r(ch, 0x2070, 0x218F) ||\n r(ch, 0x2C00, 0x2FEF) || r(ch, 0x3001, 0xD7FF) ||\n // Surrogate pairs\n r(ch, 0xD800, 0xDFFF) ||\n r(ch, 0xF900, 0xFDCF) || r(ch, 0xFDF0, 0xFFFD) ||\n r(ch, 0x10000, 0xEFFFF) ; // Outside the basic plane.\n }",
"boolean isAccess(char access);",
"private boolean isArithmeticCmd() {\r\n for (String cmd : ARITHMETIC_CMDS) {\r\n if (command.equals(cmd)) return true;\r\n }\r\n return false;\r\n }",
"public boolean addCharacter(String character)\r\n\t{\r\n\t\tif(character.length() != 1)\r\n\t\t\treturn false;\r\n\t\tif(character.equals(\".\"))\r\n\t\t{\r\n\t\t\tif(isDotAllowed())\r\n\t\t\t{\r\n\t\t\t\texpression += character;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if the previous character and the current character is a evaluation symbol, change the previous symbol to the new one.\r\n\t\tif(isPreEvalSymobl() && isEvalSymbol(character))\r\n\t\t\texpression = expression.substring(0, expression.length() - 1) + character;\r\n\t\telse\r\n\t\t\texpression += character;\r\n\t\treturn true;\r\n\t}",
"public static boolean hasSpecialAndDigits(String characters ){\n \n Pattern digit = Pattern.compile(\"[0-9]\");\n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n Matcher hasDigit = digit.matcher(characters);\n Matcher hasSpecial = special.matcher(characters);\n \n \n return (hasDigit.find()==true || hasSpecial.find()==true); \n \n }",
"private static boolean isPNChars(int ch) {\n return isPNChars_U(ch) || isDigit(ch) || ( ch == '-' ) || ch == 0x00B7 || r(ch, 0x300, 0x036F) || r(ch, 0x203F, 0x2040) ;\n }",
"private boolean temMaisQueUmOperador(String currentResult) {\n int contador = 1;\n\n if (currentResult.contains(\"+\")) {\n contador = contador + 1;\n }\n\n if (currentResult.contains(\"-\")) {\n contador = contador + 1;\n }\n\n if (currentResult.contains(\"*\")) {\n contador = contador + 1;\n }\n\n if (contador > 1) {\n return true;\n }\n\n return false;\n }",
"boolean isNumeric(char pChar)\n{\n\n //check each possible number\n if (pChar == '0') {return true;}\n if (pChar == '1') {return true;}\n if (pChar == '2') {return true;}\n if (pChar == '3') {return true;}\n if (pChar == '4') {return true;}\n if (pChar == '5') {return true;}\n if (pChar == '6') {return true;}\n if (pChar == '7') {return true;}\n if (pChar == '8') {return true;}\n if (pChar == '9') {return true;}\n\n return false; //not numeric\n\n}",
"private static boolean isHex(char p_char) {\n return (p_char <= 'f' && (fgLookupTable[p_char] & ASCII_HEX_CHARACTERS) != 0);\n }",
"public boolean isSpecialCharacter(String enteredCmd) {\n Pattern regex = Pattern.compile(\"[%@#€]+\");\n Matcher m = regex.matcher(enteredCmd);\n return m.matches();\n }"
] | [
"0.84016144",
"0.82763886",
"0.82393736",
"0.8213863",
"0.8208819",
"0.8194503",
"0.8130471",
"0.8108362",
"0.8084318",
"0.8051151",
"0.80436134",
"0.790663",
"0.7833102",
"0.77622855",
"0.77598953",
"0.76766527",
"0.76675236",
"0.7647602",
"0.7560746",
"0.7526682",
"0.75257236",
"0.7481775",
"0.74706465",
"0.72324556",
"0.7213043",
"0.7187515",
"0.7163092",
"0.7097793",
"0.7084454",
"0.70487905",
"0.69569784",
"0.6924468",
"0.67639",
"0.67314494",
"0.671574",
"0.6661097",
"0.6657836",
"0.6630318",
"0.6628689",
"0.6627795",
"0.6502402",
"0.650091",
"0.65007216",
"0.6489907",
"0.64868194",
"0.64767873",
"0.64208025",
"0.6408651",
"0.6338193",
"0.6320179",
"0.629025",
"0.62886375",
"0.62784994",
"0.62347376",
"0.6225519",
"0.6212388",
"0.6210123",
"0.61630857",
"0.6111452",
"0.6093461",
"0.6079969",
"0.6008696",
"0.5953655",
"0.5949438",
"0.59306437",
"0.5930341",
"0.5923186",
"0.5922767",
"0.592082",
"0.59188026",
"0.5913272",
"0.5890645",
"0.58762175",
"0.58757895",
"0.5873213",
"0.5856635",
"0.5855031",
"0.5848543",
"0.5847273",
"0.58423805",
"0.5841362",
"0.58306843",
"0.5808146",
"0.5807583",
"0.5804041",
"0.57977307",
"0.5767501",
"0.5763432",
"0.5747545",
"0.5744053",
"0.5736039",
"0.5734243",
"0.5732726",
"0.5719771",
"0.5707814",
"0.570723",
"0.57058793",
"0.569939",
"0.56894094",
"0.56877124"
] | 0.83043975 | 1 |
TODO Add two constructors | public TreeNode(char data, TreeNode left, TreeNode right) {
this.data = data;
this.left = left;
this.right = right;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public Clade() {}",
"public CyanSus() {\n\n }",
"private void __sep__Constructors__() {}",
"protected abstract void construct();",
"private TMCourse() {\n\t}",
"Reproducible newInstance();",
"public Pitonyak_09_02() {\r\n }",
"public PSRelation()\n {\n }",
"public Pasien() {\r\n }",
"public Coche() {\n super();\n }",
"public Orbiter() {\n }",
"public Cohete() {\n\n\t}",
"public Curso() {\r\n }",
"private Converter()\n\t{\n\t\tsuper();\n\t}",
"public Basic() {}",
"public AllOne() {\n \n }",
"public Aritmetica(){ }",
"private Instantiation(){}",
"public Anschrift() {\r\n }",
"public Odontologo() {\n }",
"public AntrianPasien() {\r\n\r\n }",
"Composite() {\n\n\t}",
"public Libro() {\r\n }",
"public Lanceur() {\n\t}",
"public Chauffeur() {\r\n\t}",
"public Data() {}",
"private SingleObject()\r\n {\r\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public Achterbahn() {\n }",
"public Cgg_jur_anticipo(){}",
"public Postoj() {}",
"protected Asignatura()\r\n\t{}",
"private Rekenhulp()\n\t{\n\t}",
"private SingleObject(){}",
"public Rol() {}",
"public TTau() {}",
"public mapper3c() { super(); }",
"public Alojamiento() {\r\n\t}",
"public JSFOla() {\n }",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"public MethodEx2() {\n \n }",
"public AirAndPollen() {\n\n\t}",
"public lo() {}",
"public Data() {\n \n }",
"public CSSTidier() {\n\t}",
"public SlanjePoruke() {\n }",
"defaultConstructor(){}",
"private MApi() {}",
"public Plato(){\n\t\t\n\t}",
"public Naive() {\n\n }",
"private Params()\n {\n }",
"public Phl() {\n }",
"public Lotto2(){\n\t\t\n\t}",
"public Trening() {\n }",
"public Mannschaft() {\n }",
"public BaseParameters(){\r\n\t}",
"private UsineJoueur() {}",
"public Aanbieder() {\r\n\t\t}",
"public SgaexpedbultoImpl()\n {\n }",
"public Pojo1110110(){\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"public contrustor(){\r\n\t}",
"private Composite() {\n }",
"private TAPosition()\n {\n\n }",
"public Tbdtokhaihq3() {\n super();\n }",
"public Data() {\n }",
"public Data() {\n }",
"public Carrera(){\n }",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"public Carrinho() {\n\t\tsuper();\n\t}",
"public ChaCha()\n\t{\n\t\tsuper();\n\t}",
"public Tigre() {\r\n }",
"public Corso() {\n\n }",
"public Chick() {\n\t}",
"private Cat() {\n\t\t\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public Propuestas() {}",
"@Override\n public void init() {}",
"public _355() {\n\n }",
"public Parameters() {\n\t}",
"private Infer() {\n\n }",
"public Livro() {\n\n\t}",
"private Marinator() {\n }",
"private Marinator() {\n }",
"private Sequence() {\n this(\"<Sequence>\", null, null);\n }",
"public Steganography() {}",
"protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}",
"Petunia() {\r\n\t\t}",
"public EnsembleLettre() {\n\t\t\n\t}",
"O() { super(null); }",
"public RngObject() {\n\t\t\n\t}",
"public Identity()\n {\n super( Fields.ARGS );\n }",
"public Mitarbeit() {\r\n }",
"public Generic(){\n\t\tthis(null);\n\t}",
"public Supercar() {\r\n\t\t\r\n\t}",
"public Reader(){\n\n\t}",
"@Override\n public void construct() throws IOException {\n \n }",
"private Constructor getConstructor() throws Exception {\r\n return type.getConstructor(Contact.class, label, Format.class);\r\n }",
"private TweetRiver() { }"
] | [
"0.74931204",
"0.71453786",
"0.678984",
"0.6652241",
"0.6608663",
"0.6597101",
"0.6566494",
"0.65376073",
"0.65316135",
"0.65020514",
"0.6465021",
"0.646244",
"0.64484906",
"0.6425147",
"0.641472",
"0.64128387",
"0.6403408",
"0.64014035",
"0.6395314",
"0.6388342",
"0.63850874",
"0.6376335",
"0.63751245",
"0.63715917",
"0.63624096",
"0.6360256",
"0.63588744",
"0.63585544",
"0.6357871",
"0.63506377",
"0.6323138",
"0.6318002",
"0.6312943",
"0.6304694",
"0.63034433",
"0.6302401",
"0.63017845",
"0.62940544",
"0.629046",
"0.62888414",
"0.6286644",
"0.627468",
"0.62681425",
"0.6263331",
"0.6257545",
"0.62530684",
"0.62522304",
"0.6250153",
"0.62479603",
"0.6247915",
"0.624461",
"0.62369496",
"0.6235207",
"0.62344533",
"0.6227646",
"0.6223676",
"0.62181723",
"0.6216057",
"0.62149954",
"0.62104315",
"0.6209953",
"0.62044615",
"0.6195507",
"0.6193479",
"0.6191407",
"0.61902916",
"0.61839706",
"0.6182982",
"0.6182982",
"0.61824083",
"0.617405",
"0.61711836",
"0.61705387",
"0.61650985",
"0.6163756",
"0.61551446",
"0.61549467",
"0.6151899",
"0.61514777",
"0.6149722",
"0.61490595",
"0.6148368",
"0.61351204",
"0.61332214",
"0.612885",
"0.612885",
"0.6120377",
"0.6116608",
"0.61071646",
"0.61031485",
"0.610027",
"0.60965014",
"0.60961473",
"0.6093496",
"0.60909414",
"0.608839",
"0.6081973",
"0.607727",
"0.6076889",
"0.60766506",
"0.60736454"
] | 0.0 | -1 |
Open native ParquetWriter Instance. | public ParquetWriter(ParquetWriterJniWrapper wrapper, String path, Schema schema,
boolean useHdfs3, int rep) throws IOException {
this.wrapper = wrapper;
parquetWriterHandler = wrapper.openParquetFile(path, schema, useHdfs3, rep);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ParquetWriter(ParquetWriterJniWrapper wrapper, String path, Schema schema)\n throws IOException {\n this.wrapper = wrapper;\n parquetWriterHandler = wrapper.openParquetFile(path, schema, true, 1);\n }",
"public void close() throws IOException {\n wrapper.closeParquetFile(parquetWriterHandler);\n }",
"public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder\n getParquetBuilder() {\n return getParquetFieldBuilder().getBuilder();\n }",
"public Writer openWriter() throws IOException {\n return new FileWriter(this);\n }",
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema getParquet() {\n if (schemaCase_ == 4) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }",
"public String getWriteParquetStoragePath(String project) {\n String defaultPath = config.getHdfsWorkingDirectory() + project + \"/parquet/\";\n return config.getOptional(\"kylin.storage.columnar.hdfs-dir\", defaultPath);\n }",
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema getParquet() {\n if (parquetBuilder_ == null) {\n if (schemaCase_ == 4) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n } else {\n if (schemaCase_ == 4) {\n return parquetBuilder_.getMessage();\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }\n }",
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder\n getParquetOrBuilder() {\n if (schemaCase_ == 4) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }",
"protected void open () {\n\t\tif (this.container==null)\n\t\t\ttry {\n\t\t\t\tmigrateOnDemand();\n\t\t\t\topenFiles();\n\t\t\t\tthis.blockSize = metaData.readInt();\n\t\t\t\tthis.size = metaData.readInt();\n\t\t\t}\n\t\t\tcatch (IOException ie) {\n\t\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t\t}\n\t}",
"Write createWrite();",
"public <A extends scala.Product> org.apache.spark.sql.SchemaRDD createParquetFile (java.lang.String path, boolean allowExisting, org.apache.hadoop.conf.Configuration conf, scala.reflect.api.TypeTags.TypeTag<A> evidence$2) { throw new RuntimeException(); }",
"public BinaryStream open( final String name, int flags ) throws TJSException;",
"@Deprecated\n\t public CqlFlinkRecordWriter getRecordWriter(org.apache.hadoop.fs.FileSystem filesystem, org.apache.hadoop.mapred.JobConf job, String name, org.apache.hadoop.util.Progressable progress) throws IOException\n\t {\n\t return new CqlFlinkRecordWriter(job, progress);\n\t }",
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder\n getParquetOrBuilder() {\n if ((schemaCase_ == 4) && (parquetBuilder_ != null)) {\n return parquetBuilder_.getMessageOrBuilder();\n } else {\n if (schemaCase_ == 4) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }\n }",
"@Nonnull\r\n @Override\r\n public FileSystem produce() throws IOException {\r\n return newInstance();\r\n }",
"private static native boolean open_0(long nativeObj, String filename);",
"@Override\n public OutputStream openOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }",
"public ParquetReader(String path, long startPos, long endPos, int[] columnIndices,\n long batchSize, BufferAllocator allocator, String tmp_dir) throws IOException {\n this.jniWrapper = new ParquetReaderJniWrapper(tmp_dir);\n this.allocator = allocator;\n this.nativeInstanceId = jniWrapper.nativeOpenParquetReader(path, batchSize);\n jniWrapper.nativeInitParquetReader2(\n nativeInstanceId, columnIndices, startPos, endPos);\n }",
"public ParquetConfiguration getParquetConfiguration() {\n return this.parquetConfiguration;\n }",
"@Override\n public OutputStream openInternalOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }",
"@java.lang.Override\n public boolean hasParquet() {\n return schemaCase_ == 4;\n }",
"@java.lang.Override\n public boolean hasParquet() {\n return schemaCase_ == 4;\n }",
"public Builder setParquet(\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder builderForValue) {\n if (parquetBuilder_ == null) {\n schema_ = builderForValue.build();\n onChanged();\n } else {\n parquetBuilder_.setMessage(builderForValue.build());\n }\n schemaCase_ = 4;\n return this;\n }",
"@Override\n\tprotected SQLiteDatabase openWritableDb() {\n\t\treturn super.openWritableDb();\n\t}",
"protected IndexWriter getWriter(boolean wipeIndex) throws IOException {\n Directory dir = FSDirectory.open(Paths.get(indexFolder));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n\n if (wipeIndex) {\n iwc.setOpenMode(OpenMode.CREATE);\n } else {\n iwc.setOpenMode(OpenMode.CREATE_OR_APPEND);\n }\n\n IndexWriter writer = new IndexWriter(dir, iwc);\n return writer;\n }",
"public void open() throws IOException;",
"public abstract ODatabaseInternal<?> openDatabase();",
"@NotNull OutputStream openOutputStream() throws IOException;",
"public PipedWriter(java.io.PipedReader snk) throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }",
"public synchronized native static int open();",
"public FileFormatConfiguration withParquetConfiguration(ParquetConfiguration parquetConfiguration) {\n setParquetConfiguration(parquetConfiguration);\n return this;\n }",
"public DataOutputStream openDataOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }",
"public OutputStream openOutputStream() throws IOException {\n return new FileOutputStream(this);\n }",
"public void openForWriting(String datei) throws IOException {\n \n oos = new ObjectOutputStream(new FileOutputStream(datei));\n \n }",
"private static Store open(final boolean fragmented) throws DataStoreException {\n final var connector = new StorageConnector(testData());\n if (fragmented) {\n connector.setOption(DataOptionKey.FOLIATION_REPRESENTATION, FoliationRepresentation.FRAGMENTED);\n }\n connector.setOption(OptionKey.GEOMETRY_LIBRARY, GeometryLibrary.ESRI);\n return new Store(null, connector);\n }",
"@Override\n public void open(int taskNumber, int numTasks) throws IOException {\n synchronized (JDBCUpsertOutputFormat.class) {\n if (resourceCheck) {\n resourceCheck = false;\n JdbcResourceCheck.getInstance().checkResourceStatus(this.checkProperties);\n }\n }\n openJdbc();\n }",
"public OutputStream openOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }",
"public PipedWriter() { throw new RuntimeException(\"Stub!\"); }",
"public DBAdapter open_rw() throws SQLException {\n db = DBHelper.getWritableDatabase();\n return this;\n }",
"private IndexWriter getIndexWriter() throws IOException {\n\n\t\tAnalyzer a = getAnaLyzer();\n\n\t\tif (idxWriter == null) {\n\n\t\t\tindexPath = this.analyzer + \" index-directory\";\n\t\t\tDirectory indexDir = FSDirectory.open(Paths.get(indexPath));\n\t\t\tIndexWriterConfig config = new IndexWriterConfig(a);\n\n\t\t\tconfig.setOpenMode(OpenMode.CREATE);\n\n\t\t\tidxWriter = new IndexWriter(indexDir, config);\n\t\t}\n\n\t\treturn idxWriter;\n\t}",
"@Override\n\tpublic void open() throws IOException {\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder>\n getParquetFieldBuilder() {\n if (parquetBuilder_ == null) {\n if (!(schemaCase_ == 4)) {\n schema_ =\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }\n parquetBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder>(\n (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_,\n getParentForChildren(),\n isClean());\n schema_ = null;\n }\n schemaCase_ = 4;\n onChanged();\n return parquetBuilder_;\n }",
"public IndexWriter getIndexWriter(boolean create) throws IOException {\n // Followed online tutorial\n if(indexWriter == null) {\n try {\n // Make sure and store to /var/lib/lucene/ per the spec\n Directory indexDir = FSDirectory.open(new File(\"/var/lib/lucene/index1\"));\n IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_4_10_2, new StandardAnalyzer());\n indexWriter = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return indexWriter;\n }",
"@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }",
"@Override\n\tpublic void open() throws IOException {\n\t\t\n\t}",
"public ParquetReader(String path, int[] rowGroupIndices, int[] columnIndices,\n long batchSize, BufferAllocator allocator, String tmp_dir) throws IOException {\n this.jniWrapper = new ParquetReaderJniWrapper(tmp_dir);\n this.allocator = allocator;\n this.nativeInstanceId = jniWrapper.nativeOpenParquetReader(path, batchSize);\n jniWrapper.nativeInitParquetReader(nativeInstanceId, columnIndices, rowGroupIndices);\n }",
"public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }",
"public abstract JsonWriter newWriter(OutputStream out);",
"private BufferedWriter getWriter(int secretPos) throws IOException {\n\t\tFile file = new File(\"reportingTool_tmp\" + sep + this.uniqueName + \"-\" + \"histogram_\" + this.dataset.getSecrets().get(secretPos).getFileName() + \".txt\");\n\t\tFileWriter writer = new FileWriter(file);\n\t\tBufferedWriter bw = new BufferedWriter(writer);\n\t\treturn bw;\n\t}",
"public VideoUrlHelper open() throws SQLException {\n dbMediaHelper = new DbMediaHelper(context);\n database = dbMediaHelper.getWritableDatabase();\n return this;\n }",
"void open() throws CatalogException;",
"public Dataset openTDB(String directory){\n Dataset dataset = TDBFactory.createDataset(directory);\n return dataset;\n}",
"public abstract JsonWriter newWriter(Writer writer);",
"@Override public void open() throws IOException {\n }",
"public static JsonWriter newWriter(Writer writer) {\n if (provider == JsonProvider.UNKNOWN) {\n init();\n }\n return provider.newWriter(writer);\n }",
"public PlayerDBAdapter open() throws SQLException {\r\n\t\tthis.mDbHelper = new DatabaseHelper(this.mCtx);\r\n\t\tthis.mDb = this.mDbHelper.getWritableDatabase();\r\n\t\treturn this;\r\n\t}",
"@Nonnull\n @Deprecated\n public Store<Raw> open() {\n if (persister == null) {\n persister = new NoopPersister<>();\n }\n InternalStore<Raw, BarCode> internalStore;\n\n if (memCache == null) {\n internalStore = new RealInternalStore<>(fetcher, persister, new NoopParserFunc<Raw, Raw>());\n } else {\n internalStore = new RealInternalStore<>(fetcher, persister, new NoopParserFunc<Raw, Raw>(), memCache);\n }\n return new ProxyStore<>(internalStore);\n\n }",
"private PrintWriter getStorageFile() throws IOException {\n Path path = Paths.get(filePath);\n\n // Create directories if necessary\n if (path.getParent() != null) {\n Files.createDirectories(path.getParent().getFileName());\n }\n\n return new PrintWriter(new BufferedWriter(new FileWriter(filePath)));\n }",
"private Writer createSequenceFileWriter(File outputPath) throws Exception {\n Configuration conf = new Configuration();\n org.apache.hadoop.fs.Path path = new org.apache.hadoop.fs.Path(outputPath.getAbsolutePath());\n\n CompressionCodec codec = getCompressionCodec();\n Writer.Option optPath = Writer.file(path);\n Writer.Option optKey = Writer.keyClass(keyConverter.getClassName());\n Writer.Option optValue = Writer.valueClass(valueConverter.getClassName());\n Writer.Option optCom = Writer.compression(compressionType, codec);\n\n return createWriter(conf, optPath, optKey, optValue, optCom);\n }",
"public RecordWriter<ImmutableBytesWritable, KeyValue> getRecordWriter(TaskAttemptContext context)\n throws IOException, InterruptedException {\n final Path outputPath = FileOutputFormat.getOutputPath(context);\n final Path outputdir = new FileOutputCommitter(outputPath, context).getWorkPath();\n Configuration conf = context.getConfiguration();\n final FileSystem fs = outputdir.getFileSystem(conf);\n // These configs. are from hbase-*.xml\n final long maxsize = conf.getLong(\"hbase.hregion.max.filesize\", 268435456);\n final int blocksize = conf.getInt(\"hfile.min.blocksize.size\", 65536);\n // Invented config. Add to hbase-*.xml if other than default compression.\n final String compression = conf.get(\"hfile.compression\",\n Compression.Algorithm.NONE.getName());\n\n return new RecordWriter<ImmutableBytesWritable, KeyValue>() {\n // Map of families to writers and how much has been output on the writer.\n private final Map<byte [], WriterLength> writers =\n new TreeMap<byte [], WriterLength>(Bytes.BYTES_COMPARATOR);\n private byte [] previousRow = HConstants.EMPTY_BYTE_ARRAY;\n private final byte [] now = Bytes.toBytes(System.currentTimeMillis());\n\n public void write(ImmutableBytesWritable row, KeyValue kv)\n throws IOException {\n long length = kv.getLength();\n byte [] family = kv.getFamily();\n WriterLength wl = this.writers.get(family);\n if (wl == null || ((length + wl.written) >= maxsize) &&\n Bytes.compareTo(this.previousRow, 0, this.previousRow.length,\n kv.getBuffer(), kv.getRowOffset(), kv.getRowLength()) != 0) {\n // Get a new writer.\n Path basedir = new Path(outputdir, Bytes.toString(family));\n if (wl == null) {\n wl = new WriterLength();\n this.writers.put(family, wl);\n if (this.writers.size() > 1) throw new IOException(\"One family only\");\n // If wl == null, first file in family. Ensure family dir exits.\n if (!fs.exists(basedir)) fs.mkdirs(basedir);\n }\n wl.writer = getNewWriter(wl.writer, basedir);\n Log.info(\"Writer=\" + wl.writer.getPath() +\n ((wl.written == 0)? \"\": \", wrote=\" + wl.written));\n wl.written = 0;\n }\n kv.updateLatestStamp(this.now);\n wl.writer.append(kv);\n wl.written += length;\n // Copy the row so we know when a row transition.\n this.previousRow = kv.getRow();\n }\n\n /* Create a new HFile.Writer. Close current if there is one.\n * @param writer\n * @param familydir\n * @return A new HFile.Writer.\n * @throws IOException\n */\n private HFile.Writer getNewWriter(final HFile.Writer writer,\n final Path familydir)\n throws IOException {\n close(writer);\n return new HFile.Writer(fs, StoreFile.getUniqueFile(fs, familydir),\n blocksize, compression, KeyValue.KEY_COMPARATOR);\n }\n\n private void close(final HFile.Writer w) throws IOException {\n if (w != null) {\n StoreFile.appendMetadata(w, System.currentTimeMillis(), true);\n w.close();\n }\n }\n\n public void close(TaskAttemptContext c)\n throws IOException, InterruptedException {\n for (Map.Entry<byte [], WriterLength> e: this.writers.entrySet()) {\n close(e.getValue().writer);\n }\n }\n };\n }",
"public DataOutputStream openDataOutputStream() throws IOException {\n return new DataOutputStream(openOutputStream());\n }",
"@Deprecated\n <DB extends ODatabase> DB open(final OToken iToken);",
"protected OpenFile(final BufferedWriter writer) {\n this.writer = writer;\n }",
"protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }",
"public DBAdapter open() {\n db = myDBHelper.getWritableDatabase();\n return this;\n }",
"@Test\n public void testImpalaParquetInt96() throws Exception {\n compareParquetReadersColumnar(\"field_impala_ts\", \"cp.\\\"parquet/int96_impala_1.parquet\\\"\");\n }",
"public DataBase open(){\n myDB = new MyHelper(ourContext);\n myDataBase = myDB.getWritableDatabase();\n return this;\n }",
"public PregDbAdapter open() throws SQLException {\n mDbHelper = new DatabaseHelper(mCtx);\n mDb = mDbHelper.getWritableDatabase();\n return this;\n }",
"public DaoSession openWritableDb() {\n isInitOk();\n SQLiteDatabase db = openHelper.getWritableDatabase();\n DaoMaster daoMaster = new DaoMaster(db);\n DaoSession daoSession = daoMaster.newSession();\n return daoSession;\n }",
"public Builder mergeParquet(\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema value) {\n if (parquetBuilder_ == null) {\n if (schemaCase_ == 4\n && schema_\n != com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema\n .getDefaultInstance()) {\n schema_ =\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.newBuilder(\n (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_)\n .mergeFrom(value)\n .buildPartial();\n } else {\n schema_ = value;\n }\n onChanged();\n } else {\n if (schemaCase_ == 4) {\n parquetBuilder_.mergeFrom(value);\n } else {\n parquetBuilder_.setMessage(value);\n }\n }\n schemaCase_ = 4;\n return this;\n }",
"@Override\n public void closeExportWriter() {\n }",
"public IndexWriter getIndexWriter() {\n\t\ttry {\n\t\t\tcheckDirectory();\n\t\t\tcheckIndexLocking();\n\n\t\t\tboolean create = !IndexReader.indexExists(getDirectory());\n\t\t\tIndexWriter writer = new IndexWriter(getDirectory(),getAnalyzer(),create);\n\t\t\tsetIndexWriterParameters(writer);\n\t\t\treturn writer;\n\t\t} catch(IOException ex) {\n\t\t\tthrow new LuceneIndexAccessException(\"Error during creating the writer\",ex);\n\t\t}\n\t}",
"public DBinterface open() throws SQLException {\r\n db = helper.getWritableDatabase();\r\n return this;\r\n }",
"public void setParquetConfiguration(ParquetConfiguration parquetConfiguration) {\n this.parquetConfiguration = parquetConfiguration;\n }",
"public ImageWriter createWriterInstance(Object extension)\n throws IOException\n {\n return new DcmImageWriter(this);\n }",
"public ImageWriterService() {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n }",
"public void open(){\n this.db = this.typeDatabase.getWritableDatabase();\n }",
"@Override\n protected CheckpointStorageAccess createCheckpointStorage(Path checkpointDir) throws Exception {\n return new MemoryBackendCheckpointStorageAccess(\n new JobID(), checkpointDir, null, DEFAULT_MAX_STATE_SIZE);\n }",
"public IndexWriter getIndexWriter(String indexDir) throws IOException {\n //Directory indexDir = new RAMDirectory(); //use to put directory in RAM\n Directory dir = FSDirectory.open(new File(indexDir).toPath());\n IndexWriterConfig luceneConfig = new IndexWriterConfig(new StandardAnalyzer());\n\n return(new IndexWriter(dir, luceneConfig));\n }",
"public TrucksDB open() throws SQLException {\n mDbHelper = new DatabaseHelper(mCtx);\n mDb = mDbHelper.getWritableDatabase();\n return this;\n }",
"public Writer(final FSDataOutputStream ostream, List<List<DataType>> columns,\n boolean withPageMeta)\n throws IOException {\n // LOG.debug(\"create a writer...\");\n this.outputStream = ostream;\n this.closeOutputStream = false;\n this.name = this.outputStream.toString();\n this.withPageMeta = withPageMeta;\n init(columns);\n }",
"public interface IWritableStorage extends IStorage {\n\n\tpublic void setContents(InputStream source, IProgressMonitor monitor) throws CoreException;\n\t\n\tpublic IStatus validateEdit(Object context);\n}",
"void open() throws IOException;",
"public Writer openWriter() throws IOException {\n return new NoCloseWriter(response.getWriter());\n }",
"public Builder setParquet(com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema value) {\n if (parquetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n schema_ = value;\n onChanged();\n } else {\n parquetBuilder_.setMessage(value);\n }\n schemaCase_ = 4;\n return this;\n }",
"@Override\n\t\tpublic RecordWriter<NullWritable, NullWritable> getRecordWriter(\n\t\t\t\tTaskAttemptContext context) throws IOException, InterruptedException {\n\t\t\treturn new RecordWriter<NullWritable, NullWritable>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void close(TaskAttemptContext context) {\n\t\t\t\t\t// Noop\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic void write(NullWritable k, NullWritable v) {\n\t\t\t\t\t// Noop\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public synchronized void open() throws IOException {\n if (!isOpen()) {\n boolean ok = false;\n try {\n randomAccessFile = new RandomAccessFile(this.file, \"rw\");\n int tlen = randomAccessFile.readInt();\n int tcount = randomAccessFile.readInt();\n ioBuffer = ByteBuffer.allocate(8 * tlen);\n this.tupleLength = tlen;\n this.tupleCount = tcount;\n ok = true;\n } finally {\n if (!ok) {\n try {\n close();\n } catch (IOException e) {\n LOGGER.error(\"error closing output stream\", e);\n }\n }\n }\n }\n }",
"public void openRWDB() throws SQLException {\r\n\t\tString mPath = DATABASE_PATH + DATABASE_NAME;\r\n\t\tmDataBase = SQLiteDatabase.openDatabase(mPath, null,\r\n\t\t\t\tSQLiteDatabase.OPEN_READWRITE);\r\n\t}",
"@Test\n public void testImpalaParquetInt96() throws Exception {\n compareParquetReadersColumnar(\"field_impala_ts\", \"cp.`parquet/int96_impala_1.parquet`\");\n try {\n BaseTestQuery.alterSession(PARQUET_READER_INT96_AS_TIMESTAMP, true);\n compareParquetReadersColumnar(\"field_impala_ts\", \"cp.`parquet/int96_impala_1.parquet`\");\n } finally {\n BaseTestQuery.resetSessionOption(PARQUET_READER_INT96_AS_TIMESTAMP);\n }\n }",
"public StorageOutputStream(OutputStream o) throws Exception {\r\n\tout = o;\r\n}",
"private static native boolean open_1(long nativeObj, int device);",
"public MoviesDBHelper open() throws SQLException {\n\t\tLog.d(\"INIT\", \"MoviesDBHelper.........\");\n\t\tmDbHelper = new DatabaseHelper(mContext);\n\t\tmDb = mDbHelper.getWritableDatabase();\n\t\treturn this;\n\t}",
"@Override\n\tpublic SQLiteDatabase getWritableDatabase() {\n \t// TODO Auto-generated method stub\n \tsynchronized(DBOpenHelper.class) {\n \t\tif ((myWritableDb == null) || (!myWritableDb.isOpen())) {\n \t\t\treturn super.getWritableDatabase();\n \t\t}\n \t}\n \treturn myWritableDb;\n\t}",
"public abstract void open();",
"public abstract void open();",
"@Override\n public void ensureOpen() throws IOException {\n }",
"public final Writer wrapAsRawWriter()\n {\n return mWriter.wrapAsRawWriter();\n }",
"public void open() {\n\n\t\t_database = _dbHelper.getWritableDatabase();\n\t}",
"public abstract AbstractLineWriter newWriter(OutputStream datastream)\r\n\t\t\tthrows IOException;",
"private ParquetSchema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }"
] | [
"0.6760881",
"0.5219664",
"0.51543874",
"0.49100092",
"0.48461798",
"0.4842337",
"0.47764573",
"0.47519264",
"0.469179",
"0.46633267",
"0.46581942",
"0.4624982",
"0.4599455",
"0.4587021",
"0.45542693",
"0.4517728",
"0.45059863",
"0.4465951",
"0.44623357",
"0.44333935",
"0.44013706",
"0.4393069",
"0.43403664",
"0.43392944",
"0.43368545",
"0.43234408",
"0.43214992",
"0.43070987",
"0.43033108",
"0.43010542",
"0.4291151",
"0.42824385",
"0.42810267",
"0.427098",
"0.4263686",
"0.42630813",
"0.42555332",
"0.42454827",
"0.42346644",
"0.42319041",
"0.4223823",
"0.4213736",
"0.42072573",
"0.4206435",
"0.41811782",
"0.4171088",
"0.41623065",
"0.41609403",
"0.41540015",
"0.41465637",
"0.41379133",
"0.41296804",
"0.4118061",
"0.41025323",
"0.41024888",
"0.41024333",
"0.408262",
"0.40783978",
"0.40746993",
"0.40597785",
"0.40580913",
"0.40554696",
"0.40510944",
"0.40497443",
"0.40485194",
"0.40390223",
"0.40343946",
"0.40330955",
"0.4032452",
"0.40294778",
"0.402855",
"0.40273577",
"0.4026378",
"0.40186086",
"0.40017977",
"0.39954713",
"0.3994533",
"0.39884973",
"0.39858606",
"0.39803055",
"0.39725405",
"0.3967053",
"0.39617792",
"0.395997",
"0.3959889",
"0.39534196",
"0.39463437",
"0.39457044",
"0.39409915",
"0.39374235",
"0.3931423",
"0.39281344",
"0.39252177",
"0.39139417",
"0.39139417",
"0.39091396",
"0.39053366",
"0.38907665",
"0.38803282",
"0.38696435"
] | 0.67824054 | 0 |
Open native ParquetWriter Instance. | public ParquetWriter(ParquetWriterJniWrapper wrapper, String path, Schema schema)
throws IOException {
this.wrapper = wrapper;
parquetWriterHandler = wrapper.openParquetFile(path, schema, true, 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ParquetWriter(ParquetWriterJniWrapper wrapper, String path, Schema schema,\n boolean useHdfs3, int rep) throws IOException {\n this.wrapper = wrapper;\n parquetWriterHandler = wrapper.openParquetFile(path, schema, useHdfs3, rep);\n }",
"public void close() throws IOException {\n wrapper.closeParquetFile(parquetWriterHandler);\n }",
"public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder\n getParquetBuilder() {\n return getParquetFieldBuilder().getBuilder();\n }",
"public Writer openWriter() throws IOException {\n return new FileWriter(this);\n }",
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema getParquet() {\n if (schemaCase_ == 4) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }",
"public String getWriteParquetStoragePath(String project) {\n String defaultPath = config.getHdfsWorkingDirectory() + project + \"/parquet/\";\n return config.getOptional(\"kylin.storage.columnar.hdfs-dir\", defaultPath);\n }",
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema getParquet() {\n if (parquetBuilder_ == null) {\n if (schemaCase_ == 4) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n } else {\n if (schemaCase_ == 4) {\n return parquetBuilder_.getMessage();\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }\n }",
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder\n getParquetOrBuilder() {\n if (schemaCase_ == 4) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }",
"protected void open () {\n\t\tif (this.container==null)\n\t\t\ttry {\n\t\t\t\tmigrateOnDemand();\n\t\t\t\topenFiles();\n\t\t\t\tthis.blockSize = metaData.readInt();\n\t\t\t\tthis.size = metaData.readInt();\n\t\t\t}\n\t\t\tcatch (IOException ie) {\n\t\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t\t}\n\t}",
"Write createWrite();",
"public <A extends scala.Product> org.apache.spark.sql.SchemaRDD createParquetFile (java.lang.String path, boolean allowExisting, org.apache.hadoop.conf.Configuration conf, scala.reflect.api.TypeTags.TypeTag<A> evidence$2) { throw new RuntimeException(); }",
"public BinaryStream open( final String name, int flags ) throws TJSException;",
"@Deprecated\n\t public CqlFlinkRecordWriter getRecordWriter(org.apache.hadoop.fs.FileSystem filesystem, org.apache.hadoop.mapred.JobConf job, String name, org.apache.hadoop.util.Progressable progress) throws IOException\n\t {\n\t return new CqlFlinkRecordWriter(job, progress);\n\t }",
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder\n getParquetOrBuilder() {\n if ((schemaCase_ == 4) && (parquetBuilder_ != null)) {\n return parquetBuilder_.getMessageOrBuilder();\n } else {\n if (schemaCase_ == 4) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }\n }",
"@Nonnull\r\n @Override\r\n public FileSystem produce() throws IOException {\r\n return newInstance();\r\n }",
"private static native boolean open_0(long nativeObj, String filename);",
"@Override\n public OutputStream openOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }",
"public ParquetReader(String path, long startPos, long endPos, int[] columnIndices,\n long batchSize, BufferAllocator allocator, String tmp_dir) throws IOException {\n this.jniWrapper = new ParquetReaderJniWrapper(tmp_dir);\n this.allocator = allocator;\n this.nativeInstanceId = jniWrapper.nativeOpenParquetReader(path, batchSize);\n jniWrapper.nativeInitParquetReader2(\n nativeInstanceId, columnIndices, startPos, endPos);\n }",
"public ParquetConfiguration getParquetConfiguration() {\n return this.parquetConfiguration;\n }",
"@Override\n public OutputStream openInternalOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }",
"@java.lang.Override\n public boolean hasParquet() {\n return schemaCase_ == 4;\n }",
"@java.lang.Override\n public boolean hasParquet() {\n return schemaCase_ == 4;\n }",
"public Builder setParquet(\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder builderForValue) {\n if (parquetBuilder_ == null) {\n schema_ = builderForValue.build();\n onChanged();\n } else {\n parquetBuilder_.setMessage(builderForValue.build());\n }\n schemaCase_ = 4;\n return this;\n }",
"@Override\n\tprotected SQLiteDatabase openWritableDb() {\n\t\treturn super.openWritableDb();\n\t}",
"protected IndexWriter getWriter(boolean wipeIndex) throws IOException {\n Directory dir = FSDirectory.open(Paths.get(indexFolder));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n\n if (wipeIndex) {\n iwc.setOpenMode(OpenMode.CREATE);\n } else {\n iwc.setOpenMode(OpenMode.CREATE_OR_APPEND);\n }\n\n IndexWriter writer = new IndexWriter(dir, iwc);\n return writer;\n }",
"public void open() throws IOException;",
"public abstract ODatabaseInternal<?> openDatabase();",
"@NotNull OutputStream openOutputStream() throws IOException;",
"public PipedWriter(java.io.PipedReader snk) throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }",
"public synchronized native static int open();",
"public FileFormatConfiguration withParquetConfiguration(ParquetConfiguration parquetConfiguration) {\n setParquetConfiguration(parquetConfiguration);\n return this;\n }",
"public DataOutputStream openDataOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }",
"public OutputStream openOutputStream() throws IOException {\n return new FileOutputStream(this);\n }",
"public void openForWriting(String datei) throws IOException {\n \n oos = new ObjectOutputStream(new FileOutputStream(datei));\n \n }",
"private static Store open(final boolean fragmented) throws DataStoreException {\n final var connector = new StorageConnector(testData());\n if (fragmented) {\n connector.setOption(DataOptionKey.FOLIATION_REPRESENTATION, FoliationRepresentation.FRAGMENTED);\n }\n connector.setOption(OptionKey.GEOMETRY_LIBRARY, GeometryLibrary.ESRI);\n return new Store(null, connector);\n }",
"@Override\n public void open(int taskNumber, int numTasks) throws IOException {\n synchronized (JDBCUpsertOutputFormat.class) {\n if (resourceCheck) {\n resourceCheck = false;\n JdbcResourceCheck.getInstance().checkResourceStatus(this.checkProperties);\n }\n }\n openJdbc();\n }",
"public OutputStream openOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }",
"public PipedWriter() { throw new RuntimeException(\"Stub!\"); }",
"public DBAdapter open_rw() throws SQLException {\n db = DBHelper.getWritableDatabase();\n return this;\n }",
"private IndexWriter getIndexWriter() throws IOException {\n\n\t\tAnalyzer a = getAnaLyzer();\n\n\t\tif (idxWriter == null) {\n\n\t\t\tindexPath = this.analyzer + \" index-directory\";\n\t\t\tDirectory indexDir = FSDirectory.open(Paths.get(indexPath));\n\t\t\tIndexWriterConfig config = new IndexWriterConfig(a);\n\n\t\t\tconfig.setOpenMode(OpenMode.CREATE);\n\n\t\t\tidxWriter = new IndexWriter(indexDir, config);\n\t\t}\n\n\t\treturn idxWriter;\n\t}",
"@Override\n\tpublic void open() throws IOException {\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder>\n getParquetFieldBuilder() {\n if (parquetBuilder_ == null) {\n if (!(schemaCase_ == 4)) {\n schema_ =\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance();\n }\n parquetBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder,\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder>(\n (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_,\n getParentForChildren(),\n isClean());\n schema_ = null;\n }\n schemaCase_ = 4;\n onChanged();\n return parquetBuilder_;\n }",
"public IndexWriter getIndexWriter(boolean create) throws IOException {\n // Followed online tutorial\n if(indexWriter == null) {\n try {\n // Make sure and store to /var/lib/lucene/ per the spec\n Directory indexDir = FSDirectory.open(new File(\"/var/lib/lucene/index1\"));\n IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_4_10_2, new StandardAnalyzer());\n indexWriter = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return indexWriter;\n }",
"@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }",
"@Override\n\tpublic void open() throws IOException {\n\t\t\n\t}",
"public ParquetReader(String path, int[] rowGroupIndices, int[] columnIndices,\n long batchSize, BufferAllocator allocator, String tmp_dir) throws IOException {\n this.jniWrapper = new ParquetReaderJniWrapper(tmp_dir);\n this.allocator = allocator;\n this.nativeInstanceId = jniWrapper.nativeOpenParquetReader(path, batchSize);\n jniWrapper.nativeInitParquetReader(nativeInstanceId, columnIndices, rowGroupIndices);\n }",
"public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }",
"public abstract JsonWriter newWriter(OutputStream out);",
"private BufferedWriter getWriter(int secretPos) throws IOException {\n\t\tFile file = new File(\"reportingTool_tmp\" + sep + this.uniqueName + \"-\" + \"histogram_\" + this.dataset.getSecrets().get(secretPos).getFileName() + \".txt\");\n\t\tFileWriter writer = new FileWriter(file);\n\t\tBufferedWriter bw = new BufferedWriter(writer);\n\t\treturn bw;\n\t}",
"public VideoUrlHelper open() throws SQLException {\n dbMediaHelper = new DbMediaHelper(context);\n database = dbMediaHelper.getWritableDatabase();\n return this;\n }",
"void open() throws CatalogException;",
"public Dataset openTDB(String directory){\n Dataset dataset = TDBFactory.createDataset(directory);\n return dataset;\n}",
"public abstract JsonWriter newWriter(Writer writer);",
"@Override public void open() throws IOException {\n }",
"public static JsonWriter newWriter(Writer writer) {\n if (provider == JsonProvider.UNKNOWN) {\n init();\n }\n return provider.newWriter(writer);\n }",
"public PlayerDBAdapter open() throws SQLException {\r\n\t\tthis.mDbHelper = new DatabaseHelper(this.mCtx);\r\n\t\tthis.mDb = this.mDbHelper.getWritableDatabase();\r\n\t\treturn this;\r\n\t}",
"@Nonnull\n @Deprecated\n public Store<Raw> open() {\n if (persister == null) {\n persister = new NoopPersister<>();\n }\n InternalStore<Raw, BarCode> internalStore;\n\n if (memCache == null) {\n internalStore = new RealInternalStore<>(fetcher, persister, new NoopParserFunc<Raw, Raw>());\n } else {\n internalStore = new RealInternalStore<>(fetcher, persister, new NoopParserFunc<Raw, Raw>(), memCache);\n }\n return new ProxyStore<>(internalStore);\n\n }",
"private PrintWriter getStorageFile() throws IOException {\n Path path = Paths.get(filePath);\n\n // Create directories if necessary\n if (path.getParent() != null) {\n Files.createDirectories(path.getParent().getFileName());\n }\n\n return new PrintWriter(new BufferedWriter(new FileWriter(filePath)));\n }",
"private Writer createSequenceFileWriter(File outputPath) throws Exception {\n Configuration conf = new Configuration();\n org.apache.hadoop.fs.Path path = new org.apache.hadoop.fs.Path(outputPath.getAbsolutePath());\n\n CompressionCodec codec = getCompressionCodec();\n Writer.Option optPath = Writer.file(path);\n Writer.Option optKey = Writer.keyClass(keyConverter.getClassName());\n Writer.Option optValue = Writer.valueClass(valueConverter.getClassName());\n Writer.Option optCom = Writer.compression(compressionType, codec);\n\n return createWriter(conf, optPath, optKey, optValue, optCom);\n }",
"public RecordWriter<ImmutableBytesWritable, KeyValue> getRecordWriter(TaskAttemptContext context)\n throws IOException, InterruptedException {\n final Path outputPath = FileOutputFormat.getOutputPath(context);\n final Path outputdir = new FileOutputCommitter(outputPath, context).getWorkPath();\n Configuration conf = context.getConfiguration();\n final FileSystem fs = outputdir.getFileSystem(conf);\n // These configs. are from hbase-*.xml\n final long maxsize = conf.getLong(\"hbase.hregion.max.filesize\", 268435456);\n final int blocksize = conf.getInt(\"hfile.min.blocksize.size\", 65536);\n // Invented config. Add to hbase-*.xml if other than default compression.\n final String compression = conf.get(\"hfile.compression\",\n Compression.Algorithm.NONE.getName());\n\n return new RecordWriter<ImmutableBytesWritable, KeyValue>() {\n // Map of families to writers and how much has been output on the writer.\n private final Map<byte [], WriterLength> writers =\n new TreeMap<byte [], WriterLength>(Bytes.BYTES_COMPARATOR);\n private byte [] previousRow = HConstants.EMPTY_BYTE_ARRAY;\n private final byte [] now = Bytes.toBytes(System.currentTimeMillis());\n\n public void write(ImmutableBytesWritable row, KeyValue kv)\n throws IOException {\n long length = kv.getLength();\n byte [] family = kv.getFamily();\n WriterLength wl = this.writers.get(family);\n if (wl == null || ((length + wl.written) >= maxsize) &&\n Bytes.compareTo(this.previousRow, 0, this.previousRow.length,\n kv.getBuffer(), kv.getRowOffset(), kv.getRowLength()) != 0) {\n // Get a new writer.\n Path basedir = new Path(outputdir, Bytes.toString(family));\n if (wl == null) {\n wl = new WriterLength();\n this.writers.put(family, wl);\n if (this.writers.size() > 1) throw new IOException(\"One family only\");\n // If wl == null, first file in family. Ensure family dir exits.\n if (!fs.exists(basedir)) fs.mkdirs(basedir);\n }\n wl.writer = getNewWriter(wl.writer, basedir);\n Log.info(\"Writer=\" + wl.writer.getPath() +\n ((wl.written == 0)? \"\": \", wrote=\" + wl.written));\n wl.written = 0;\n }\n kv.updateLatestStamp(this.now);\n wl.writer.append(kv);\n wl.written += length;\n // Copy the row so we know when a row transition.\n this.previousRow = kv.getRow();\n }\n\n /* Create a new HFile.Writer. Close current if there is one.\n * @param writer\n * @param familydir\n * @return A new HFile.Writer.\n * @throws IOException\n */\n private HFile.Writer getNewWriter(final HFile.Writer writer,\n final Path familydir)\n throws IOException {\n close(writer);\n return new HFile.Writer(fs, StoreFile.getUniqueFile(fs, familydir),\n blocksize, compression, KeyValue.KEY_COMPARATOR);\n }\n\n private void close(final HFile.Writer w) throws IOException {\n if (w != null) {\n StoreFile.appendMetadata(w, System.currentTimeMillis(), true);\n w.close();\n }\n }\n\n public void close(TaskAttemptContext c)\n throws IOException, InterruptedException {\n for (Map.Entry<byte [], WriterLength> e: this.writers.entrySet()) {\n close(e.getValue().writer);\n }\n }\n };\n }",
"public DataOutputStream openDataOutputStream() throws IOException {\n return new DataOutputStream(openOutputStream());\n }",
"@Deprecated\n <DB extends ODatabase> DB open(final OToken iToken);",
"protected OpenFile(final BufferedWriter writer) {\n this.writer = writer;\n }",
"protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }",
"public DBAdapter open() {\n db = myDBHelper.getWritableDatabase();\n return this;\n }",
"@Test\n public void testImpalaParquetInt96() throws Exception {\n compareParquetReadersColumnar(\"field_impala_ts\", \"cp.\\\"parquet/int96_impala_1.parquet\\\"\");\n }",
"public DataBase open(){\n myDB = new MyHelper(ourContext);\n myDataBase = myDB.getWritableDatabase();\n return this;\n }",
"public PregDbAdapter open() throws SQLException {\n mDbHelper = new DatabaseHelper(mCtx);\n mDb = mDbHelper.getWritableDatabase();\n return this;\n }",
"public DaoSession openWritableDb() {\n isInitOk();\n SQLiteDatabase db = openHelper.getWritableDatabase();\n DaoMaster daoMaster = new DaoMaster(db);\n DaoSession daoSession = daoMaster.newSession();\n return daoSession;\n }",
"public Builder mergeParquet(\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema value) {\n if (parquetBuilder_ == null) {\n if (schemaCase_ == 4\n && schema_\n != com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema\n .getDefaultInstance()) {\n schema_ =\n com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.newBuilder(\n (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_)\n .mergeFrom(value)\n .buildPartial();\n } else {\n schema_ = value;\n }\n onChanged();\n } else {\n if (schemaCase_ == 4) {\n parquetBuilder_.mergeFrom(value);\n } else {\n parquetBuilder_.setMessage(value);\n }\n }\n schemaCase_ = 4;\n return this;\n }",
"@Override\n public void closeExportWriter() {\n }",
"public IndexWriter getIndexWriter() {\n\t\ttry {\n\t\t\tcheckDirectory();\n\t\t\tcheckIndexLocking();\n\n\t\t\tboolean create = !IndexReader.indexExists(getDirectory());\n\t\t\tIndexWriter writer = new IndexWriter(getDirectory(),getAnalyzer(),create);\n\t\t\tsetIndexWriterParameters(writer);\n\t\t\treturn writer;\n\t\t} catch(IOException ex) {\n\t\t\tthrow new LuceneIndexAccessException(\"Error during creating the writer\",ex);\n\t\t}\n\t}",
"public DBinterface open() throws SQLException {\r\n db = helper.getWritableDatabase();\r\n return this;\r\n }",
"public void setParquetConfiguration(ParquetConfiguration parquetConfiguration) {\n this.parquetConfiguration = parquetConfiguration;\n }",
"public ImageWriter createWriterInstance(Object extension)\n throws IOException\n {\n return new DcmImageWriter(this);\n }",
"public ImageWriterService() {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n }",
"public void open(){\n this.db = this.typeDatabase.getWritableDatabase();\n }",
"@Override\n protected CheckpointStorageAccess createCheckpointStorage(Path checkpointDir) throws Exception {\n return new MemoryBackendCheckpointStorageAccess(\n new JobID(), checkpointDir, null, DEFAULT_MAX_STATE_SIZE);\n }",
"public IndexWriter getIndexWriter(String indexDir) throws IOException {\n //Directory indexDir = new RAMDirectory(); //use to put directory in RAM\n Directory dir = FSDirectory.open(new File(indexDir).toPath());\n IndexWriterConfig luceneConfig = new IndexWriterConfig(new StandardAnalyzer());\n\n return(new IndexWriter(dir, luceneConfig));\n }",
"public TrucksDB open() throws SQLException {\n mDbHelper = new DatabaseHelper(mCtx);\n mDb = mDbHelper.getWritableDatabase();\n return this;\n }",
"public Writer(final FSDataOutputStream ostream, List<List<DataType>> columns,\n boolean withPageMeta)\n throws IOException {\n // LOG.debug(\"create a writer...\");\n this.outputStream = ostream;\n this.closeOutputStream = false;\n this.name = this.outputStream.toString();\n this.withPageMeta = withPageMeta;\n init(columns);\n }",
"public interface IWritableStorage extends IStorage {\n\n\tpublic void setContents(InputStream source, IProgressMonitor monitor) throws CoreException;\n\t\n\tpublic IStatus validateEdit(Object context);\n}",
"void open() throws IOException;",
"public Writer openWriter() throws IOException {\n return new NoCloseWriter(response.getWriter());\n }",
"public Builder setParquet(com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema value) {\n if (parquetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n schema_ = value;\n onChanged();\n } else {\n parquetBuilder_.setMessage(value);\n }\n schemaCase_ = 4;\n return this;\n }",
"@Override\n\t\tpublic RecordWriter<NullWritable, NullWritable> getRecordWriter(\n\t\t\t\tTaskAttemptContext context) throws IOException, InterruptedException {\n\t\t\treturn new RecordWriter<NullWritable, NullWritable>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void close(TaskAttemptContext context) {\n\t\t\t\t\t// Noop\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic void write(NullWritable k, NullWritable v) {\n\t\t\t\t\t// Noop\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public synchronized void open() throws IOException {\n if (!isOpen()) {\n boolean ok = false;\n try {\n randomAccessFile = new RandomAccessFile(this.file, \"rw\");\n int tlen = randomAccessFile.readInt();\n int tcount = randomAccessFile.readInt();\n ioBuffer = ByteBuffer.allocate(8 * tlen);\n this.tupleLength = tlen;\n this.tupleCount = tcount;\n ok = true;\n } finally {\n if (!ok) {\n try {\n close();\n } catch (IOException e) {\n LOGGER.error(\"error closing output stream\", e);\n }\n }\n }\n }\n }",
"public void openRWDB() throws SQLException {\r\n\t\tString mPath = DATABASE_PATH + DATABASE_NAME;\r\n\t\tmDataBase = SQLiteDatabase.openDatabase(mPath, null,\r\n\t\t\t\tSQLiteDatabase.OPEN_READWRITE);\r\n\t}",
"@Test\n public void testImpalaParquetInt96() throws Exception {\n compareParquetReadersColumnar(\"field_impala_ts\", \"cp.`parquet/int96_impala_1.parquet`\");\n try {\n BaseTestQuery.alterSession(PARQUET_READER_INT96_AS_TIMESTAMP, true);\n compareParquetReadersColumnar(\"field_impala_ts\", \"cp.`parquet/int96_impala_1.parquet`\");\n } finally {\n BaseTestQuery.resetSessionOption(PARQUET_READER_INT96_AS_TIMESTAMP);\n }\n }",
"public StorageOutputStream(OutputStream o) throws Exception {\r\n\tout = o;\r\n}",
"private static native boolean open_1(long nativeObj, int device);",
"public MoviesDBHelper open() throws SQLException {\n\t\tLog.d(\"INIT\", \"MoviesDBHelper.........\");\n\t\tmDbHelper = new DatabaseHelper(mContext);\n\t\tmDb = mDbHelper.getWritableDatabase();\n\t\treturn this;\n\t}",
"@Override\n\tpublic SQLiteDatabase getWritableDatabase() {\n \t// TODO Auto-generated method stub\n \tsynchronized(DBOpenHelper.class) {\n \t\tif ((myWritableDb == null) || (!myWritableDb.isOpen())) {\n \t\t\treturn super.getWritableDatabase();\n \t\t}\n \t}\n \treturn myWritableDb;\n\t}",
"public abstract void open();",
"public abstract void open();",
"@Override\n public void ensureOpen() throws IOException {\n }",
"public final Writer wrapAsRawWriter()\n {\n return mWriter.wrapAsRawWriter();\n }",
"public void open() {\n\n\t\t_database = _dbHelper.getWritableDatabase();\n\t}",
"public abstract AbstractLineWriter newWriter(OutputStream datastream)\r\n\t\t\tthrows IOException;",
"private ParquetSchema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }"
] | [
"0.67824054",
"0.5219664",
"0.51543874",
"0.49100092",
"0.48461798",
"0.4842337",
"0.47764573",
"0.47519264",
"0.469179",
"0.46633267",
"0.46581942",
"0.4624982",
"0.4599455",
"0.4587021",
"0.45542693",
"0.4517728",
"0.45059863",
"0.4465951",
"0.44623357",
"0.44333935",
"0.44013706",
"0.4393069",
"0.43403664",
"0.43392944",
"0.43368545",
"0.43234408",
"0.43214992",
"0.43070987",
"0.43033108",
"0.43010542",
"0.4291151",
"0.42824385",
"0.42810267",
"0.427098",
"0.4263686",
"0.42630813",
"0.42555332",
"0.42454827",
"0.42346644",
"0.42319041",
"0.4223823",
"0.4213736",
"0.42072573",
"0.4206435",
"0.41811782",
"0.4171088",
"0.41623065",
"0.41609403",
"0.41540015",
"0.41465637",
"0.41379133",
"0.41296804",
"0.4118061",
"0.41025323",
"0.41024888",
"0.41024333",
"0.408262",
"0.40783978",
"0.40746993",
"0.40597785",
"0.40580913",
"0.40554696",
"0.40510944",
"0.40497443",
"0.40485194",
"0.40390223",
"0.40343946",
"0.40330955",
"0.4032452",
"0.40294778",
"0.402855",
"0.40273577",
"0.4026378",
"0.40186086",
"0.40017977",
"0.39954713",
"0.3994533",
"0.39884973",
"0.39858606",
"0.39803055",
"0.39725405",
"0.3967053",
"0.39617792",
"0.395997",
"0.3959889",
"0.39534196",
"0.39463437",
"0.39457044",
"0.39409915",
"0.39374235",
"0.3931423",
"0.39281344",
"0.39252177",
"0.39139417",
"0.39139417",
"0.39091396",
"0.39053366",
"0.38907665",
"0.38803282",
"0.38696435"
] | 0.6760881 | 1 |
close native ParquetWriter Instance. | public void close() throws IOException {
wrapper.closeParquetFile(parquetWriterHandler);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void closeExportWriter() {\n }",
"public void closeWriter() throws IOException{\n if(isOpen){\n dataWriter.close();\n }\n }",
"public void closeWriter () {\n try {\n writer.close();\n indexDir.close();\n indexHandler = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@TestMethod(\"testClose\")\n public void close() throws IOException {\n writer.close();\n }",
"@Override\n public void destroy() {\n if (fileWriter != null) {\n try {\n fileWriter.close();\n } catch (IOException e) {\n }\n }\n }",
"public ParquetWriter(ParquetWriterJniWrapper wrapper, String path, Schema schema,\n boolean useHdfs3, int rep) throws IOException {\n this.wrapper = wrapper;\n parquetWriterHandler = wrapper.openParquetFile(path, schema, useHdfs3, rep);\n }",
"public void close () {\n\t\tif (this.container!=null)\n\t\t\ttry {\n\t\t\t\tcontainer.close();\n\t\t\t\tcontainer = null;\n\t\t\t\tmetaData.seek(0);\n\t\t\t\tmetaData.writeInt(blockSize);\n\t\t\t\tmetaData.writeInt(size);\n\t\t\t\tmetaData.close();\n\t\t\t\treservedBitMap.close();\n\t\t\t\tupdatedBitMap.close();\n\t\t\t\tfreeList.close();\n\t\t\t}\n\t\t\tcatch (IOException ie) {\n\t\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t\t}\n\t}",
"public void close() throws IOException\n {\n writer.close();\n }",
"public void close() throws IOException {\r\n writer.close();\r\n }",
"@Override\n public void close() {\n OrcCodecPool.returnCodec(compress, codec);\n codec = null;\n }",
"public native int close() throws IOException,IllegalArgumentException;",
"public native void close();",
"public native void close();",
"public void close() throws IOException {\n\t\tif (keyClass != null) {\n\t\t keySerializer.close();\n\t\t valueSerializer.close();\n\t\t}\n\n\t\t// Write EOF_MARKER for key/value length\n\t\tWritableUtils.writeVInt(out, EOF_MARKER);\n\t\tWritableUtils.writeVInt(out, EOF_MARKER);\n\t\tdecompressedBytesWritten += 2 * WritableUtils.getVIntSize(EOF_MARKER);\n \n\t\t//Flush the stream\n\t\tout.flush();\n \n\t\tif (compressOutput) {\n\t\t // Flush\n\t\t compressedOut.finish();\n\t\t compressedOut.resetState();\n\t\t}\n \n\t\t// Close the underlying stream iff we own it...\n\t\tif (ownOutputStream) {\n\t\t out.close();\n\t\t}\n\t\telse {\n\t\t // Write the checksum\n\t\t checksumOut.finish();\n\t\t}\n\n\t\tcompressedBytesWritten = rawOut.getPos() - start;\n\n\t\tif (compressOutput) {\n\t\t // Return back the compressor\n\t\t CodecPool.returnCompressor(compressor);\n\t\t compressor = null;\n\t\t}\n\n\t\tout = null;\n\t\tif(writtenRecordsCounter != null) {\n\t\t writtenRecordsCounter.increment(numRecordsWritten);\n\t\t}\n\t }",
"public void close() {\n wrapped.close();\n }",
"public ParquetWriter(ParquetWriterJniWrapper wrapper, String path, Schema schema)\n throws IOException {\n this.wrapper = wrapper;\n parquetWriterHandler = wrapper.openParquetFile(path, schema, true, 1);\n }",
"@Override\n void close();",
"@Override\n void close();",
"@Override\n void close();",
"@Override\n void close();",
"public void close(){\r\n\t\tif (this.fileWriter != null){\r\n\t\t\ttry {\r\n\t\t\t\tthis.fileWriter.flush();\r\n\t\t\t\tthis.fileWriter.close();\r\n\t\t\t\tthis.fileWriter = null;\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlogger.error(\"Cannot close the file handle \"+this.myfilename+\". Your results might be lost. Cause: \"+e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t}",
"@Override public abstract void close();",
"public abstract void close() throws TrippiException;",
"public void close() {}",
"@Override\r\n public synchronized void close() {\r\n super.close();\r\n if (myWritableDb != null) {\r\n myWritableDb.close();\r\n myWritableDb = null;\r\n }\r\n }",
"@Override\n void close();",
"@Override\n void close();",
"@Override\n void close() throws Exception;",
"public synchronized void destroyWriter(WriterPoolMember writer) throws IOException {\n currentActive--; \n writer.close();\n }",
"public native static int close();",
"public void close() throws IOException;",
"public void close() throws IOException;",
"public void close() throws IOException;",
"public void close() throws IOException;",
"public void close() throws IOException;",
"public void close() throws IOException;",
"public void close() throws IOException;",
"public void close() throws IOException;",
"public void close() {\n }",
"public void close() {\n }",
"public void close() {\n }",
"public abstract void close(boolean preserveDataStructuresFlag);",
"public void close() {\n }",
"public void close() {\n }",
"public void close() {\n }",
"public void close() {\n dispose();\n }",
"@Override\n public void close() throws HiveException {\n \n }",
"public void closeIndexWriter() throws IOException {\n if(indexWriter != null) {\n try {\n indexWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public abstract void close();",
"public abstract void close();",
"public abstract void close();",
"public abstract void close();",
"public abstract void close();",
"public void close() {\n\t\tif (taxonomyAccessor != null && taxonomyWriter != null) {\n\t\t\ttaxonomyAccessor.release(taxonomyWriter);\n\t\t}\n\t}",
"public native void Close();",
"@Override\n void close() throws IOException;",
"@Override\n void close() throws IOException;",
"abstract void close();",
"abstract void close();",
"@Override\n public void close() { }",
"@Override\n public void close()\n {\n if (closed) {\n return;\n }\n closed = true;\n\n try {\n stats.addMaxCombinedBytesPerRow(recordReader.getMaxCombinedBytesPerRow());\n recordReader.close();\n }\n catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close() {\n\n }",
"@Override\n public void closing() {\n }",
"@Override\n @Deprecated\n public void release() {\n close();\n }",
"public void close()\n {\n }",
"@Override\n\tpublic void close() {\n\t}",
"@Override\n\tpublic void close() {\n\t}",
"@Override\n\tpublic void close() {\n\t}",
"@Override\n\tpublic void close() {\n\t}",
"@Override\n\tpublic void close() {\n\t}",
"@Override\n public void close() {\n }",
"@Override\n public void close() {\n }",
"public synchronized void close() {}"
] | [
"0.6173525",
"0.6152997",
"0.61439425",
"0.59597296",
"0.59538084",
"0.5900364",
"0.5884233",
"0.58831483",
"0.58551645",
"0.5781522",
"0.57625973",
"0.57363266",
"0.57363266",
"0.5735214",
"0.567473",
"0.56384516",
"0.5634262",
"0.5634262",
"0.5634262",
"0.5634262",
"0.5634237",
"0.5589227",
"0.55557644",
"0.5548658",
"0.55380476",
"0.5522471",
"0.5522471",
"0.55171293",
"0.551639",
"0.55147666",
"0.551049",
"0.551049",
"0.551049",
"0.551049",
"0.551049",
"0.551049",
"0.551049",
"0.551049",
"0.55041236",
"0.55041236",
"0.55041236",
"0.5499059",
"0.54943615",
"0.54943615",
"0.54943615",
"0.5491926",
"0.5481236",
"0.5476183",
"0.547478",
"0.547478",
"0.547478",
"0.547478",
"0.547478",
"0.54680145",
"0.5454951",
"0.54418015",
"0.54212695",
"0.54138744",
"0.54138744",
"0.5411158",
"0.5379935",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379932",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.5379569",
"0.53754276",
"0.53602415",
"0.5354946",
"0.53539133",
"0.53482383",
"0.53482383",
"0.53482383",
"0.53482383",
"0.53482383",
"0.5342816",
"0.5342816",
"0.534198"
] | 0.7651657 | 0 |
Write Next ArrowRecordBatch to ParquetWriter. | public void writeNext(ArrowRecordBatch recordBatch) throws IOException {
wrapper.writeNext(parquetWriterHandler, recordBatch);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void flush(boolean rollToNext)\n throws CommitFailure, TxnBatchFailure, TxnFailure, InterruptedException {\n // if there are no records do not call flush\n if (totalRecords <= 0) {\n return;\n }\n try {\n synchronized (txnBatchLock) {\n commitTxn();\n nextTxn(rollToNext);\n totalRecords = 0;\n lastUsed = System.currentTimeMillis();\n }\n } catch (StreamingException e) {\n throw new TxnFailure(txnBatch, e);\n }\n }",
"private void nextTxn(boolean rollToNext) throws StreamingException, InterruptedException, TxnBatchFailure {\n if (txnBatch.remainingTransactions() == 0) {\n closeTxnBatch();\n txnBatch = null;\n if (rollToNext) {\n txnBatch = nextTxnBatch(recordWriter);\n }\n } else if (rollToNext) {\n LOG.debug(\"Switching to next Txn for {}\", endPoint);\n txnBatch.beginNextTransaction(); // does not block\n }\n }",
"native ArrowRecordBatchBuilder[] nativeFinish(long nativeHandler) throws RuntimeException;",
"void write(Batch batch) throws InfluxDbApiNotFoundException, InfluxDbApiBadrequestException, InfluxDbTransportException;",
"private void writeBatchToFile(ArrayList<SensorEntry> batch) {\n\n\t\tFile file = new File(currFolder + \"/\" + entriesRecorded + \".csv\");\n\n\t\ttry {\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(file);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\toutputStream.write(Constants.INS_DATA_HEADER.getBytes());\n\t\t\t}\n\n\t\t\tfor (SensorEntry e : batch)\n\t\t\t\toutputStream.write((e.toRawString() + \",\" + e.getTimeRecorded() + \"\\n\").getBytes());\n\n\t\t\toutputStream.close();\n\n\t\t\tsetsOfEntriesRecorded++;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void onNext(List<RecordChart> recordCharts) {\n JSONManager.JsonRecordChartWriter(recordCharts);\n }",
"private static void writeRecords(Collection<Record> values)\n throws IOException {\n for (Record record : values) {\n writer2.writeRecord(record.makeup());\n // over write, update writer\n // System.out.println(lineNum);\n if (++lineNum > Merge.lineNumbers.get(fileNum)) {\n writer2.flush();\n writer2.close();\n\n fileNum++;\n lineNum = 0;\n writer2 = new CsvWriter(new OutputStreamWriter(\n new FileOutputStream(SORT_USER_FN + fileNum + \".csv\"),\n \"UTF-8\"), ',');\n }\n }\n\n }",
"@Bean\n public Step step1(JdbcBatchItemWriter<Person> writer) {\n return stepBuilderFactory.get(\"step1\")\n .<Person, Person> chunk(10)\n .reader(this.reader())\n .processor(this.processor())\n .writer(writer)\n .build();\n }",
"public boolean onNextRecord(IDataTableRecord record) throws Exception;",
"public ArrowRecordBatch readNext() throws IOException {\n ArrowRecordBatchBuilder recordBatchBuilder =\n jniWrapper.nativeReadNext(nativeInstanceId);\n if (recordBatchBuilder == null) {\n return null;\n }\n ArrowRecordBatchBuilderImpl recordBatchBuilderImpl =\n new ArrowRecordBatchBuilderImpl(recordBatchBuilder);\n ArrowRecordBatch batch = recordBatchBuilderImpl.build();\n if (batch == null) {\n throw new IllegalArgumentException(\"failed to build record batch\");\n }\n this.lastReadLength = batch.getLength();\n return batch;\n }",
"public abstract void write(int rowCount) throws IOException;",
"void writeRecordsToFile(List<IRecord> recordList) throws IOException;",
"public Batch next() {\n\n // exit if all partitions have been tackled\n if (partitionPointer == this.numBuffers-1) {\n return null;\n }\n\n // for each partition, dedup\n TupleReader reader = new TupleReader(getTmpFileName(this.partitionPointer), this.batchsize);\n reader.open(); \n\n Batch[] slots = new Batch[this.numBuffers-1]; \n for (int j=0; j<this.numBuffers-1; j++) {\n // Assumption: no slot overflows during probing\n // TODO: make partition recursive\n slots[j] = new Batch(this.batchsize); \n }\n \n while (!reader.isEOF()) {\n Tuple tup = reader.next(); \n int candidate = this.hashTupleH2(tup)%(this.numBuffers-1); \n if (!(slots[candidate].contains(tup))) {\n slots[candidate].add(tup);\n } \n }\n \n reader.close(); \n\n outbatch = new Batch(batchsize);\n\n for (int i=0; i<this.numBuffers-1; i++) {\n for (int k = 0; k < slots[i].size(); k++) {\n outbatch.add(slots[i].get(k));\n }\n }\n\n partitionPointer++; \n slots = null; \n \n return outbatch;\n }",
"@SuppressWarnings(\"resource\")\n @Explain(\"We close the statement later, this is just an intermediate\")\n protected void addBatch() throws SQLException {\n prepareStmt().addBatch();\n batchBacklog++;\n if (batchBacklog > batchBacklogLimit) {\n commit();\n }\n }",
"public RecordWriter<ImmutableBytesWritable, KeyValue> getRecordWriter(TaskAttemptContext context)\n throws IOException, InterruptedException {\n final Path outputPath = FileOutputFormat.getOutputPath(context);\n final Path outputdir = new FileOutputCommitter(outputPath, context).getWorkPath();\n Configuration conf = context.getConfiguration();\n final FileSystem fs = outputdir.getFileSystem(conf);\n // These configs. are from hbase-*.xml\n final long maxsize = conf.getLong(\"hbase.hregion.max.filesize\", 268435456);\n final int blocksize = conf.getInt(\"hfile.min.blocksize.size\", 65536);\n // Invented config. Add to hbase-*.xml if other than default compression.\n final String compression = conf.get(\"hfile.compression\",\n Compression.Algorithm.NONE.getName());\n\n return new RecordWriter<ImmutableBytesWritable, KeyValue>() {\n // Map of families to writers and how much has been output on the writer.\n private final Map<byte [], WriterLength> writers =\n new TreeMap<byte [], WriterLength>(Bytes.BYTES_COMPARATOR);\n private byte [] previousRow = HConstants.EMPTY_BYTE_ARRAY;\n private final byte [] now = Bytes.toBytes(System.currentTimeMillis());\n\n public void write(ImmutableBytesWritable row, KeyValue kv)\n throws IOException {\n long length = kv.getLength();\n byte [] family = kv.getFamily();\n WriterLength wl = this.writers.get(family);\n if (wl == null || ((length + wl.written) >= maxsize) &&\n Bytes.compareTo(this.previousRow, 0, this.previousRow.length,\n kv.getBuffer(), kv.getRowOffset(), kv.getRowLength()) != 0) {\n // Get a new writer.\n Path basedir = new Path(outputdir, Bytes.toString(family));\n if (wl == null) {\n wl = new WriterLength();\n this.writers.put(family, wl);\n if (this.writers.size() > 1) throw new IOException(\"One family only\");\n // If wl == null, first file in family. Ensure family dir exits.\n if (!fs.exists(basedir)) fs.mkdirs(basedir);\n }\n wl.writer = getNewWriter(wl.writer, basedir);\n Log.info(\"Writer=\" + wl.writer.getPath() +\n ((wl.written == 0)? \"\": \", wrote=\" + wl.written));\n wl.written = 0;\n }\n kv.updateLatestStamp(this.now);\n wl.writer.append(kv);\n wl.written += length;\n // Copy the row so we know when a row transition.\n this.previousRow = kv.getRow();\n }\n\n /* Create a new HFile.Writer. Close current if there is one.\n * @param writer\n * @param familydir\n * @return A new HFile.Writer.\n * @throws IOException\n */\n private HFile.Writer getNewWriter(final HFile.Writer writer,\n final Path familydir)\n throws IOException {\n close(writer);\n return new HFile.Writer(fs, StoreFile.getUniqueFile(fs, familydir),\n blocksize, compression, KeyValue.KEY_COMPARATOR);\n }\n\n private void close(final HFile.Writer w) throws IOException {\n if (w != null) {\n StoreFile.appendMetadata(w, System.currentTimeMillis(), true);\n w.close();\n }\n }\n\n public void close(TaskAttemptContext c)\n throws IOException, InterruptedException {\n for (Map.Entry<byte [], WriterLength> e: this.writers.entrySet()) {\n close(e.getValue().writer);\n }\n }\n };\n }",
"@Override\n public int writeDataRow(String exportId, int maxRetryCount, int retryTimeout, InputStream inputStream, int noOfChunks, String chunkId, int[] mapcols, int columnCount, String separator)\n throws AnaplanAPIException, SQLException {\n if (jdbcConfig.getJdbcConnectionUrl().length() > MAX_ALLOWED_CONNECTION_STRING_LENGTH) {\n throw new InvalidParameterException(\"JDBC connection string cannot be more than \" + MAX_ALLOWED_CONNECTION_STRING_LENGTH + \" characters in length!\");\n }\n try {\n LineNumberReader lnr = new LineNumberReader(\n new InputStreamReader(inputStream));\n String line;\n List rowBatch = new ArrayList<>();\n while (null != (line = lnr.readLine())) {\n String[] row;\n //ignore the header\n if (lnr.getLineNumber() == 1 && chunkId.equals(\"0\")) {\n LOG.info(\"Export {} to database started successfully\", exportId);\n } else {\n //adding a fix to handle the case when the chunk ends with a complete record\n if (lnr.getLineNumber() == 1 && !(chunkId.equals(\"0\"))) {\n String temp = lastRow.concat(line);\n if (temp.split(separator).length == columnCount) {\n line = temp;\n } else {\n row = lastRow.split(separator);\n rowBatch.add(row);\n }\n }\n row = line.split(separator);\n rowBatch.add(row);\n lastRow = line;\n if (++batch_records % batch_size == 0) {\n ++batch_no;\n //for this batch, code should have dummy values to bypass the check for chunkId and no of chunks\n // chunkId is being sent as 1 and no of chunks as 2 to bypass the check\n batchExecution(rowBatch, columnCount, mapcols, \"1\", 2, maxRetryCount, retryTimeout);\n rowBatch = new ArrayList<>(); //reset temoRowList\n batch_records = 0;\n }\n }\n }\n //Check to make sure it is not the last chunk\n //removing the last record so that it can be processed in the next chunk\n if (Integer.parseInt(chunkId) != noOfChunks - 1 && rowBatch.size() > 0) {\n rowBatch.remove(rowBatch.size() - 1);\n }\n //transfer the last batch when all of the lines from inputstream have been read\n ++batch_no;\n batchExecution(rowBatch, columnCount, mapcols, chunkId, noOfChunks, maxRetryCount, retryTimeout);\n batch_records = 0;\n //batch update exceptions captured to determine the committed and failed records\n } catch (Exception e) {\n LOG.debug(\"Error observed : {}\", e.getStackTrace());\n throw new AnaplanAPIException(e.getMessage());\n } finally {\n if (preparedStatement != null) {\n if (!preparedStatement.isClosed())\n preparedStatement.close();\n }\n }\n return datarowstransferred;\n }",
"public void putNext(Tuple tuple) throws IOException {\n\t\tint sqlPos = 1;\n\t\ttry {\n\t\t\tint size = tuple.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tObject field = tuple.get(i);\n\t\t\t\t\tif(field != null){\n\t\t\t\t\t\tif(\"\\\\N\".equalsIgnoreCase(field.toString())){\n\t\t\t\t\t\t\tfield = null;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tswitch (DataType.findType(field)) {\n\t\t\t\t\tcase DataType.NULL:\n\t\t\t\t\t\tps.setNull(sqlPos, java.sql.Types.VARCHAR);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.BOOLEAN:\n\t\t\t\t\t\tps.setBoolean(sqlPos, (Boolean) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.INTEGER:\n\t\t\t\t\t\tps.setInt(sqlPos, (Integer) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.LONG:\n\t\t\t\t\t\tps.setLong(sqlPos, (Long) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.FLOAT:\n\t\t\t\t\t\tps.setFloat(sqlPos, (Float) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.DOUBLE:\n\t\t\t\t\t\tps.setDouble(sqlPos, (Double) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.DATETIME:\n\t\t\t\t\t\tps.setTimestamp(sqlPos, new Timestamp(((DateTime) field).getMillis()));\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.BYTEARRAY:\n\t\t\t\t\t\tbyte[] b = ((DataByteArray) field).get();\n\t\t\t\t\t\tps.setBytes(sqlPos, b);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DataType.CHARARRAY:\n\t\t\t\t\t\tps.setString(sqlPos, (String) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DataType.BYTE:\n\t\t\t\t\t\tps.setByte(sqlPos, (Byte) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.MAP:\n\t\t\t\t\tcase DataType.TUPLE:\n\t\t\t\t\tcase DataType.BAG:\n\t\t\t\t\t\tthrow new RuntimeException(\"Cannot store a non-flat tuple \"\n\t\t\t\t\t\t\t\t+ \"using DbStorage\");\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new RuntimeException(\"Unknown datatype \"\n\t\t\t\t\t\t\t\t+ DataType.findType(field));\n\n\t\t\t\t\t}\n\n\t\t\t\t} catch (ExecException ee) {\n\t\t\t\t\tthrow new RuntimeException(ee);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tps.addBatch();\n\t\t\tcount++;\n\t\t\tif (count > batchSize) {\n\t\t\t\tcount = 0;\n\t\t\t\tps.executeBatch();\n\t\t\t\tps.clearBatch();\n\t\t\t\tps.clearParameters();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tlog\n\t\t\t\t.error(\"Unable to insert record:\" + tuple.toDelimitedString(\"\\t\"),\n\t\t\t\t\t\te);\n\t\t\t} catch (ExecException ee) {\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\tif (e.getErrorCode() == 1366) {\n\t\t\t\t// errors that come due to utf-8 character encoding\n\t\t\t\t// ignore these kind of errors TODO: Temporary fix - need to find a\n\t\t\t\t// better way of handling them in the argument statement itself\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"JDBC error\", e);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public boolean next(Void aVoid, ArrayWritable arrayWritable) throws IOException {\n boolean result = this.parquetReader.next(aVoid, arrayWritable);\n if(!result) {\n // if the result is false, then there are no more records\n return false;\n } else {\n // TODO(VC): Right now, we assume all records in log, have a matching base record. (which would be true until we have a way to index logs too)\n // return from delta records map if we have some match.\n String key = arrayWritable.get()[HoodieRealtimeInputFormat.HOODIE_RECORD_KEY_COL_POS].toString();\n if (LOG.isDebugEnabled()) {\n LOG.debug(String.format(\"key %s, base values: %s, log values: %s\",\n key, arrayWritableToString(arrayWritable), arrayWritableToString(deltaRecordMap.get(key))));\n }\n if (deltaRecordMap.containsKey(key)) {\n Writable[] replaceValue = deltaRecordMap.get(key).get();\n Writable[] originalValue = arrayWritable.get();\n System.arraycopy(replaceValue, 0, originalValue, 0, originalValue.length);\n arrayWritable.set(originalValue);\n }\n return true;\n }\n }",
"@Override\n public void writeExternal(ObjectOutput out) throws IOException {\n out.writeLong(size);\n out.writeInt(batch);\n\n long remaining = size >> 3;\n int step = 1 << 15;\n w.position(0);\n while (remaining > 0) {\n ByteBuffer buffer = ByteBuffer.allocate(step);\n int byteSize = w.read(buffer);\n remaining -= byteSize;\n out.write(buffer.array());\n }\n }",
"@Test\n public void usingCRDelimiterWithSmallestBufferSize() throws Exception {\n conf.set(IO_FILE_BUFFER_SIZE_KEY, \"1\");\n\n try (BZip2TextFileWriter writer = new BZip2TextFileWriter(tempFile, conf)) {\n writer.writeManyRecords(BLOCK_SIZE - 50, 999, CR);\n writer.writeRecord(100, CR);\n writer.writeRecord(10, CR);\n writer.writeRecord(10, CR);\n writer.writeRecord(10, CR);\n }\n assertRecordCountsPerSplit(tempFile, new long[] {1000, 3});\n }",
"private void writeEOFRecord() throws IOException {\n\t\tfor ( int i = 0 ; i < this.recordBuf.length ; ++i )\n\t\t\tthis.recordBuf[i] = 0;\n\t\tthis.buffer.writeRecord( this.recordBuf );\n\t\t}",
"@Override\n public void insert(Iterator<Object[]> batch) {\n while (batch.hasNext()) {\n BoundStatement boundStatement = statement.bind(batch.next());\n ResultSetFuture future = session.executeAsync(boundStatement);\n Futures.addCallback(future, callback, executor);\n }\n }",
"@Test\n public void testBatchSink() throws Exception {\n List<WALEntry> entries = new ArrayList<>(TestReplicationSink.BATCH_SIZE);\n List<Cell> cells = new ArrayList<>();\n for (int i = 0; i < (TestReplicationSink.BATCH_SIZE); i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, Put, cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n Scan scan = new Scan();\n ResultScanner scanRes = TestReplicationSink.table1.getScanner(scan);\n Assert.assertEquals(TestReplicationSink.BATCH_SIZE, scanRes.next(TestReplicationSink.BATCH_SIZE).length);\n }",
"public interface BatchWriter<A, B> {\n /// Starts a new batch of the given size\n public void start(int batchSize);\n /// Sets the object at position i of the batch.\n public void set(int i, A o);\n /// Yields the batch.\n public B getBatch();\n}",
"@Override\n public void beginDatabaseBatchWrite() throws BlockStoreException {\n if (!autoCommit) {\n return;\n }\n if (instrument)\n beginMethod(\"beginDatabaseBatchWrite\");\n\n batch = db.createWriteBatch();\n uncommited = new HashMap<ByteBuffer, byte[]>();\n uncommitedDeletes = new HashSet<ByteBuffer>();\n utxoUncommittedCache = new HashMap<ByteBuffer, UTXO>();\n utxoUncommittedDeletedCache = new HashSet<ByteBuffer>();\n autoCommit = false;\n if (instrument)\n endMethod(\"beginDatabaseBatchWrite\");\n }",
"public void setNextRecord()\n {\n currRecord++;\n if (monitor != null)\n monitor.setPercentComplete(currRecord / maxRecords * 100);\n }",
"@Override\r\n\tpublic void serialize() throws Exception {\n\t\tFile dtRowFile = new File(twcnbOutputDir, Constant.TWCNB_META_FILE);\r\n\t\tFileWriter fw = new FileWriter(dtRowFile);\r\n\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\r\n\t\tbw.write(String.valueOf(this.documentCnt));\r\n\t\tbw.newLine();\r\n\t\tbw.write(String.valueOf(this.labelCnt));\r\n\t\tbw.newLine();\r\n\t\tbw.write(String.valueOf(this.featureCnt));\r\n\t\tbw.newLine();\r\n\r\n\t\tbw.flush();\r\n\t\tbw.close();\r\n\t\tfw.close();\r\n\t}",
"private PipelineResult runWrite() {\n pipelineWrite\n .apply(GenerateSequence.from(0).to(numberOfRows))\n .apply(ParDo.of(new TestRow.DeterministicallyConstructTestRowFn()))\n .apply(ParDo.of(new TimeMonitor<>(NAMESPACE, \"write_time\")))\n .apply(\n JdbcIO.<TestRow>write()\n .withDataSourceConfiguration(JdbcIO.DataSourceConfiguration.create(dataSource))\n .withStatement(String.format(\"insert into %s values(?, ?)\", tableName))\n .withPreparedStatementSetter(new JdbcTestHelper.PrepareStatementFromTestRow()));\n\n return pipelineWrite.run();\n }",
"<H extends ResponseHandler<Result[]>> H nextBatch(H handler);",
"@Override\n protected List<WriteStatus> computeNext() {\n BoundedInMemoryExecutor<HoodieRecord<T>, HoodieInsertValueGenResult<HoodieRecord>, List<WriteStatus>> bufferedIteratorExecutor =\n null;\n try {\n final Schema schema = new Schema.Parser().parse(hoodieConfig.getSchema());\n bufferedIteratorExecutor =\n new SparkBoundedInMemoryExecutor<>(hoodieConfig, inputItr, getInsertHandler(), getTransformFunction(schema));\n final List<WriteStatus> result = bufferedIteratorExecutor.execute();\n assert result != null && !result.isEmpty() && !bufferedIteratorExecutor.isRemaining();\n return result;\n } catch (Exception e) {\n throw new HoodieException(e);\n } finally {\n if (null != bufferedIteratorExecutor) {\n bufferedIteratorExecutor.shutdownNow();\n }\n }\n }",
"void commitBatch() {\n try {\n currBatchSize = batchSize;\n batchPreparedStmt.executeBatch();\n connection.commit();\n batchPreparedStmt.clearParameters();\n } catch (SQLException e) {\n logger.log(Level.WARNING, \"SQLException \", e.getMessage());\n }\n }",
"@Override public WALRecord next() throws IgniteCheckedException {\n WALRecord rec = super.next();\n\n if (rec == null)\n return null;\n\n if (rec.type() == CHECKPOINT_RECORD) {\n CheckpointRecord cpRec = (CheckpointRecord)rec;\n\n // We roll memory up until we find a checkpoint start record registered in the status.\n if (F.eq(cpRec.checkpointId(), status.cpStartId)) {\n log.info(\"Found last checkpoint marker [cpId=\" + cpRec.checkpointId() +\n \", pos=\" + rec.position() + ']');\n\n needApplyBinaryUpdates = false;\n }\n else if (!F.eq(cpRec.checkpointId(), status.cpEndId))\n U.warn(log, \"Found unexpected checkpoint marker, skipping [cpId=\" + cpRec.checkpointId() +\n \", expCpId=\" + status.cpStartId + \", pos=\" + rec.position() + ']');\n }\n\n return rec;\n }",
"@Test\n\tpublic void testWriteRdf_withOutputRecordLimit() throws IOException {\n\t\tGeneId2NameDatFileParser parser = new GeneId2NameDatFileParser(geneId2NameDatFile);\n\t\tRdfRecordWriter<GeneId2NameDatFileParser> recordWriter = new RdfRecordWriter<GeneId2NameDatFileParser>(\n\t\t\t\toutputDirectory, RdfFormat.NTRIPLES);\n\t\tlong createdTimeInMillis20101217 = new GregorianCalendar(2010, 11, 17).getTimeInMillis();\n\t\trecordWriter.processRecordReader(parser, createdTimeInMillis20101217, 1, Collections.emptySet());\n\t\tFile outputFile = FileUtil.appendPathElementsToDirectory(outputDirectory, expectedOutputFileName);\n\t\tassertTrue(\"Output file should have been created.\", outputFile.exists());\n\t\tList<String> expectedLines = getExpectedLines(RdfUtilTest.getExpectedTimeStamp(createdTimeInMillis20101217))\n\t\t\t\t.subList(0, 30);\n\t\tassertTrue(\"N-Triple Lines should be as expected.\", FileComparisonUtil.hasExpectedLines(outputFile,\n\t\t\t\tCharacterEncoding.UTF_8, expectedLines, null, LineOrder.ANY_ORDER, ColumnOrder.AS_IN_FILE));\n\t}",
"public boolean writeStore(StoreDataBatch storeDataBatch) throws InterruptedException {\n int queueId = storeDataBatch.getQueueId();\n long beforeOfferTime = System.nanoTime();\n boolean suc = this.bufferQueue.offerQueue(queueId, storeDataBatch);\n long afterOfferTime = System.nanoTime();\n this.bufferWritePerSecondMetric.add(afterOfferTime - beforeOfferTime);\n return suc;\n }",
"private void writeToFile(List<Record> records) {\n try (\n FileWriter writer = new FileWriter(FILE_PATH);\n BufferedWriter bufferedWriter =\n new BufferedWriter(writer);\n PrintWriter out = new PrintWriter(bufferedWriter)\n\n ) {\n\n for (Record record : records) {\n out.format(\"%d;%s;%s;%s;%s;%s\\n\",\n record.getId(),\n record.getFirstName(),\n record.getLastName(),\n record.getPhone().getNumber(),\n record.getPhone().getType(),\n record.getCategory().getId());\n }\n// writer.close();\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void migrateDataByBatch() {\n\t\tpool = new HTablePool(conf, 1024);\n\t\tSQLExporter sqlExporter = \n\t\t\tnew SQLExporter(url, username, password, catalog);\n\t\twhile(sqlExporter.hasNextDataTable()) {\n\t\t\tEntry entry = sqlExporter.next();\n\t\t\tString tableName = REGION + \".\" + (String) entry.getKey();\n\t\t\tList<Map<String, Object>> list = (List<Map<String, Object>>) entry.getValue();\n\t\t\t/**\n\t\t\t * table to migrate data.\n\t\t\t */\n\t\t\tHTable table = (HTable) pool.getTable(tableName);\n\t\t\t\n\t\t\t/**\n\t\t\t * set write buffer size.\n\t\t\t */\n\t\t\ttry {\n\t\t\t\ttable.setWriteBufferSize(WRITE_BUFFER_SIZE);\n\t\t\t\ttable.setAutoFlush(false);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tList<Put> puts = new ArrayList<Put>();\n\t\t\tint size = list.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\n\t\t\t\tPut put = new Put((new Integer(i)).toString().getBytes());\n\t\t\t\t\n\t\t\t\tMap<String, Object> map = list.get(i);\n\t\t\t\tcounter ++;\n\t\t\t\t/**\n\t\t\t\t * add one row to be put.\n\t\t\t\t */\n\t\t\t\tfor (Map.Entry<String, Object> m : map.entrySet()) {\t\n\t\t\t\t\tput.add(FAMILY.getBytes(), m.getKey().getBytes(), \n\t\t\t\t\t\t\tm.getValue().toString().getBytes());\t\n\t\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * add `put` to list puts. \n\t\t\t\t */\n\t\t\t\tputs.add(put);\n\t\t\t\t\n\t\t\t\tif ((counter % LIST_PUTS_COUNTER == 0) || (i == size - 1)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttable.put(puts);\n\t\t\t\t\t\ttable.flushCommits();\n\t\t\t\t\t\tputs.clear();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else continue;\n\t\t\t}\n\t\t}\n\t}",
"private void prepareEndWriteOnePage() throws IOException {\n timeEncoder.flush(timeOut);\n valueEncoder.flush(valueOut);\n }",
"public void getNextRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.getNextRecord(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"void addBatch() throws SQLException;",
"void flushBatch();",
"protected void endBatch() {\n \n }",
"void insertBatch(List<TABLE41> recordLst);",
"public void write(long[] timestamps, Binary[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public void writeRecord(KeyValue<Writable<?>, Writable<?>> kv, String kvDelimiter) throws IOException {\n\t long fileLength = f.length();\n\t raf.seek(fileLength);\n\t\traf.writeBytes(kv.getKey() + kvDelimiter + kv.getValue()+\"\\r\\n\");\n\t}",
"public ParallelWriter(Spliterator<Node>[] src, int start, int length, GraphDatabaseService db, BufferedWriter bufferedWriter, Integer fullSize, Integer reportBlockSize, String relationshipType) {\n this.mSource = src;\n this.bufferedWriter = bufferedWriter;\n this.db = db;\n this.mStart = start;\n this.mLength = length;\n this.fullSize = fullSize;\n this.reportBlockSize = reportBlockSize;\n this.relationshipType = relationshipType;\n }",
"public void WriteRecordsTo(final String filePath) throws IOException\r\n {\r\n BufferedWriter writer = FileUtilities.OpenWriter(filePath);\r\n Iterator<ServiceRecord> iterator = records.iterator();\r\n if (iterator.hasNext())\r\n {\r\n String record = iterator.next().toString();\r\n record += Format.SERVICE_RECORD_SEPARATOR; //I repeat code here to prevent having a new line\r\n writer.write(record); //inserted into the file after the first entry.\r\n while (iterator.hasNext()) //This makes it easier to read from the file in case we have only one service record on disk\r\n {\r\n record = \"\\n\"+iterator.next().toString();\r\n record += Format.SERVICE_RECORD_SEPARATOR;\r\n writer.write(record);\r\n } \r\n } \r\n writer.close(); \r\n }",
"public void addBatch() throws SQLException {\n currentPreparedStatement.addBatch();\n }",
"public abstract void Write(WriteOptions options, WriteBatch updates) throws IOException, BadFormatException, DecodeFailedException;",
"public void partition(Operator openBase, int numOutputBuckets, int batchsize) {\n TupleWriter[] outputPartitions = new TupleWriter[numOutputBuckets]; \n for (int i = 0; i < numOutputBuckets; i++) {\n String fileName = this.getTmpFileName(i);\n try {\n outputPartitions[i] = new TupleWriter(fileName, batchsize);\n outputPartitions[i].open(); \n } catch (Exception e) {\n System.out.println(\"Failed to create outStreams!\");\n System.exit(1);\n }\n }\n\n this.inbatch = openBase.next(); \n\n while (this.inbatch != null) {\n for (int i = 0; i < inbatch.size(); i++) {\n Tuple tup = inbatch.get(i); \n int candidateBucket = hashTupleH1(tup)%numOutputBuckets;\n outputPartitions[candidateBucket].next(tup);\n }\n this.inbatch = base.next(); \n }\n\n for (int i=0; i<numOutputBuckets; i++) {\n outputPartitions[i].close();\n }\n }",
"@Override\n public void dump(AbstractPhoneBill abstractPhoneBill) throws IOException {\n File f = new File(fl); // Open up the file\n FileWriter fw = new FileWriter(f); // Prep for writer\n BufferedWriter out = new BufferedWriter(fw); // Set up the BufferedWriter\n\n // Retrieve the Collection of PhoneCall\n Collection<PhoneCall> calls = abstractPhoneBill.getPhoneCalls();\n\n // Use Iterator with PhoneCall object to go through the ArrayList\n Iterator<PhoneCall> iter = calls.iterator();\n\n // Write the customer's name on the top of the file\n out.write(abstractPhoneBill.getCustomer() + \"\\n\");\n\n // Iterate through the list\n while(iter.hasNext()) {\n // Set up the object to get it's information\n PhoneCall obj = iter.next();\n\n // Write out the caller, callee, start time, end time\n out.write(obj.getCaller() + \"\\n\");\n out.write(obj.getCallee() + \"\\n\");\n out.write(obj.getStartTimeString() + \"\\n\");\n out.write(obj.getEndTimeString() + \"\\n\");\n }\n\n // Close the file\n out.close();\n }",
"private void batchExecution(List<String[]> rowBatch, int columnCount, int[] mapcols, String chunkId, int noOfChunks,\n int maxRetryCount, int retryTimeout) throws SQLException {\n int k = 0; //retry count\n boolean retry = false;\n int rowBatchSize = rowBatch.size();\n do {\n k++;\n try {\n if (connection == null || connection.isClosed()) {\n getJdbcConnection(maxRetryCount, retryTimeout);\n }\n if (preparedStatement == null || preparedStatement.isClosed()) {\n preparedStatement = connection.prepareStatement(jdbcConfig.getJdbcQuery(),\n ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n }\n for (int i = 0; i < rowBatchSize; i++) {\n psLineEndWithSeparator(mapcols, columnCount, rowBatch.get(i));\n preparedStatement.addBatch();\n }\n // ++batch_no;\n executeBatch(rowBatchSize, maxRetryCount, retryTimeout);\n batch_records = 0;\n k = 0;\n retry = false;\n datarowstransferred = datarowstransferred + update;\n update = 0;\n not_update = 0;\n } catch (AnaplanRetryableException ae) {\n retry = true;\n }\n } while (k < maxRetryCount && retry);\n // not successful\n if (retry) {\n throw new AnaplanAPIException(\"Could not connect to the database after \" + maxRetryCount + \" retries\");\n }\n }",
"public abstract boolean writeDataItem(BDTuple tuple) throws RollbackException;",
"private void writeFields(TupleAccessor tuple) {\n for ( int i = 0; i < fieldCount; i++ ) {\n if ( isNull[i] || isRepeated[i] )\n continue;\n FieldAccessor field = tuple.getField( i );\n serializer[i].serialize( writer, field );\n }\n }",
"public synchronized void finishWriting() {\n readerNumber++; // readerNumber = -1 + 1 = 0; \n// readerNumber must be 0 at this point \n this.notifyAll(); // notify possible waiting writers or waiting readers \n }",
"@Override\n public void endRows(int depth) throws IOException {\n this.write(this.getNewline()+this.makeTabs(depth)+\"</rows>\");\n }",
"@ActionTrigger(action=\"KEY-NXTREC\", function=KeyFunction.NEXT_RECORD)\n\t\tpublic void spriden_NextRecord()\n\t\t{\n\t\t\t\n\t\t\t\tif ( !isInLastRecord(true) )\n\t\t\t\t{\n\t\t\t\t\tnextRecord();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tinfoMessage(GNls.Fget(toStr(\"SOAIDNS-0001\"), toStr(\"FORM\"), toStr(\"At last record.\")));\n\t\t\t\t}\n\t\t\t}",
"public void addBatch() throws SQLException {\n statement.addBatch();\n }",
"private void logCurrentSensorEntriesBatch() {\n\t\tentriesRecorded++;\n\n\t\tint targetBatchSize = Constants.MS_FREQUENCY_FOR_CAMERA_CAPTURE / Constants.MS_INS_SAMPLING_FREQUENCY;\n\n\t\tArrayList<SensorEntry> toProcess = new ArrayList<SensorEntry>(this.sensorEntryBatch.subList(0, targetBatchSize));\n\t\tthis.sensorEntryBatch = new ArrayList<SensorEntry>(this.sensorEntryBatch.subList(targetBatchSize,\n\t\t\t\ttargetBatchSize));\n\n\t\tthis.writeBatchToFile(toProcess);\n\t}",
"protected void attemptWriteToStage(final String outputSchema,\n final String stageName,\n final JdbcDatabase database)\n throws Exception {\n\n final CsvSerializedBuffer csvSerializedBuffer = new CsvSerializedBuffer(\n new FileBuffer(CsvSerializedBuffer.CSV_GZ_SUFFIX),\n new StagingDatabaseCsvSheetGenerator(),\n true);\n\n // create a dummy stream\\records that will bed used to test uploading\n csvSerializedBuffer.accept(new AirbyteRecordMessage()\n .withData(Jsons.jsonNode(Map.of(\"testKey\", \"testValue\")))\n .withEmittedAt(System.currentTimeMillis()));\n csvSerializedBuffer.flush();\n\n uploadRecordsToStage(database, csvSerializedBuffer, outputSchema, stageName,\n stageName.endsWith(\"/\") ? stageName : stageName + \"/\");\n }",
"@Override\n\t\t\tpublic void rowProcessed(Object[] row, ParsingContext context) {\n\t\t\t\tbar.update((int) context.currentRecord(),nrRows);\n\t\t\t\tif (context.currentRecord()==1) {\n\t\t\t\t\twriter.writeRow(context.headers());\n\t\t\t\t}\n\t\t\t\tif (!row.toString().isEmpty()) {\t\t\t\t\t\n\t\t\t\t\twriter.writeRow(row);\n\t\t\t\t}\n\t\t\t}",
"public Batch next() {\n\t\tif (hjfin){\n\t\t\tSystem.out.println(\"HashJoin:-----------------FINISHED----------------\");\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\toutbatch = new Batch(batchsize);\n\t\t//carry out until out buffer is full\n\t\twhile (!outbatch.isFull()) {\n\t\t\tif (lcurs == 0 && rcurs == 0 && eosr) { //start or end of last batch\n\n\t\t\t\tif (partition_no == numBuff - 2 && eosl) {\n\t\t\t\t\t//all done\n\t\t\t\t\thjfin = true;\n\t\t\t\t\tclose();\n\t\t\t\t\tif (!outbatch.isEmpty()) {\n\t\t\t\t\t\treturn outbatch;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t//if it is the end of last batch, continue with next partition\n\t\t\t\t\t//else, continue reading current partition\n\t\t\t\t\tif (eosl) {\n\t\t\t\t\t\tpartition_no++;\n\t\t\t\t\t\tlfname = \"HJLeft\" + partition_no + this.hashCode();\n\t\t\t\t\t\trfname = \"HJRight\" + partition_no + this.hashCode();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tin_left = new ObjectInputStream(new FileInputStream(lfname));\n\t\t\t\t\t\tin_right = new ObjectInputStream(new FileInputStream(rfname));\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tSystem.out.println(\"Join file input failed\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tjoin_hash = new Batch[numBuff - 2]; //initiate new hashtable for probing\n\n\t\t\t\t\t//initialise new buffer pages for hash table\n\t\t\t\t\tfor (int i = 0; i < numBuff - 2; i++) {\n\t\t\t\t\t\tjoin_hash[i] = new Batch(leftbatchsize);\n\t\t\t\t\t}\n\t\t\t\t\teosl = false;\n\t\t\t\t\teosr = false;\n\t\t\t\t\trightpart = null;\n\t\t\t\t\tboolean full = false;\n\t\t\t\t\t//read until left partition reaches the end\n\t\t\t\t\twhile (!eosl && !full) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tleftpart = (Batch) in_left.readObject();\n\t\t\t\t\t\t\twhile (leftpart.isEmpty() || leftpart == null) {\n\t\t\t\t\t\t\t\tleftpart = (Batch) in_left.readObject();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\t\teosl = true;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tin_left.close();\n\t\t\t\t\t\t\t} catch (Exception in) {\n\t\t\t\t\t\t\t\tin.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int left_pt = 0; left_pt < leftpart.size(); left_pt++) { //build hash table with left partition\n\t\t\t\t\t\t\tTuple temp = leftpart.elementAt(left_pt);\n\t\t\t\t\t\t\tint key = temp.dataAt(leftindex).hashCode();\n\t\t\t\t\t\t\t//hash function, different from partition phase\n\t\t\t\t\t\t\tint bucketnum = key % (numBuff - 2);\n\t\t\t\t\t\t\tjoin_hash[bucketnum].add(temp);\n\t\t\t\t\t\t\tif (join_hash[bucketnum].size() >= leftbatchsize) {\n\t\t\t\t\t\t\t\t//if buffer is not big enough, write the rest into file and continue reading next round.\n\t\t\t\t\t\t\t\teosl = false;\n\t\t\t\t\t\t\t\tString tempFile = \"tempFile\" + this.hashCode();\n\t\t\t\t\t\t\t\tfull = true;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tObjectOutputStream tempOut = new ObjectOutputStream(new FileOutputStream(tempFile));\n\t\t\t\t\t\t\t\t\tif (left_pt <= leftpart.size() - 1) {\n\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i <= left_pt; i++) {\n\t\t\t\t\t\t\t\t\t\t\tleftpart.remove(0);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//store the remaining data into temp file\n\t\t\t\t\t\t\t\t\t\tif (!leftpart.isEmpty() || leftpart == null) {\n\t\t\t\t\t\t\t\t\t\t\ttempOut.writeObject(leftpart);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tboolean done = false;\n\n\t\t\t\t\t\t\t\t\t//store the remaining data in stream to tempfile\n\t\t\t\t\t\t\t\t\twhile (!done) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\ttempOut.writeObject(in_left.readObject());\n\t\t\t\t\t\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\t\t\t\t\t\tin_left.close();\n\t\t\t\t\t\t\t\t\t\t\ttempOut.close();\n\t\t\t\t\t\t\t\t\t\t\tFile f = new File(lfname); //remove current file\n\t\t\t\t\t\t\t\t\t\t\tdone = true;\n\t\t\t\t\t\t\t\t\t\t\tf.delete();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//create a new file with the same file name, and write in the remaining data\n\t\t\t\t\t\t\t\t\tObjectOutputStream out_left = new ObjectOutputStream(new FileOutputStream(lfname));\n\t\t\t\t\t\t\t\t\tObjectInputStream temp_in = new ObjectInputStream(new FileInputStream(tempFile));\n\t\t\t\t\t\t\t\t\tdone = false;\n\n\t\t\t\t\t\t\t\t\twhile (!done) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t//write data from temp file to new file\n\t\t\t\t\t\t\t\t\t\t\tout_left.writeObject(temp_in.readObject());\n\t\t\t\t\t\t\t\t\t\t} catch (EOFException io) {\n\t\t\t\t\t\t\t\t\t\t\tdone = true;\n\t\t\t\t\t\t\t\t\t\t\ttemp_in.close();\n\t\t\t\t\t\t\t\t\t\t\tout_left.close();\n\t\t\t\t\t\t\t\t\t\t\tFile f = new File(tempFile);\n\t\t\t\t\t\t\t\t\t\t\tf.delete();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\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//prepare one right partition for probing\n\t\t\t\t\ttry {\n\t\t\t\t\t\trightpart = (Batch) in_right.readObject();\n\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\t//if there is no right partition, there is nothing to be matched with. done.\n\t\t\t\t\t\teosr = true;\n\t\t\t\t\t\tlcurs = 0;\n\t\t\t\t\t\trcurs = 0;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tin_right.close();\n\t\t\t\t\t\t} catch (Exception in) {\n\t\t\t\t\t\t\tin.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//reading right partition until it finishes\n\t\t\twhile (!eosr) {\n\t\t\t\t//load hashtable for probing\n\t\t\t\tfor (int right_pt = rcurs; right_pt < rightpart.size(); right_pt++) {\n\t\t\t\t\tTuple rightTemp = rightpart.elementAt(right_pt);\n\t\t\t\t\tint key = rightTemp.dataAt(rightindex).hashCode();\n\t\t\t\t\tint bucketnum = key % (numBuff - 2);\n\t\t\t\t\t//probe against left partition in hash table\n\t\t\t\t\tfor (int tbl_pt = lcurs; tbl_pt < join_hash[bucketnum].size(); tbl_pt++) {\n\t\t\t\t\t\tTuple leftTemp = join_hash[bucketnum].elementAt(tbl_pt);\n\t\t\t\t\t\tif (leftTemp.checkJoin(rightTemp, leftindex, rightindex)) {\n\t\t\t\t\t\t\tTuple outtuple = leftTemp.joinWith(rightTemp);\n\t\t\t\t\t\t\t//if it matches, write to outbatch\n\t\t\t\t\t\t\toutbatch.add(outtuple);\n\t\t\t\t\t\t\tif (outbatch.isFull()) {\n\t\t\t\t\t\t\t\t//if outbatch is full, write out and save pointers for next round\n\t\t\t\t\t\t\t\tif (tbl_pt == join_hash[bucketnum].size() - 1 && right_pt != rightpart.size() - 1) {\n\t\t\t\t\t\t\t\t\tlcurs = 0;\n\t\t\t\t\t\t\t\t\trcurs = right_pt + 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tlcurs = tbl_pt + 1;\n\t\t\t\t\t\t\t\t\trcurs = right_pt;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn outbatch;\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\tlcurs = 0; //left part finished, reset leftcurs\n\n\t\t\t\t}\n\t\t\t\trcurs = 0; //right part finished, reset rightcurs\n\t\t\t\ttry {\n\t\t\t\t\trightpart = (Batch) in_right.readObject();\n\t\t\t\t\twhile (rightpart == null || rightpart.isEmpty()) {\n\t\t\t\t\t\trightpart = (Batch) in_right.readObject();\n\t\t\t\t\t}\n\n\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t//end of right table partition\n\t\t\t\t\teosr = true;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tin_right.close();\n\t\t\t\t\t} catch (IOException io) {\n\t\t\t\t\t\tio.printStackTrace();\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn outbatch;\n\t}",
"public ParquetWriter(ParquetWriterJniWrapper wrapper, String path, Schema schema)\n throws IOException {\n this.wrapper = wrapper;\n parquetWriterHandler = wrapper.openParquetFile(path, schema, true, 1);\n }",
"void addLogToBatch(TelemetryData log) throws IOException;",
"@Override\n\tpublic boolean moveNext() {\n\t\t/* the first bit signalises whether the row is deleted. \n\t\t * The folowing [schema.types.length] bits signal whether the field is NULL\n\t\t * the following 8 - (schema.types.length % 8 + 1) bits are disregarded\n\t\t */\n\t\t\n\t\ttry {\n\t\t\tint flags[] = new int[schema.types.length / 8 + 1];\n\t\t\tfor (int i = 0; i < flags.length; i++) {\n\t\t\t\tflags[i] = reader.read();\n\t\t\t\tmyBufferPosition++;\n\t\t\t\tif (flags[i] == -1) {\n\t\t\t\t\t//EOF\n\t\t\t\t\tcleanUp();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tString[] values = new String[schema.types.length];\n\t\t\tTypeInt intConv = new TypeInt();\n\t\t\tfor (int i = 0; i < schema.types.length; i++) {\n\t\t\t\tint size = 0;\n\t\t\t\tif (schema.types[i].variableSize) {\n\t\t\t\t\tbyte[] sizeByte = new byte[4];\n\t\t\t\t\treader.read(sizeByte);\n\t\t\t\t\tmyBufferPosition += sizeByte.length;\n\t\t\t\t\tsize = intConv.getIntFromByteArr(sizeByte);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsize = schema.types[i].size;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint index = (i + 1) / 8;\n\t\t\t\tint mask = 0b10000000 >> ((i + 1) % 8);\n\t\t\t\tif ((flags[index] & mask) > 1) {\n\t\t\t\t\tvalues[i] = null;\n\t\t\t\t}\n\t\t\t\telse if (size > 0) {\n\t\t\t\t\tbyte[] buf = new byte[size];\n\t\t\t\t\treader.read(buf);\n\t\t\t\t\tmyBufferPosition += buf.length;\n\t\t\t\t\tvalues[i] = schema.types[i].fromByteArr(buf);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flags[0] >> 7 == 1) { //record is deleted\n\t\t\t\tdelCounter++;\n\t\t\t\treturn moveNext();\n\t\t\t}\n\t\t\tthis.current = new Tuple(schema, values);\n\t\t\trecordCounter++;\n\t\t\treturn true;\n\t\t\t\n\t\t} catch (final IOException e) {\n\t\t\tthrow new RuntimeException(\"could not read: \" + this.reader + \n\t\t\t\t\". Error is \" + e);\n\t\t}\n\t}",
"com.google.protobuf.ByteString\n getNextStepBytes();",
"protected void writeRecordData(RecordHeader header, RecordWriter rw) throws IOException {\n if (rw.getDataLength() > header.dataCapacity) {\n throw new IOException (\"Record data does not fit\");\n }\n header.dataCount = rw.getDataLength();\n file.seek(header.dataPointer);\n rw.writeTo(file);\n }",
"private void writeBuffer( byte b[], int offset, int length) throws IOException\r\n\t{\r\n\t\t// Write the chunk length as a hex number.\r\n\t\tfinal String size = Integer.toHexString(length);\r\n\t\tthis.out.write(size.getBytes());\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// Write the data.\r\n\t\tif (length != 0 )\r\n\t\t\tthis.out.write(b, offset, length);\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// And flush the real stream.\r\n\t\tthis.out.flush();\r\n\t}",
"public void write(OutputStream out) throws Exception {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tif (this.raf == null) {\r\n\r\n\t\t\t\tDataOutputStream outStream = new DataOutputStream(out);\r\n\r\n\t\t\t\tthis.header.numberOfRecords = v_records.size();\r\n\t\t\t\tthis.header.write(outStream);\r\n\r\n\t\t\t\t/* Now write all the records */\r\n\t\t\t\tint t_recCount = v_records.size();\r\n\t\t\t\tfor (int i = 0; i < t_recCount; i++) { /*\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t * iterate through\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t * records\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\tObject[] t_values = (Object[]) v_records.elementAt(i);\r\n\r\n\t\t\t\t\twriteRecord(outStream, t_values);\r\n\t\t\t\t}\r\n\r\n\t\t\t\toutStream.write(END_OF_DATA);\r\n\t\t\t\toutStream.flush();\r\n\t\t\t} else {\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * everything is written already. just update the header for\r\n\t\t\t\t * record count and the END_OF_DATA mark\r\n\t\t\t\t */\r\n\t\t\t\tthis.header.numberOfRecords = this.recordCount;\r\n\t\t\t\tthis.raf.seek(0);\r\n\t\t\t\tthis.header.write(this.raf);\r\n\t\t\t\tthis.raf.seek(raf.length());\r\n\t\t\t\tthis.raf.writeByte(END_OF_DATA);\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\tthrow new DBFException(e.getMessage());\r\n\t\t}\r\n\t}",
"protected void emitBatch(){\n synchronized(this){\n\n revokeSendBatch();\n\n int viewn = getCurrentViewNumber();\n long seqn = getStateLog().getNextPrePrepareSEQ();\n\n PBFTRequestInfo rinfo = getRequestInfo();\n if(!rinfo.hasSomeWaiting()){\n return;\n }\n /* creates a new pre-prepare message */\n PBFTPrePrepare pp = null;\n\n int size = 0;\n\n /* while has not achieved the batch size and there is digests in queue */\n String digest = null;\n while(size < getBatchSize() && (digest = rinfo.getFirtRequestDigestWaiting())!= null){\n if(pp == null){\n pp = new PBFTPrePrepare(viewn, seqn, getLocalServerID());\n }\n pp.getDigests().add(digest);\n rinfo.assign(digest, RequestState.PREPREPARED);\n size += 1;//rinfo.getRequestSize(digest);\n }\n\n if(pp == null){\n return;\n }\n \n /* emits pre-prepare */\n emitPrePrepare(pp);\n //emit(pp, getLocalGroup().minus(getLocalProcess()));\n\n /* update log current pre-prepare */\n handle(pp);\n\n /* if there is digest then it will schedule a send batch */\n if(rinfo.hasSomeWaiting()){\n batch();\n }//end if digest queue is no empty\n\n }//end synchronized(this)\n }",
"private void writeOutput(\n RecordWriter<Writable, Object> writer,\n TaskAttemptContext context) throws IOException, InterruptedException {\n NullWritable nullWritable = NullWritable.get();\n try (ManifestCommitterTestSupport.CloseWriter<Writable, Object> cw =\n new ManifestCommitterTestSupport.CloseWriter<>(writer, context)) {\n writer.write(KEY_1, VAL_1);\n writer.write(null, nullWritable);\n writer.write(null, VAL_1);\n writer.write(nullWritable, VAL_2);\n writer.write(KEY_2, nullWritable);\n writer.write(KEY_1, null);\n writer.write(null, null);\n writer.write(KEY_2, VAL_2);\n writer.close(context);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void prepareToWrite(RecordWriter writer)\n\t\t\tthrows IOException {\n\t\tps = null;\n\t\tcon = null;\n\t\tString columns = \"?\";\n\t\tfor(int fields = 1; fields < fieldSize; fields++){\n\t\t\tcolumns = columns + \",?\";\n\t\t}\n\t\tString insertQuery = \"insert into \"+tableName+\" values (\"+columns+\")\";\n\t\ttry {\n\t\t\tif (user == null || pass == null) {\n\t\t\t\tcon = DriverManager.getConnection(jdbcURL);\n\t\t\t} else {\n\t\t\t\tcon = DriverManager.getConnection(jdbcURL, user, pass);\n\t\t\t}\n\t\t\tcon.setAutoCommit(false);\n\t\t\tps = con.prepareStatement(insertQuery);\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(\"Unable to connect to JDBC @\" + jdbcURL);\n\t\t\tthrow new IOException(\"JDBC Error\", e);\n\t\t}\n\t\tcount = 0;\n\t}",
"public void write(long[] timestamps, long[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"private long writeFreeList(long nextPageId) throws IgniteCheckedException {\n long curId = 0L;\n long curPage = 0L;\n long curAddr = 0L;\n\n PagesListMetaIO curIo = null;\n\n try {\n for (int bucket = 0; bucket < buckets; bucket++) {\n Stripe[] tails = getBucket(bucket);\n\n if (tails != null) {\n int tailIdx = 0;\n\n while (tailIdx < tails.length) {\n int written = curPage != 0L ?\n curIo.addTails(pageMem.realPageSize(grpId), curAddr, bucket, tails, tailIdx) :\n 0;\n\n if (written == 0) {\n if (nextPageId == 0L) {\n nextPageId = allocatePageNoReuse();\n\n if (curPage != 0L) {\n curIo.setNextMetaPageId(curAddr, nextPageId);\n\n releaseAndClose(curId, curPage, curAddr);\n }\n\n curId = nextPageId;\n curPage = acquirePage(curId, IoStatisticsHolderNoOp.INSTANCE);\n curAddr = writeLock(curId, curPage);\n\n curIo = PagesListMetaIO.VERSIONS.latest();\n\n curIo.initNewPage(curAddr, curId, pageSize(), metrics);\n }\n else {\n releaseAndClose(curId, curPage, curAddr);\n\n curId = nextPageId;\n curPage = acquirePage(curId, IoStatisticsHolderNoOp.INSTANCE);\n curAddr = writeLock(curId, curPage);\n\n curIo = PagesListMetaIO.VERSIONS.forPage(curAddr);\n\n curIo.resetCount(curAddr);\n }\n\n nextPageId = curIo.getNextMetaPageId(curAddr);\n }\n else\n tailIdx += written;\n }\n }\n }\n }\n finally {\n releaseAndClose(curId, curPage, curAddr);\n }\n\n return nextPageId;\n }",
"public void write(long[] timestamps, float[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"@Override\n\t@CoreTransactional\n\tpublic void write(List<? extends WrappedGenericEntityRelationship> items) throws Exception {\n\n\t\tList<CandidateWorkRequest> candidateWorkRequests = new LinkedList<>();\n\n\t\tfor (WrappedGenericEntityRelationship wrappedGenericEntityRelationship : items) {\n\t\t\tthis.recordCount++;\n\t\t\tString message = String.format(\"record=[%d],message=[%s]\",\n\t\t\t\t\t\tthis.recordCount, wrappedGenericEntityRelationship.getMessage());\n\n\t\t\tcandidateWorkRequests.add(this.earleyUploadUtils.candidateWorkRequestFrom(this.transactionId,\n\t\t\t\t\tmessage, wrappedGenericEntityRelationship.getSuccess(), this.userId));\n\n\t\t\tthis.candidateWorkRequestRepository.save(candidateWorkRequests);\n\t\t}\n\t}",
"public void dump(AbstractPhoneBill bill) throws IOException{\n\n if(!file.exists()){\n file.createNewFile();\n }\n\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n FileReader fr = new FileReader(file);\n BufferedWriter bw = new BufferedWriter(fw);\n BufferedReader br = new BufferedReader(fr);\n //bw.write(String.valueOf(bill.getPhoneCalls()));\n\n if(br.readLine()==null) {\n bw.write(bill.toString());\n bw.write(\"\\n\");\n bw.write(String.valueOf(bill.getPhoneCalls()));\n }else{\n bw.write(\",\");\n bw.write(String.valueOf(bill.getPhoneCalls()));\n\n }\n\n bw.close();\n\n\n\n\n }",
"void addToBatch(String[] values) {\n if (values.length != 16) {\n logger.info(\"Incorrect format for insert query\");\n return;\n }\n\n try {\n batchPreparedStmt.clearParameters();\n DateFormat format = new SimpleDateFormat(\"yyyyMMdd/HHmm\");\n for (int i = 0, j = 1; i < values.length; ++i, ++j) {\n if (i == 1) {\n batchPreparedStmt.setTimestamp(j, new java.sql.Timestamp(format.parse(values[i]).getTime()));\n } else if (i == 0) {\n batchPreparedStmt.setString(j, values[i]);\n } else {\n batchPreparedStmt.setDouble(j, Double.parseDouble(values[i]));\n }\n }\n batchPreparedStmt.addBatch();\n currBatchSize--;\n if (currBatchSize <= 0) {\n this.commitBatch();\n }\n } catch (SQLException e) {\n logger.log(Level.WARNING, \"SQLException \", e.getMessage());\n } catch (ParseException e) {\n logger.log(Level.WARNING, \"ParseException \", e.getMessage());\n }\n }",
"private void batchExport(){\r\n \t \t\r\n \t// Retrieve all the rsml files\r\n \tFile f = new File(batchSourceFolder.getText());\r\n \tFile[] rsml = f.listFiles(new FilenameFilter() {\r\n \t\tpublic boolean accept(File directory, String fileName) {\r\n \t\t\treturn fileName.endsWith(\".rsml\");\r\n \t\t}\r\n \t});\r\n \t \t\r\n \tif(rsml.length < 100){\r\n\t \tSR.write(\"Batch export started for \"+rsml.length+\" files\");\r\n\t\r\n\t \t// Open the different RSML files, retriev their data and get their size.\r\n\t \tRootModel[] models = new RootModel[rsml.length];\r\n\t \tint w = 0; int h = 0;\r\n\t \t \tfor(int i = 0; i < rsml.length; i++){\r\n\t \t \t\tmodels[i] = new RootModel(rsml[i].getAbsolutePath());\r\n\t \t \t\tif(models[i].getWidth(true) > w) w = models[i].getWidth(true);\r\n\t \t \t\tif(models[i].getHeight(true) > h) h = models[i].getHeight(true);\r\n\t \t \t}\r\n\t \t \t\r\n\t \t \tResultsTable rt = new ResultsTable();\r\n\t \t \tImageStack is= new ImageStack(w, h);\r\n\t \t \r\n\t \t \r\n\t \t \tfor(int i = 0; i < rsml.length; i++){\r\n\t \t \t\t// Send the imagr to the stack\r\n\t \t \t\tif(batchImage.isSelected()) {\r\n\t \t \t\t\tImagePlus ip = new ImagePlus(rsml[i].getName(),models[i].createImage(batchColorJCB.getSelectedIndex() == 0, Integer.valueOf(batchLineWidth.getText()), batchRealWidth.isSelected(), w, h, batchConvex.isSelected())); \r\n\t \t \t\t\tis.addSlice(ip.getProcessor());\r\n\t \t \t \t\t// Save a single image\r\n\t \t \t \t\tif(batchSave.isSelected()){\r\n\t \t \t \t\t\tIJ.save(ip, this.batchSourceFolder.getText()+\"/images/\"+rsml[i].getName()+\".jpg\");\r\n\t\r\n\t \t \t \t\t}\r\n\t \t \t\t}\r\n\t\t \t \tif(!batchImage.isSelected() && batchSave.isSelected()){\r\n\t\t \t \t\tSR.write(rsml[i].getName());\r\n\t \t \t\t\tImagePlus ip = new ImagePlus(rsml[i].getName(),models[i].createImage(batchColorJCB.getSelectedIndex() == 0, Integer.valueOf(batchLineWidth.getText()), batchRealWidth.isSelected(), batchConvex.isSelected())); \r\n\t\t \t \t\tIJ.save(ip, this.batchSourceFolder.getText()+\"/images/\"+rsml[i].getName()+\".jpg\");\r\n\t\t \t \t}\t \t \t\t\r\n\t \t \t\t\r\n\t \t \t\t// Send the results to the Result Table\r\n\t \t \t\tif(batchResults.isSelected()){\r\n\t \t \t\t\tint sel = batchJCB.getSelectedIndex();\r\n\t \t \t\t\tswitch (sel) { \r\n\t \t \t\t\t\tcase 0: models[i].sendImageData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t\tcase 1: models[i].sendRootData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t\tcase 2: models[i].sendNodeData(rt, rsml[i].getName()); break;\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 \t \tif(batchResults.isSelected()) rt.show(batchJCB.getSelectedItem().toString()+\" data\");\r\n\t \t \tif(batchImage.isSelected()){\r\n\t \t \t\tImagePlus ip = new ImagePlus(\"RSML images\");\r\n\t \t \t\tip.setStack(is);\r\n\t \t \t\tip.show();\r\n\t \t \t}\t\t\t\r\n \t}\r\n \telse{\r\n\t \tSR.write(\"Batch export started for \"+rsml.length+\" files\");\r\n\t \t \tResultsTable rt = new ResultsTable();\r\n\t \t// Open the different RSML files, retriev their data and get their size.\r\n\t \tRootModel model;\r\n\t \t \tfor(int i = 0; i < rsml.length; i++){\r\n\t \t \t\tmodel = new RootModel(rsml[i].getAbsolutePath());\r\n\t\t \t \tif(batchSave.isSelected()){\r\n\t \t \t\t\tImagePlus ip = new ImagePlus(rsml[i].getName(),model.createImage(batchColorJCB.getSelectedIndex() == 0, Integer.valueOf(batchLineWidth.getText()), batchRealWidth.isSelected(), batchConvex.isSelected())); \r\n\t\t \t \t\tIJ.save(ip, this.batchSourceFolder.getText()+\"/images/\"+rsml[i].getName()+\".jpg\");\r\n\t\t \t \t}\t \t \t\t\r\n\t \t \t\t\r\n\t \t \t\t// Send the results to the Result Table\r\n\t \t \t\tif(batchResults.isSelected()){\r\n\t \t \t\t\tint sel = batchJCB.getSelectedIndex();\r\n\t \t \t\t\tswitch (sel) { \r\n\t \t \t\t\t\tcase 0: model.sendImageData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t\tcase 1: model.sendRootData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t\tcase 2: model.sendNodeData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t}\r\n\t \t \t\t}\r\n\t \t \t}\r\n \t\trt.show(batchJCB.getSelectedItem().toString());\r\n \t}\r\n \t\r\n \t \tSR.write(\"Export done for \"+rsml.length+\" files\"); \r\n }",
"public void finish() throws IOException {\n\t\tthis.writeEOFRecord();\n\t\t}",
"private void writeMapFileOutput(RecordWriter<WritableComparable<?>, Writable> writer,\n TaskAttemptContext context) throws IOException, InterruptedException {\n describe(\"\\nWrite map output\");\n try (DurationInfo d = new DurationInfo(LOG,\n \"Writing Text output for task %s\", context.getTaskAttemptID());\n ManifestCommitterTestSupport.CloseWriter<WritableComparable<?>, Writable> cw =\n new ManifestCommitterTestSupport.CloseWriter<>(writer, context)) {\n for (int i = 0; i < 10; ++i) {\n Text val = ((i & 1) == 1) ? VAL_1 : VAL_2;\n writer.write(new LongWritable(i), val);\n }\n LOG.debug(\"Closing writer {}\", writer);\n writer.close(context);\n }\n }",
"public void outputNext() {\n ++this.currentIndex;\n this.currentChName = this.operOutHeaders.get(this.currentIndex - 1);\n }",
"private void placeInOutput(Tuple tuple) {\n\t\tif (outputBuffer.size() < bufferCapacity) {\n\t\t\toutputBuffer.add(tuple);\n\t\t} else {\n\t\t\tflushOutputBuffer();\n\t\t\tif (outputBuffer.size() < bufferCapacity) {\n\t\t\t\toutputBuffer.add(tuple);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"MAJOR ERROR IN WRITING TO ES OUTPUT BUFFER\");\n\t\t\t}\n\t\t\twriterFlushes++;\n\t\t\t// next bucket when we have written numInputBuffers^passNumber\n\t\t\tif (writerFlushes % Math.pow(numInputBuffers, passNumber) == 0) {\n\t\t\t\twriterBucketID++;\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\t}",
"public void write(long[] timestamps, int[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"@Bean\r\n public ItemWriter<OrderEntity> databaseCsvItemWriter() {\r\n LOG.debug(\"=== databaseCsvItemWriter\");\r\n FlatFileItemWriter<OrderEntity> csvFileWriter = new FlatFileItemWriter<>();\r\n\r\n // Extracting column names from properties file\r\n ArrayList<String> columns = (ArrayList<String>) fileProperties.getColumns();\r\n String columnsHeaders = \"\";\r\n for (int i = 0; i < columns.size(); i++) {\r\n columnsHeaders += columns.get(i);\r\n if (i < (columns.size() - 1)) {\r\n columnsHeaders += \",\";\r\n }\r\n }\r\n LOG.debug(\"=== columnsHeaders=>\" + columnsHeaders);\r\n\r\n StringHeaderWriter headerWriter = new StringHeaderWriter(columnsHeaders);\r\n csvFileWriter.setHeaderCallback(headerWriter);\r\n\r\n // Extracting destination file from properties file, adding de suffix Processed\r\n String exportFilePath =\r\n fileProperties.getName().substring(0, fileProperties.getName().lastIndexOf('.'))\r\n + \"Processed.csv\";\r\n LOG.debug(\"=== exportFilePath=>\" + exportFilePath);\r\n csvFileWriter.setResource(new FileSystemResource(exportFilePath));\r\n\r\n LineAggregator<OrderEntity> lineAggregator = createOrderLineAggregator();\r\n csvFileWriter.setLineAggregator(lineAggregator);\r\n\r\n return csvFileWriter;\r\n }",
"public void writeNext(NVImmutable item) throws ThingsException;",
"public void writeBlock(boolean last) throws IOException {\n\t\t\tif (last) {\n\t\t\t\t// always fits, because of BLOCK's size\n\t\t\t\tblocksize = (short)writePos;\n\t\t\t\t// this is the last block, so encode least\n\t\t\t\t// significant bit in the first byte (little-endian)\n\t\t\t\tblklen[0] = (byte)(blocksize << 1 & 0xFF | 1);\n\t\t\t\tblklen[1] = (byte)(blocksize >> 7);\n\t\t\t} else {\n\t\t\t\t// always fits, because of BLOCK's size\n\t\t\t\tblocksize = (short)BLOCK;\n\t\t\t\t// another block will follow, encode least\n\t\t\t\t// significant bit in the first byte (little-endian)\n\t\t\t\tblklen[0] = (byte)(blocksize << 1 & 0xFF);\n\t\t\t\tblklen[1] = (byte)(blocksize >> 7);\n\t\t\t}\n\n\t\t\tout.write(blklen);\n\n\t\t\t// write the actual block\n\t\t\tout.write(block, 0, writePos);\n\n\t\t\tif (debug) {\n\t\t\t\tif (last) {\n\t\t\t\t\tlogTd(\"write final block: \" + writePos + \" bytes\");\n\t\t\t\t} else {\n\t\t\t\t\tlogTd(\"write block: \" + writePos + \" bytes\");\n\t\t\t\t}\n\t\t\t\tlogTx(new String(block, 0, writePos, \"UTF-8\"));\n\t\t\t}\n\n\t\t\twritePos = 0;\n\t\t}",
"private void addRecords()\n throws PaginatedResultSetXmlGenerationException\n {\n int start = m_pageNumber * m_recsPerPage;\n int end = (m_pageNumber + 1) * m_recsPerPage - 1;\n if (end >= m_taskVector.size())\n {\n end = m_taskVector.size() - 1;\n }\n\n for (int i = start ; i <= end ; i++)\n {\n addRecordDetails(i);\n }\n }",
"public void nextTuple() {\n\t\tif (csvRecordsItr.hasNext()) {\n\t\t\t// Get the next record from input file\n\t\t\tCSVRecord csvRecord = null;\n\t\t\ttry {\n\t\t\t\tcsvRecord = csvRecordsItr.next();\n\t\t\t\tString groupName = csvRecord.get(\"GROUP_NAME\");\n\t\t\t\tString eventName = csvRecord.get(\"EVENT_NAME\");\n\t\t\t\tString eventStatus = csvRecord.get(\"EVENT_STATUS\");\n\t\t\t\tString eventCity = csvRecord.get(\"EVENT_CITY\");\n\t\t\t\tString eventCountry = csvRecord.get(\"EVENT_COUNTRY\");\n\n\t\t\t\t// Emit the record as a tuple\n\t\t\t\tspoutOutputCollector.emit(new Values(groupName, eventName,\n\t\t\t\t\t\teventStatus, eventCity, eventCountry));\n\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"int insert(BPBatchBean record);",
"public void afterLast() throws SQLException {\n\n try {\n debugCodeCall(\"afterLast\");\n checkClosed();\n while (nextRow()) {\n // nothing\n }\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"private void writeNextMessageInQueue() {\n // This should not happen in practice since this method is private and should only be called\n // for a non-empty queue.\n if (mMessageQueue.isEmpty()) {\n Log.e(TAG, \"Call to write next message in queue, but the message queue is empty.\");\n return;\n }\n\n if (mMessageQueue.size() == 1) {\n writeValueAndNotify(mMessageQueue.remove().toByteArray());\n return;\n }\n\n mHandler.post(mSendMessageWithTimeoutRunnable);\n }",
"@Bean\n\tStep step4() {\n\t\treturn stepBuilderFactory.get(\"step4\").<FootballPlayRecord, FootballPlayRecord>chunk(10).reader(recordReader())\n\t\t\t\t.processor(new JSONProcessor()).writer(writer).build();\n\t}",
"public void addBatch(List<Map<String, String>> batchData, String batchName);",
"public void addBatch(String sql) throws SQLException {\n\r\n }",
"public void write(long[] timestamps, double[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"private void backup() throws IOException {\n long startTime = System.currentTimeMillis();\n\n this.backupTempDirPath = Files.createTempDirectory(BACKUP_TEMP_DIR_PREFIX).toString();\n Map<UUID, String> streamIdToTableNameMap = getStreamIdToTableNameMap();\n for (UUID streamId : streamsToBackUp) {\n // temporary backup file's name format: uuid.namespace$tableName\n Path filePath = Paths.get(backupTempDirPath)\n .resolve(streamId + \".\" + streamIdToTableNameMap.get(streamId));\n backupTable(filePath, streamId);\n }\n long elapsedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"successfully backed up {} tables to {} directory, elapsed time {}ms\",\n streamsToBackUp.size(), backupTempDirPath, elapsedTime);\n }",
"public void write(long[] timestamps, boolean[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public void onEncodeSerialData(StreamWriter streamWriter) {\n this.transaction.mo44659c(streamWriter);\n }",
"abstract protected void writeTuple(Tuple tuple) throws IOException;",
"@Test\n public void testWriteReadStreamWithDictionaryReplacement() throws Exception {\n DictionaryProvider.MapDictionaryProvider provider = new DictionaryProvider.MapDictionaryProvider();\n provider.put(dictionary1);\n\n String[] batch0 = {\"foo\", \"bar\", \"baz\", \"bar\", \"baz\"};\n String[] batch1 = {\"foo\", \"aa\", \"bar\", \"bb\", \"baz\", \"cc\"};\n\n VarCharVector vector = newVarCharVector(\"varchar\", allocator);\n vector.allocateNewSafe();\n for (int i = 0; i < batch0.length; ++i) {\n vector.set(i, batch0[i].getBytes(StandardCharsets.UTF_8));\n }\n vector.setValueCount(batch0.length);\n FieldVector encodedVector1 = (FieldVector) DictionaryEncoder.encode(vector, dictionary1);\n\n List<Field> fields = Arrays.asList(encodedVector1.getField());\n try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {\n try (VectorSchemaRoot root =\n new VectorSchemaRoot(fields, Arrays.asList(encodedVector1), encodedVector1.getValueCount());\n ArrowStreamWriter writer = new ArrowStreamWriter(root, provider, newChannel(out))) {\n writer.start();\n\n // Write batch with initial data and dictionary\n writer.writeBatch();\n\n // Create data for the next batch, using an extended dictionary with the same id\n vector.reset();\n for (int i = 0; i < batch1.length; ++i) {\n vector.set(i, batch1[i].getBytes(StandardCharsets.UTF_8));\n }\n vector.setValueCount(batch1.length);\n\n // Re-encode and move encoded data into the vector schema root\n provider.put(dictionary3);\n FieldVector encodedVector2 = (FieldVector) DictionaryEncoder.encode(vector, dictionary3);\n TransferPair transferPair = encodedVector2.makeTransferPair(root.getVector(0));\n transferPair.transfer();\n\n // Write second batch\n root.setRowCount(batch1.length);\n writer.writeBatch();\n\n writer.end();\n }\n\n try (ArrowStreamReader reader = new ArrowStreamReader(\n new ByteArrayReadableSeekableByteChannel(out.toByteArray()), allocator)) {\n VectorSchemaRoot root = reader.getVectorSchemaRoot();\n\n // Read and verify first batch\n assertTrue(reader.loadNextBatch());\n assertEquals(batch0.length, root.getRowCount());\n FieldVector readEncoded1 = root.getVector(0);\n long dictionaryId = readEncoded1.getField().getDictionary().getId();\n try (VarCharVector decodedValues =\n (VarCharVector) DictionaryEncoder.decode(readEncoded1, reader.lookup(dictionaryId))) {\n for (int i = 0; i < batch0.length; ++i) {\n assertEquals(batch0[i], new String(decodedValues.get(i), StandardCharsets.UTF_8));\n }\n }\n\n // Read and verify second batch\n assertTrue(reader.loadNextBatch());\n assertEquals(batch1.length, root.getRowCount());\n FieldVector readEncoded2 = root.getVector(0);\n dictionaryId = readEncoded2.getField().getDictionary().getId();\n try (VarCharVector decodedValues =\n (VarCharVector) DictionaryEncoder.decode(readEncoded2, reader.lookup(dictionaryId))) {\n for (int i = 0; i < batch1.length; ++i) {\n assertEquals(batch1[i], new String(decodedValues.get(i), StandardCharsets.UTF_8));\n }\n }\n\n assertFalse(reader.loadNextBatch());\n }\n }\n\n vector.close();\n }"
] | [
"0.54179376",
"0.53528225",
"0.5290055",
"0.52665615",
"0.5173643",
"0.5145223",
"0.50331396",
"0.49928725",
"0.49104288",
"0.48981854",
"0.48880395",
"0.48195532",
"0.48063186",
"0.48031846",
"0.47896755",
"0.47866935",
"0.47722247",
"0.46566784",
"0.46480718",
"0.46351212",
"0.46303925",
"0.4630123",
"0.46028432",
"0.46020463",
"0.46004134",
"0.4593858",
"0.45906737",
"0.4575019",
"0.45630485",
"0.45350027",
"0.45248896",
"0.45245132",
"0.44880328",
"0.44752666",
"0.44558522",
"0.44521987",
"0.44501764",
"0.4445695",
"0.44367102",
"0.44054207",
"0.44038463",
"0.44026536",
"0.44017008",
"0.43803173",
"0.4371174",
"0.4352799",
"0.43124256",
"0.43083262",
"0.43031025",
"0.42775288",
"0.42742193",
"0.4250478",
"0.42498168",
"0.42347354",
"0.4210073",
"0.4200802",
"0.4196908",
"0.41968828",
"0.41959512",
"0.41804907",
"0.41785917",
"0.4170758",
"0.41573507",
"0.41489667",
"0.41479927",
"0.4142571",
"0.4129569",
"0.4122988",
"0.41203594",
"0.41182595",
"0.410599",
"0.4098072",
"0.40928766",
"0.40863204",
"0.4085853",
"0.4084703",
"0.40777975",
"0.4065721",
"0.4063674",
"0.4049998",
"0.40494603",
"0.40346235",
"0.4031698",
"0.40295616",
"0.40265292",
"0.40125403",
"0.4003284",
"0.3999702",
"0.39947057",
"0.3990044",
"0.398237",
"0.3981622",
"0.39756083",
"0.3975437",
"0.39666358",
"0.39648739",
"0.39625317",
"0.39596507",
"0.39595258",
"0.39553034"
] | 0.84941655 | 0 |
Method invoked from Main to count the same strings | public int stringCounter (String stringToFind) throws IOException{
if (stringToFind.equals("")){
return stringCount=-1;
}
Pattern pattern = Pattern.compile(stringToFind);
Matcher matcher;
String line;
fileRead.mark(2000000);
while ((line=fileRead.readLine())!= null){
matcher = pattern.matcher(line.toLowerCase());
int c=0;
while(matcher.find()) {
c++;
}
stringCount=stringCount+c;
}
fileRead.reset();
return stringCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\t\n\t\tString s1=\"Hi Hello\";\n\t\tfrequent(s1);\n//\t\tchar ch[] = s1.toCharArray();\n//\t\tchar ch1;\n//\t\tchar ch2[]=new char[10];\n//\t\t\n//\t\tfor(int i=0;i<ch.length;i++) {\n//\t\t\tSystem.out.println(ch[i]);\n//\t\t}\n//\t\t\n//\t\tfor(int i=0;i<ch.length;i++) {\n//\t\t\t\n//\t\t\tint count=1;\n//\t\t\tfor(int j=i+1;j<ch.length;j++) {\n//\t\t\t\t\n//\t\t\t\tif(ch[i]==ch[j]) {\n//\t\t\t\t\t\n//\t\t\t\t\tcount++;\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}System.out.println(\"Count of \"+ch[i]+\"=\"+count);\n//\t\t}\n\t\t\n\t\t\n\t\n\n\t}",
"@Test\n\tpublic static void main() {\n\t\tSystem.out.println(Stringcount2(\"reddygaru\"));\n\t}",
"public int countUniqueStrings()\n\t{\n\t\treturn countUniqueStrings(this.root);\n\t}",
"public int strCount(String str, String sub) {\n//Solution to problem coming soon\n}",
"public static int duplicateCount(String text) {\n String[] textArray = text.toLowerCase().split(\"\");\n List<String> temp = new ArrayList<String>();\n\n // Storing all of the duplicated strings\n for(int i=0; i < textArray.length; i++){\n for(int j=i+1; j < textArray.length; j++){\n if(textArray[i].equals(textArray[j])){\n temp.add(textArray[i]);\n }\n }\n }\n \n // Convert list to array\n String[] itemsArray = new String[temp.size()];\n itemsArray = temp.toArray(itemsArray);\n \n // Removing all the duplicated strings by using hashset\n Set<String> set = new HashSet<String>();\n for(int i = 0; i < itemsArray.length; i++){\n set.add(itemsArray[i]);\n }\n\n // Returning the length \n return set.size();\n }",
"public static void main(String[] args) {\n \n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n String[] p = new String[n];\n int[] counter = new int[n];\n for(int i = 0; i<n;i++ ){\n \tp[i] = input.next();\n \t\n \tint j = 0;\n \twhile(j<p[i].length()){\n \t\tint t =1;\n \t\tif(j + t < p[i].length()){\n \t\twhile(p[i].charAt(j) == p[i].charAt(j+t) ){\n \t\t\tt++;\n \t\t\tcounter[i]++;\n \t\t\tif(j+t >= p[i].length())\n \t\t\t\tbreak;\n \t\t\t\n \t\t}\n \t\t}\n \t\tj = j+t;\n \t\t\n \t\t\n \t\t\n \t}\n }\n \n for(int i= 0; i<n;i++){\n\t System.out.println(counter[i]);\n }\n \n \n \n input.close();\n }",
"public static int duplicateCount(String text) {\n \r\n int count=0; \r\n \r\n \r\n \r\n int l=text.length(); int index=0; String s1=\"\"; char [] c= new\r\n char [text.length()] ; for (int i=0;i <text.length();i++) {\r\n c[i]=text.toLowerCase().charAt(index++);\r\n \r\n System.out.println(\"Character at c[\"+i+\"] is\"+c[i]);\r\n \r\n }\r\n \r\n System.out.println(\"Character array is \"+Arrays.toString(c));\r\n \r\n int charSize=c.length; int index2=1;\r\n \r\n HashMap h =new HashMap();\r\n for (int i=0;i<charSize;i++)\r\n {\r\n for(int j=i+1;j<charSize;j++)\r\n {\r\n if (c[i]==c[j])\r\n {\r\n count++;\r\n //s1=s1+c[j];\r\n \r\n h.put(c[j],count);\r\n }\r\n }\r\n }\r\n \r\n \r\n System.out.println(h);\r\n \r\n int hsize= h.size();\r\n \r\n return hsize;\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString str = \"aaabbbbbbddcmmm\";\n\t\tString[] arr1 = str.split(\"\");\n\t\t\n\t\tString last=\"\";\n\t\tint count = 1;\n\t\tfor (int i = 0; i < arr1.length; i++) {\n\t\t\tcount = 1;\n\t\t\t\n\t\t\tfor (int j = i+1; j < arr1.length; j++) {\n\t\t\t\tif(arr1[i].equals(arr1[j])) {\n\t\t\t\t\tcount++;\n\t\t\t\t\ti=j;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tlast += count + arr1[i];\n\t\t}\n\t\t\n\t\n\t\t//return last;\n\t\t\n\t\tSystem.out.println(last);\n\t}",
"public static void main(String[] args) {\n\n String s = \"aaa\";\n int output = 6;\n\n Solution solution = new Solution();\n int result = solution.countSubstrings(s);\n System.out.println(\"output: \" + output);\n System.out.println(\"result: \" + result);\n System.out.println(output == result);\n }",
"@Override\r\n public Integer countingDuplicates(String match) {\r\n if(duplicates == null) { // if it's not already located\r\n duplicates = new HashMap<>();\r\n for (Core str : pondred) {\r\n for (String term:str.abstractTerm){\r\n if (duplicates.containsKey(term) )\r\n duplicates.put(term, duplicates.get(term) + 1);\r\n else {\r\n duplicates.put(term, 1);\r\n }\r\n }\r\n }\r\n }\r\n return duplicates.get(match);\r\n }",
"public static void main(String[] args){\n\t\tString str=\"Automation\";\r\n\t\tint count=0;\r\n\t\tchar[] ch=str.toCharArray();//ch={w,3,S,c,h,o,o,l,s}\r\n\t\tSystem.out.println(ch);\r\n\t\tfor(int i=0; i<ch.length-1; i++){\r\n\t\tfor(int j=i+1; j<=ch.length-1; j++){\r\n\t\t\tif(ch[i]==ch[j]){\r\n\t\t\t\tSystem.out.print(\"Duplicate chars are : \" +ch[i]);\r\n\t\t\t\tSystem.out.println();\r\n\t\t\r\n\t\tcount++;\r\n\t\t\r\n\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\t\r\n\t\tSystem.out.println(\"The no of duplicate chars are: \" +count);\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\tString str = \"learning automation is fun\";\r\n\t\tstr = str.replace(\" \", \"\");\r\n\t\tchar letters[] = str.toCharArray();\r\n\t\t\r\n\t\tfor(int i = 0;i<letters.length;i++) {\r\n\t\t\tint count = 0;\r\n\t\t\tfor(int j=0;j<letters.length;j++) {\r\n\t\t\t\t\r\n\t\t\t\tif (j<i&&(letters[j]==letters[i])) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif(letters[i]==letters[j]) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (count>0)\r\n\t\t\tSystem.out.println(\"Occurrence of \"+letters[i]+\" is \"+count);\r\n\t\t}\r\n\t\t\r\n\t}",
"public static int commonCharacterCount(String s1, String s2) {\n\t int count = 0;\n\t int auxArray[] = new int[s2.length()];\n\t for (int i = 0; i < auxArray.length; i++){\n\t\tauxArray[i] = 0;\n\t }\n\t \n\t for(int i = 0; i < s1.length(); i++){\n\t\tfor(int j = 0; j < s2.length(); j++){\n\t\t if( auxArray[j] == 1){\n\t\t continue;\n\t\t }\n\t\t else{\n\t\t if(s1.charAt(i) == s2.charAt(j)){\n\t\t auxArray[j] = 1;\n\t\t count += 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t}\n\t }\n\t return count;\n\t}",
"static int sherlockAndAnagrams(String s) {\n HashTable hashTable = new HashTable(s.length() * s.length() * 4);\n substrings(s).map(Solution::ordered).forEach(hashTable::insert);\n return substrings(s).map(Solution::ordered).mapToInt(s1 -> {\n hashTable.remove(s1);\n return hashTable.count(s1);\n }).sum();\n }",
"public static void main(String[] args) {\n\t\tString s=\"hello world lokl\";\n\t\tchar[] chararray=s.toCharArray();\n\t\tSet<Character> set = new HashSet<Character>();\n\t\t//hashset is implementation of set interface\n\t\t\n\t\tint ctr=0;\n\t\tfor(int i=0; i<chararray.length;i++)\n\t\t{\n\t\t\tif(!set.add(chararray[i]))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"index of duplicate char-\" + chararray[i]+\" \" +i);\n\t\t\t\tctr++;\n\t\t\t}\n\n\n\t\t}\n\t\t\n\t\tSystem.out.println(\"total no of duplicate characters\"+ ctr);\n\t\t\n\n\t}",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int T = scan.nextInt();\n scan.nextLine();\n for(int i = 0 ; i < T ; i++){\n int count = 0;\n String text = scan.nextLine();\n char[] letters = text.toCharArray();\n\n if(letters.length > 0){\n char character = letters[0];\n\n for(int j = 1 ; j < letters.length ; j++){\n\n if(character == letters[j]){\n count++;\n }else{\n character = letters[j];\n }\n }\n }\n System.out.println(count);\n }\n scan.close();\n }",
"public int count(String word);",
"public static void main(String[] args) {\n\t\tint n=3;\n\t\tString s=\"1\";\n\t\tint count =1;\n\t\tint k=1;\n\t\twhile(k<n){\n\t\t\tStringBuilder t=new StringBuilder();\n\t\t\t//t.append(s.charAt(0));\n\t\t\tfor(int i=1;i<=s.length();i++){\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(i==s.length() || s.charAt(i-1)!=s.charAt(i)){\n\t\t\t\t\tt.append(count); t.append(s.charAt(i-1));\n\t\t\t\t\tcount=1;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i-1)==s.charAt(i)){count=count+1;}\n\t\t\t }\t\n\t\t\t\ts=t.toString();\n\t\t\t\tk=k+1;\n\t\t\t\tSystem.out.println(\"k:\"+k);\n\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(s);\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public int countDistinct(String s) {\n\t\tTrie root = new Trie();\n\t\tint result = 0;\n for (int i = 0; i < s.length(); i++) {\n \tTrie cur = root;\n \tfor (int j = i; j < s.length(); j++) {\n \t\tint idx = s.charAt(j) - 'a';\n \t\tif (cur.arr[idx] == null) {\n \t\t\tresult++;\n \t\t\tcur.arr[idx] = new Trie();\n \t\t}\n \t\tcur = cur.arr[idx];\n \t}\n }\n return result;\n }",
"public static void main(String[] args) {\n\t\tString str=\"aabcccccaaaa\";\n\t\tString str2=\"\";\n\t\tint freq=1;\n\t\tfor(int i=0;i<str.length()-1;i++){\n\t\t\tif(str.charAt(i)==str.charAt(i+1)){\n\t\t\t\tfreq++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstr2=str2+str.charAt(i)+freq;\n\t\t\t\tfreq=1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(str2+str.charAt(str.length()-1)+freq);\n\t}",
"public static void numOfBook2() {\n\t\t/*\n\t\t 1. write a java program that can count how many time \n\t\t \tthe word \"book\" is appeared in a String\n\t\t Ex:\n\t\t\tinput: I like books, I have books, I need book\n\t\t\toutput: 3\n\t\t */\n\t\t\n\t\tString a = \"Book is very Book. I like to read Book and I like to give Boroky. And I like to sell Book\";\n\t\tint counter=0;\n\t\t\n\t\twhile(a.contains(\"Book\")) {\n\t\t\ta = a.replaceFirst(\"Book\", \"\");\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n\t\t\n\t}",
"public int countOccurencesOf(String text, String target) {\n if(text.length() > target.length()) return 0;\n\n int numberOfCompares = target.length() - text.length() + 1;\n int count = 0;\n\n for(int i = 0; i < numberOfCompares; i++) {\n String sub = target.substring(i, i + text.length());\n if(text.equals(sub)) count++;\n }\n\n return count;\n }",
"public static void main(String[] args) {\n\t\t String S = \"aacaacca\";\n\t\t String T = \"ca\";\n\t\tSystem.out.println(numDistinct(S, T));\n\t}",
"public static void main(String[] args) {\nsub_seq(\"abc\", \"\");\nSystem.out.println();\nSystem.out.println(sub_seq_count(\"ab\", \"\"));\n\t}",
"public int count() {\n return count(\"\");\n }",
"public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.nextLine();\n\t\tString[] input = new String[100];\n\t\tfor(int j = 0; j < n ; j++){\n\t\t\tString line = in.nextLine();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i < line.length()-1;i++){\n\t\t\t\tif(line.charAt(i) == line.charAt(i+1)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} \n\t}",
"public static void main(String[] args) {\n\t\tString s=\"Ravi Ranjan\";\r\n\t\tchar[] ch=s.toCharArray();\r\n\t\tint count=0;\r\n\t\t\r\n\t\tfor(char c:ch)\r\n\t\t{\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\t\r\n\t\t// String length conut with out length method\r\n\t\tString name=\"Vikash\";\r\n\t\tString[] str=name.split(\"\");\r\n\t\tint numcount=0;\r\n\t\tfor(String str1:str)\r\n\t\t{\r\n\t\t\tnumcount++;\r\n\t\t}\r\n\t\tSystem.out.println(numcount);\r\n\t\t\r\n\t\t// String words conut with out length method\r\n\t\tString names=\"Ravi Ranjan Kumar\";\r\n\t\tString[] w=names.split(\" \");\r\n\t\tint wcount=0;\r\n\t\tfor(String st:w)\r\n\t\t{\r\n\t\t\twcount++;\r\n\t\t}\r\n\t\tSystem.out.println(wcount);\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n String s = \"ab\";\n\n\n int res = countSubstrings(s);\n System.out.println(res);\n\n }",
"public static void main(String[] args) {\n\n\t\tint[] a = {1,2,3,8,8,9,6,4};\n\t String s = \"hello2java\"; \n\t\tHashMap<Integer,Integer> countMap1 = new HashMap<Integer,Integer>();\n\t\tHashMap<Character,Integer> countMap2 = new HashMap<Character,Integer>();\n \n\t\tchar[] ch = s.toCharArray();\n\t\t\n\t\t\tfor(int i=0;i<a.length;i++){\n\t\t\t\tif(countMap1.containsKey(a[i])){\n\t\t\t\t\tcountMap1.put(a[i], countMap1.get(a[i])+1);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcountMap1.put(a[i],1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t//}\n\t\tSystem.out.println(countMap1);\n\t\t\n\t\tfor(int i=0;i<ch.length;i++){\n\t\t\tif(countMap2.containsKey(ch[i])){\n\t\t\t\tcountMap2.put(ch[i], countMap2.get(ch[i])+1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcountMap2.put(ch[i],1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(countMap2);\n\t\t\n\t\tSet<Character> ket = countMap2.keySet();\n for(Character c:ket){\n \tif(countMap2.get(c)>1){\n \t\tSystem.out.println(c+\"-->\"+countMap2.get(c));\n \t}\n }\n\t}",
"static int sherlockAndAnagrams(String s) {\n int anagramCount = 0;\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < s.length(); i++) {\n for (int k = i + 1; k <= s.length(); k++) {\n String sub = s.substring(i, k);\n System.out.println(sub);\n sub = new String(sort(sub.toCharArray()));\n int value = map.getOrDefault(sub, 0);\n if(value > 0) {\n anagramCount = anagramCount + value;\n }\n map.put(sub, value+1);\n\n }\n }\n return anagramCount;\n }",
"private static int countCommon(String[] a1, String[] a2) {\n\t\tHashSet<String> hs = new HashSet<String>();\r\n\t\tfor(int i=0 ; i < a1.length ; i++) {\r\n\t\t\ths.add(a1[i]);\r\n\t\t}\r\n\t\tString s1[] = new String[hs.size()];\r\n\t\ths.toArray(s1);\r\n\t\tHashSet<String> hs2 = new HashSet<String>();\r\n\t\tfor( int j=0 ;j < a2.length ;j++) {\r\n\t\t\ths2.add(a2[j]);\r\n\t\t}\r\n\t\tString s2[] = new String[hs2.size()];\r\n\t\ths2.toArray(s2);\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<s1.length;i++)\r\n\t\t{\t\r\n\t\t\tfor(int j=0;j<s2.length;j++)\r\n\t\t\t{\r\n\t\t\t\tif(s1[i].equals(s2[j]))\r\n\t\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\t\t\r\n\t}",
"public int count (String a, String b) {\n return 0;\n }",
"public static void main(String[] args)\n{\n\tString str=\"like like rcb\";\n String[] Spl = str.split(\" \");\n\tint count=0;\n\tfor(int i=0;i<Spl.length;i++)\n\t{\n\t\tif(Spl[i].equals(\"like\"))\n\t\t{\n\t\tcount++;\n\t\t}\n\t}\n\tSystem.out.println(\"number of like present in given String are \"+count);\n}",
"public static void main(String[] args) {\n\t\tString S = \"deccdbebedabedecedebeccdebbaddddecacdbdeaabebcbaaccaaeabcccccadbeaaecaecacdbebeeedbeeecedebcbeaaaaaecbbcdebeacabccabddadeecbacbcebbbceacddbbaccebabbadebebcaaececbccac\";\n\t\tString T = \"bbbdedc\";\n\t\tSolution s = new Solution();\n\t\tSystem.out.println(S.length());\n\t\tSystem.out.print(s.numDistinct(S, T));\n\n\t}",
"public static void main(String[] args) {\n HashMap<Character, Integer> finalChar = new HashMap<>();\n int charCount = 1;\n\n String str = \"If the product of two terms is zero then common sense says at least one of the two terms has to be zero to start with. \" +\n \"So if you move all the terms over to one side, \" +\n \"you can put the quadratics into a form that can be factored allowing that side of the equation to equal zero. \" +\n \"Once you’ve done that, it’s pretty straightforward from there.\";\n\n // convert String to char[] array\n char[] charInString = str.toCharArray();\n\n // iterate over charInString[] array using enhanced for loop\n for (char charName : charInString) {\n\n if (finalChar.containsKey(charName)) {\n finalChar.put(charName, finalChar.get(charName) + 1);\n } else {\n finalChar.put(charName, 1);\n }\n\n }\n System.out.println(finalChar);\n }",
"public static void main(String[] args) {\n\t\tString s1 =\"s็ใcๆ\";\n\t\tString s2 =\"ผรฎsบๆผw\";\n\t\tString s3 =\"ๅใs\";\n\t\tsourcefileUltils s = new sourcefileUltils();\n\t\tSystem.out.println(\"1ฬถ๑ทอ\"+s.countString(s1)+\"ถลท\");\n\t\tSystem.out.println(\"2ฬถ๑ทอ\"+s.countString(s2)+\"ถลท\");\n\t\tSystem.out.println(\"3ฬถ๑ทอ\"+s.countString(s3)+\"ถลท\");\n\t\t\n\t\t\n\t}",
"include<stdio.h>\nint main()\n{\n char str[100];\n scanf(\"%s\", str);\n int i, count=1, length; \n for(length=0; str[length]!='\\0'; length++);\n if(length>20)\n {\n printf(\"Invalid Input\");\n }\n else\n {\n for(i=0; i<length; i++)\n {\n if(str[i] == str[i+1])\n {\n count++;\n }\n else\n {\n printf(\"%c%d\", str[i], count); \n count = 1;\n }\n }\n }\n return 0;\n}",
"public int countAllStringAppearances(List<String> stringsToCheck, String stringToContain) {\n int counter = 0;\n Pattern patternToMatch = Pattern.compile(stringToContain.toLowerCase());\n for (String currentString : stringsToCheck) {\n Matcher matcher = patternToMatch.matcher(currentString.toLowerCase());\n while (matcher.find()) {\n counter ++;\n }\n }\n return counter;\n }",
"static int sherlockAndAnagrams(String s){\n // Complete this function\n ArrayList<String> substringArray = new ArrayList<>();\n for(int i=0;i<s.length();i++){\n for(int j=i+1;j<s.length()+1;j++){\n substringArray.add(s.substring(i,j));\n }\n }\n int count = countAnagrams(substringArray);\n return count;\n }",
"static long repeatedString(String s, long n) {\n long a_count = 0;\n long total_a_count = 0;\n long modulo_s = 0;\n\n if(n>s.length()){\n for (int i=0; i<s.length(); i++)\n if(s.charAt(i)=='a') a_count++;\n\n total_a_count = a_count*(n/s.length());\n modulo_s = n%s.length();\n\n for (int i=0; i<modulo_s; i++)\n if(s.charAt(i)=='a') total_a_count++;\n\n return total_a_count;\n }\n\n else {\n for (int i=0; i<n; i++)\n if(s.charAt(i)=='a') a_count++;\n return a_count;\n }\n }",
"public int repeatedStringMatch(String a, String b) {\n \n int count = 0;\n StringBuilder sb = new StringBuilder();\n \n while(sb.length() < b.length()){\n sb.append(a); //O(roundUp(M/N) * N) < O(M*N)\n count++;\n }\n \n if(sb.indexOf(b) != -1) return count; //check at max O(M*N) characters\n \n //handles rotated array case\n if(sb.append(a).indexOf(b) != -1) return count + 1; //append takes O(N), indexOf takes in the worst case (missing match) ~O(M*N)\n \n return -1;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tString s =\"hhpddlnnsjfoyxpciioigvjqzfbpllssuj\";\r\n\t\tint noOfChange=0;\r\n\t\r\n\t\t\r\n\t\tif(s.length()%2!=0){\r\n\t\t\t\r\n\t\t\tnoOfChange=-1;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tString sub1=s.substring(0, (s.length()/2));\r\n\t\t\tString sub2=s.substring((s.length()/2), (s.length()));\r\n\t\t\tHashMap<Character, Integer>map = new HashMap<Character,Integer>();\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<sub1.length();i++){\r\n\t\t\t\tif(map.containsKey(sub1.charAt(i))){\r\n\t\t\t\t\t\r\n\t\t\t\t\tint count =map.get(sub1.charAt(i));\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tmap.put(sub1.charAt(i), count);\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\t\t\t\t\t\r\n\t\t\t\t\tmap.put(sub1.charAt(i), 1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(sub1);\r\n\t\t\tSystem.out.println(sub2);\r\n\t\t\tfor(int i=0;i<map.size();i++){\r\n\t\t\t\r\n\t\t\t\tif(map.containsKey(sub2.charAt(i))){\r\n\t\t\t\t\tint count =map.get(sub2.charAt(i));\r\n\t\t\t\t\tcount--;\r\n\t\t\t\t\tif(count<0){\r\n\t\t\t\t\t\tnoOfChange++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmap.put(sub2.charAt(i), count);\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tnoOfChange++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(noOfChange);\r\n\t\t\r\n\r\n\t}",
"int getNumberOfDetectedDuplicates();",
"public static int shared(String s1, String s2) {\n\t\tMap<Character, Integer> c1 = counts(s1);\n\t\tMap<Character, Integer> c2 = counts(s2);\n\t\tint result = 0;\n\t\tfor (Character key : c1.keySet()) {\n\t\t\tInteger val1 = c1.get(key);\n\t\t\tInteger val2 = c2.get(key);\n\t\t\tif (val2 == null) continue;\n\t\t\tresult += Math.min(val1, val2);\n\t\t}\n\t\treturn result;\n\t}",
"public static void main(String[] args) {\n\t\tString s=\"geeks\";\r\n\t\tString s1=\"egeks\";\r\n\t\tint m=s.length();\r\n\t\tint n=s1.length();\r\n\t\tfor(int i=0;i<m;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<n;j++)\r\n\t\t\t{\r\n\t\t\t\tif(s.charAt(i)!=s1.charAt(j))\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"no of index\"+i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"private int getNumMatches(String word1, String word2) {\n int count = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) == word2.charAt(i)) {\n count++;\n }\n }\n \n return count;\n }",
"public static void printDuplicate(String str){\n\t\t\n\t\tString[] strArray = str.split(\" \");\n\t\t\n\t\tHashMap<String, Integer> hm = new HashMap<>();\n\t\t\n\t\t/*for(String tempString : strArray){\n\t\t\tif(hm.containsKey(strArray[i])){\n\t\t\t\t\n\t\t\t\thm.put(strArray[i], hm.get(strArray[i])+1);\n\t\t\t}else{\n\t\t\t\thm.put(strArray[i], 1);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\t//or\n\t\t\n\t\tfor(int i=0; i<strArray.length; i++){\n\t\t\t\n\t\t\tif(hm.containsKey(strArray[i])){\n\t\t\t\t\n\t\t\t\thm.put(strArray[i], hm.get(strArray[i])+1);\n\t\t\t}else{\n\t\t\t\thm.put(strArray[i], 1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(hm);\n\t\t\n\t\tfor (Map.Entry<String, Integer> entry : hm.entrySet()) {\n\t\t\tif(entry.getValue()>1){\n\t\t\t\tSystem.out.print(\"Item : \" + entry.getKey() + \" Count : \" + entry.getValue());\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t//java 8 iteration\n\t\thm.forEach((k,v)->{\n\t\t\t//System.out.println(\"Item : \" + k + \" Count : \" + v);\n\t\t\t\n\t\t\tif(v > 1){\n\t\t\t\t\n\t\t\t\tSystem.out.println(k +\" \" + v);\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"int count(String s) {\r\n\t\tif (m_words.containsKey(s)) {\r\n\t\t\treturn m_words.get(s);\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"public int numDistinctMemo(String s, String t)\n {\n int [][]dp = new int[s.length()][t.length()];\n for(int []row: dp) Arrays.fill(row, -1);\n return findSubS(s.length()-1, t.length()-1, s, t, dp);\n }",
"private int repeatedName (Vector testVector, int testSize)\n\t{\n\t\tfor (int i=1; i <= testSize; i++)\n\t\t{\n\t\t\tString currentName = (String) testVector.get (i);\n\t\t\tfor (int j=i+1; j <= testSize; j++)\n\t\t\t{\n\t\t\t\tString comparedTitle = (String) testVector.get (j);\n\t\t\t\tif (comparedTitle.length()>0 && currentName.length()>0 && comparedTitle.equals (currentName))\n\t\t\t\t{\n\t\t\t\t\treturn j;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\n\t}",
"public int numdone(String s) {\n Integer i = 0;\n\n for (Entry entry : listentries) {\n if (entry.getStatus().equals(s)) {\n ArrayList<Entry> checkoff = new ArrayList<>();\n checkoff.add(entry);\n return (checkoff.size());\n }\n }\n return i;\n }",
"public static int sherlock(String s) {\n\t\tint count = 0;\n\t\t// find the substrings to find the anagrams of\n\t\t// isAnagram function\n\t\t// with k unique chars, subset is k (k + 1) / 2\n\t\t\n\t\tList<String> subsets = getALlSubstring(s);\n\t\t\n\t\tfor(int i = 0 ;i < subsets.size() ; i++) {\n\t\t\tfor(int j = i + 1 ; j < subsets.size() ; j++) {\n\t\t\t\tif(i != j && subsets.get(i).length() == subsets.get(j).length() && isAnagram(subsets.get(i), subsets.get(j)))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"static long repeatedString(String s, long n) {\n\n char[] str = s.toCharArray();\n\n String temp = \"\";\n\n int i=0;\n long count=0;\n\n while(i<str.length){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n long occurance = n/str.length;\n long remainder = n%str.length;\n count = count*occurance;\n\n i=0;\n while(i<remainder){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n return count;\n\n }",
"public static void main(String[] args) {\n Bag<Character> bag = new CharacterCount().findCharacterCount(\"Hello World.\");\n bag.uniqueSet().stream().forEach(ch -> {System.out.println(ch + \"-\" + bag.getCount(ch));});\n }",
"public static void main(String[] args) {\n\t\tString original=\"Java is Programming Language Java asdf Java ghjhfj\";\r\n\t\tString occurence=\"Java\";\r\n\t\t\r\n\t\tint count=0;\r\n\t\tint fromIndex=0;\r\n\t\t\r\n\t\twhile ((fromIndex = original.indexOf(occurence, fromIndex)) != -1 )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Fount at index: \"+fromIndex);\r\n\t\t\tcount++;\r\n\t\t\tfromIndex++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of occurence of Java: \"+count);\r\n\t}",
"static int size_of_cmp(String passed){\n\t\treturn 1;\n\t}",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint t = Integer.parseInt(br.readLine());\n\t\tchar[] input = br.readLine().toCharArray();\n\t\tint[] arr = new int[26];\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tarr[input[i] - 'A']++;\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tfor (int i = 1; i < t; i++) {\n\t\t\tchar[] candidates = br.readLine().toCharArray();\n\t\t\tint[] scores = new int[26];\n\t\t\tfor (int j = 0; j < candidates.length; j++) {\n\t\t\t\tscores[candidates[j] - 'A']++;\n\t\t\t}\n\t\t\t\n\t\t\tif (similar(arr, scores)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"static int sherlockAndAnagrams(String s) {\n int total = 0;\n for (int width = 1; width <= s.length() - 1; width++) {\n\n for(int k = 0 ;k <= s.length() - width; k++){\n\n String sub = s.substring(k, k + width);\n\n int[] subFreq = frequenciesOf(sub);\n for (int j = k + 1; j <= s.length() - width; j++) {\n String target = s.substring(j, j + width);\n if (areAnagrams(subFreq,frequenciesOf(target))) total = total + 1;\n }\n }\n }\n return total;\n }",
"public static int getNumberOfStrings(){\n\t\treturn setOfStrings.length;\n\t}",
"public void IncCount(String s) \n\t{\n if(numEntries+1 >= tableSize)\n rehashTable();\n \n HashEntry entry = contains(s);\n \n if(entry == null)\n {\n insert(s);\n numEntries++;\n }\n else\n entry.value++;\n\t}",
"private int countNumberOfStringBlocks() {\n\t\tint counter = 0;\n\t\tString currentLine = \"\";\n\t\t\n\t\twhile (reader.hasNext()) {\n\t\t\tif(currentLine.isEmpty()) {\n\t\t\t\tcurrentLine = reader.nextLine();\n\t\t\t\t\n\t\t\t\tif(!currentLine.isEmpty()) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tcurrentLine = reader.nextLine();\n\t\t}\n\t\t\n\t\t\n\t\treturn counter;\n\t}",
"private static Map countStringOccurences(String[] strArray, AdminJdbcService adminJdbcService) {\n logger.debug(\"Count String Occurences method found\");\n\n Map<String, Integer> countMap = new TreeMap<String, Integer>();\n Map<String, Integer> controlIdsMap = new TreeMap<String, Integer>();\n Set<String> controlIdsSet = new TreeSet<String>();\n Set<String> keySet = countMap.keySet();\n List list = new ArrayList();\n\n for (String string : strArray) {\n String control[] = string.split(\":\");\n if ( !Utils.isNullOrEmpty(control[1]) && Integer.parseInt(control[1].trim()) == 2 ) {\n if (!countMap.containsKey(control[0])) {\n countMap.put(control[0], 1);\n } else {\n Integer count = countMap.get(control[0]);\n count = count + 1;\n countMap.put(control[0], count);\n }\n }\n }\n\n\n return countMap;\n }",
"public int doCount(String s){\r\n\t\tint count = 0;\r\n\t\tint i;\r\n\t\tfor(i = 0; i < s.length(); i++){\r\n\t\t\tif ( s.charAt(i) == Letter )\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n int n = 12;\n // String s = \"UDDDUDUU\";\n String s = \"DDUUDDUDUUUD\";\n System.out.println(countingValleys(n, s));\n }",
"static int size_of_cmc(String passed){\n\t\treturn 1;\n\t}",
"public static int numberOfOccurences(String str1,String str2) {\n\tint count=0;\n\tfor (int i=0; i<=str1.length()-str2.length(); i++) {//(int i=0; i<str1.length()-str2.length()+1; i++)\n\t\tString currentString=str1.substring(i,i+str2.length());\n\t //char charChar=str1.charAt(i);//2.solution\n\tif (currentString.equals(str2)) {\n\t\tcount++;\n\t }\n }\n\t\t\n\treturn count;\n}",
"public int numDistinct(String s, String t) {\n if(t.length()>s.length())return 0;\n int [][]dp = new int[t.length()+1][s.length()+1];\n for(int j=0;j<s.length();j++)dp[0][j]=1;\n for(int j=1;j<t.length();j++)dp[j][0]=0;\n for(int i=1;i<=t.length();i++){\n for(int j=1;j<=s.length();j++){\n dp[i][j] =dp[i][j-1];\n if(s.charAt(j-1)==t.charAt(i-1)){\n dp[i][j] +=dp[i-1][j-1];\n }\n }\n }\n return dp[t.length()][s.length()];\n }",
"public static void main(String[] args) {\n String[] strings = new String[100];\n for (int i = 0; i < strings.length; i++) {\n strings[i] = randomStrings(2);\n }\n// for (String s : strings) {\n// System.out.println(s);\n// }\n ArrayList<String> appeared = new ArrayList<>();\n for (String s : strings) {\n if (!appeared.contains(s)) {\n appeared.add(s);\n }\n }\n System.out.println(appeared.size());\n\n }",
"private static int ones(String s)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < s.length(); i++)\r\n\t\t{\r\n\t\t\tif(s.charAt(i) == '1')\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str= scan.nextLine();\n\n int count =0;\n for(int i =0; i <=str.length()-2; i++){\n String s= str.substring(i,i+2);\n if(s.equals(\"hi\")){\n count +=1;\n }\n\n }\n\n System.out.println(count);\n\n\n\n }",
"public static void main(String[] args) {\n\t\tString str = \"aaa\";\n\t\tSystem.out.println(countSubs(str));\n\t}",
"public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n String str1=in.nextLine();\n String str2=in.nextLine();\n int slen1=str1.length();\n \n int slen2=str2.length();\n int count=0;\n for(int i=0;i<(slen1-slen2+1);i++)\n {\n int num=1;\n for(int j=0;j<slen2;j++)\n {\n if(str1.charAt(i+j)!=(str2.charAt(j)))\n {\n num=0;\n }\n \n } \n if(num==1)\n {\n count++;\n }\n \n }\n System.out.println(count); \n }",
"public static void main(String[] args) throws IOException {\n\n int n = Integer.parseInt(scanner.nextLine());\n // scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n String s = scanner.nextLine();\n\n long result = substrCount(n, s);\nSystem.out.println(result);\n // bufferedWriter.write(String.valueOf(result));\n // bufferedWriter.newLine();\n\n // bufferedWriter.close();\n\n scanner.close();\n }",
"public Map<String, Integer> wordCount(String[] strings) {\n Map <String, Integer> map = new HashMap();\n int counter = 1;\n for (String s: strings){\n if (map.containsKey(s)){\n counter = map.get(s);\n map.put(s, counter + 1);\n }else{\n counter = 1;\n map.put(s, counter);\n }\n }\n return map;\n}",
"public static void main(String[] args) {\n\t\tString str=\"You have no choice other than following me!\";\r\n\t\tchar[] ch = str.toCharArray();\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<ch.length;i++) {\r\n\t\t\tif(ch[i]=='o') {\r\n\t\t\t\tcount=count+1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Occurance of o is :\"+ count);\r\n\t}",
"public static void main(String[] args) {\n\t\tint[] i = new int[100];\n\t\tint unique = 0;\n\t\tfloat ratio = 0;\n\t\tList<String> inputWords = new ArrayList<String>();\n\t\tMap<String,List<String>> wordcount = new HashMap<String,List<String>>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"/Users/huziyi/Documents/NLP file/Assignment1/Twitter messages.txt\"));\n\t\t\tString str;\n\t\t\twhile((str = in.readLine())!=null){\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\t\n\t\t\t\tString[] words = str.split(\"\\\\s+\");\n\t\t\t\t\n\t\t\t//\tSystem.out.println(words);\n\t\t\t//\tSystem.out.println(\"1\");\n\t\t\t\tfor(String word:words){\n\t\t\t\t\t\n\t\t\t//\t\tString word = new String();\n\t\t\t\t\t\n\t\t\t\t\tword = word.replaceAll(\"[^a-zA-Z]\", \"\");\n\t\t\t\t\tinputWords.add(word);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfor(int k=0;k<inputWords.size()-1;k++){\n\t\t\tString thisWord = inputWords.get(k);\n\t\t\tString nextWord = inputWords.get(k+1);\n\t\t\tif(!wordcount.containsKey(thisWord)){\n\t\t\t\twordcount.put(thisWord, new ArrayList<String>());\n\t\t\t}\n\t\t\twordcount.get(thisWord).add(nextWord);\n\t\t}\n\t\t for(Entry e : wordcount.entrySet()){\n\t// System.out.println(e.getKey());\n\t\tMap<String, Integer>count = new HashMap<String, Integer>();\n List<String>words = (List)e.getValue();\n for(String s : words){\n if(!count.containsKey(s)){\n count.put(s, 1);\n }\n else{\n count.put(s, count.get(s) + 1);\n }\n }\n \t\n // for(Entry e1 : wordcount.entrySet()){\n for(Entry f : count.entrySet()){\n \n // \tint m = 0;\n //\tint[] i = new int[100];\n //\ti[m] = (Integer) f.getValue();\n \tint n = (Integer) f.getValue();\n \tn = (Integer) f.getValue();\n // \tList<String> values = new ArrayList<String>();\n \t\t// values.addAll(count.g());\n \tif(n>=120){\n \tif(!(e.getKey().equals(\"\"))&&!(f.getKey().equals(\"\"))){\n //\t\t int a = (Integer) f.getValue();\n //\t\t Arrays.sort(a);\n System.out.println(e.getKey()+\" \"+f.getKey() + \" : \" + f.getValue());\n \n \t}\n \t}\n //\tm++;\n \t }\n\t\t }\n\t\t \n\t\n\t\t \n\t\t// Arrays.sort(i);\n\t\t //System.out.println(i[0]+i[1]);\n/*\n\t\t ArrayList<String> values = new ArrayList<String>();\n\t\t values.addAll(count.values());\n\n\t\t Collections.sort(values, Collections.reverseOrder());\n\n\t\t int last_i = -1;\n\n\t\t for (Integer i : values.subList(0, 99)) { \n\t\t if (last_i == i) \n\t\t continue;\n\t\t last_i = i;\n\n\n\n\n\t\t for (String s : wordcount.keySet()) { \n\n\t\t if (wordcount.get(s) == i)\n\t\t \n\t\t \tSystem.out.println(s+ \" \" + i);\n\n\t\t }\n\t\t \n\t\t\t}*/\n\t}",
"public static void main(String[] args) {\n\t\tRepeatedStringMatch result = new RepeatedStringMatch();\n\t\tSystem.out.println(result.repeatedStringMatch(\"abcd\", \"cdabcdab\"));\n\t\tSystem.out.println(result.repeatedStringMatch(\"a\", \"aa\"));\n\t}",
"int getStrValuesCount();",
"public int countSubstrings_Memo(String s) {\n\t\tint n = s.length(), count = n;\n\t\t\n\t\tBoolean[][] mem = new Boolean[n][n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tfor (int j = i + 1; j < n; j++)\n\t\t\t\tif (isPal_Memo(i, j, s, mem))\n\t\t\t\t\tcount++;\n\t\treturn count;\n\t}",
"public static void main(String[] args) {\n\t\tString sentence = \"I think it's fair to say practice can be heplful in learning. \"\r\n\t\t\t\t+ \"Just about anything it can be true.\";\r\n\t\tchar myChar = 'a';\r\n\t\tint counter = 0;\r\n\t\t\r\n\t\tfor(int i=0; i<sentence.length(); i++)\r\n\t\t{\t//if you find the char value, count it in the if block\r\n\t\t\tif(sentence.charAt(i)==myChar)\r\n\t\t\t{\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of occurences of 'a' is \"+counter);\r\n\t}",
"public int countNumStrings() // Wrapper Method.\n\t{\n\t\treturn countNumStrings(this.root);\n\t}",
"public static void main(String[] args) {\n System.out.println(countPairs(\"aba\"));\n }",
"public int count(String st) {\n\t\tboolean ans = Search(st);\n\t\tif (ans) {\n\t\t\tint stIndex = table[hashFunction(st,m)].indexOf(st);\n\t\t\tint count = table[hashFunction(st,m)].get(stIndex).GetCount();\n\t\t\treturn count;\n\n\t\t} else\n\t\t\treturn 0;\n\t}",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String[] userInput = new String[20];\n int[] wordCount = new int[20];\n \n int arrSize = scan.nextInt();\n \n for (int i = 0; i < arrSize; i++) {\n userInput[i] = scan.next();\n }\n \n for (int i = 0; i < arrSize; i++) {\n for (int j = 0; j < arrSize; j++) {\n if (userInput[i].equals(userInput[j])) {\n wordCount[i]++;\n }\n }\n }\n \n for (int i = 0; i < arrSize; i++) {\n System.out.printf(\"%s %d\\n\", userInput[i], wordCount[i]);\n }\n }",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String initialString = \"Dong-ding-dong\";\n String secondaryString = in.nextLine();\n\n // Stage 1 : count the letters\n int letterCounter = 0;\n for (int i = 0; i < initialString.length(); i++) {\n if (Character.isLetter(initialString.charAt(i))) {\n letterCounter++;\n }\n }\n System.out.println(\"Initial string contains \" + letterCounter + \" letters.\");\n\n // Stage 2: check if hardcoded string and inputed string are equal ignoring the case\n System.out.println(\"Are the two strings equal? 0 if yes : \" + initialString.compareToIgnoreCase(secondaryString));\n\n // Stage 3: show initial string as all caps and all lowercase\n System.out.println(initialString.toUpperCase());\n System.out.println(initialString.toLowerCase());\n\n // Stage 4: show all dongdexes\n for(int i = -1; i <= initialString.length();){\n i = initialString.toLowerCase().indexOf(\"dong\", i+1);\n if(i != -1){\n System.out.println(i);\n }\n else{\n break;\n }\n }\n\n // Stage 5: replace all words \"dong\" with \"bong\"\n initialString = initialString.toLowerCase().replaceAll(\"dong\",\"bong\");\n System.out.println(initialString);\n\n // Stage 6: search for duplicated words and show their count\n String[] words = initialString.toLowerCase().split(\"-\");\n int counter = 0;\n for(String word : words){\n if(word != \"\"){\n for(int i = 0; i < words.length; i++){\n if(word.matches(words[i])){\n counter++;\n words[i] = \"\";\n }\n }\n System.out.println(\"The word \" + word + \" is repeated \" + counter + \" times.\");\n word = \"\";\n counter = 0;\n }\n }\n }",
"public static void main(String[] args) {\n\t\tString str = \"welcome to chennai\";\r\n\t\tchar search='e';\r\n\t\tint count=0;\r\n\t\tchar ch[]=str.toCharArray();\r\n\t\tint len=ch.length;\r\n\t\tfor(int i=0;i<len;i++)\r\n\t\t{\r\n\t\t\tif(search==(ch[i]))\r\n\t\t\t{\r\n\t\t\t\tcount=count+1;\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\r\n\r\n\t}",
"static long repeatedString(String s, long n) {\n if (s.contains(\"a\")) {\n StringBuilder stringBuilder = new StringBuilder(s);\n String infiniteString = \"\";\n if (stringBuilder.length() < n) {\n //repeat String if length is less than n\n infiniteString = infiniteString(s, n);\n }\n int count = 0;\n char[] stringArray = infiniteString.toCharArray();\n for (int i = 0; i < n; i++) {\n\n char a = 'a';\n if (stringArray[i] == a) {\n count++;\n }\n }\n return count;\n } else {\n return 0;\n }\n }",
"public static void main(String[] args) \n{\nScanner scan=new Scanner(System.in);\n \nSystem.out.println(\"Please Enter the String here\");\n \n// It will accept String from user and will store in variable\nString str1=scan.next();\n \nSystem.out.println(\"enter the letter to count\");\n \n// It will accept char from user and will store in variable\nString str2=scan.next();\n \n// Now from Second String get the value using charAt method\nchar cha = str2.charAt(0);\n \n// take count variable\nint count=0;\n \n// Run a for loop that will run based on String length\nfor(int i=0;i<=str1.length()-1;i++)\n{\n \n// This will check if match found\nif(str1.charAt(i)==cha)\n \n{\n \n// It will increment the counter\ncount++;\n \n}\n \n}\n \n// Finally print the count\nSystem.out.println(count);\n \n}",
"static int size_of_ana(String passed){\n\t\treturn 1;\n\t}",
"public static void main(String[] args) throws IOException {\n\n String file = \"C:/Java Projects/java-web-dev-exercises/src/exercises/CountingCharsSentence.txt\";\n Path path = Paths.get(file);\n List<String> lines = Files.readAllLines(path);\n Object[] string = lines.toArray();\n String string2 = Arrays.toString(string);\n\n String[] wordsInString = string2.toLowerCase().split(\"\\\\W+\");\n String rejoinedString = String.join(\"\", wordsInString);\n char[] charactersInString = rejoinedString.toCharArray();\n\n HashMap<Character, Integer> letterMap = new HashMap<>();\n\n\n for (char letter : charactersInString) {\n if (!letterMap.containsKey(letter)) {\n int letterCount = 1;\n letterMap.put(letter, letterCount);\n } else if (letterMap.containsKey(letter)) {\n letterMap.put(letter, letterMap.get(letter) + 1);\n }\n }\n\n\n System.out.println(letterMap);\n }",
"static int twoCharaters(String s) {\n\t\tList<String> list = Arrays.asList(s.split(\"\"));\n\t\tHashSet<String> uniqueValues = new HashSet<>(list);\n\t\tSystem.out.println(uniqueValues);\n\t\tString result;\n\t\twhile(check(list,1,list.get(0))) {\n\t\t\tresult = replace(list,1,list.get(0));\n\t\t\tif(result != null) {\n\t\t\t\tSystem.out.println(result);\n\t\t\t\ts = s.replaceAll(result,\"\");\n\t\t\t\tlist = Arrays.asList(s.split(\"\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t\treturn 5;\n }",
"static int size_of_rc(String passed){\n\t\treturn 1;\n\t}",
"static int makeAnagram(String a, String b) {\n int[] frequencyA = countFrequency(a);\n int[] frequencyB = countFrequency(b);\n\n int count = 0;\n\n for (int i = 0; i < frequencyA.length; i++) {\n count += Math.abs(frequencyA[i] - frequencyB[i]);\n }\n return count;\n }",
"public int numDistinct(String s, String t) {\n int m=s.length(), n=t.length();\n if(m<n) {\n return 0;\n }\n int dp[][]=new int[m+1][n+1];\n for(int i=0; i<m+1; i++) {\n Arrays.fill(dp[i], 0);\n }\n for(int i=0; i<m+1; i++) {\n dp[i][0]=1;\n }\n for(int j=1; j<n+1; j++) {\n for(int i=1; i<m+1; i++) {\n if(s.charAt(i-1)==t.charAt(j-1)) {\n // it's the sum of using s.charAt(i-1) as the last match and NOT using it as the last match\n dp[i][j]=dp[i-1][j-1]+dp[i-1][j];\n } else {\n dp[i][j]=dp[i-1][j];\n }\n }\n }\n return dp[m][n];\n }",
"public static void main(String[] args) {\n\n int counter = 0;\n\n for (int num = 1; num <= 100; num++) {\n\n if (num % 15 == 0) {\n System.out.println(num);\n //counter = counter + 1 ; counter +=1;\n ++counter;\n }\n }\n\n System.out.println(\"counter = \" + counter);\n\n /// given a string with value\n // find out how many \"a\" showed in this String\n\n String name = \"Esra Fidan\";\n\n //System.out.println( name.charAt(0) =='a');\n\n int countOfA = 0;\n for (int x = 0; x < name.length(); x++) {\n\n //System.out.println(name.charAt(x));\n if (name.charAt(x) == 'a') {\n System.out.println(\"BINGO FOUND IT !!\");\n ++countOfA;\n\n }\n\n\n }\n\n System.out.println(\"countOfA = \" + countOfA);\n\n\n\n }",
"static int size_of_ori(String passed){\n\t\treturn 2;\n\t}",
"public static void main(String[] args) {\n\t\tchar[] characters = { 'a', 'b', 'a', 'c', 'd', 'b' };\n\t\t/*\n\t\t * calling the method countChars\n\t\t * @param characters[]\n\t\t */\n\t\tMap<Character, Integer> countCharacters = countChars(characters);\n\t\t/*\n\t\t * displaying the hashMap\n\t\t */\n\t\tSystem.out.println(countCharacters);\n\t}",
"public int numberOfOccorrence();",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\r\n\t\tint n = Integer.parseInt(in.nextLine());\r\n\t\tString[] a1 = new String[n];\r\n\t\tfor (int i = 0; i < n; i++)\r\n\t\t\ta1[i] = in.nextLine();\r\n\t\tn = Integer.parseInt(in.nextLine());\r\n\t\tString[] a2 = new String[n];\r\n\t\tfor (int i = 0; i < n; i++)\r\n\t\t\ta2[i] = in.nextLine();\r\n\t\tSystem.out.println(countCommon(a1, a2));\r\n\t}"
] | [
"0.73478585",
"0.69130325",
"0.6804552",
"0.6802757",
"0.6766172",
"0.67647535",
"0.67423654",
"0.67177284",
"0.6677835",
"0.65920013",
"0.6585873",
"0.65461266",
"0.6540356",
"0.65206414",
"0.651528",
"0.64783686",
"0.6457725",
"0.6456038",
"0.6455026",
"0.6451685",
"0.6447496",
"0.6429541",
"0.6429194",
"0.64162266",
"0.6405476",
"0.6388227",
"0.6387227",
"0.63532376",
"0.6345687",
"0.63414013",
"0.6339335",
"0.63353807",
"0.6334214",
"0.63319767",
"0.63289595",
"0.63260686",
"0.6324748",
"0.6324512",
"0.6322319",
"0.63217396",
"0.63154566",
"0.6311059",
"0.6305416",
"0.6304398",
"0.6304239",
"0.62956136",
"0.628138",
"0.627883",
"0.6269404",
"0.62629",
"0.62612236",
"0.62532413",
"0.62507635",
"0.624791",
"0.6243555",
"0.62328315",
"0.6232129",
"0.62229586",
"0.6215494",
"0.621439",
"0.62138605",
"0.62132317",
"0.61979026",
"0.61939263",
"0.619384",
"0.61884916",
"0.6186541",
"0.61833906",
"0.61822045",
"0.6179959",
"0.6176185",
"0.6166745",
"0.6166021",
"0.6145097",
"0.6134831",
"0.61337614",
"0.6118418",
"0.61163723",
"0.6110095",
"0.610473",
"0.6104085",
"0.6104078",
"0.6102185",
"0.6095515",
"0.60941476",
"0.6091545",
"0.6084273",
"0.6081273",
"0.60734075",
"0.6072639",
"0.60723114",
"0.6062685",
"0.60593885",
"0.60593027",
"0.60539895",
"0.60536045",
"0.6047182",
"0.6033929",
"0.6028784",
"0.60283095"
] | 0.6289318 | 46 |
Method invoked from Main to overwrite stringToFind with stringToOverWrite | public void stringOverWrite (String stringToFind, String stringToOverWrite) throws IOException{
if (stringToOverWrite==null){
return;
}
StringBuilder text = new StringBuilder();
String line;
while ((line=fileRead.readLine())!= null){
text.append(line.replace(stringToFind, stringToOverWrite)).append("\r\n");
}
fileWrite = new BufferedWriter(new FileWriter(filePATH));
fileWrite.write(text.toString());
fileWrite.flush();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void invoke(String searchStr) {\n String userInput = concatWithNewLineFeed(searchStr,replacementStr,srcFile.getAbsolutePath(),destFile.getAbsolutePath());\n System.setIn(new ByteArrayInputStream(userInput.getBytes()));\n FindAndReplace.main(null);\n }",
"private String findReplace(String str, String find, String replace)\n/* */ {\n/* 944 */ String des = new String();\n/* 945 */ while (str.indexOf(find) != -1) {\n/* 946 */ des = des + str.substring(0, str.indexOf(find));\n/* 947 */ des = des + replace;\n/* 948 */ str = str.substring(str.indexOf(find) + find.length());\n/* */ }\n/* 950 */ des = des + str;\n/* 951 */ return des;\n/* */ }",
"private String findReplace(String str, String find, String replace)\n/* */ {\n/* 938 */ String des = new String();\n/* 939 */ while (str.indexOf(find) != -1) {\n/* 940 */ des = des + str.substring(0, str.indexOf(find));\n/* 941 */ des = des + replace;\n/* 942 */ str = str.substring(str.indexOf(find) + find.length());\n/* */ }\n/* 944 */ des = des + str;\n/* 945 */ return des;\n/* */ }",
"private String findReplace(String str, String find, String replace)\n/* */ {\n/* 935 */ String des = new String();\n/* 936 */ while (str.indexOf(find) != -1) {\n/* 937 */ des = des + str.substring(0, str.indexOf(find));\n/* 938 */ des = des + replace;\n/* 939 */ str = str.substring(str.indexOf(find) + find.length());\n/* */ }\n/* 941 */ des = des + str;\n/* 942 */ return des;\n/* */ }",
"@Test\n public void shouldReplaceSingleWord() throws IOException {\n String searchStr = \"Bacon\";\n\n // replace all occurrences of search word with replacement\n String expected = srcContent.replaceAll(searchStr, replacementStr);\n\n // call main()\n invoke(searchStr);\n\n // read destination file\n String destContent = Files.readString(destFile.toPath());\n\n // does the expected content of the destination file meet the expected.\n assertEquals(expected.trim(),destContent.trim());\n }",
"@Test\n public void shouldReplaceNoWords() throws IOException {\n String searchStr = \"spinach\";\n\n // replace all occurrences of search word with replacement\n String expected = srcContent.replaceAll(searchStr, replacementStr);\n\n // call main()\n invoke(searchStr);\n\n // read destination file\n String destContent = Files.readString(destFile.toPath());\n\n // does the expected content of the destination file meet the expected.\n assertEquals(expected.trim(),destContent.trim());\n }",
"protected abstract boolean replace(String string, Writer w, Status status) throws IOException;",
"public static void main(String[] args) {\nScanner s1 = new Scanner(System.in);\r\nSystem.out.println(\"Enter the string \");\r\nString str1 = s1.nextLine();\r\n//s1.close();\r\n\r\n//Scanner s2 = new Scanner(System.in);\r\nSystem.out.println(\"enter part to be replaced\");\r\n\r\nString str2 = s1.nextLine();\r\n//s2.close();\r\n\r\n\r\nSystem.out.println(\"replace with\");\r\n//Scanner s3 = new Scanner(System.in);\r\nString str3 = s1.nextLine();\r\n//s3.close();\r\n\r\n\r\nstr1 = str1.replace(str2,str3);\r\nSystem.out.println(str1);\r\n\t}",
"private String DoFindReplace(String line)\n {\n String newLine = line;\n\n for (String findKey : lineFindReplace.keySet())\n {\n String repValue = lineFindReplace.get(findKey).toString();\n\n Pattern findPattern = Pattern.compile(findKey);\n Matcher repMatcher = findPattern.matcher(newLine);\n\n newLine = repMatcher.replaceAll(repValue);\n }\n return(newLine);\n }",
"public static void markString(String customAbbreviation) {\n\t\tint selectedIndex = allStringsList.getSelectedIndex();\n\t\tString selectedString = allStringsList.getSelectedValue();\n\t\tString newString = null;\n\t\tif (selectedString.startsWith(\"#\")) {\n\t\t\t//update the string\n\t\t\tnewString = \" \" + foundStringsIndexList.size() + \" \" + currentSaveAbbreviation() + \" \" + selectedString;\n\t\t\tfoundStringsIndexList.add(selectedIndex);\n\t\t} else {\n\t\t\tsaveAndTextTextField.setText(\"\");\n\t\t\tif (produceSaveAndText(\"Select a new index\", true, true)) {\n\t\t\t\tint oldIndex = Integer.parseInt(selectedString.substring(4, selectedString.indexOf(' ', 4)));\n\t\t\t\t//if we didn't input an index, just use the old index\n\t\t\t\tint newIndex = saveAndTextText.length() == 0 ? oldIndex : Integer.parseInt(saveAndTextText);\n\t\t\t\tint cappedIndex;\n\t\t\t\tint diff;\n\t\t\t\t//if we're removing it, put it past the end instead\n\t\t\t\t//this way, everything gets shifted backwards properly\n\t\t\t\tif (newIndex < 0)\n\t\t\t\t\tnewIndex = foundStringsIndexList.size();\n\t\t\t\tif (newIndex > oldIndex) {\n\t\t\t\t\tcappedIndex = Math.min(foundStringsIndexList.size() - 1, newIndex);\n\t\t\t\t\tdiff = 1;\n\t\t\t\t} else {\n\t\t\t\t\tcappedIndex = Math.max(0, newIndex);\n\t\t\t\t\tdiff = -1;\n\t\t\t\t}\n\t\t\t\t//reorder and edit the other strings\n\t\t\t\tfor (int toIndex = oldIndex; toIndex != cappedIndex;) {\n\t\t\t\t\t//this is where we will be getting the string+index from\n\t\t\t\t\t//we will then move it to oldIndex\n\t\t\t\t\tint fromIndex = toIndex + diff;\n\t\t\t\t\t//move the index\n\t\t\t\t\tint stringIndex = foundStringsIndexList.get(fromIndex);\n\t\t\t\t\tfoundStringsIndexList.set(toIndex, stringIndex);\n\t\t\t\t\t//update the string\n\t\t\t\t\tString movedString = allStringsListModel.get(stringIndex)\n\t\t\t\t\t\t.replace(String.valueOf(fromIndex), String.valueOf(toIndex));\n\t\t\t\t\tallStringsListModel.set(stringIndex, movedString);\n\t\t\t\t\tsearchableStrings[stringIndex] = movedString.toLowerCase().toCharArray();\n\t\t\t\t\t//and finally, update the index\n\t\t\t\t\ttoIndex = fromIndex;\n\t\t\t\t}\n\t\t\t\t//if our index was in the bounds, insert it\n\t\t\t\tif (newIndex == cappedIndex) {\n\t\t\t\t\tfoundStringsIndexList.set(newIndex, selectedIndex);\n\t\t\t\t\t//replace the index of the string\n\t\t\t\t\tnewString = selectedString.replace(String.valueOf(oldIndex), String.valueOf(newIndex));\n\t\t\t\t\t//always replace the abbreviation in the string with the one in the save\n\t\t\t\t\tint abbreviationIndex = newString.indexOf(' ', 5) + 4;\n\t\t\t\t\tnewString = newString.replace(\n\t\t\t\t\t\tnewString.substring(abbreviationIndex, newString.indexOf(' ', abbreviationIndex)),\n\t\t\t\t\t\tcurrentSaveAbbreviation());\n\t\t\t\t//otherwise, strip it of its index\n\t\t\t\t//we made sure to shift everything backwards, so the last element is dead\n\t\t\t\t} else {\n\t\t\t\t\tfoundStringsIndexList.remove(foundStringsIndexList.size() - 1);\n\t\t\t\t\tnewString = selectedString.substring(selectedString.indexOf('#'));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//if we want to replace our string, replace it in the display list and the search list\n\t\tif (newString != null) {\n\t\t\tallStringsListModel.set(selectedIndex, newString);\n\t\t\tsearchableStrings[selectedIndex] = newString.toLowerCase().toCharArray();\n\t\t\tneedsSaving = true;\n\t\t}\n\t}",
"@Override\n\tpublic void replaceWord(String s) {\n\t\tfinder.replace(s);\n\t}",
"void changeFile()\n {\n App app = new App();\n // Loop through the read File\n for (String s : readFile) {\n if (app.containsUtilize(s)) {\n // Changes the first use of utilize with use\n String newTemp = s.replaceFirst(\"utilize\", \"use\");\n // Writes to file\n this.writeFile.add(newTemp);\n } else {\n // not utilize\n this.writeFile.add(s);\n }\n }\n }",
"void replace(int offset, int length, String text) throws BadLocationException;",
"String getReplacementString();",
"public static void main (String args[]) {\n \n int i=0, j=0;\n Character ch;\n Character ch1, ch2;\n ch1 = new Character(' ');\n ch2 = new Character('-');\n // FileReader fr = new FileReader(\"test.txt\");\n //FileWriter fw = new FileWriter(\"test-modify2.txt\");\n /* \n if(args.length !=2 ) {\n System.out.println(\"Usage: CopyFiles fl to f2\");\n return;\n }\n */\n try(BufferedReader br = new BufferedReader (new FileReader(\"test.txt\"));\n BufferedWriter bw = new BufferedWriter(new FileWriter(\"test-modify2.txt\"))) { \n \n //TODO Read while not meet space\n do {\n i = br.read();\n ch = (char)i;\n if ( ch.equals(ch1) ) {\n ch = ch2;\n bw.write(ch);\n //Write to output file\n //System.out.print(ch);\n } else { \n // Write to output file\n bw.write(ch);\n \n }\n //System.out.println(ch);\n } while (i != -1 );\n \n \n } catch (FileNotFoundException ex) {\n ex.printStackTrace();\n Logger.getLogger(CopyWithReplace.class.getName()).log(Level.SEVERE, null, ex);\n \n } catch (IOException ex) {\n ex.printStackTrace();\n Logger.getLogger(CopyWithReplace.class.getName()).log(Level.SEVERE, null, ex);\n } \n \n }",
"public static void main(String[] args) {\n\n String s = \"2222\";\n String a = \"www\";\n// a.replace()\n\n s = a;\n System.out.println(s);\n }",
"@Override\n public String findIn(CopierData data) {\n return text;\n }",
"public static void main(String[] args) {\n\n String haystack = \"abc\";\n String needle = \"c\";\n\n\n int idx = strStr(haystack, needle);\n System.out.println(idx);\n }",
"public String substituteSrc(String workString, String oldStr, String newStr) {\n int oldStrLen = oldStr.length();\n int newStrLen = newStr.length();\n String tempString = \"\";\n \n int i = 0, j = 0;\n while (j > -1) {\n j = workString.indexOf(oldStr, i);\n if (j > -1) {\n tempString = workString.substring(0, j) + newStr + workString.substring(j+oldStrLen);\n workString = tempString;\n i = j + newStrLen;\n }\n }\n \n return workString;\n }",
"public static void main(String[] args) {\n\tString str1=\"Java is fun Programming language\";\n\tString str=str1.replace('a', 'e');\n\tSystem.out.println(str1);\n\tSystem.out.println(str);\n\t\n\t//replace(old str, new str): replace all the old str values with the given new str values\n\t//in the string and returns it as a New value\n\tString str2=\"Today is gonna be a great day to learn Java\";\n String str0=str2.replace(\"Today\", \"Tomorrow\");\t\n\tSystem.out.println(str2);\n\tSystem.out.println(str0);\n\tSystem.out.println(str2.replace(\"Java\", \"\")); \n\t\n\t// replaceFirst(old str, new str): it replaces first occured old str with the new str\n\t//in the String and returns it as a New String value\n\tString s1=\"Java is fun, Java is good\";\n\tString s0=s1.replaceFirst(\"Java\", \"Python\");//only first \"Java\" has replaced\n\tSystem.out.println(s1);\n System.out.println(s0);\t\n}",
"public static void main(String[] args) {\n StringBuilder sb = new StringBuilder(\"Eu Programando\");\r\n StringBuilder sb2 = sb.append(\" nessa aula\");\r\n sb.append(\" mais uma coisa\");\r\n sb.append(\" e mais outra\");\r\n sb2.append(\" e mais uma pra finalizar\");\r\n\r\n // \"Eu programando\"\r\n // \"Eu programando nessa aula\"\r\n // \"Eu \"\r\n // \"Amando\"\r\n String s1 = \"Eu programando\";\r\n String s2 = s1.concat(\" nessa aula\");\r\n s1.substring(0,2);\r\n s1.replace(\"Eu Progra\", \"A\");\r\n\r\n System.out.println(\"#####################################\");\r\n System.out.println(\"StringBuilder sb: \" + sb);\r\n System.out.println(\"StringBuilder sb2: \" + sb2);\r\n System.out.println(\"String s1: \" + s1);\r\n System.out.println(\"String s2: \" + s2);\r\n }",
"String getReplaced();",
"public static void main(String[] args) {\n\t\tString str1=\"This is the thread that given\";\n\t\tSystem.out.println(\"original String :\\n\" +str1);\n\t\tString str2=\"th\";\n\t\twhile(str1.toLowerCase().contains(str2)) {\n\t\t\tint i1=str1.toLowerCase().indexOf(str2);\n\t\t\tString temp=\"\"+str1.charAt(i1+1)+str1.charAt(i1);\n\t\t\tstr1=str1.replaceAll((str1.substring(i1, i1+2)), temp);\n\t\t}\n\t\tSystem.out.println(\"String after replace HT with TH :\\n\"+str1);\n\t}",
"public void replace(int offset, String str, AttributeSet attr) \r\n throws BadLocationException{\n String strFinal=str;\r\n if (notRepeat != null){\r\n String txt= super.getText(0, super.getLength());\r\n JOptionPane.showMessageDialog(null, txt);\r\n if ((txt.contains(notRepeat)) && (str.contains(notRepeat))){\r\n strFinal= str.replaceAll(\"[\"+notRepeat+\"]\", \"\");\r\n }\r\n }\r\n super.insertString(offset, strFinal.replaceAll(teclas, \"\"), attr);\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString s =\"Hello\";\n\t\ts= s.concat(\"How\");\n\t\tSystem.out.println(s);\n\t\ts=s.concat(\"No\");\n\t\tSystem.out.println(s);\n\t\ts=s.replace(\"No\", \"Hello\");\n\t\tSystem.out.println(s);\n\n\n\t}",
"public static void main(String[] args) {\n\t\tString haystack = \"dhiraj\";\n\t\tString needle = \"raj\";\n\t\tSystem.out.println(strStr(haystack, needle));\n\t}",
"public String replace(String input);",
"public static void main(String[] args) {\n\t\tint hate = TEXT.indexOf(\"hate\");\n\t\tString newText = TEXT.substring(0, hate)+ \"love\" + TEXT.substring(hate+4);\n\t\t\n\t\tSystem.out.println(\"The line of text to be changed is: \\n\" + TEXT);\n\t\tSystem.out.println(\"I have rephrased that line to read: \\n\" + newText);\n\t}",
"public static void main(String[] args) {\r\n\t\tString s = \"navneet\";\r\n\t\tchar c = 'm';\r\n\t\t\r\n\t\t\tSystem.out.println(s.indexOf(c));\r\n\t\t\t//s.replace(s.indexOf(ch), newChar)\r\n\t\t\t//s.substring(1);\r\n\t\t\tStringBuilder myName = new StringBuilder(\"domanokz\");\r\n\t\t\tmyName.setCharAt(4, 'x');\r\n\r\n\t\t\tSystem.out.println(myName);\r\n\t\t\r\n\t}",
"public String replaceString(String s, String one, String another) {\n if (s.equals(\"\")) return \"\";\n String res = \"\";\n int i = s.indexOf(one,0);\n int lastpos = 0;\n while (i != -1) {\n res += s.substring(lastpos,i) + another;\n lastpos = i + one.length();\n i = s.indexOf(one,lastpos);\n }\n res += s.substring(lastpos); // the rest\n return res;\n }",
"@Override\n\tpublic String strreplace(String str, int start, int end, String with) {\n\t\treturn null;\n\t}",
"public static void main(String[] args) { \n\t\tString strOrig =\"Hello world,Hello Reader\";\n\t int lastIndex = strOrig.lastIndexOf(\"x\");\n\t \n\t if(lastIndex == - 1){\n\t System.out.println(\"Not found\");\n\t } else {\n\t System.out.println(\"Last occurrence of Hello is at index \"+ lastIndex);\n\t }\n\t\t\n\t}",
"int replaceAll(SearchOptions searchOptions, String replacement);",
"public static void main(String[] args) {\n Scanner input=new Scanner (System.in);\n System.out.println(\"Give me a value:\");\n\n String success=input.nextLine();\n success=success.trim();\n\n System.out.println(success);\n\n success=success.replace(\"Zero\",\"One\");\n\n System.out.println(success);\n\n System.out.println(success.toUpperCase());\n\n boolean condition=success.contains(\"Zero to Hero\");\n\n System.out.println(condition);\n\n success=success.replace(\"One to Hero\",\"Zero to Hero\");\n\n System.out.println(success);\n boolean condition1=success.contains(\"Zero to Hero\");\n\n System.out.println(condition1);\n }",
"public static void main(String[] args){\n File testFile = new File(args[1]);\n File testFile_new = new File(args[2]);\n String all = \"\";\n // read all data\n try {\n Scanner input = null;\n input = new Scanner(testFile);\n while (input.hasNext()){\n all += input.nextLine() + \"\\r\\n\";\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n // print and replace\n System.out.println(all);\n all = all.replaceAll(args[0], \"\");\n // save to other file with replaced\n try{\n PrintWriter output = new PrintWriter(testFile_new);\n output.write(all);\n output.close();\n } catch (FileNotFoundException ex){\n ex.printStackTrace();\n }\n }",
"public abstract Search defaultSearch(StringBuilder sb);",
"public static void StringFinder()\n {\n // String to be scanned to find the pattern.\n String TargetString = \"Find me in me this string me, test me\";\n String SearchExpression_literal = \"me\"; // Default Pattern (RegEx ) group\n\n // Create a Pattern object\n Pattern r = Pattern.compile(SearchExpression_literal);\n // Now create matcher object.\n Matcher m = r.matcher(TargetString);\n\n int SearchFindCounter = 0;\n /**\n * Matcher.find() Returns Boolean for every occurrence found\n */\n if (m.find())\n { \n \t System.out.println(\"Match Found\");\n }\n }",
"void setFound(final String found) {\n this.vars.put(\"found\", found);\n }",
"public static void main(String[] args) {\n\r\n String nome = \"Mario\"; //object literal\r\n String outro = \"Alura\"; //má prática, sempre prefere a sintaxe literal\r\n\r\n String novo = outro.replace(\"A\", \"a\");\r\n System.out.println(novo);\r\n\r\n String novo2 = nome.toLowerCase(); //também teste toUpperCase()\r\n System.out.println(novo2);\r\n\r\n char c = nome.charAt(3); //char i\r\n System.out.println(c);\r\n\r\n int pos = nome.indexOf(\"rio\");\r\n System.out.println(pos);\r\n\r\n String sub = nome.substring(1);\r\n System.out.println(sub);\r\n\r\n for (int i = 0; i < nome.length(); i++) {\r\n System.out.println(nome.charAt(i));\r\n }\r\n\r\n StringBuilder builder = new StringBuilder(\"Socorram\");\r\n builder.append(\"-\");\r\n builder.append(\"me\");\r\n builder.append(\", \");\r\n builder.append(\"subi \");\r\n builder.append(\"no \");\r\n builder.append(\"ônibus \");\r\n builder.append(\"em \");\r\n builder.append(\"Marrocos\");\r\n String texto = builder.toString();\r\n\r\n System.out.println(texto);\r\n }",
"public StringSearch(String pattern, String target) {\n/* 190 */ super(null, null); throw new RuntimeException(\"Stub!\");\n/* */ }",
"public static String stringSearchAndReplace(String stringToSearch, String searchString, String replacementString)\n\t{\n\t\tint pos = stringToSearch.indexOf(searchString);\n\n\t\twhile (pos >= 0)\n\t\t{\n\t\t\tstringToSearch = stringToSearch.substring(0, pos) + replacementString + stringToSearch.substring(pos + searchString.length());\n\t\t\tpos = stringToSearch.indexOf(searchString, pos + replacementString.length());\n\t\t}\n\n\t\treturn stringToSearch;\n\t}",
"public static void useIndexOf() throws FileNotFoundException {\n System.out.print(\"Your word? \");\n Scanner console = new Scanner(System.in);\n String word = console.nextLine();\n \n // search list for a word using indexOf\n ArrayList<String> words = readBook(\"mobydick.txt\");\n int index = words.indexOf(word);\n if (index >= 0) {\n System.out.println(word + \" is word #\" + index);\n } else {\n System.out.println(word + \" is not found.\");\n }\n }",
"public static String replaceOnce(String text, String searchString, String replacement) {\r\n return replace(text, searchString, replacement, 1);\r\n }",
"public static void modifytext (String name) throws IOException {\n // Copy the contents of the input file and put it into the new file\n File inputF = new File(\"src/main/java/ex45/\"+ name +\".txt\");\n Path dest = inputF.toPath();\n Path src = Paths.get(\"src/main/java/ex45/exercise45_input.txt\");\n Files.copy(src, dest);\n\n // This process will replace the word 'utilize' with the word 'use'\n String utilize = new String(Files.readAllBytes(dest));\n Charset charset = StandardCharsets.UTF_8;\n utilize = utilize.replaceAll(\"utilize\", \"use\");\n Files.write(dest, utilize.getBytes(charset));\n\n System.out.print(\"Your file has been created.\");\n }",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"This program will replace the word 'hate' with the word 'love' in your text once.\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Please enter a sentence that includes the word 'hate.'\");\n\t\tSystem.out.println();\n\t\t\n\t\tString sentenceHate;\n\t\tsentenceHate = scan.nextLine();\n\t\t\n\t\tString sentenceLove = sentenceHate.replaceFirst(\"hate\", \"love\");\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"I have rephrased that to read \"+ sentenceLove + \".\");\n\t\t\n\t}",
"private String rebef(String s, char a, char b){\n\t\t\tStringBuilder tmp = new StringBuilder();\t\t\n\t\t\tboolean copy = true;\n\t\t\tfor (int i = 0; i < s.length(); ++i){\n\t\t\t\tif(s.charAt(i) == a) copy = false;\n\t\t\t\tif(copy) tmp.append(s.charAt(i));\n\t\t\t\tif(s.charAt(i) == b) copy = true;\n\t\t\t}\n\t\t\treturn tmp.toString();\n\t\t}",
"@Override\n\tpublic String strindexOf(String str, String strsr) {\n\t\treturn null;\n\t}",
"@Override\n\tprotected void rethinkSearchStrings() {\n\t\tsearchStrings = new String[world.getNumItemBases()];\n\t\tint i = 0;\n\t\tfor (Map.Entry<String, ItemBase> entry : world.getItemBaseMap().entrySet()) {\n\t\t\tsearchStrings[i] = entry.getValue().getFilePath();\n\t\t\ti++;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"They is students.\";\n\t\tint i=0;\n\t\tfor(;i<str.length();i++){\n\t\t\tif(str.charAt(i)=='i')\n\t\t\t\tif(str.charAt(i+1)=='s'){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tStringBuffer sb = new StringBuffer(str);\n\t\tsb.replace(i, i+2, \"are\");\n\t\tSystem.out.println(sb);\n\t}",
"public static void main(String[] args) {\n\n String input = \"\";\n String word = \"\";\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Please give me the string to search in: \");\n input = scanner.nextLine();\n System.out.println(\"Please give me the string to search for: \");\n word = scanner.nextLine();\n System.out.println(subStr(input, word));\n\n }",
"public static String replaceFirst(String in, String find, String replace) {\n\n\t\tStringBuffer ret = new StringBuffer();\n\n\t\tint start = in.indexOf(find);\n\t\tif (start != -1) {\n\t\t\tret.append(in.substring(0, start));\n\t\t\tret.append(replace);\n\t\t\tret.append(in.substring(start + find.length()));\n\t\t}\n\n\t\treturn ret.toString();\n\t}",
"private void m29114i(String str) {\n String str2;\n String str3 = \"dxCRMxhQkdGePGnp\";\n try {\n str2 = System.getString(this.mContext.getContentResolver(), str3);\n } catch (Exception unused) {\n str2 = null;\n }\n if (!str.equals(str2)) {\n try {\n System.putString(this.mContext.getContentResolver(), str3, str);\n } catch (Exception unused2) {\n }\n }\n }",
"public static void main(String[] args) {\n\t\n\tString str=\"Hello Deannochka, How are you? How have you been?\";\n\tSystem.out.println(str.replace(\" y\", \" th\"));\n\tSystem.out.println(str.replace(\"Hello\", \"Hey\"));\n//\tSystem.out.println(str.replaceAll(regex, replacement));\n\t\n}",
"public static void main(String[] args) {\n\n\t\t\n\t\tString s =\"Soni Shirwani\";\n\t\t\n\t\tSystem.out.println(s.charAt(3));\n\t\t\n\t\tString s1=\"Soni\",s2=\"Soni\";\n\t\t\n\t\tSystem.out.println(s1.equals(s2));\n\t\t\n\t\tString empty=\"\";\n\t\t\n\t\tSystem.out.println(empty.isEmpty());\n\t\t\n\t\tSystem.out.println(s.length());\n\t\t\n\t\tSystem.out.println(s.replace(\"i\", \"y\"));\n\t\t\n\t\tSystem.out.println(s.substring(5));\n\t\tSystem.out.println(s.substring(3,8));\n\t\t\n\t\tSystem.out.println(s.indexOf('n'));\n\t\t\n\t\tSystem.out.println(s.lastIndexOf('n'));\n\t\t\n\t\tSystem.out.println(s.toUpperCase());\n\t\t\n\t\tSystem.out.println(s.toLowerCase());\n\t\t\n\t\tScanner ss= new Scanner(System.in);\n\t\tString input=ss.nextLine();\n\t\t\n\t\tSystem.out.println(input.trim());\n\t\t\n\t\tfinal String s1f=\"final\";\n\t\tfinal StringBuffer sb1= new StringBuffer(\"asd0\");\n\t\tsb1.append(\"tets\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void updateResults(String s) {\n ArrayList<String> tempName = new ArrayList<String>();\n ArrayList<String> tempUid = new ArrayList<String>();\n for(int i=0;i<userName.size();i++){\n if(userName.get(i).toLowerCase().contains(s.toLowerCase())){\n tempName.add(userName.get(i));\n tempUid.add(uid.get(i));\n }\n }\n userName.clear();\n uid.clear();\n userName.addAll(tempName);\n uid.addAll(tempUid);\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\tString str1 = \"Java World\";\n\t\tSystem.out.println(str1.indexOf(\"v\"));\n\t\t//Ekrana 2 yazdirir. Cunku index sayimi 0'dan baslar. \n\t\t\t\n\t\tSystem.out.println(str1.indexOf(\"W\"));// Ekrana 5 yazdirir. //Space Java icin bir character'dir.\n\t\t\n\t\tSystem.out.println(str1.indexOf(\"w\"));\n\t\t// Javada yukarida indexI bulamaz. Java \"case sensitive\" dir.\n\t\t// Kucuk w String'te yoktur. Java character bulamayinca -1 return eder.\n\t\t\n\t\tSystem.out.println(str1.indexOf(\"a\"));// Ekrana 1 yazdirir. Birden fazla \n\t\t// kullanilan characterler icin Java ilk character'in indexini verir.\n\t\t\n\t\t// indexOf methodu diger versiyonu:\n\t\t//\"Javva\" Stringinde asagidaki a characterinin farkli indexlerini bulunuz.\n\t\tString str4 = \"Javva World\";\n\t\tSystem.out.println(str4.indexOf(\"a\",2));//Stringteki ikinci 'a' characterinin indexini bulunuz.\n\t\t// Ekrana 4 yazdirmali.\n\t\t\n\t\tSystem.out.println(str4.indexOf(\"a\",4));// Ekrana 4 yazdirir.\n\t\tSystem.out.println(str4.indexOf(\"a\",1));// Ekrana 1 yazdirir.\n\t\tSystem.out.println(str4.indexOf(\"a\",5));// Ekrana -1 yazdirir.\n\t\t\n\t\t\n\t\t//\"Alamanya\" Stringindeki ikinci 'a' characterinin indexini bulunuz.\n\t\t\n\t\tString str2 = \"Alamanya\";\n\t\tSystem.out.println(str2.indexOf(\"a\"));// Bu birinci 'a' nin indexi 2 \n\t\tint idx = str2.indexOf(\"a\");\n\t\tSystem.out.println(str2.indexOf(\"a\",idx+1));\n\t\t// indexOf methodunun 3.versiyonu\n\t\tString str3 = \"Missisippi\";\n\t\tSystem.out.println(str3.indexOf(\"is\")); // Java bir hecenin indexini yazarken ilk harfin indexini\n\t\t//return eder. Bu ornekte ilk \"is\" teki i harfinin indexi olan 1 i return eder. \n\t\t\n\t\tSystem.out.println(str3.indexOf(\"si\"));// Ekrana 3 yazdirir.\n\t}",
"public static void main ( String[] args ) throws IOException {\n Scanner scn = new Scanner(System.in);\n System.out.print(\"What name do you want for your output file? \");\n String outputN = scn.nextLine();\n\n // Function that will change the word 'utilize' to 'use'\n modifytext(outputN);\n }",
"private String readAndReplaceString(String fileName, String packageName, String className) {\n String baseFilePath = \"com.bgn.baseframe.base\";\n\n String time = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(new Date());\n String path = (codeType == 0 ? \"kotlin/\" : \"java/\");\n return readFile(path + fileName + \".txt\")\n .replace(\"&time&\", time)\n .replace(\"&package&\", packageName)\n .replace(\"&mvp&\", baseFilePath)\n .replace(\"&className&\", className);\n }",
"private boolean SET(String s) {\r\n if (in >= input.length()) return false;\r\n int ch = input.charAt(in);\r\n boolean found = false;\r\n for (int i = 0; i < s.length() && ! found; i++) {\r\n if (ch == s.charAt(i)) found = true;\r\n }\r\n if (found) in++;\r\n return found;\r\n }",
"private String replace(String str, String from, String to) {\n int index = str.indexOf(from);\n\n if (index == -1) {\n return str;\n } else {\n int endIndex = index + from.length();\n\n return str.substring(0, index) + to + str.substring(endIndex);\n }\n }",
"public String findReplaceString(String S, int[] indexes, String[] sources, String[] targets) {\n int[] match = new int[S.length()];\n Arrays.fill(match, -1);\n\n for(int i=0; i<indexes.length; i++){ // *****\n int idx = indexes[i];\n if(S.substring(idx, idx+sources[i].length()).equals(sources[i]))\n match[idx] = i;\n }\n\n StringBuilder ans = new StringBuilder();\n int idx = 0;\n while(idx < S.length()){\n if(match[idx] >= 0){\n ans.append(targets[match[idx]]);\n idx += sources[match[idx]].length();\n }\n else{\n ans.append(S.charAt(idx++));\n }\n }\n return ans.toString();\n }",
"public static void setStartingSaveAndString() {\n\t\tint newestStringIndex = foundStringsIndexList.size() - 1;\n\t\tif (newestStringIndex >= 0) {\n\t\t\tint foundIndex = foundStringsIndexList.get(newestStringIndex);\n\t\t\tlastSaveSelector.setSelectedIndex(\n\t\t\t\tfindAbbreviation(\n\t\t\t\t\textractAbbreviationFromString(allStringsListModel.get(foundIndex)) + \":\"));\n\t\t\tselectSearchableString(foundIndex);\n\t\t}\n\t}",
"private void searchCode() {\n }",
"private void writeStringToFileSafe(String string, String targetFilename, boolean appendFlag) {\r\n\t\ttry {\r\n\t\t\twriteStringToFile(string, targetFilename, appendFlag);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\thandleFileNotFoundException(e, targetFilename);\r\n\t\t} catch (IOException e) {\r\n\t\t\thandleIOException(e, targetFilename);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n String one= \"semiha\";\n String two= \"h\";\n if(one.contains(two)){\n one=one.replaceAll(two, \"[\"+two+\"]\");\n }else{\n one=\"[\"+one+\"]\";\n }\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString str= \"Hello Dear Dan, how are you Dan, How you been?\";\n\t\tString str1= \"Honesty, I dont care bro\";\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(str.replace('e', 'z')); // we used .replace and replaced all 'e', to 'z' \n\t\t\n\t\tSystem.out.println(str.replace(\"Dear\", \"Love\")); // we used .replace target, replacement to replace specific words. Here I replaced \"Dear with Love\"\n\t\tSystem.out.println(str.replaceFirst(\"Dan\", \"Sir\")); //This replaces the FIRST Dan, and leaves the rest \n\n\t\tString str2=\"12-22-1990\"; // 12/22/1990\n\t\t\n\t\tSystem.out.println(str2.replace('-', '/'));\n\t\t\n\t\t\n\t\t \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}",
"public static void main(String[] args) {\n String name = \"I love Java I Love Java Java Java\";\n System.out.println(\"starting from 0 \" +name.indexOf(\"Java\"));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 7));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 8));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 9));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 19));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 20));\n // ilk java gosterecek yani location of// simdi ise ikinci javayi ariyor +1 ile! (ava I Love )\n //or you can start here + 4 nereden biliyorum +4 cunku\n //java 4 character!!!!!!!!!!! yada ilk aradigin kelimeyi\n // bitiri bitirmez +1 koyarsin eger bilmiyorsam +word.lenght();\n\n int firstJavaLocation = name.indexOf(\"Java\");\n int startingPointToSearchSecondJava = firstJavaLocation+1;\n int secondJavaLocation = name.indexOf(\"Java\",startingPointToSearchSecondJava);\n System.out.println(\"secondJavaLocation = \" + secondJavaLocation);\n //eger cumlede nekadar kelime oldugunu bilmiyorsam I only know there are 3+ words\n // ve sadece ikinci kelimeyi biliyorsam;\n //the word in between first space and second space is second word\n int firstSpaceLocation = name.indexOf(\" \");\n int secondSpace = name.indexOf(\" \", firstJavaLocation + 1);\n System.out.println(\"second word in this sentence is \"\n +name.substring(firstJavaLocation + 1, secondSpace));\n\n\n\n\n }",
"private void imprimir(String string) {\n\t\ttry {\n\t\t\tPrintWriter pr = new PrintWriter(super.salida);\n\t\t\tpr.println(string);\n\t\t\tpr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private static void replace(\r\n \t\tStringBuffer orig,\r\n \t\tString o,\r\n \t\tString n,\r\n \t\tboolean all) {\r\n \t\tif (orig == null || o == null || o.length() == 0 || n == null)\r\n \t\t\tthrow new IllegalArgumentException(\"Null or zero-length String\");\r\n \r\n \t\tint i = 0;\r\n \r\n \t\twhile (i + o.length() <= orig.length()) {\r\n \t\t\tif (orig.substring(i, i + o.length()).equals(o)) {\r\n \t\t\t\torig.replace(i, i + o.length(), n);\r\n \t\t\t\tif (!all)\r\n \t\t\t\t\tbreak;\r\n \t\t\t\telse\r\n \t\t\t\t\ti += n.length();\r\n \t\t\t} else\r\n \t\t\t\ti++;\r\n \t\t}\r\n \t}",
"public static void main(String[] args){\n String str = \"aasdfasdfasdfasdfas\";\n String pattern = \"aasdf.*asdf.*asdf.*asdf.*s\";\n// String str = \"mississippi\";\n// String pattern = \"mis*is*ip*.\";\n// String pattern = \"mis*is*p*.\";\n// String pattern = \"mis*is*ip*.\";\n// String str = \"aaaaaaaaaaaaac\";\n// String pattern = \"a*a*a*a*a*a*a*a*a*a*c\";\n long time = System.currentTimeMillis();\n// String str = \"aaaaaaaaaaaaab\";\n// String pattern = \"a*a*a*a*a*a*a*a*a*a*b\";\n System.out.println(find(str,pattern));\n System.out.println(\"time: \" + (System.currentTimeMillis() - time));\n }",
"public static void main(String[] args) throws Exception{\n\t\tif(args.length != 3){\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Usage: java _9_20_ReplaceOldString file oldString newString\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tFile file = new File(args[0]);\n\t\tif(!file.exists()){\n\t\t\tSystem.out.println(\"File \"+args[0]+\" does not exist\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tStringBuffer res = new StringBuffer();\n\t\tString temp = null;\n\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\twhile((temp = reader.readLine()) != null)\n\t\t\tres.append(temp + \"\\n\");\n\t\tString txt = res.toString();\n\t\ttxt = txt.replaceAll(args[1], args[2]);\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\twriter.write(txt);\n\t\twriter.flush();\n\t\twriter.close();\n\t\treader.close();\n\t}",
"public void replace(String text) {\n\t\tlogger.info(\"REPLACE TODO\");\n\t}",
"private void replaceAll(char[] string, int length, String target, String newString) {\n int idx = length - 1;\n int newIdx = string.length - 1;\n while (idx >= 0) {\n string[newIdx] = string[idx];\n newIdx--;\n idx--;\n }\n\n int slow = 0; // [0, slow)\n int fast = newIdx + 1; // the index of character being processed [0, fast) processed\n\n // student\n // stxxxnt\n while (fast < string.length) { // must process until reaching end! CAN'T use fast < string.length - target.length() because some characters won't be copied!!\n if (isStartOfTargetString(string, fast, target)) {\n // [fast, end);\n for (int i = 0; i < newString.length(); i++) {\n string[slow] = newString.charAt(i);\n slow++;\n }\n fast += target.length();\n } else {\n string[slow] = string[fast];\n slow++;\n fast++;\n }\n }\n\n // set the end of the string\n if (slow < string.length) {\n string[slow] = '\\0';\n }\n }",
"@Override\n public String readString(ByteSearch needle) throws EOCException {\n ByteSearchPosition pos = readPos(needle);\n //log.info(\"readString pos %d %d\", pos.start, pos.end);\n if (pos.found()) {\n currentpos = pos.end;\n return ByteTools.toString(haystack, pos.start, pos.end);\n }\n currentpos = innerend;\n throw new EOCException(\"findString(%s)\", needle.toString());\n }",
"private void addSubstitution(Map<String, String> substitutionMap, String find, String replace)\n {\n if (find != null && replace != null)\n {\n substitutionMap.put(find.toUpperCase(), replace);\n } \n }",
"public static void main(String[] args) {\n String pattern = \"orl\";\n String text = \"Hello World in Java\";\n\n searchPatternInText(pattern, text);\n\n //pattern = \"xyz\";\n //searchPatternInText(pattern, text);\n }",
"private static void searchMemo() {\n\t\t\n\t}",
"private static String findSubString(int index, int len, String s2) {\n\t\tif ((s2.length() - index) >= len) {\n\t\t\treturn s2.substring(index - len + 1, index) + s2.substring(index, index+len);\n\t\t} else {\n\t\t\treturn s2.substring(index - len + 1, index) + s2.substring(index);\n\t\t}\n\t}",
"public static String replaceString(String mainString, String oldString, String newString) {\n if (mainString == null) {\n return null;\n }\n if (UtilValidate.isEmpty(oldString)) {\n return mainString;\n }\n if (newString == null) {\n newString = \"\";\n }\n\n int i = mainString.lastIndexOf(oldString);\n\n if (i < 0) {\n return mainString;\n }\n\n StringBuilder mainSb = new StringBuilder(mainString);\n\n while (i >= 0) {\n mainSb.replace(i, i + oldString.length(), newString);\n i = mainString.lastIndexOf(oldString, i - 1);\n }\n return mainSb.toString();\n }",
"public static void main(String[] args) {\n\n String firstString = \"this is what I'm searching in\";\n String secondString = \"I\";\n\n System.out.println(subStringIn(firstString, secondString));\n }",
"private static void stringBuff() {\n StringBuffer s1 = new StringBuffer(\"Shubham Dhage\");\n StringBuffer newString = s1.append(\"!!!\");\n StringBuffer insertString = s1.insert(0, 'B');\n\n System.out.println(newString);\n System.out.println(insertString);\n }",
"public void addInputSubstitution(String find, String replace)\n {\n addSubstitution(this.inputSubstitutions, find, replace);\n }",
"void gnuFind(StdOutConsumer consumer) throws IOException {\n\t/*\n\t * Through options to find, we handle the Find class's\n\t * max/min depth, follow, and find files/directories.\n\t */\n\tStringBuffer findOptions = new StringBuffer();\n\tif (myFind.getMinDepth() != Find.DEFAULT_MIN_DEPTH)\n\t findOptions.append(\"-mindepth \"+myFind.getMinDepth()+\" \");\n\tif (myFind.getMaxDepth() != Find.DEFAULT_MAX_DEPTH)\n\t findOptions.append(\"-maxdepth \"+myFind.getMaxDepth()+\" \");\n\tif (myFind.getFollow())\n\t findOptions.append(\"-follow \");\n\n\tboolean dirFlag = false;\n\tif (myFind.getFindDirectories()) {\n\t findOptions.append(\"-type d \");\n\t dirFlag = true;\n\t}\n\tif (myFind.getFindFiles()) {\n\t if (dirFlag)\n\t\tfindOptions.append(\"-o \");\n\t findOptions.append(\"-type b -o -type c -o -type p -o -type f -o -type l -o -type s\");\n\t}\n\tfindOptions.append(\" \");\n\t\n\t/*\n\t * Through options to perl, we handle the Find class's\n\t * negated and directories to exclude properties.\n\t */\n\tString not;\n\tif (myFind.getNegated())\n\t not =\" ! \";\n\telse\n\t not = \"\";\n\n\tStringBuffer directoryFilter;\n\tFile[] array = myFind.getDirectoriesToExclude();\n\tif (array.length != 0) {\n\t directoryFilter = new StringBuffer(\" | \"+perlLocation+\n\t\t \" -ne 'print if ! /\");\n\t for (int i=0; i<array.length; i++) {\n\t\tif (i != 0)\n\t\t directoryFilter.append(\"|\");\n\t\tdirectoryFilter.append(\"^\");\n\t\tdirectoryFilter.append(qtool.quote(array[i].toString()));\n\t }\n\t directoryFilter.append(\"/'\");\n\t} else {\n\t directoryFilter = new StringBuffer(\"\");\n\t}\n\n\t/*\n\t * Put the command together\n\t */\n\tString command = findLocation + \" \" + myFind + \" \" + findOptions +\n\t\t\t \" | \" +\n\t\t\t perlLocation + \" \" +\n\t\t\t \"-ne 'print if \" + not + myFind.getPattern() + \"'\"+\n\t\t\t directoryFilter;\n\n\t/*\n\t * The command line is completed, so we'll now execute it\n\t */\n\tdebug(\"Executing: \"+command);\n\tGnuLauncher.exec( consumer, command );\n }",
"public static void main(String[] args) {\n System.out.println(indexOf(\"Devxschoooool\", 'o'));\n //substring(1, 2)\n }",
"private void writeStringToFile(String string, String targetFilename, boolean appendFlag)\r\n\tthrows FileNotFoundException, IOException {\r\n\t\tStringBufferInputStream theTargetInputStream = new StringBufferInputStream(\r\n\t\t\t\tstring);\r\n\t\tFileOutputStream theFileOutputStream = new FileOutputStream(\r\n\t\t\t\ttargetFilename, appendFlag);\r\n\t\tcopyStreamContent(theTargetInputStream, theFileOutputStream);\r\n\t\ttheFileOutputStream.close();\r\n\t\ttheTargetInputStream.close();\r\n\t}",
"private static String findSubString2(int index, int len, String s2) {\n\t\tint wLen = len - 1;\n\t\tint remLen = s2.length() - index;\n\t\tif (remLen <= wLen) {\n\t\t\treturn s2.substring(0, index) + s2.substring(index, index+remLen);\n\t\t} else {\n\t\t\tif (index == 0) {\n\t\t\t\treturn s2.substring(0, index) + s2.substring(index, len);\n\t\t\t}\n\t\t\treturn s2.substring(0, index) + s2.substring(index, len+1);\n\t\t}\n\t}",
"private String replaceStr(String src, String oldPattern, \n String newPattern) {\n\n String dst = \"\"; // the new bult up string based on src\n int i; // index of found token\n int last = 0; // last valid non token string data for concat \n boolean done = false; // determines if we're done.\n\n if (src != null) {\n // while we'er not done, try finding and replacing\n while (!done) {\n // search for the pattern...\n i = src.indexOf(oldPattern, last);\n // if it's not found from our last point in the src string....\n if (i == -1) {\n // we're done.\n done = true;\n // if our last point, happens to be before the end of the string\n if (last < src.length()) {\n // concat the rest of the string to our dst string\n dst = dst.concat(src.substring(last, (src.length())));\n }\n } else {\n // we found the pattern\n if (i != last) {\n // if the pattern's not at the very first char of our searching point....\n // we need to concat the text up to that point..\n dst = dst.concat(src.substring(last, i));\n }\n // update our last var to our current found pattern, plus the lenght of the pattern\n last = i + oldPattern.length();\n // concat the new pattern to the dst string\n dst = dst.concat(newPattern);\n }\n }\n } else {\n dst = src;\n }\n // finally, return the new string\n return dst;\n }",
"public static void main(String[] args) {\n\t\tif (args.length != 3) {\n\t\t\tSystem.out.println(\"Usage: java PE2031_ReplaceWords dirName oldWord newWord\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tFile file = new File(args[0]);\n\t\tString oldWord = args[1];\n\t\tString newWord = args[2];\n\n\t\tfindFile(file, oldWord, newWord);\n\t}",
"public abstract void append(String s);",
"ILoString append(String that);",
"abstract public void selfReplace(Command replacement);",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String initialString = \"Dong-ding-dong\";\n String secondaryString = in.nextLine();\n\n // Stage 1 : count the letters\n int letterCounter = 0;\n for (int i = 0; i < initialString.length(); i++) {\n if (Character.isLetter(initialString.charAt(i))) {\n letterCounter++;\n }\n }\n System.out.println(\"Initial string contains \" + letterCounter + \" letters.\");\n\n // Stage 2: check if hardcoded string and inputed string are equal ignoring the case\n System.out.println(\"Are the two strings equal? 0 if yes : \" + initialString.compareToIgnoreCase(secondaryString));\n\n // Stage 3: show initial string as all caps and all lowercase\n System.out.println(initialString.toUpperCase());\n System.out.println(initialString.toLowerCase());\n\n // Stage 4: show all dongdexes\n for(int i = -1; i <= initialString.length();){\n i = initialString.toLowerCase().indexOf(\"dong\", i+1);\n if(i != -1){\n System.out.println(i);\n }\n else{\n break;\n }\n }\n\n // Stage 5: replace all words \"dong\" with \"bong\"\n initialString = initialString.toLowerCase().replaceAll(\"dong\",\"bong\");\n System.out.println(initialString);\n\n // Stage 6: search for duplicated words and show their count\n String[] words = initialString.toLowerCase().split(\"-\");\n int counter = 0;\n for(String word : words){\n if(word != \"\"){\n for(int i = 0; i < words.length; i++){\n if(word.matches(words[i])){\n counter++;\n words[i] = \"\";\n }\n }\n System.out.println(\"The word \" + word + \" is repeated \" + counter + \" times.\");\n word = \"\";\n counter = 0;\n }\n }\n }",
"public void overwriteStringToFileSafe(String string, String targetFilename) {\r\n\t\twriteStringToFileSafe(string, targetFilename, false);\r\n\t}",
"public static void replaceAll1(){\n System.out.println(\">>>>>>>>>>>>\");\n String class0 = \"this is an example\";\n String ret0 = class0.replaceAll(\"are\", \"ARE\");\n assert(ret0.equals(\"this is an example\"));\n System.out.println(ret0);\n }",
"public void appendStringToFileSafe(String string, String targetFilename) {\r\n\t\twriteStringToFileSafe(string, targetFilename, true);\r\n\t}",
"public static void replace(StringBuffer orig, String o, String n,\n boolean all) {\n if (orig == null || o == null || o.length() == 0 || n == null) {\n throw new XDBServerException(\n ErrorMessageRepository.ILLEGAL_PARAMETER, 0,\n ErrorMessageRepository.ILLEGAL_PARAMETER_CODE);\n }\n\n int i = 0;\n while (i + o.length() <= orig.length()) {\n if (orig.substring(i, i + o.length()).equalsIgnoreCase(o)) {\n orig.replace(i, i + o.length(), n);\n if (!all) {\n break;\n } else {\n i += n.length();\n }\n } else {\n i++;\n }\n }\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tString str = \"I am very ouch happy about you\";\r\n\t\t//str.\r\n\t\t\r\n\t\tString x = str.replace(\"ou\", \"XY\");\r\n\t\tSystem.out.println(\"x::\"+x);\r\n\t\t\r\n\t\t//Without using replace method -- in progress\r\n\t\tString[] arr = str.split(\"ou\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"size of array::\"+arr.length);\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i<arr.length; i++) {\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t\tsb.append(arr[i]).append(\"XY\");\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Final:::\"+sb.toString());\r\n\t\t/*StringBuffer sb = new StringBuffer();\r\n\t\tfor(int i = 0; i<str.length(); i++) {\r\n\t\t\tif(\"ABC\".equals(str.substring(i, i+3))) {\r\n\t\t\t\tsb.append(\"XY\");\r\n\t\t\t\ti = i+3;\r\n\t\t\t}\r\n\t\t}*/\r\n\t}",
"public static void main(String[] args) {\n\t\tString s = \"String -Hello, my name is algoritmia - \";\n\t\t\n\t\tint pos1 = s.indexOf(\"Hello\");\n\t\tint pos2 = s.lastIndexOf(\"my\");\n\t\tSystem.out.println(pos1);\n\t\tSystem.out.println(pos2);\n\t}",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n String turnToString2 = txt_search.getText();\n\n try {\n\n if(begSearch != -1){\n txt_area.setCaretPosition(begSearch);\n begSearch = txt_area.getText().indexOf(turnToString2,begSearch);\n lbl_search_res.setText(\"\");\n }\n if(begSearch != -1){\n txt_area.getHighlighter().addHighlight(begSearch,begSearch + turnToString2.length(),new DefaultHighlighter.DefaultHighlightPainter(Color.yellow));\n }\n else if (begSearch <= txt_area.getText().length() && begSearch >= 0){\n txt_area.getHighlighter().addHighlight(begSearch,begSearch + turnToString2.length(),new DefaultHighlighter.DefaultHighlightPainter(Color.yellow));\n }\n if(begSearch == -1){\n lbl_search_res.setText(\"Can not found.\");\n }\n begSearch = begSearch + 1;\n\n //System.out.print(\" \"+begSearch);\n\n }\n catch (BadLocationException ex) {\n begSearch = -1;\n }\n\n }"
] | [
"0.6992103",
"0.63086545",
"0.623051",
"0.6174272",
"0.599885",
"0.58602077",
"0.5767025",
"0.572277",
"0.56247044",
"0.55852073",
"0.55466694",
"0.5527141",
"0.55175704",
"0.53970426",
"0.5322877",
"0.52778023",
"0.5262886",
"0.52421266",
"0.5237392",
"0.52284104",
"0.5227261",
"0.522621",
"0.52233994",
"0.518564",
"0.51812834",
"0.51562",
"0.51512814",
"0.5141013",
"0.51226705",
"0.51147175",
"0.5112478",
"0.50994784",
"0.5091515",
"0.5090582",
"0.5088399",
"0.5040717",
"0.5036425",
"0.5030039",
"0.5025907",
"0.502579",
"0.5011286",
"0.5005034",
"0.49980006",
"0.49979714",
"0.49969533",
"0.4991927",
"0.49793214",
"0.49566078",
"0.4928895",
"0.49177793",
"0.4917498",
"0.49066097",
"0.49062434",
"0.48875293",
"0.48873752",
"0.488418",
"0.48833272",
"0.48779044",
"0.48765832",
"0.4873463",
"0.48699507",
"0.48673332",
"0.4854815",
"0.48530224",
"0.48493758",
"0.48465845",
"0.48385713",
"0.48266265",
"0.48233908",
"0.48190242",
"0.48147872",
"0.4814565",
"0.4814528",
"0.48122066",
"0.48099786",
"0.4809245",
"0.48086223",
"0.48020074",
"0.47975615",
"0.47957847",
"0.47914618",
"0.47871318",
"0.47866604",
"0.4779081",
"0.4768941",
"0.47674978",
"0.47648603",
"0.47631097",
"0.4762804",
"0.4759213",
"0.47572014",
"0.4752291",
"0.47522488",
"0.4750014",
"0.47472122",
"0.474624",
"0.47452536",
"0.47414458",
"0.47402588",
"0.47344068"
] | 0.7671757 | 0 |
/ renamed from: a | public cf createFromParcel(Parcel parcel) {
int b = b.b(parcel);
int i = 0;
String str = null;
int i2 = 0;
short s = (short) 0;
double d = 0.0d;
double d2 = 0.0d;
float f = 0.0f;
long j = 0;
int i3 = 0;
int i4 = -1;
while (parcel.dataPosition() < b) {
int a = b.a(parcel);
switch (b.a(a)) {
case 1:
str = b.j(parcel, a);
break;
case 2:
j = b.g(parcel, a);
break;
case 3:
s = b.d(parcel, a);
break;
case 4:
d = b.i(parcel, a);
break;
case 5:
d2 = b.i(parcel, a);
break;
case 6:
f = b.h(parcel, a);
break;
case 7:
i2 = b.e(parcel, a);
break;
case 8:
i3 = b.e(parcel, a);
break;
case 9:
i4 = b.e(parcel, a);
break;
case 1000:
i = b.e(parcel, a);
break;
default:
b.b(parcel, a);
break;
}
}
if (parcel.dataPosition() == b) {
return new cf(i, str, i2, s, d, d2, f, j, i3, i4);
}
throw new a("Overread allowed size end=" + b, parcel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public cf[] newArray(int i) {
return new cf[i];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
Get IP address from first nonlocalhost interface | public static String getIPAddress(boolean useIPv4) {
try {
List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());
for (NetworkInterface intf : interfaces) {
List<InetAddress> addrs = Collections.list(intf.getInetAddresses());
for (InetAddress addr : addrs) {
if (!addr.isLoopbackAddress()) {
String sAddr = addr.getHostAddress().toUpperCase();
boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);
if (useIPv4) {
if (isIPv4)
return sAddr;
} else {
if (!isIPv4) {
int delim = sAddr.indexOf('%'); // drop ip6 port suffix
return delim<0 ? sAddr : sAddr.substring(0, delim);
}
}
}
}
}
} catch (Exception ex) { } // for now eat exceptions
return "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InetAddress getIP();",
"Ip4Address interfaceIpAddress();",
"private String findIpAddress() throws Exception {\n\n\t\tString ipAddress = null;\n\t\tEnumeration<?> e = NetworkInterface.getNetworkInterfaces();\n\t\tloop: while( e.hasMoreElements()) {\n\t\t\tNetworkInterface n = (NetworkInterface) e.nextElement();\n\t\t\tEnumeration<?> ee = n.getInetAddresses();\n\n\t\t\twhile( ee.hasMoreElements()) {\n\t\t\t\tInetAddress i = (InetAddress) ee.nextElement();\n\t\t\t\tif( i instanceof Inet4Address\n\t\t\t\t\t\t&& ! \"127.0.0.1\".equals( i.getHostAddress())) {\n\t\t\t\t\tipAddress = i.getHostAddress();\n\t\t\t\t\tbreak loop;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif( ipAddress == null )\n\t\t\tthrow new Exception( \"No IP address was found.\" );\n\n\t\treturn ipAddress;\n\t}",
"public static String getMyIpv4Address() {\n try {\n Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();\n\n for (NetworkInterface netInterface : Collections.list(nets)) {\n Enumeration<InetAddress> inetAddresses = netInterface.getInetAddresses();\n\n if (!netInterface.isUp() || netInterface.isVirtual() || netInterface.isLoopback())\n continue;\n\n for (InetAddress inetAddress : Collections.list(inetAddresses)) {\n if (!inetAddress.isLinkLocalAddress() && !inetAddress.isLoopbackAddress() && (inetAddress instanceof Inet4Address))\n return inetAddress.getHostAddress();\n }\n\n }\n } catch (SocketException e) {\n // ignore it\n }\n\n return \"127.0.0.1\";\n }",
"private static InetAddress getLocalInetAddress() throws SocketException {\n // Before we connect somewhere, we cannot be sure about what we'd be bound to; however,\n // we only connect when the message where client ID is, is long constructed. Thus,\n // just use whichever IP address we can find.\n Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();\n while (interfaces.hasMoreElements()) {\n NetworkInterface current = interfaces.nextElement();\n if (!current.isUp() || current.isLoopback() || current.isVirtual()) {\n continue;\n }\n Enumeration<InetAddress> addresses = current.getInetAddresses();\n while (addresses.hasMoreElements()) {\n InetAddress addr = addresses.nextElement();\n if (!addr.isLoopbackAddress()) {\n return addr;\n }\n }\n }\n\n throw new SocketException(\"Can't get our ip address, interfaces are: \" + interfaces);\n }",
"private String getIpAddress() throws SocketException {\n String ip = null;\n\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n\n while (networkInterfaces.hasMoreElements()) {\n NetworkInterface networkInterface = (NetworkInterface) networkInterfaces.nextElement();\n\n if (networkInterface.getName().equals(\"eth0\") || networkInterface.getName().equals(\"wlan0\")) {\n Enumeration inetAddresses = networkInterface.getInetAddresses();\n\n while (inetAddresses.hasMoreElements()) {\n InetAddress inetAddress = (InetAddress) inetAddresses.nextElement();\n if (inetAddress instanceof Inet4Address) {\n ip = inetAddress.getHostAddress();\n }\n }\n }\n }\n \n return ip;\n }",
"String getExternalIPAddress() throws NotDiscoverUpnpGatewayException, UpnpException;",
"int getInIp();",
"int getInIp();",
"public String getIP() throws UnknownHostException{\n\t\tInetAddress addr = InetAddress.getLocalHost();//Get local IP\n \t String ip = addr.toString().split(\"\\\\/\")[1];//local IP\n \t //ip = ip.indexOf('\\\\');\n \t if(!getIsLocal()){\n\t \ttry{\n\t\t \tURL whatismyip = new URL(\"http://automation.whatismyip.com/n09230945.asp\");\n\t\t \tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t \t whatismyip.openStream()));\n\t\t \tip = in.readLine(); //you get the IP as a String\n\t\t \t//System.out.println(ip);\n\t\t \tin.close();\n\t\t \treturn ip;\n\n\t \t}\n\t \tcatch(IOException e){\n\t \t\te.printStackTrace();\n\t \t}\n\t \treturn null;\n \t }\n\t\treturn ip;\n\t }",
"int getIp();",
"int getIp();",
"int getIp();",
"public static String getCurrentIp() throws UnknownHostException {\n try {\n InetAddress candidateAddress = null;\n for (Enumeration ifaces = NetworkInterface.getNetworkInterfaces(); ifaces\n .hasMoreElements();) {\n NetworkInterface iface = (NetworkInterface) ifaces.nextElement();\n for (Enumeration inetAddrs = iface.getInetAddresses(); inetAddrs.hasMoreElements();) {\n InetAddress inetAddr = (InetAddress) inetAddrs.nextElement();\n if (!inetAddr.isLoopbackAddress()) {\n if (inetAddr.isSiteLocalAddress() && !iface.getName().contains(\"docker\")) {\n return inetAddr.getHostAddress();\n } else if (candidateAddress == null) {\n candidateAddress = inetAddr;\n }\n }\n }\n }\n if (candidateAddress != null) {\n return candidateAddress.getHostAddress();\n }\n InetAddress jdkSuppliedAddress = InetAddress.getLocalHost();\n if (jdkSuppliedAddress == null) {\n throw new UnknownHostException(\n \"The JDK InetAddress.getLocalHost() method unexpectedly returned null.\");\n }\n return jdkSuppliedAddress.getHostAddress();\n } catch (Exception e) {\n UnknownHostException unknownHostException =\n new UnknownHostException(\"Failed to determine LAN address: \" + e);\n unknownHostException.initCause(e);\n throw unknownHostException;\n }\n }",
"public static String getDeviceIpAddress() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n\n log.debug(\"inetAddress: \" + inetAddress);\n\n if (!inetAddress.isLoopbackAddress()) {\n String ip = Formatter.formatIpAddress(inetAddress.hashCode());\n return ip;\n }\n }\n }\n } catch (SocketException ex) {\n log.error(ex.getMessage(), ex);\n }\n\n return null;\n }",
"public String getIPAddress() throws SocketException\n\t{\n\t\tEnumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();\n\t\twhile(en.hasMoreElements())\n\t\t{\n\t\t\tNetworkInterface i = en.nextElement();\n\t\t\tEnumeration<InetAddress> addresses = i.getInetAddresses();\n\t\t\twhile(addresses.hasMoreElements())\n\t\t\t{\n\t\t\t\tInetAddress ad = addresses.nextElement();\n\t\t\t\tif(!ad.isLoopbackAddress() && ad instanceof Inet4Address)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(ad.getHostAddress());\n\t\t\t\t\treturn ad.getHostAddress();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}",
"public String getUpnpExternalIpaddress();",
"public InetAddress getIP()\r\n\r\n {\r\n InetAddress ip=null;\r\n try{\r\n WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\r\n DhcpInfo dhcp = wifi.getDhcpInfo();\r\n int dip=dhcp.ipAddress;\r\n byte[] quads = new byte[4];\r\n for (int k = 0; k < 4; k++)\r\n quads[k] = (byte) (dip >> (k * 8));\r\n ip= InetAddress.getByAddress(quads);\r\n } catch (UnknownHostException e) {\r\n e.printStackTrace();\r\n }\r\n return ip;\r\n }",
"private static void getServerIPAddress() {\r\n // Get local IP address\r\n try {\r\n Enumeration<NetworkInterface> enumeratedNetworkInterface = NetworkInterface.getNetworkInterfaces();\r\n\r\n NetworkInterface networkInterface;\r\n Enumeration<InetAddress> enumeratedInetAddress;\r\n InetAddress inetAddress;\r\n\r\n for (; enumeratedNetworkInterface.hasMoreElements(); ) {\r\n networkInterface = enumeratedNetworkInterface.nextElement();\r\n enumeratedInetAddress = networkInterface.getInetAddresses();\r\n\r\n for (; enumeratedInetAddress.hasMoreElements(); ) {\r\n inetAddress = enumeratedInetAddress.nextElement();\r\n String anIPAddress = inetAddress.getHostAddress();\r\n if (log.isDebugEnabled()) {\r\n log.debug(\"Scanning local IP space: \" + anIPAddress);\r\n }\r\n\r\n // exclude loop-back and MAC address\r\n if (!(anIPAddress.equals(\"127.0.0.1\") || anIPAddress.contains(\":\")))\r\n localIPAddress = anIPAddress;\r\n }\r\n }\r\n } catch (Exception e) {\r\n log.error(\"Error in retrieving the local IP address: \" + e.toString());\r\n }\r\n }",
"@Override\n public InetAddress getIp() {\n this.ip =\n maybeHostname\n .map(\n hostname -> {\n try {\n return InetAddress.getByName(hostname);\n } catch (final UnknownHostException e) {\n return ip;\n }\n })\n .orElse(ip);\n return ip;\n }",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"public InetAddress getIPAddress ( ) { return _IPAddress; }",
"private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }",
"String getIntegHost();",
"SocketAddress getLocalAddress();",
"String getIp();",
"String getIp();",
"public InetAddress getHost();",
"public static String getDefaultAddress() {\n\t\tEnumeration<NetworkInterface> nets;\n\t\ttry {\n\t\t\tnets = NetworkInterface.getNetworkInterfaces();\n\t\t} catch (SocketException e) {\n\t\t\treturn null;\n\t\t}\n\t\tNetworkInterface netinf;\n\t\twhile (nets.hasMoreElements()) {\n\t\t\tnetinf = nets.nextElement();\n\n\t\t\tEnumeration<InetAddress> addresses = netinf.getInetAddresses();\n\n\t\t\twhile (addresses.hasMoreElements()) {\n\t\t\t\tInetAddress address = addresses.nextElement();\n\t\t\t\tif (!address.isAnyLocalAddress() && !address.isMulticastAddress() && !(address instanceof Inet6Address)) {\n\t\t\t\t\treturn address.getHostAddress();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"int getAddr();",
"InetAddress getAddress();",
"InetAddress getAddress();",
"private void findInternalExternalIP() {\n\t\ttry {\n\t\t\texternalIP = InetAddress.getByName(getExternalIP());\n\t\t} catch (UnknownHostException e) {\n\t\t\tDecentLogger.write(\"Unable to to resolve external IP to InetAddress (problem with ip provider?)\");\n\t\t}\n\t\ttry {\n\t\t\tinternalIP = InetAddress.getLocalHost();\n\t\t} catch (UnknownHostException e) {\n\t\t\tDecentLogger.write(\"Unable to to resolve internal IP to InetAddress\");\n\t\t}\n\t}",
"String getAddr();",
"public String getRemoteIPAddress() {\n String xForwardedFor = getRequestHeader(\"X-Forwarded-For\");\n\n if (!Utils.isEmpty(xForwardedFor)) {\n System.out.println(\"The xForwardedFor address is: \" + xForwardedFor + \"\\n\");\n return xForwardedFor.split(\"\\\\s*,\\\\s*\", 2)[0]; // The xForwardFor is a comma separated string: client,proxy1,proxy2,...\n }\n\n return getRequest().getRemoteAddr();\n }",
"SocketAddress getRemoteAddress();",
"public AddressInfo getLoopbackInterface() {\r\n return loopbackInterface;\r\n }",
"public String getIp() {\n return getIpString(inetAddress);\n }",
"String getRemoteIpAddress();",
"public static Host getLocalHostAddresAndIP() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n // IPv4 only\n if (inetAddress instanceof Inet6Address)\n continue;\n if (!inetAddress.isLoopbackAddress()) {\n Host thisHost = new Host(inetAddress.getHostAddress().toString(), true);\n return thisHost;\n }\n }\n }\n } catch (SocketException ex) {\n ex.printStackTrace();\n }\n return null;\n }",
"public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}",
"NetworkInterface getNetworkInterfaceByAddress(InterfaceAddress interfaceAddress);",
"public String getIp();",
"private String getAddress() {\n\t\tif (localIp != null) {\n\t\t\treturn localIp;\n\t\t}\n\t\tString address = \"\";\n\t\tInetAddress lanIp = null;\n\t\ttry {\n\t\t\tString ipAddress = null;\n\t\t\tEnumeration<NetworkInterface> net = null;\n\t\t\tnet = NetworkInterface.getNetworkInterfaces();\n\t\t\twhile (net.hasMoreElements()) {\n\t\t\t\tNetworkInterface element = net.nextElement();\n\t\t\t\tEnumeration<InetAddress> addresses = element.getInetAddresses();\n\t\t\t\twhile (addresses.hasMoreElements()) {\n\t\t\t\t\tInetAddress ip = addresses.nextElement();\n\t\t\t\t\tif (ip instanceof Inet4Address) {\n\t\t\t\t\t\tif (ip.isSiteLocalAddress()) {\n\t\t\t\t\t\t\tipAddress = ip.getHostAddress();\n\t\t\t\t\t\t\tlanIp = InetAddress.getByName(ipAddress);\n\t\t\t\t\t\t\tSystem.out.println(\"found local address: \" + ipAddress);\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\tif (lanIp == null)\n\t\t\t\treturn null; \n\t\t\taddress = lanIp.toString().replaceAll(\"^/+\", \"\"); \n\t\t} catch (UnknownHostException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn address;\n\n\t}",
"private static String m21403f() {\n String str;\n String str2 = \"\";\n try {\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n while (networkInterfaces.hasMoreElements()) {\n Enumeration inetAddresses = ((NetworkInterface) networkInterfaces.nextElement()).getInetAddresses();\n while (inetAddresses.hasMoreElements()) {\n InetAddress inetAddress = (InetAddress) inetAddresses.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n str2 = inetAddress.getHostAddress();\n }\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return str;\n }",
"public IPAddress getIPAddress() {\n return iPAddress;\n }",
"public String getIp() {\n return (String) get(24);\n }",
"private String getLocalIpAddress() throws Exception {\n return InetAddress.getLocalHost().getHostAddress();\n }",
"private String getWifiIPAddress() {\n\t\tWifiManager wifiManager = (WifiManager) this.getSystemService(this.WIFI_SERVICE);\n\t\tWifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\n\t\tint ipAddress = wifiInfo.getIpAddress();\n\n\t\tif(ipAddress != 0)\n\t\t\t//\n\t\t\treturn String.format(\"%d.%d.%d.%d\",\n\t\t\t\t\t(ipAddress & 0xff), (ipAddress >> 8 & 0xff),\n\t\t\t\t\t(ipAddress >> 16 & 0xff), (ipAddress >> 24 & 0xff));\n\t\telse\n\t\t\treturn \"127.0.0.1\";\n\t}",
"public static String getLocalIPAddress() {\r\n return (localIPAddress);\r\n }",
"private static InetAddress getLocalHost() throws UnknownHostException {\n InetAddress addr;\n try {\n addr = InetAddress.getLocalHost();\n } catch (ArrayIndexOutOfBoundsException e) {\n addr = InetAddress.getByName(null);\n }\n return addr;\n }",
"private String getMobileIP(){\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();\n en.hasMoreElements();) {\n NetworkInterface networkinterface = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = networkinterface.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n return inetAddress.getHostAddress().toString();\n }\n }\n }\n } catch (Exception ex) {\n Log.e(\"Current IP\", ex.toString());\n }\n return null;\n }",
"public static InetAddress getJustLocalAddress()\n {\n if (localInetAddress == null)\n {\n if (DatabaseDescriptor.getListenAddress() == null)\n {\n try\n {\n localInetAddress = InetAddress.getLocalHost();\n logger.info(\"InetAddress.getLocalHost() was used to resolve listen_address to {}, double check this is \"\n + \"correct. Please check your node's config and set the listen_address in cassandra.yaml accordingly if applicable.\",\n localInetAddress);\n }\n catch(UnknownHostException e)\n {\n logger.info(\"InetAddress.getLocalHost() could not resolve the address for the hostname ({}), please \"\n + \"check your node's config and set the listen_address in cassandra.yaml. Falling back to {}\",\n e,\n InetAddress.getLoopbackAddress());\n // CASSANDRA-15901 fallback for misconfigured nodes\n localInetAddress = InetAddress.getLoopbackAddress();\n }\n }\n else\n localInetAddress = DatabaseDescriptor.getListenAddress();\n }\n return localInetAddress;\n }",
"String getInternalHostAddress() throws NotDiscoverUpnpGatewayException;",
"private InetAddress getBroadcastIP()\n\t{\n\t\treturn null;\n\t}",
"private String getIPAddress() throws Exception {\n //Don't need the line of code below, TODO: delete it!\n InetAddress getIP = InetAddress.getLocalHost();\n String thisSystemAddress = \"\";\n try{\n URL thisUrl = new URL(\"http://bot.whatismyipaddress.com\");\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(thisUrl.openStream()));\n thisSystemAddress = bufferedReader.readLine().trim();\n } catch (Exception e){\n e.printStackTrace();\n e.getCause();\n }\n\n return thisSystemAddress;\n }",
"private static String getExternalIP() {\n\t\ttry {\n\t URL checkURL = new URL(EXTERNAL_IP_PROVIDER);\n\t BufferedReader in = new BufferedReader(new InputStreamReader(checkURL.openStream()));;\n\t String ip = in.readLine();\n\t return ip;\n\t } catch (IOException e) {\n\t \t DecentLogger.write(\"Unable to get external IP Address\");\n\t }\n\t\treturn null;\n\t}",
"public static InetAddress getServerInet(){\n return thisServer.getIp();\n }",
"@SuppressLint(\"DefaultLocale\")\n\tprivate String getIpAddr()\n\t{\n\t\tString ipString = null;\n\t\tWifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);\n\t\tif (wifiManager != null)\n\t\t{\n\t\t\tWifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\t\t\tif (wifiInfo != null)\n\t\t\t{\n\t\t\t\tint ip = wifiInfo.getIpAddress();\n\n\t\t\t\tipString = String.format(\"%d.%d.%d.%d\", (ip & 0xff),\n\t\t\t\t\t(ip >> 8 & 0xff), (ip >> 16 & 0xff), (ip >> 24 & 0xff));\n\n\t\t\t}\n\t\t}\n\t\treturn ipString;\n\t}",
"public String getIPAddress()\n {\n return fIPAddress;\n }",
"java.lang.String getDestinationIp();",
"java.lang.String getAgentIP();",
"private String getClientIP(){\n try {\n ConnectivityManager connManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);\n @SuppressWarnings(\"deprecation\")\n NetworkInfo wifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n @SuppressWarnings(\"deprecation\")\n NetworkInfo mobile = connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);\n\n if (wifi.isConnected()) {\n // If Wi-Fi connected\n return getWifiIP();\n }\n\n if (mobile.isConnected()) {\n // If Internet connected\n return getMobileIP();\n }\n\n return null;\n }catch(SecurityException e){\n return null;\n }\n }",
"public String getIp() {\n\t\treturn InfraUtil.getIpMachine();\n\t}",
"private String GetHostAddress() throws UnknownHostException {\n return Inet4Address.getLocalHost().getHostAddress();\n }",
"public String getIPAddress () {\n\t\treturn _ipTextField.getText();\n\t}",
"public String getLocalIpAddress()\n {\n \t\n \treturn null;\n }",
"private static InetAddress getLocalHostLANAddress() throws UnknownHostException {\n\t\ttry {\n\t\t\tInetAddress candidateAddress = null;\n\t\t\t// Iterate all NICs (network interface cards)...\n\t\t\tfor (final Enumeration ifaces = NetworkInterface.getNetworkInterfaces(); ifaces.hasMoreElements();) {\n\t\t\t\tfinal NetworkInterface iface = (NetworkInterface) ifaces.nextElement();\n\t\t\t\t// Iterate all IP addresses assigned to each card...\n\t\t\t\tfor (final Enumeration inetAddrs = iface.getInetAddresses(); inetAddrs.hasMoreElements();) {\n\t\t\t\t\tfinal InetAddress inetAddr = (InetAddress) inetAddrs.nextElement();\n\t\t\t\t\tif (!inetAddr.isLoopbackAddress()) {\n\t\t\t\t\t\tif (inetAddr.getHostAddress().startsWith(\"141\")) {\n\t\t\t\t\t\t\t// Found non-loopback site-local address. Return it immediately...\n\t\t\t\t\t\t\treturn inetAddr;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ((candidateAddress == null) && (inetAddr instanceof Inet4Address)) {\n\t\t\t\t\t\t\t// Found non-loopback address, but not necessarily site-local.\n\t\t\t\t\t\t\t// Store it as a candidate to be returned if site-local address is not subsequently found...\n\t\t\t\t\t\t\tcandidateAddress = inetAddr;\n\t\t\t\t\t\t\t// Note that we don't repeatedly assign non-loopback non-site-local addresses as candidates,\n\t\t\t\t\t\t\t// only the first. For subsequent iterations, candidate will be non-null.\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\tif (candidateAddress != null) {\n\t\t\t\t// We did not find a site-local address, but we found some other non-loopback address.\n\t\t\t\t// Server might have a non-site-local address assigned to its NIC (or it might be running\n\t\t\t\t// IPv6 which deprecates the \"site-local\" concept).\n\t\t\t\t// Return this non-loopback candidate address...\n\t\t\t\treturn candidateAddress;\n\t\t\t}\n\t\t\t// At this point, we did not find a non-loopback address.\n\t\t\t// Fall back to returning whatever InetAddress.getLocalHost() returns...\n\t\t\tfinal InetAddress jdkSuppliedAddress = InetAddress.getLocalHost();\n\t\t\tif (jdkSuppliedAddress == null) {\n\t\t\t\tthrow new UnknownHostException(\"The JDK InetAddress.getLocalHost() method unexpectedly returned null.\");\n\t\t\t}\n\t\t\treturn jdkSuppliedAddress;\n\t\t}\n\t\tcatch (final Exception e) {\n\t\t\tfinal UnknownHostException unknownHostException = new UnknownHostException(\"Failed to determine LAN address: \" + e);\n\t\t\tunknownHostException.initCause(e);\n\t\t\tthrow unknownHostException;\n\t\t}\n\t}",
"public InetAddress getInetAddress() {\n return socket.getInetAddress();\n }",
"public String getIpAddress()\n\t{\n\t\t/* TODO: The IP address returned is in this format: /127.0.0.1:9845\n\t\t * Rewrite to remove the unnessecary data. */\n\t\treturn getSession().getIpAddress();\n\t}",
"int getS1Ip();",
"@Override\r\n public String getIPAddress() {\r\n return address;\r\n }",
"@Nullable public abstract String ipAddress();",
"public static String ipAddress() {\r\n String _ipaddress=\"\";\r\n InetAddress _address=null;\r\n \r\n try {\r\n _address=InetAddress.getLocalHost();\r\n _ipaddress=_address.getHostAddress();\r\n }\r\n catch (Exception ex) {\r\n throw new RuntimeException(ex.getMessage());\r\n }\r\n \r\n if (_address!=null) {\r\n _address=null; System.gc();\r\n }\r\n \r\n return _ipaddress;\r\n }",
"String getRemoteAddr();",
"private void print_addr() {\n try(final DatagramSocket socket = new DatagramSocket()){\n socket.connect(InetAddress.getByName(\"8.8.8.8\"), 10002);\n System.out.println(socket.getLocalAddress().getHostAddress()+\":\"+port);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static native short getRemoteInterfaceAddress(Remote remoteObj, byte interfaceIndex);",
"public InternetAddress getFromAddress();",
"public InetAddress getInetAddress()\n {\n return addr;\n }",
"@NotNull\n InetAddress getAddress();",
"private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }",
"public SocketAddress getLocalSocketAddress() {\n if (state >= BOUND)\n return new InetSocketAddress (localAddr, localPort);\n else\n return null;\n }",
"public LocalSocketAddress getSockAddress() throws IOException {\n // This method has never been implemented.\n return null;\n }",
"abstract String getRemoteAddress();",
"@Test\n public void shouldGetHostAddress() {\n assertEquals(NE_IP, session.getAddress().getHostAddress());\n }",
"public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }",
"public String getInternalAddress();",
"public InetAddress getSuggestedExternalIpAddress() {\n return suggestedExternalIpAddress;\n }",
"public String getIP() {\n return this.IP;\n }",
"java.lang.String getSnIp();",
"java.lang.String getSnIp();",
"public String getIP() throws Exception {\n this.IPAddress = \"http://192.168.1.15\";\n return this.IPAddress;\n }",
"public java.lang.String getIp(){\r\n return localIp;\r\n }",
"public java.lang.String getIp(){\r\n return localIp;\r\n }"
] | [
"0.73864555",
"0.72882015",
"0.7210132",
"0.71562994",
"0.715147",
"0.71273005",
"0.71200216",
"0.7068365",
"0.7068365",
"0.7042978",
"0.7011483",
"0.7011483",
"0.7011483",
"0.70065725",
"0.69613254",
"0.6960397",
"0.6959962",
"0.6959407",
"0.69417965",
"0.6937664",
"0.69267136",
"0.69267136",
"0.69267136",
"0.69267136",
"0.69267136",
"0.69267136",
"0.69267136",
"0.69267136",
"0.68995327",
"0.6891802",
"0.6881824",
"0.68777853",
"0.6870663",
"0.6870663",
"0.68575424",
"0.6818926",
"0.68045",
"0.6803765",
"0.6803765",
"0.6783213",
"0.6771921",
"0.6754342",
"0.6734984",
"0.67203736",
"0.6711091",
"0.6694039",
"0.66859585",
"0.66687703",
"0.6668463",
"0.6660047",
"0.6649027",
"0.6648719",
"0.66331726",
"0.65774226",
"0.65726554",
"0.6564408",
"0.6556524",
"0.65331864",
"0.65253466",
"0.6514203",
"0.6508629",
"0.650324",
"0.6503209",
"0.6485735",
"0.6477927",
"0.64532006",
"0.64491296",
"0.64478874",
"0.6441328",
"0.64135486",
"0.64091647",
"0.6399853",
"0.6391063",
"0.6383114",
"0.63807",
"0.63805354",
"0.6379908",
"0.6377011",
"0.63763726",
"0.63718796",
"0.6362512",
"0.6361769",
"0.63385856",
"0.63214594",
"0.63175154",
"0.63146985",
"0.6314638",
"0.6308991",
"0.6305328",
"0.62965703",
"0.6294924",
"0.6288802",
"0.62833256",
"0.6278943",
"0.62788343",
"0.6269685",
"0.6257866",
"0.6257866",
"0.6249473",
"0.6248896",
"0.6248896"
] | 0.0 | -1 |
Get a new write batch | @Override
public void onSuccess(Void aVoid) {
WriteBatch batch = getFirestoreInstance().batch();
DocumentReference contributorsRef = getListCollectionReference().document(email).collection("contributors").document();
batch.set(contributorsRef, new HashMap<>());
DocumentReference friendsRef = getListCollectionReference().document(email).collection("friends").document();
batch.set(friendsRef, new HashMap<>());
DocumentReference itemsRef = getListCollectionReference().document(email).collection("items").document();
batch.set(itemsRef, new HashMap<>());
// Commit the batch
batch.commit().addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
// ...
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"WorkoutBatch copy();",
"void write(Batch batch) throws InfluxDbApiNotFoundException, InfluxDbApiBadrequestException, InfluxDbTransportException;",
"public String getBatch()\n {\n return batch;\n }",
"public Long createBatch(Batch batch) {\n\t\treturn batchService.createBatch(batch);\n\t}",
"void flushBatch();",
"public B getBatch();",
"public long getBatch()\n {\n return m_lBatch;\n }",
"private InflightBatch popBatch() {\n InflightBatch batch =\n new InflightBatch(\n messages, batchedBytes, this.streamName, this.attachSchema, this.streamWriter);\n this.attachSchema = false;\n reset();\n return batch;\n }",
"public java.lang.String getBatch() {\n return batch;\n }",
"public Object getWriteBatchSize() {\n return this.writeBatchSize;\n }",
"public interface BatchWriter<A, B> {\n /// Starts a new batch of the given size\n public void start(int batchSize);\n /// Sets the object at position i of the batch.\n public void set(int i, A o);\n /// Yields the batch.\n public B getBatch();\n}",
"boolean sendBatch() throws IOException;",
"public gpss.Batch getBatch() {\n if (batchBuilder_ == null) {\n return batch_ == null ? gpss.Batch.getDefaultInstance() : batch_;\n } else {\n return batchBuilder_.getMessage();\n }\n }",
"public gpss.Batch.Builder getBatchBuilder() {\n \n onChanged();\n return getBatchFieldBuilder().getBuilder();\n }",
"@java.lang.Override\n public gpss.Batch getBatch() {\n return batch_ == null ? gpss.Batch.getDefaultInstance() : batch_;\n }",
"@Override\n public void beginDatabaseBatchWrite() throws BlockStoreException {\n if (!autoCommit) {\n return;\n }\n if (instrument)\n beginMethod(\"beginDatabaseBatchWrite\");\n\n batch = db.createWriteBatch();\n uncommited = new HashMap<ByteBuffer, byte[]>();\n uncommitedDeletes = new HashSet<ByteBuffer>();\n utxoUncommittedCache = new HashMap<ByteBuffer, UTXO>();\n utxoUncommittedDeletedCache = new HashSet<ByteBuffer>();\n autoCommit = false;\n if (instrument)\n endMethod(\"beginDatabaseBatchWrite\");\n }",
"public Object getWriteBatchTimeout() {\n return this.writeBatchTimeout;\n }",
"void addBatch() throws SQLException;",
"public void addBatch(List<Map<String, String>> batchData, String batchName);",
"private CompletableFuture<Iterator<T>> batch() {\n return batch.thenCompose(iterator -> {\n if (iterator != null && !iterator.hasNext()) {\n batch = fetch(iterator.position());\n return batch.thenApply(Function.identity());\n }\n return CompletableFuture.completedFuture(iterator);\n });\n }",
"public synchronized List getBufferForWriting() {\n// if some writer is writing or some reader is reading, wait until no one is writing or reading \n while (readerNumber != 0) {\n try {\n this.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n// when readerNumber == 0 \n readerNumber--; // now readderNumber == -1. \n return buffer;\n }",
"public long getCurrentBatch()\n {\n return __m_CurrentBatch;\n }",
"public String getBatchId() {\r\n return batchId;\r\n }",
"public String getBatchId() {\n return batchId;\n }",
"Write createWrite();",
"@Bean(name=\"com.glyde.mall.batch.job.sample.sampleParameterWriter\")\n @StepScope\n public ItemWriter<TestDto> sampleWriter(){\n return new MyBatisBatchItemWriterBuilder<TestDto>()\n .sqlSessionFactory(sqlSessionFactory)\n .statementId(\"com.glyde.mall.batch.job.sample.mapper.TestMapper.update\")\n .assertUpdates(true)\n .build();\n }",
"public byte[] getInitialBatch(){\n batch=2;\n byte ret[]=initialBatch.clone();\n return ret;\n }",
"protected boolean batch() {\n return batch;\n }",
"private int spreadWriteRequests() {\n return RANDOM.nextInt(MAX_SLEEP_TIME);\n }",
"public void runBatch();",
"@Override\n protected Object freshBatch(Object reuse)\n {\n throw new NotImplementedException();\n }",
"public interface WorkoutBatch extends UnObfuscable, Parcelable{\n\n\t/**\n\t * attribute given record to this batch\n\t * @param record which is to be attributed to this batch\n\t */\n\tvoid addRecord(DistRecord record, boolean persistPoints);\n\n\t/**\n\t * @return distance covered in this batch\n\t */\n\tfloat getDistance();\n\n\t/**\n\t * adds distance in this batch\n\t */\n\tvoid addDistance(float distanceToAdd);\n\n\t/**\n\t * sets the start point for this batch\n\t * @param location\n\t */\n\tvoid setStartPoint(Location location, boolean persistPoints);\n\n\t/**\n\t * @return the epoch (in millis) at which this batch began\n\t */\n\tlong getStartTimeStamp();\n\n\t/**\n\t * @return the epoch (in millis) at which this batch ended, or 0 if the batch has not ended yet\n\t */\n\tlong getEndTimeStamp();\n\n\t/**\n\t * @return Name of the file (internal storage) in which this batche's location data is stored\n\t */\n\tString getLocationDataFileName();\n\n\t/**\n\t * @return the epoch (in millis) at which the last point of this batch was recorded\n\t */\n\tlong getLastRecordedTimeStamp();\n\n\t/**\n\t * @return elapsed time, till the batch is running, since the beginning of this batch in secs;\n\t * once the batch completes it returns the total time for which the batch was running\n\t */\n\tfloat getElapsedTime();\n\n\t/**\n\t * @return time interval in secs for which distance has been recorded\n\t */\n\tfloat getRecordedTime();\n\n\t/**\n\t * @return true if user was caught inside a vehicle for this batch, false otherwise\n\t */\n\tboolean wasInVehicle();\n\n\t/**\n\t * @return list of all points of this batch\n\t */\n\tList<WorkoutPoint> getPoints();\n\n\t/**\n\t *completes this batch and returns this after whatever post processing is required\n\t */\n\tWorkoutBatch end(boolean wasInVehicle);\n\n\t/**\n\t * Creates a Deep copy of this batch\n\t */\n\tWorkoutBatch copy();\n}",
"public void addBatch(String sql) throws SQLException {\n\r\n }",
"@Override\n public SEVISBatchCreateUpdateStudent fetchBatchData(BatchParam batchParam) {\n List<Integer> participantIds = batchParam.getParticipant().stream().map(p -> p.getParticipantGoId()).collect(Collectors.toList());\n // @formatter:on\n\n List<Participant> participants = participantRepository.findByParticipantGoIdIn(participantIds);\n\n // @formatter:off\n // map each participants into Student\n List<Student> students = participants.stream().map(p -> createStudentForUpdate(\"N0000000000\", \"1\", batchParam.getUserId())).collect(Collectors.toList());\n // @formatter:on\n\n students.forEach(s -> s.setProgram(createProgramExtension(true, SevisUtils.convert(LocalDate.now()), \"Explanation\")));\n\n String batchId = SevisUtils.createBatchId();\n SEVISBatchCreateUpdateStudent updateBatch = createUpdateStudentBatch(batchParam.getUserId(), \"P-1-12345\", batchId);\n updateBatch.getUpdateStudent().getStudent().addAll(students);\n\n return updateBatch;\n }",
"public gpss.BatchOrBuilder getBatchOrBuilder() {\n if (batchBuilder_ != null) {\n return batchBuilder_.getMessageOrBuilder();\n } else {\n return batch_ == null ?\n gpss.Batch.getDefaultInstance() : batch_;\n }\n }",
"public Batch next() {\n\n // exit if all partitions have been tackled\n if (partitionPointer == this.numBuffers-1) {\n return null;\n }\n\n // for each partition, dedup\n TupleReader reader = new TupleReader(getTmpFileName(this.partitionPointer), this.batchsize);\n reader.open(); \n\n Batch[] slots = new Batch[this.numBuffers-1]; \n for (int j=0; j<this.numBuffers-1; j++) {\n // Assumption: no slot overflows during probing\n // TODO: make partition recursive\n slots[j] = new Batch(this.batchsize); \n }\n \n while (!reader.isEOF()) {\n Tuple tup = reader.next(); \n int candidate = this.hashTupleH2(tup)%(this.numBuffers-1); \n if (!(slots[candidate].contains(tup))) {\n slots[candidate].add(tup);\n } \n }\n \n reader.close(); \n\n outbatch = new Batch(batchsize);\n\n for (int i=0; i<this.numBuffers-1; i++) {\n for (int k = 0; k < slots[i].size(); k++) {\n outbatch.add(slots[i].get(k));\n }\n }\n\n partitionPointer++; \n slots = null; \n \n return outbatch;\n }",
"public String getBatchNo() {\r\n return batchNo;\r\n }",
"public void addBatch(List<Map<String, String>> batchData);",
"public boolean putNewBatch(String key) {\n if (currentFileSize<maxFileSize) {\n currentFileSize++;\n fileIndex.put(key, currentFileId);\n String file = \"idx-\"+mySerial+\"-\"+currentFileId;\n }\n else {\n currentFileId++;\n currentFileSize=0;\n fileIndex.put(key, currentFileId);\n String file = \"idx-\"+mySerial+\"-\"+currentFileId;\n }\n return false;\n }",
"public interface Batch {\n /**\n * Process one iteration of this batch.\n *\n * @param maxBlocks The maximum number of blocks the batch should process\n * @return The number of blocks processed.\n */\n int process(int maxBlocks);\n\n /**\n * Whether or not this batch is finished\n *\n * @return true if finished\n */\n boolean isFinished();\n\n /**\n * Immediately finish this batch.\n *\n * <p>This may cancel any remaining operations, but should\n * clean up, add to undo queues, etc, whatever has been\n * done so far.\n */\n void finish();\n\n /**\n * Finish this batch and force-cancel any outstanding effects.\n */\n void cancel();\n\n /**\n * The size of this batch. May be in blocks, or some\n * other abstract unit.\n *\n * <p>Can be used in conjunction with remaining() for a progress indicator.\n *\n * @return The size of this batch.\n */\n int size();\n\n /**\n * The remaining size of this batch. May be in blocks, or some\n * other abstract unit.\n *\n * <p>Can be used in conjunction with size() for a progress indicator.\n *\n * @return The remaining size of this batch.\n */\n int remaining();\n\n /**\n * Return a friendly name to identify this batch.\n * @return A readable name\n */\n String getName();\n}",
"public String getBatchName(G group, Batch<K, T> batch) {\n return \"batch(\" + batch.size() + \")\";\n }",
"protected void emitBatch(){\n synchronized(this){\n\n revokeSendBatch();\n\n int viewn = getCurrentViewNumber();\n long seqn = getStateLog().getNextPrePrepareSEQ();\n\n PBFTRequestInfo rinfo = getRequestInfo();\n if(!rinfo.hasSomeWaiting()){\n return;\n }\n /* creates a new pre-prepare message */\n PBFTPrePrepare pp = null;\n\n int size = 0;\n\n /* while has not achieved the batch size and there is digests in queue */\n String digest = null;\n while(size < getBatchSize() && (digest = rinfo.getFirtRequestDigestWaiting())!= null){\n if(pp == null){\n pp = new PBFTPrePrepare(viewn, seqn, getLocalServerID());\n }\n pp.getDigests().add(digest);\n rinfo.assign(digest, RequestState.PREPREPARED);\n size += 1;//rinfo.getRequestSize(digest);\n }\n\n if(pp == null){\n return;\n }\n \n /* emits pre-prepare */\n emitPrePrepare(pp);\n //emit(pp, getLocalGroup().minus(getLocalProcess()));\n\n /* update log current pre-prepare */\n handle(pp);\n\n /* if there is digest then it will schedule a send batch */\n if(rinfo.hasSomeWaiting()){\n batch();\n }//end if digest queue is no empty\n\n }//end synchronized(this)\n }",
"public Integer getBatchId() {\r\n\t\treturn batchId;\r\n\t}",
"public Object[] startingBatchEmit(int bank, int start, int end, boolean toFile) \n {\n return new Object[0]; \n }",
"@SuppressWarnings(\"resource\")\n @Explain(\"We close the statement later, this is just an intermediate\")\n protected void addBatch() throws SQLException {\n prepareStmt().addBatch();\n batchBacklog++;\n if (batchBacklog > batchBacklogLimit) {\n commit();\n }\n }",
"public abstract void Write(WriteOptions options, WriteBatch updates) throws IOException, BadFormatException, DecodeFailedException;",
"protected String createBatchAndUpload() throws IOException {\n String batchId;\n try (CloseableClientResponse response = getResponse(RequestType.POST, \"upload\")) {\n assertEquals(Status.CREATED.getStatusCode(), response.getStatus());\n JsonNode node = mapper.readTree(response.getEntityInputStream());\n batchId = node.get(\"batchId\").asText();\n assertNotNull(batchId);\n }\n\n // fist file\n \n String data = \"SomeDataExtractedFromNuxeoDBToFeedTensorFlow\";\n String fileSize = String.valueOf(data.getBytes(UTF_8).length);\n Map<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"text/plain\");\n headers.put(\"X-Upload-Type\", \"normal\");\n headers.put(\"X-File-Name\", \"aidata.bin\");\n headers.put(\"X-File-Size\", fileSize);\n headers.put(\"X-File-Type\", \"application/octet-stream\");\n\n try (CloseableClientResponse response = getResponse(RequestType.POST, \"upload/\" + batchId + \"/0\", data,\n headers)) {\n assertEquals(Status.CREATED.getStatusCode(), response.getStatus());\n JsonNode node = mapper.readTree(response.getEntityInputStream());\n assertEquals(\"true\", node.get(\"uploaded\").asText());\n assertEquals(batchId, node.get(\"batchId\").asText());\n assertEquals(\"0\", node.get(\"fileIdx\").asText());\n assertEquals(\"normal\", node.get(\"uploadType\").asText());\n } \n\n // second file\n data = \"SomeDataExtractedFromNuxeoDBToValidateTensorFlow\";\n fileSize = String.valueOf(data.getBytes(UTF_8).length);\n headers.clear();\n headers.put(\"Content-Type\", \"text/plain\");\n headers.put(\"X-Upload-Type\", \"normal\");\n headers.put(\"X-File-Name\", \"aidatacheck.bin\");\n headers.put(\"X-File-Size\", fileSize);\n headers.put(\"X-File-Type\", \"application/octet-stream\");\n\n try (CloseableClientResponse response = getResponse(RequestType.POST, \"upload/\" + batchId + \"/1\", data,\n headers)) {\n assertEquals(Status.CREATED.getStatusCode(), response.getStatus());\n JsonNode node = mapper.readTree(response.getEntityInputStream());\n assertEquals(\"true\", node.get(\"uploaded\").asText());\n assertEquals(batchId, node.get(\"batchId\").asText());\n assertEquals(\"1\", node.get(\"fileIdx\").asText());\n assertEquals(\"normal\", node.get(\"uploadType\").asText());\n } \n \n return batchId;\n }",
"protected void startBatch() {\n \n }",
"public void runBatch(String batchName);",
"@Bean\n public Step step1(JdbcBatchItemWriter<Person> writer) {\n return stepBuilderFactory.get(\"step1\")\n .<Person, Person> chunk(10)\n .reader(this.reader())\n .processor(this.processor())\n .writer(writer)\n .build();\n }",
"com.google.spanner.v1.Mutation.Write getUpdate();",
"@Override\n\tpublic List getBatch_list() {\n\t\treturn batch_list;\n\t}",
"@DISPID(85)\r\n\t// = 0x55. The runtime will prefer the VTID if present\r\n\t@VTID(83)\r\n\tint batchID();",
"void addLogToBatch(TelemetryData log) throws IOException;",
"public Object[] stoppingBatchEmit(int bank, int start, int end, boolean toFile) \n {\n return new Object[0]; \n }",
"@Test\n public void testBatchSink() throws Exception {\n List<WALEntry> entries = new ArrayList<>(TestReplicationSink.BATCH_SIZE);\n List<Cell> cells = new ArrayList<>();\n for (int i = 0; i < (TestReplicationSink.BATCH_SIZE); i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, Put, cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n Scan scan = new Scan();\n ResultScanner scanRes = TestReplicationSink.table1.getScanner(scan);\n Assert.assertEquals(TestReplicationSink.BATCH_SIZE, scanRes.next(TestReplicationSink.BATCH_SIZE).length);\n }",
"private synchronized boolean sendBatch() {\n if (fPending.isEmpty()) {\n return true;\n }\n\n final long nowMs = Clock.now();\n\n if (this.fHostSelector != null) {\n host = this.fHostSelector.selectBaseHost();\n }\n\n final String httpurl = MRConstants.makeUrl(host, fTopic, props.getProperty(DmaapClientConst.PROTOCOL),\n props.getProperty(DmaapClientConst.PARTITION));\n\n try {\n\n final ByteArrayOutputStream baseStream = new ByteArrayOutputStream();\n OutputStream os = baseStream;\n final String contentType = props.getProperty(DmaapClientConst.CONTENT_TYPE);\n if (contentType.equalsIgnoreCase(MRFormat.JSON.toString())) {\n JSONArray jsonArray = parseJSON();\n os.write(jsonArray.toString().getBytes());\n os.close();\n\n } else if (contentType.equalsIgnoreCase(CONTENT_TYPE_TEXT)) {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA.toString())\n || (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString()))) {\n if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString())) {\n os = new GZIPOutputStream(baseStream);\n }\n for (TimestampedMessage m : fPending) {\n\n os.write((\"\" + m.fPartition.length()).getBytes());\n os.write('.');\n os.write((\"\" + m.fMsg.length()).getBytes());\n os.write('.');\n os.write(m.fPartition.getBytes());\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n\n }\n os.close();\n }\n\n final long startMs = Clock.now();\n if (ProtocolType.DME2.getValue().equalsIgnoreCase(protocolFlag)) {\n\n configureDME2();\n\n this.wait(5);\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), url + subContextPath, nowMs - fPending.peek().timestamp);\n }\n sender.setPayload(os.toString());\n String dmeResponse = sender.sendAndWait(5000L);\n\n logTime(startMs, dmeResponse);\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AUTH_KEY.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result =\n postAuth(new PostAuthDataObject().setPath(httpurl).setData(baseStream.toByteArray())\n .setContentType(contentType).setAuthKey(authKey).setAuthDate(authDate)\n .setUsername(username).setPassword(password).setProtocolFlag(protocolFlag));\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AAF_AUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = post(httpurl, baseStream.toByteArray(), contentType, username, password,\n protocolFlag);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.HTTPNOAUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = postNoAuth(httpurl, baseStream.toByteArray(), contentType);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n } catch (InterruptedException e) {\n getLog().warn(\"Interrupted!\", e);\n // Restore interrupted state...\n Thread.currentThread().interrupt();\n } catch (Exception x) {\n getLog().warn(x.getMessage(), x);\n }\n return false;\n }",
"@java.lang.Override\n public gpss.BatchOrBuilder getBatchOrBuilder() {\n return getBatch();\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED)\n\tpublic List<Batch> findAllCurrent();",
"private void writeBatchToFile(ArrayList<SensorEntry> batch) {\n\n\t\tFile file = new File(currFolder + \"/\" + entriesRecorded + \".csv\");\n\n\t\ttry {\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(file);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\toutputStream.write(Constants.INS_DATA_HEADER.getBytes());\n\t\t\t}\n\n\t\t\tfor (SensorEntry e : batch)\n\t\t\t\toutputStream.write((e.toRawString() + \",\" + e.getTimeRecorded() + \"\\n\").getBytes());\n\n\t\t\toutputStream.close();\n\n\t\t\tsetsOfEntriesRecorded++;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public java.lang.String getBatchNo () {\n\t\treturn batchNo;\n\t}",
"private BufferedWriter getWriter(int secretPos) throws IOException {\n\t\tFile file = new File(\"reportingTool_tmp\" + sep + this.uniqueName + \"-\" + \"histogram_\" + this.dataset.getSecrets().get(secretPos).getFileName() + \".txt\");\n\t\tFileWriter writer = new FileWriter(file);\n\t\tBufferedWriter bw = new BufferedWriter(writer);\n\t\treturn bw;\n\t}",
"boolean getIsLastBatch();",
"int insert(BPBatchBean record);",
"private void saveCommands(byte[][] commands, MessageContext[] msgCtx) {\n //if(!config.isToLog())\n //\treturn; \n if (commands.length != msgCtx.length) {\n logger.debug(\"SIZE OF COMMANDS AND MESSAGE CONTEXTS IS DIFFERENT----\");\n logger.debug(\"COMMANDS: \" + commands.length + \", CONTEXTS: \" + msgCtx.length + \" ----\");\n }\n logLock.lock();\n\n int cid = msgCtx[0].getConsensusId();\n int batchStart = 0;\n for (int i = 0; i <= msgCtx.length; i++) {\n if (i == msgCtx.length) { // the batch command contains only one command or it is the last position of the array\n byte[][] batch = Arrays.copyOfRange(commands, batchStart, i);\n MessageContext[] batchMsgCtx = Arrays.copyOfRange(msgCtx, batchStart, i);\n log.addMessageBatch(batch, batchMsgCtx, cid);\n } else {\n if (msgCtx[i].getConsensusId() > cid) { // saves commands when the cid changes or when it is the last batch\n byte[][] batch = Arrays.copyOfRange(commands, batchStart, i);\n MessageContext[] batchMsgCtx = Arrays.copyOfRange(msgCtx, batchStart, i);\n log.addMessageBatch(batch, batchMsgCtx, cid);\n cid = msgCtx[i].getConsensusId();\n batchStart = i;\n }\n }\n }\n logLock.unlock();\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Defines multiple tasks which can be executed as a batch (e.g. signatures which accept same data).\")\n @JsonProperty(JSON_PROPERTY_BATCH_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getBatchId() {\n return batchId;\n }",
"org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDef();",
"@Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED)\n\tpublic Batch findOneWithTraineesAndGrades(Integer batchId);",
"int batchSize();",
"public Integer getBatch_id() {\n\t\treturn batch_id;\n\t}",
"private void logCurrentSensorEntriesBatch() {\n\t\tentriesRecorded++;\n\n\t\tint targetBatchSize = Constants.MS_FREQUENCY_FOR_CAMERA_CAPTURE / Constants.MS_INS_SAMPLING_FREQUENCY;\n\n\t\tArrayList<SensorEntry> toProcess = new ArrayList<SensorEntry>(this.sensorEntryBatch.subList(0, targetBatchSize));\n\t\tthis.sensorEntryBatch = new ArrayList<SensorEntry>(this.sensorEntryBatch.subList(targetBatchSize,\n\t\t\t\ttargetBatchSize));\n\n\t\tthis.writeBatchToFile(toProcess);\n\t}",
"public int getBatchSize();",
"public long getWrites()\n/* */ {\n/* 67 */ return this.writes;\n/* */ }",
"public void setBatch(java.lang.String batch) {\n this.batch = batch;\n }",
"public long getWriteId() {\n return writeId;\n }",
"int getWriterConcurrency();",
"com.google.ads.googleads.v6.resources.BatchJob getBatchJob();",
"@Test\n public void sendBatchTest() {\n Batch batch = null;\n // List<BatchReturn> response = api.sendBatch(batch);\n\n // TODO: test validations\n }",
"public Collection<Long> modifyBatchKey(String oldKey, String newKey) {\n //remove the batch from its old location\n Collection<Long> batch = removeBatch(oldKey);\n if(index.containsKey(newKey))\n index.get(newKey).addAll(batch);\n else\n index.put(newKey, batch);\n Collection<Long> batchCopy = new HashSet<Long>(batch);\n //put batch in its new location.\n putBatch(newKey, batch);\n return batchCopy;\n }",
"public RecordWriter<ImmutableBytesWritable, KeyValue> getRecordWriter(TaskAttemptContext context)\n throws IOException, InterruptedException {\n final Path outputPath = FileOutputFormat.getOutputPath(context);\n final Path outputdir = new FileOutputCommitter(outputPath, context).getWorkPath();\n Configuration conf = context.getConfiguration();\n final FileSystem fs = outputdir.getFileSystem(conf);\n // These configs. are from hbase-*.xml\n final long maxsize = conf.getLong(\"hbase.hregion.max.filesize\", 268435456);\n final int blocksize = conf.getInt(\"hfile.min.blocksize.size\", 65536);\n // Invented config. Add to hbase-*.xml if other than default compression.\n final String compression = conf.get(\"hfile.compression\",\n Compression.Algorithm.NONE.getName());\n\n return new RecordWriter<ImmutableBytesWritable, KeyValue>() {\n // Map of families to writers and how much has been output on the writer.\n private final Map<byte [], WriterLength> writers =\n new TreeMap<byte [], WriterLength>(Bytes.BYTES_COMPARATOR);\n private byte [] previousRow = HConstants.EMPTY_BYTE_ARRAY;\n private final byte [] now = Bytes.toBytes(System.currentTimeMillis());\n\n public void write(ImmutableBytesWritable row, KeyValue kv)\n throws IOException {\n long length = kv.getLength();\n byte [] family = kv.getFamily();\n WriterLength wl = this.writers.get(family);\n if (wl == null || ((length + wl.written) >= maxsize) &&\n Bytes.compareTo(this.previousRow, 0, this.previousRow.length,\n kv.getBuffer(), kv.getRowOffset(), kv.getRowLength()) != 0) {\n // Get a new writer.\n Path basedir = new Path(outputdir, Bytes.toString(family));\n if (wl == null) {\n wl = new WriterLength();\n this.writers.put(family, wl);\n if (this.writers.size() > 1) throw new IOException(\"One family only\");\n // If wl == null, first file in family. Ensure family dir exits.\n if (!fs.exists(basedir)) fs.mkdirs(basedir);\n }\n wl.writer = getNewWriter(wl.writer, basedir);\n Log.info(\"Writer=\" + wl.writer.getPath() +\n ((wl.written == 0)? \"\": \", wrote=\" + wl.written));\n wl.written = 0;\n }\n kv.updateLatestStamp(this.now);\n wl.writer.append(kv);\n wl.written += length;\n // Copy the row so we know when a row transition.\n this.previousRow = kv.getRow();\n }\n\n /* Create a new HFile.Writer. Close current if there is one.\n * @param writer\n * @param familydir\n * @return A new HFile.Writer.\n * @throws IOException\n */\n private HFile.Writer getNewWriter(final HFile.Writer writer,\n final Path familydir)\n throws IOException {\n close(writer);\n return new HFile.Writer(fs, StoreFile.getUniqueFile(fs, familydir),\n blocksize, compression, KeyValue.KEY_COMPARATOR);\n }\n\n private void close(final HFile.Writer w) throws IOException {\n if (w != null) {\n StoreFile.appendMetadata(w, System.currentTimeMillis(), true);\n w.close();\n }\n }\n\n public void close(TaskAttemptContext c)\n throws IOException, InterruptedException {\n for (Map.Entry<byte [], WriterLength> e: this.writers.entrySet()) {\n close(e.getValue().writer);\n }\n }\n };\n }",
"com.google.spanner.v1.Mutation.Write getInsert();",
"public int getBatchSize() {\n return _batchSize;\n }",
"public BatchExecutionCommandImpl getBatchCommand() {\n return getBatchCommand(DAFAULT_KIE_SESSION);\n }",
"@Override\npublic int writingBenches() {\n\treturn 200;\n}",
"@Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED)\n\tpublic Batch findByBatchId(Integer batchId);",
"void writeCurrentBuffer();",
"public interface DataWriter extends DataAdapter {\n\n /**\n * add an item to the list of pending work to be written.\n *\n * @param record DataRecord to add\n */\n void addItem(DataRecord record);\n\n /**\n * flush the list of work to be written\n */\n void flushBatch();\n\n /**\n * called by the system just prior to a normal shutdown.\n */\n void finish();\n\n\n}",
"private List<InflightBatch> add(AppendRequestAndFutureResponse outstandingAppend) {\n List<InflightBatch> batchesToSend = new ArrayList<>();\n // Check if the next message makes the current batch exceed the max batch byte size.\n if (!isEmpty()\n && hasBatchingBytes()\n && getBatchedBytes() + outstandingAppend.messageSize >= getMaxBatchBytes()) {\n batchesToSend.add(popBatch());\n }\n\n messages.add(outstandingAppend);\n batchedBytes += outstandingAppend.messageSize;\n\n // Border case: If the message to send is greater or equals to the max batch size then send it\n // immediately.\n // Alternatively if after adding the message we have reached the batch max messages then we\n // have a batch to send.\n if ((hasBatchingBytes() && outstandingAppend.messageSize >= getMaxBatchBytes())\n || getMessagesCount() == batchingSettings.getElementCountThreshold()) {\n batchesToSend.add(popBatch());\n }\n\n return batchesToSend;\n }",
"public void submit(Batch batch);",
"public int getBatchSize()\r\n/* 23: */ {\r\n/* 24:42 */ return BatchUpdateUtils.this.size();\r\n/* 25: */ }",
"@Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED)\n\tpublic Batch findOneWithDroppedTrainees(Integer batchId);",
"int insertSelective(BPBatchBean record);",
"int insertBatch(List<Basicinfo> list);",
"public Batch findById(Long id) {\n return batchRepository.getOne(id);\n }",
"public void startWrite() throws ThingsException;",
"public Task<T> batchable(final String desc, final K key) {\n return Task.async(\"batched: \" + desc, ctx -> {\n final SettablePromise<T> result = Promises.settable();\n Long planId = ctx.getPlanId();\n BatchBuilder<K, T> builder = _batches.get(planId);\n if (builder == null) {\n builder = Batch.builder();\n BatchBuilder<K, T> existingBuilder = _batches.putIfAbsent(planId, builder);\n if (existingBuilder != null) {\n builder = existingBuilder;\n }\n }\n builder.add(key, ctx.getShallowTraceBuilder(), result);\n return result;\n });\n }",
"public Builder setBatch(gpss.Batch value) {\n if (batchBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n batch_ = value;\n onChanged();\n } else {\n batchBuilder_.setMessage(value);\n }\n\n return this;\n }",
"@Override\n public void addBatch( String sql ) throws SQLException {\n throw new SQLException(\"tinySQL does not support addBatch.\");\n }",
"protected void endBatch() {\n \n }",
"@Override\n public int[] executeBatch() {\n if (this.batchPos == 0) {\n return new int[0];\n }\n try {\n int[] arrn = this.db.executeBatch(this.pointer, this.batchPos / this.paramCount, this.batch);\n return arrn;\n }\n finally {\n this.clearBatch();\n }\n }",
"@Override\n default ManagerPrx ice_batchDatagram()\n {\n return (ManagerPrx)_ice_batchDatagram();\n }"
] | [
"0.6338505",
"0.6161451",
"0.5740656",
"0.572304",
"0.5718027",
"0.5636798",
"0.56069344",
"0.55813783",
"0.5575093",
"0.55644184",
"0.5545316",
"0.5492014",
"0.5488202",
"0.5477215",
"0.5459907",
"0.5394218",
"0.5383342",
"0.5330344",
"0.53016603",
"0.52917266",
"0.5275318",
"0.5269019",
"0.52647954",
"0.5237347",
"0.52355963",
"0.5217246",
"0.5203645",
"0.5197096",
"0.5139499",
"0.513774",
"0.51350504",
"0.5107855",
"0.5060279",
"0.50414395",
"0.50315386",
"0.50129694",
"0.50055027",
"0.49932742",
"0.49928612",
"0.49907422",
"0.49798647",
"0.4964719",
"0.49555153",
"0.49452645",
"0.49319628",
"0.48946685",
"0.48513138",
"0.48376048",
"0.48269883",
"0.48227423",
"0.48226985",
"0.48194587",
"0.47900733",
"0.4785666",
"0.4769902",
"0.47680646",
"0.47614646",
"0.4757295",
"0.4751062",
"0.47441077",
"0.47430247",
"0.47364187",
"0.47357818",
"0.47305232",
"0.47293133",
"0.47201908",
"0.47131926",
"0.47058475",
"0.47048458",
"0.47020292",
"0.46852884",
"0.46760097",
"0.46697602",
"0.4667544",
"0.46652475",
"0.46547374",
"0.465217",
"0.4649124",
"0.4632463",
"0.4631764",
"0.46225226",
"0.46218824",
"0.46178952",
"0.46145782",
"0.4610555",
"0.46088183",
"0.46074718",
"0.46062288",
"0.46046343",
"0.45972657",
"0.45896244",
"0.45887762",
"0.4581732",
"0.4577295",
"0.4571832",
"0.4570377",
"0.4563403",
"0.45559505",
"0.4554969",
"0.4539095",
"0.453699"
] | 0.0 | -1 |
JCYPHER return unique results e.g. ...aggregate().DISTINCT().sum(n.property("eyeColor")) | public Aggregate DISTINCT() {
ReturnExpression rx = (ReturnExpression)this.astNode;
ReturnAggregate ra = (ReturnAggregate) rx.getReturnValue();
ra.setDistinct();
Aggregate ret = new Aggregate(rx);
return ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String findAllAggrGroupByDistinct();",
"@NotNull\n EntityIterable distinct();",
"List<T> getAllDistinct();",
"@Generated\n @Selector(\"returnsDistinctResults\")\n public native boolean returnsDistinctResults();",
"@Override\n public String getAggrFunctionName() {\n return FUNC_INTERSECT_COUNT_DISTINCT;\n }",
"public final SelectImpl distinct() {\n selectDistinct = true;\n return this;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return this.distinct;\n }",
"public DistinctValues()\n {\n super();\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n return distinct;\r\n }",
"public boolean isDistinct() {\r\n\t\treturn distinct;\r\n\t}",
"public boolean isDistinct() {\r\n\t\treturn distinct;\r\n\t}",
"public boolean isDistinct() {\r\n\t\treturn distinct;\r\n\t}",
"public boolean isDistinct() {\r\n\t\treturn distinct;\r\n\t}",
"public boolean isDistinct() {\r\n\t\treturn distinct;\r\n\t}",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }",
"public boolean isDistinct() {\n return distinct;\n }"
] | [
"0.670238",
"0.64508164",
"0.60476243",
"0.6011655",
"0.5896051",
"0.5822612",
"0.5710507",
"0.5602598",
"0.5601253",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.55668694",
"0.555337",
"0.555337",
"0.555337",
"0.555337",
"0.555337",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864",
"0.55315864"
] | 0.6537549 | 1 |
data to be returned | public AlignmentCompareResult getAlignmentEvaluation(Map<String, String> alignmentResult, String repeatInfo) {
AlignmentCompareResult alignmentCompareResult = new AlignmentCompareResult();
char correctedChar, artificialChar, originalChar, repeatChar;
// getting each key
String originalKey = "", artificialKey = "", correctedKey = "";
for (String seqKey : alignmentResult.keySet()) {
if (seqKey.toLowerCase().startsWith("r")) {
originalKey = seqKey;
} else if (seqKey.toLowerCase().startsWith("a")) {
artificialKey = seqKey;
} else {
correctedKey = seqKey;
}
}
int start = getNumberOfHypthens(alignmentResult.get(correctedKey), false);
int rightHyphens = getNumberOfHypthens(alignmentResult.get(correctedKey), true);
// length is 1 based but extracting is 0 based
int end = alignmentResult.get(correctedKey).length() - rightHyphens;
// variable to calculate efficiency
int corIndelSimple = 0;
int corMismatchSimple = 0;
int uncorIndelSimple = 0;
int uncorMismatchSimple = 0;
int introducedIndelSimple = 0;
int introducedMismatchSimple = 0;
// efficiency in other repeats
int corIndelOther = 0;
int corMismatchOther = 0;
int uncorIndelOther = 0;
int uncorMismatchOther = 0;
int introducedIndelOther = 0;
int introducedMismatchOther = 0;
// efficiency in non repeats
int corIndelNoRepeat = 0;
int corMismatchNoRepeat = 0;
int uncorIndelNoRepeat = 0;
int uncorMismatchNoRepeat = 0;
int introducedIndelNoRepeat = 0;
int introducedMismatchNoRepeat = 0;
// efficiency overall
int corIndel = 0; // ref = - and cor = - OR art = - and cor
// == ref
int corMismatch = 0; // ref == cor != art and ref == [ACGT]
int uncorIndel = 0; // ref = - and cor = [ACGT] OR art = -
// and ref = [ACGT]
int uncorMismatch = 0; // ref != art == cor
int introducedIndel = 0; // cor = [ACGT] and ref = - OR cor
// = - and ref = [ACGT]
int introducedMismatch = 0; // ref != cor != art
if (!repeatInfo.isEmpty()) {
int repearIterator = getBeginningOfRepeatseq(start, alignmentResult.get(originalKey));
if(repearIterator > 0){
repearIterator = repearIterator - 1;
}
// length is 1 based but extracting is 0 based
// System.out.println("===============================\nsequence name is "+ correctedKey+
// " length of repeat seq "+ repeatInfo.length()+
// " length of original seq with hyphens "+ alignmentResult.get(originalKey).length()+
// " length of original seq after removing hyphens "+ alignmentResult.get(originalKey).replaceAll("-", "").length()+
// " length of corrected "+ alignmentResult.get(correctedKey).length()+
// " length of artificial "+ alignmentResult.get(artificialKey).length()+
// " repeat iterator beginning "+repearIterator+
// " start is "+start+
// " end is "+end);
for (int i = start; i < end; i++) {
originalChar = Character.toLowerCase(alignmentResult.get(originalKey).charAt(i));
artificialChar = Character.toLowerCase(alignmentResult.get(artificialKey).charAt(i));
correctedChar = Character.toLowerCase(alignmentResult.get(correctedKey).charAt(i));
if (originalChar != '-')
repearIterator++;
// if(repearIterator >= repeatInfo.length()){
// System.out.println("last index of repeat iterator before crash is "+ repearIterator+" last index for sequence "+ i);
// System.out.println(alignmentResult.get(originalKey));
// }
if ((end -1) == i) {
repearIterator--;
}
try {
repeatChar = Character.toLowerCase(repeatInfo.charAt(repearIterator));
} catch (IndexOutOfBoundsException e) {
e.printStackTrace();
repeatChar = repeatInfo.charAt(repearIterator-1);
System.out.println("an error happened in "+ correctedKey +" where all repeat info is "
+repeatInfo.length()+ " at position "+repearIterator+" before the end of sequence at "+i+" from total"+ end);
repearIterator--;
}
// if (originalChar == '-'){
// repearIterator = repearIterator;
// }else {
// repearIterator++;
// }
switch (repeatChar) {
// Simple repeat
case 's':
if (correctedChar == artificialChar && correctedChar == originalChar) {
// do nothing
} else if (correctedChar == originalChar) {
if ((artificialChar == '-') || (correctedChar == '-'))
corIndelSimple++;
else
corMismatchSimple++;
} else {
if (correctedChar == artificialChar) {
if (correctedChar == '-')
uncorMismatchSimple++;
else
uncorIndelSimple++;
} else {
if ((correctedChar == '-') || (originalChar == '-'))
introducedIndelSimple++;
else
introducedMismatchSimple++;
}
}
break;
// otHer repeat
case 'h':
if (correctedChar == artificialChar && correctedChar == originalChar) {
// do nothing
} else if (correctedChar == originalChar) {
if ((artificialChar == '-') || (correctedChar == '-'))
corIndelOther++;
else
corMismatchOther++;
} else {
if (correctedChar == artificialChar) {
if (correctedChar == '-')
uncorMismatchOther++;
else
uncorIndelOther++;
} else {
if ((correctedChar == '-') || (originalChar == '-'))
introducedIndelOther++;
else
introducedMismatchOther++;
}
}
break;
// no repeat
default:
if (correctedChar == artificialChar && correctedChar == originalChar) {
// do nothing
} else if (correctedChar == originalChar) {
if ((artificialChar == '-') || (correctedChar == '-'))
corIndelNoRepeat++;
else
corMismatchNoRepeat++;
} else {
if (correctedChar == artificialChar) {
if (correctedChar == '-')
uncorMismatchNoRepeat++;
else
uncorIndelNoRepeat++;
} else {
if ((correctedChar == '-') || (originalChar == '-'))
introducedIndelNoRepeat++;
else
introducedMismatchNoRepeat++;
}
}
break;
}
}
// System.out.println("repeat iterator after loop "+repearIterator);
} else {
for (int i = start; i <= (end - 1); i++) {
originalChar = Character.toLowerCase(alignmentResult.get(originalKey).charAt(i));
artificialChar = Character.toLowerCase(alignmentResult.get(artificialKey).charAt(i));
correctedChar = Character.toLowerCase(alignmentResult.get(correctedKey).charAt(i));
if (correctedChar == artificialChar && correctedChar == originalChar) {
// do nothing
} else if (correctedChar == originalChar) {
if ((artificialChar == '-') || (correctedChar == '-'))
corIndel++;
else
corMismatch++;
} else {
if (correctedChar == artificialChar) {
if (correctedChar == '-')
uncorMismatch++;
else
uncorIndel++;
} else {
if ((correctedChar == '-') || (originalChar == '-'))
introducedIndel++;
else
introducedMismatch++;
}
}
}
}
alignmentCompareResult.setStart(start);
alignmentCompareResult.setEnd(end);
alignmentCompareResult.setCorIndel(corIndel);
alignmentCompareResult.setCorMismatch(corMismatch);
alignmentCompareResult.setUncorIndel(uncorIndel);
alignmentCompareResult.setUncorMismatch(uncorMismatch);
alignmentCompareResult.setIntroducedIndel(introducedIndel);
alignmentCompareResult.setIntroducedMismatch(introducedMismatch);
alignmentCompareResult.setCorIndelNoRepeat(corIndelNoRepeat);
alignmentCompareResult.setCorMismatchNoRepeat(corMismatchNoRepeat);
alignmentCompareResult.setUncorMismatchNoRepeat(uncorMismatchNoRepeat);
alignmentCompareResult.setUncorIndelNoRepeat(uncorIndelNoRepeat);
alignmentCompareResult.setIntroducedIndelNoRepeat(introducedIndelNoRepeat);
alignmentCompareResult.setIntroducedMismatchNoRepeat(introducedMismatchNoRepeat);
alignmentCompareResult.setCorIndelSimple(corIndelSimple);
alignmentCompareResult.setCorMismatchSimple(corMismatchSimple);
alignmentCompareResult.setUncorIndelSimple(uncorIndelSimple);
alignmentCompareResult.setUncorMismatchSimple(uncorMismatchSimple);
alignmentCompareResult.setIntroducedIndelSimple(introducedIndelSimple);
alignmentCompareResult.setIntroducedMismatchSimple(introducedMismatchSimple);
alignmentCompareResult.setCorIndelOther(corIndelOther);
alignmentCompareResult.setCorMismatchOther(corMismatchOther);
alignmentCompareResult.setUncorIndelOther(uncorIndelOther);
alignmentCompareResult.setUncorMismatchOther(uncorMismatchOther);
alignmentCompareResult.setIntroducedIndelOther(introducedIndelOther);
alignmentCompareResult.setIntroducedMismatchOther(introducedMismatchOther);
return alignmentCompareResult;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getData();",
"Object getData();",
"java.lang.String getData();",
"public Object getData();",
"Object getData() { /* package access */\n\t\treturn data;\n\t}",
"public Object getData() \n {\n return data;\n }",
"String getData();",
"T getData() {\n\t\treturn data;\n\t}",
"public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}",
"public Object getData(){\n\t\treturn this.data;\n\t}",
"public abstract Object getData();",
"Object getRawData();",
"public String getData()\n {\n return data;\n }",
"@Override\n public Object getData() {\n return outputData;\n }",
"public String getData() {\n\treturn data;\n }",
"@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}",
"protected abstract Object[] getData();",
"public T getData()\n\t{ \treturn this.data; }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"T getData();",
"public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}",
"public String getData()\n\t{\n\t\treturn data;\n\t}",
"public T getData(){\n return this.data;\n }",
"public T getData() {\r\n return data;\r\n }",
"@Override\n public Object getData() {\n return new String(outputData);\n }",
"public Object getData() {\n\t\treturn data;\n\t}",
"public String getData() {\r\n return this.data;\r\n }",
"public String getData() {\r\n return Data;\r\n }",
"public String getData() {\r\n return Data;\r\n }",
"public T getData()\n\t{\n\t\treturn this.data;\n\t}",
"@Override\n\tpublic void getData() {\n\t\t\n\t}",
"protected abstract void retrievedata();",
"Object getCurrentData();",
"public String getReturnData() {\n return returnData;\n }",
"public String getData() {\r\n\t\treturn data;\r\n\t}",
"public String getData() {\r\n\t\t\treturn data;\r\n\t\t}",
"public A getData()\n\t{\n\t\treturn data;\n\t}",
"public abstract Object getCustomData();",
"public java.lang.String getData() {\r\n return data;\r\n }",
"public String getData() {\n return data;\n }",
"public String getData() {\n return data;\n }",
"public String getData() {\n return data;\n }",
"public String getData() {\n return data;\n }",
"public Object getData() { return funcData; }",
"Collection getData();",
"public String getData() {\n\t\treturn data;\n\t}",
"public String getData() {\n\t\treturn data;\n\t}",
"public String getData() {\n\t\treturn data;\n\t}",
"public String getData() {\n\t\treturn data;\n\t}",
"T getData() {\n return this.data;\n }",
"@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}",
"public T getData() {\n return this.data;\n }",
"public Message getResponseData();",
"public E getData(){\n\t\t\treturn data;\n\t\t}",
"public E getData() { return data; }",
"private void returnData(Object ret) {\n if (myHost != null) {\n myHost.returnData(ret);\n }\n }",
"private void returnData(Object ret) {\n if (myHost != null) {\n myHost.returnData(ret);\n }\n }",
"public int getData(){\r\n return data;\r\n }",
"String[] getData();",
"public String getData() {\n\t\treturn this.data;\n\t}",
"@Override\r\n\tpublic E getData() {\n\t\treturn data;\r\n\t}",
"public Object data() {\n return this.data;\n }",
"public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public D getData(){\n\t\treturn data;\n\t}",
"@Override\r\n\tpublic Vector<Vector<String>> getData() {\n\t\treturn this.data;\r\n\t}",
"void getDataFromServer();",
"protected void returnData() {\n\t\t// go through queued messages\n\t\twhile (_messages.size() > 0) {\n\t\t\tKeyword kw =\n\t\t\t\tnew Keyword(\n\t\t\t\t\t\"mirrorKFkeyword: \" + _counter++ +\" \" + _messages.get(0),\n\t\t\t\t\tnew Context(),\n\t\t\t\t\tKeyword.NO_DELAY,\n\t\t\t\t\tnew Relevance());\n\t\t\t// add the keyword to the return container\n\t\t\ttry {\n\t\t\t\t_returnData.add(kw);\n\t\t\t} catch (GenericException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t_messages.remove(0);\n\t\t}\n\t}",
"int getData2();",
"int getData2();",
"public IData getData() {\n return data;\n }",
"private void parseData() {\n\t\t\r\n\t}",
"public String data() {\n return this.data;\n }",
"public E getData()\n {\n return data;\n }",
"public E getData()\n {\n return data;\n }",
"Map<String, ?> getOutputData();",
"void requestData();",
"@Override\n public String getData()\n {\n return null;\n }",
"public Data getData() {\n return data;\n }",
"public Data getData() {\n return data;\n }",
"@Override\n\tpublic List<Map<String, String>> getData() throws Exception{\n\t\tqueryForList(\"\", null);\n\t\treturn null;\n\t}",
"DataHandler getDataHandler();",
"public synchronized Object getData() {\n return data;\n }",
"public Object getData() {\n return dataArray;\n }",
"@Override\n public final native String getData() /*-{\n return this.data;\n }-*/;",
"public E getData() {\r\n\t\treturn data;\r\n\t}",
"public G getData (){\n return this._data;\n }",
"public String getData(){\r\n\t\t// Creating register message\r\n\t\tmessageToServer = GET_DATA_KEYWORD \r\n\t\t\t\t+ SEPARATOR + controller.getModel().getAuthUser().getToken();\r\n\r\n\t\t// Sending message\t\t\t\t\r\n\t\tpw.println(messageToServer);\r\n\t\tpw.flush();\r\n\t\tSystem.out.println(\"Message sent to server: \" + messageToServer);\r\n\r\n\t\t// Reading the answer from server, processing the answer\r\n\t\tString data = null;\r\n\t\ttry {\r\n\r\n\t\t\tdata = br.readLine();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e.toString(), \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}",
"fintech.HistoryResponse.Data getData();",
"abstract public Object getUserData();",
"public Object[] getData() {\n\t\treturn new Object[] { this.textoHtml };\n\t}",
"public java.util.List getData() {\r\n return data;\r\n }",
"int getData1();",
"int getData1();",
"byte[] getData() {\n return data;\n }",
"public T getData() {\n return null;\n }",
"public T getRequestData();",
"public Object getUserData();",
"public T getData() {\r\n\t\t\treturn t;\r\n\t\t}",
"public T value()\r\n {\r\n return data;\r\n }",
"public int getData()\n\t{\n\t\treturn data;\n\t}",
"public K data()\n {\n\treturn this.data;\n }"
] | [
"0.7538499",
"0.7538499",
"0.7522626",
"0.7425378",
"0.741791",
"0.7414859",
"0.74129426",
"0.72184706",
"0.7146557",
"0.71409005",
"0.7139577",
"0.7033758",
"0.70109564",
"0.70105207",
"0.7009044",
"0.700019",
"0.6987728",
"0.69860035",
"0.6937167",
"0.69340056",
"0.69192696",
"0.69063485",
"0.68797135",
"0.6854336",
"0.6824889",
"0.6813711",
"0.6796929",
"0.67901427",
"0.67901427",
"0.6780679",
"0.67620164",
"0.67487854",
"0.6736901",
"0.673141",
"0.6727139",
"0.6726169",
"0.6723537",
"0.67171943",
"0.67087007",
"0.6691656",
"0.6691656",
"0.6691656",
"0.6691656",
"0.66644263",
"0.66612995",
"0.66567415",
"0.66567415",
"0.66567415",
"0.66567415",
"0.6645262",
"0.66304284",
"0.6629188",
"0.66261023",
"0.66212547",
"0.66143215",
"0.6597453",
"0.6597453",
"0.6596781",
"0.658885",
"0.65739965",
"0.65669584",
"0.6558751",
"0.6538789",
"0.65305024",
"0.6515334",
"0.6490961",
"0.6489709",
"0.6476161",
"0.6476161",
"0.6459081",
"0.6458961",
"0.64562905",
"0.6449719",
"0.6449719",
"0.6445365",
"0.6431607",
"0.6416375",
"0.6411561",
"0.6411561",
"0.6408687",
"0.64018476",
"0.63975894",
"0.6391509",
"0.63795495",
"0.63698786",
"0.636016",
"0.63548905",
"0.63439417",
"0.6341208",
"0.63326085",
"0.6315754",
"0.63141966",
"0.63141966",
"0.63053083",
"0.6299821",
"0.6295446",
"0.6287453",
"0.62843895",
"0.62836486",
"0.62818265",
"0.62796116"
] | 0.0 | -1 |
loop through the maf to make dictionary | public Map<String, List<String>> getMafMap(List<MafRecord> mafRecords) {
Map<String, List<String>> mafDictionary = new HashMap<String, List<String>>();
for (MafRecord mafRecord : mafRecords) {
String originalRead = mafRecord.getMafRecord().get(0).getSeqValue();
String artificialRead = mafRecord.getMafRecord().get(1).getSeqValue();
String mafSeqName = mafRecord.getMafRecord().get(1).getSeqName();
String sign = String.valueOf(mafRecord.getMafRecord().get(1).getSign());
List<String> seqInf = Arrays.asList(artificialRead, originalRead, sign);
mafDictionary.put(mafSeqName, seqInf);
}
return mafDictionary;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Map<String, C0148k> m472d() throws Exception {\n HashMap hashMap = new HashMap();\n ZipFile b = mo305b();\n Enumeration entries = b.entries();\n while (entries.hasMoreElements()) {\n ZipEntry zipEntry = (ZipEntry) entries.nextElement();\n if (zipEntry.getName().startsWith(\"fabric/\") && zipEntry.getName().length() > \"fabric/\".length()) {\n C0148k a = m470a(zipEntry, b);\n if (a != null) {\n hashMap.put(a.mo326a(), a);\n C0135c.m449h().mo273b(\"Fabric\", String.format(\"Found kit:[%s] version:[%s]\", new Object[]{a.mo326a(), a.mo327b()}));\n }\n }\n }\n if (b != null) {\n try {\n b.close();\n } catch (IOException unused) {\n }\n }\n return hashMap;\n }",
"private static Map<String, String> m19376a(List<ajr> list) {\n if (list == null) {\n return null;\n }\n if (list.isEmpty()) {\n return Collections.emptyMap();\n }\n Map<String, String> treeMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);\n for (ajr ajr : list) {\n treeMap.put(ajr.m19223a(), ajr.m19224b());\n }\n return treeMap;\n }",
"private static synchronized void initializeMeasureMaps() {\n\t\tintensityMeasuresList=ExerciseIntensityMeasure.getAll();\n\t\tquantityMeasuresList=ExerciseQuantityMeasure.getAll();\n\t\tintensityCodesToNamesMap=new HashMap(intensityMeasuresList.size());\n\t\tquantityCodesToNamesMap=new HashMap(quantityMeasuresList.size());\n\n\t\t// these (and the lists above) come from the db, but they can be static \n\t\t// because they change so infrequently (haven't changed in five years and\n\t\t// counting), and only manually via the db.\n\t\tfor (int i=0; i<intensityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseIntensityMeasure m=(ExerciseIntensityMeasure)intensityMeasuresList.get(i);\n\t\t\tintensityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tfor (int i=0; i<quantityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseQuantityMeasure m=(ExerciseQuantityMeasure)quantityMeasuresList.get(i);\n\t\t\tquantityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tmeasureMapsInitialized=true;\n\t\t\n\t}",
"private Map<String, Object> analysisMap(ArrayList<String> data) {\n Map<String, Object> map = new HashMap<>();\n map.put(DAILY, data);\n return map;\n }",
"private Map<String,List<String>> createExtentionMap()\r\n\t{\r\n\t\tMap<String,List<String>> extMap = new HashMap<String, List<String>>();\t\r\n\t\t\r\n\t\tfor(String material :this.materialWorkflow.getMaterial())\r\n\t\t{\r\n\t\t\tString extentions = material.substring(material.indexOf(\".\")+1,material.length());\r\n\t\t\t\r\n\t\t\tif(!extMap.containsKey(extentions))\r\n\t\t\t{\r\n\t\t\t\tList<String> materialList = new ArrayList<String>();\t\t\r\n\t\t\t\tmaterialList.add(material);\r\n\t\t\t\t\r\n\t\t\t\textMap.put(extentions, materialList);\r\n\t\t\t}else\t\t\t\r\n\t\t\t\textMap.get(extentions).add(material);\t\t\t\r\n\t\t}\t\r\n\t\t\r\n\t\treturn extMap;\t\t\r\n\t}",
"private Map rdf2map(RdfRDF rdf) {\n \n \t\tHashMap map = new HashMap();\n \t\tRdfDescription dc = (RdfDescription) rdf.getDescription().get(0);\n \n \t\tIterator it = dc.getDcmes().iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tObject entry = it.next();\n \t\t\t// This is a hack: extract label from class name\n \t\t\tString className = entry.getClass().toString();\n \t\t\tString[] parts = className.split(\"\\\\.\");\n \t\t\tparts = parts[parts.length - 1].split(\"Impl\");\n \n \t\t\tfinal String label = parts[0];\n \t\t\tif (label.startsWith(\"Date\")) {\n \t\t\t\tmap.put(label, ((Date) entry).getContent().get(0).toString());\n \t\t\t} else if (label.startsWith(\"Title\")) {\n \t\t\t\tTitle title = (Title) entry;\n \t\t\t\tmap.put(label, title.getContent().get(0).toString());\n \t\t\t} else if (label.startsWith(\"Identifier\")) {\n \t\t\t\tmap.put(label, ((Identifier) entry).getContent().get(0)\n \t\t\t\t\t\t.toString());\n \t\t\t} else if (label.startsWith(\"Description\")) {\n \t\t\t\tmap.put(label, ((Description) entry).getContent().get(0)\n \t\t\t\t\t\t.toString());\n \t\t\t} else if (label.startsWith(\"Source\")) {\n \t\t\t\tmap.put(label, ((Source) entry).getContent().get(0).toString());\n \t\t\t} else if (label.startsWith(\"Type\")) {\n \t\t\t\tmap.put(label, ((Type) entry).getContent().get(0).toString());\n \t\t\t} else if (label.startsWith(\"Format\")) {\n \t\t\t\tmap.put(label, ((Format) entry).getContent().get(0).toString());\n \t\t\t} else {\n \t\t\t\t//\n \t\t\t}\n \n \t\t}\n \t\treturn map;\n \t}",
"Map getAspectDatas();",
"private final Map<String, C1844cm> m447d(List<String> list) {\n return (Map) m446a(new C1837cf(this, list));\n }",
"private static Map<String, String> m37368a(C12824g gVar) {\n HashMap hashMap = new HashMap();\n if (!TextUtils.isEmpty(gVar.f33943a)) {\n hashMap.put(\"email\", C6319n.m19597d(gVar.f33943a));\n }\n hashMap.put(\"type\", C6319n.m19597d(String.valueOf(gVar.f33945c)));\n if (!TextUtils.isEmpty(gVar.f33944b)) {\n hashMap.put(\"code\", gVar.f33944b);\n }\n hashMap.put(\"mix_mode\", \"1\");\n return hashMap;\n }",
"public final synchronized Map<String, String> m72A() {\n Map<String, String> map;\n if (this.f113Z.size() <= 0) {\n map = null;\n } else {\n map = new HashMap(this.f113Z);\n }\n return map;\n }",
"private HashMap<String, Integer> createFieldMap(ObjectDefinition context) {\r\n\r\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\r\n\r\n\t\tArrayList<Field> fields = context.getFields();\r\n\r\n\t\tfor (int i = 0; i < fields.size(); i++) {\r\n\t\t\tmap.put(fields.get(i).getName(), i);\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"private void initialize() {\n\t\tfor(String key: count_e_f.keySet()){\n\t\t\tcount_e_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\tfor(Integer key: total_f.keySet()){\n\t\t\ttotal_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\t//This code is not efficient.\n//\t\tfor(Entry<String, Integer> german : mainIBM.gerWordsIdx.entrySet()){\n//\t\t\tfor(Entry<String, Integer> english : mainIBM.engWordsIdx.entrySet()){\n//\t\t\t\tcount_e_f.put(english.getValue() + \"-\" + german.getValue(), 0.0);\n//\t\t\t}\n//\t\t\ttotal_f.put(german.getValue(), 0.0);\n//\t\t}\t\n\n\t}",
"private void createDicts(String inputFile){\n\t\tproductIds = new TreeMap<>();\n\t\ttokenDict = new TreeMap<>();\n\t\treviewIds = new TreeMap<>();\n\n\t\tDataParser dataParser = null;\n\t\ttry {\n\t\t\tdataParser = new DataParser(inputFile);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error occurred while reading the reviews input file.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tfor (int i = 0; i < dataParser.allReviews.size(); i++) {\n\t\t\taddProductId(dataParser.allReviews.get(i).get(\"productId\"), i + 1);\n\t\t\tint length = addReviewText(dataParser.allReviews.get(i).get(\"text\"), i + 1);\n\t\t\taddReviewId(dataParser.allReviews.get(i), i, length);\n\t\t}\n\t}",
"public final /* synthetic */ Map mo34041c(List list) {\n HashMap hashMap = new HashMap();\n for (C1844cm next : this.f589f.values()) {\n String str = next.f577c.f570a;\n if (list.contains(str)) {\n C1844cm cmVar = (C1844cm) hashMap.get(str);\n if ((cmVar == null ? -1 : cmVar.f575a) < next.f575a) {\n hashMap.put(str, next);\n }\n }\n }\n return hashMap;\n }",
"private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}",
"private void initIDFMap(List<List<Map<String,List<Double>>>> tfMap){\n\t\tfor (int i = 0; i < tfMap.size(); i++) {\n\t\t\tList<Map<String,List<Double>>> gestureDocument = tfMap.get(i);\n\t\t\tfor (int j = 0; j < gestureDocument.size(); j++) {\n\t\t\t\tMap<String,List<Double>> tempMap = gestureDocument.get(j);\n\t\t\t\tIterator<Entry<String, List<Double>>> it = tempMap.entrySet().iterator();\n\t\t\t\t while (it.hasNext()) {\n\t\t\t\t Map.Entry<String,Integer> pairs = (Map.Entry)it.next(); \n\t\t\t\t if(getTfIDFMapGlobal().containsKey(pairs.getKey()))\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), getTfIDFMapGlobal().get(pairs.getKey())+1);\n\t\t\t\t else\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), 1);\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\t}",
"public Map<String, C0148k> call() throws Exception {\n HashMap hashMap = new HashMap();\n long elapsedRealtime = SystemClock.elapsedRealtime();\n hashMap.putAll(m471c());\n hashMap.putAll(m472d());\n StringBuilder sb = new StringBuilder();\n sb.append(\"finish scanning in \");\n sb.append(SystemClock.elapsedRealtime() - elapsedRealtime);\n C0135c.m449h().mo273b(\"Fabric\", sb.toString());\n return hashMap;\n }",
"public Map<Integer, DefMazmorra>getMapaMazmoras()\n {\n if(null==this.mapaMazmoras)\n this.mapaMazmoras=CargadorRecursos.cargaMapaMazmorras();\n \n \n //Comprobacion:\n for(Map.Entry<Integer, DefMazmorra>maz: mapaMazmoras.entrySet())\n Gdx.app.log(\"DEF_MAZMORRA:\", \"\"+maz.getKey()+\":\"+maz.getValue());\n \n \n return this.mapaMazmoras;\n }",
"public final /* synthetic */ Map mo34034b(List list) {\n int i;\n Map<String, C1844cm> d = m447d((List<String>) list);\n HashMap hashMap = new HashMap();\n Iterator it = list.iterator();\n while (it.hasNext()) {\n String str = (String) it.next();\n C1844cm cmVar = d.get(str);\n if (cmVar == null) {\n i = 8;\n } else {\n if (C1860db.m497a(cmVar.f577c.f572c)) {\n try {\n cmVar.f577c.f572c = 6;\n this.f588e.mo34195a().execute(new C1841cj(this, cmVar));\n this.f587d.mo34025a(str);\n } catch (C1826bv unused) {\n f584a.mo34142c(\"Session %d with pack %s does not exist, no need to cancel.\", Integer.valueOf(cmVar.f575a), str);\n }\n }\n i = cmVar.f577c.f572c;\n }\n hashMap.put(str, Integer.valueOf(i));\n }\n return hashMap;\n }",
"private void initializeMaps(){\n\t\t\n\t\tsteps = new HashMap<Integer, Set<PlanGraphStep>>();\n\t\tfacts = new HashMap<Integer, Set<PlanGraphLiteral>>();\n\t\tinconsistencies = new HashMap<Integer, Set<LPGInconsistency>>();\n\t\t\n\t\tfor(int i = 0; i <= maxLevel; i++) {\n\t\t\tsteps.put(i, new HashSet<PlanGraphStep>());\n\t\t\tfacts.put(i, new HashSet<PlanGraphLiteral>());\n\t\t\tinconsistencies.put(i, new HashSet<LPGInconsistency>());\n\t\t}\n\t\t\n\t\t/* This level holds only the special action end which has the goals as preconditions */\n\t\tsteps.put(maxLevel + 1, new HashSet<PlanGraphStep>());\n\t}",
"public Map<String, String> m412a() {\n return this.f567a;\n }",
"private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}",
"private Map getAsMap(BuildStatus bs) {\n String lines[] = bs.toExternalForm().split(\"\\n\");\n Map m = new HashMap();\n for (int i = 0; i < lines.length; i++) {\n String line = lines[i];\n String parts[] = line.split(\"=\");\n String name = parts[0];\n String value = parts[1];\n m.put(name + \"=\", value);\n }\n return m;\n }",
"private static Map<String, FeatureType> buildAvailableFeatureMap(List<FeatureType> features){\r\n\t\tMap<String, FeatureType> featureMap = new HashMap<String, FeatureType>();\r\n\t\tfor(FeatureType feature : features){\r\n\t\t\tfeatureMap.put(feature.getExternalId(), feature);\r\n\t\t}\r\n\t\treturn featureMap;\r\n\t}",
"HashMap getMasterAttributes(String userNo, String gcif) throws BaseException;",
"private Map<String, DataContainer> getDataContainerMap() {\r\n\r\n if (this.dataContainerMap == null) {\r\n if (this.dataContainerList == null) {\r\n parse();\r\n }\r\n\r\n this.dataContainerMap = new HashMap<>();\r\n for (DataContainer dataContainer : this.dataContainerList) {\r\n this.dataContainerMap.put(dataContainer.getVariableName(), dataContainer);\r\n }\r\n }\r\n return this.dataContainerMap;\r\n }",
"private HashMap<String, Double> getHashMapScore(String query){\n WaveIO waveIO = new WaveIO();\n\n short[] inputSignal = waveIO.readWave(query);\n MagnitudeSpectrum ms = new MagnitudeSpectrum();\n double[] msFeatureQuery = ms.getFeature(inputSignal);\n Energy energy = new Energy();\n double[] energyFeatureQuery = energy.getFeature(inputSignal);\n ZeroCrossing zc = new ZeroCrossing();\n double[] zcFeatureQuery = zc.getFeature(inputSignal);\n MFCC mfcc = new MFCC(Frames.frameLength);\n mfcc.process(inputSignal);\n double[] mfccFeatureQuery = mfcc.getMeanFeature();\n \n \n // Get cosine SimList\n HashMap<String, Double> cosineSimList = new HashMap<String, Double>();\n HashMap<String, Double> cosineMsSimList = new HashMap<String, Double>();\n HashMap<String, Double> cosineEnergySimList = new HashMap<String, Double>();\n HashMap<String, Double> cosineZcSimList = new HashMap<String, Double>();\n HashMap<String, Double> cosineMfccSimList = new HashMap<String, Double>();\n \n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tcosineMsSimList.put(f.getKey(), (Cosine.getDistance(msFeatureQuery, (double[]) f.getValue())));\n \t// System.out.println(cosineMsSimList.get(f.getKey()));\n }\n for (Map.Entry<String,double[]> f: m_energyFeature.entrySet()){\n \tcosineEnergySimList.put(f.getKey(), (Cosine.getDistance(energyFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_zcFeature.entrySet()){\n \tcosineZcSimList.put(f.getKey(), (Cosine.getDistance(zcFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_mfccFeature.entrySet()){\n \tcosineMfccSimList.put(f.getKey(), (Cosine.getDistance(mfccFeatureQuery, (double[]) f.getValue())));\n }\n normalizeValue(cosineMsSimList);\n normalizeValue(cosineEnergySimList);\n normalizeValue(cosineZcSimList);\n normalizeValue(cosineMfccSimList);\n // Combine 4 features\n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tcosineSimList.put(f.getKey(), (m_msFeatureWeight * cosineMsSimList.get(f.getKey())) + (m_energyFeatureWeight * cosineEnergySimList.get(f.getKey())) + (m_zcFeatureWeight * cosineZcSimList.get(f.getKey())) + (m_mfccFeatureWeight * cosineMfccSimList.get(f.getKey())));\n }\n \n // Get Euclidean SimList\n HashMap<String, Double> euclideanSimList = new HashMap<String, Double>();\n HashMap<String, Double> euclideanMsSimList = new HashMap<String, Double>();\n HashMap<String, Double> euclideanEnergySimList = new HashMap<String, Double>();\n HashMap<String, Double> euclideanZcSimList = new HashMap<String, Double>();\n HashMap<String, Double> euclideanMfccSimList = new HashMap<String, Double>();\n \n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \teuclideanMsSimList.put(f.getKey(), (Euclidean.getDistance(msFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_energyFeature.entrySet()){\n \teuclideanEnergySimList.put(f.getKey(), (Euclidean.getDistance(energyFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_zcFeature.entrySet()){\n \teuclideanZcSimList.put(f.getKey(), (Euclidean.getDistance(zcFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_mfccFeature.entrySet()){\n \teuclideanMfccSimList.put(f.getKey(), (Euclidean.getDistance(mfccFeatureQuery, (double[]) f.getValue())));\n }\n normalizeValue(euclideanMsSimList);\n normalizeValue(euclideanEnergySimList);\n normalizeValue(euclideanZcSimList);\n normalizeValue(euclideanMfccSimList);\n // Combine 4 features\n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \teuclideanSimList.put(f.getKey(), (m_msFeatureWeight * euclideanMsSimList.get(f.getKey())) + (m_energyFeatureWeight * euclideanEnergySimList.get(f.getKey())) + (m_zcFeatureWeight * euclideanZcSimList.get(f.getKey())) + (m_mfccFeatureWeight * euclideanMfccSimList.get(f.getKey())));\n }\n \n // Get CityBlock SimList\n HashMap<String, Double> cityblockSimList = new HashMap<String, Double>();\n HashMap<String, Double> cityblockMsSimList = new HashMap<String, Double>();\n HashMap<String, Double> cityblockEnergySimList = new HashMap<String, Double>();\n HashMap<String, Double> cityblockZcSimList = new HashMap<String, Double>();\n HashMap<String, Double> cityblockMfccSimList = new HashMap<String, Double>();\n \n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tcityblockMsSimList.put(f.getKey(), (Euclidean.getDistance(msFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_energyFeature.entrySet()){\n \tcityblockEnergySimList.put(f.getKey(), (Euclidean.getDistance(energyFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_zcFeature.entrySet()){\n \tcityblockZcSimList.put(f.getKey(), (Euclidean.getDistance(zcFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_mfccFeature.entrySet()){\n \tcityblockMfccSimList.put(f.getKey(), (Euclidean.getDistance(mfccFeatureQuery, (double[]) f.getValue())));\n }\n normalizeValue(cityblockMsSimList);\n normalizeValue(cityblockEnergySimList);\n normalizeValue(cityblockZcSimList);\n normalizeValue(cityblockMfccSimList);\n // Combine 4 features\n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tcityblockSimList.put(f.getKey(), (m_msFeatureWeight * cityblockMsSimList.get(f.getKey())) + (m_energyFeatureWeight * cityblockEnergySimList.get(f.getKey())) + (m_zcFeatureWeight * cityblockZcSimList.get(f.getKey())) + (m_mfccFeatureWeight * cityblockMfccSimList.get(f.getKey())));\n }\n \n // Overall\n HashMap<String, Double> simList = new HashMap<String, Double>();\n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tsimList.put(f.getKey(), (m_cosineWeight * cosineSimList.get(f.getKey())) + (m_euclideanWeight * euclideanSimList.get(f.getKey())) + (m_cityblockWeight * cityblockSimList.get(f.getKey())));\n }\n \n return simList;\n }",
"private HashMap getTableFieldsAttribs(String s){\n HashMap<String, String> map = new HashMap<String, String>();\n String name = \"(.*)(?<=name)(=\\\\\\\")(\\\\w+)(.*)\"; // 3rd group\n String type = \"(.*)(?<=type)(=\\\\\\\")(\\\\w+:)(\\\\w+)(.*)\"; // 4th group\n String maxO = \"(.*)(?<=maxOccurs)(=\\\\\\\")(\\\\w+)(.*)\"; //3rd group\n String minO = \"(.*)(?<=minOccurs)(=\\\\\\\")(\\\\w+)(.*)\"; //3rd group\n String fraction = \"(.*)(?<=fraction)(=\\\\\\\")(\\\\w+)(.*)\"; //3rd group\n String date = \"(.*)(?<=date)(=\\\\\\\")(.*)(\\\\\\\")(.*)\"; //3rd group\n Matcher m = Pattern.compile(name).matcher(s);\n Matcher m1 = Pattern.compile(type).matcher(s);\n Matcher m2 = Pattern.compile(maxO).matcher(s);\n Matcher m3 = Pattern.compile(minO).matcher(s);\n Matcher m4 = Pattern.compile(fraction).matcher(s);\n Matcher m5 = Pattern.compile(date).matcher(s);\n if(m.find()){\n map.put(\"name\",m.group(3));\n }\n if(m1.find()){\n map.put(\"type\",m1.group(4));\n }\n if(m2.find()){\n map.put(\"maxOccurs\",m2.group(3));\n }\n if(m3.find()){\n map.put(\"minOccurs\",m3.group(3));\n }\n if(m4.find()){\n map.put(\"fraction\",m4.group(3));\n }\n if(m5.find()){\n map.put(\"date\",m5.group(3));\n }\n return map;\n }",
"private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}",
"private final Map<String, Object> m7134b() {\n HashMap hashMap = new HashMap();\n zzcf.zza zzco = this.f11698b.zzco();\n hashMap.put(\"v\", this.f11697a.zzawx());\n hashMap.put(\"gms\", Boolean.valueOf(this.f11697a.zzcm()));\n hashMap.put(\"int\", zzco.zzaf());\n hashMap.put(\"up\", Boolean.valueOf(this.f11700d.mo17775a()));\n hashMap.put(\"t\", new Throwable());\n return hashMap;\n }",
"private LinkedHashMap<String, List<String[]>> generateResultMap(List<FinanceDocument> financeDocumentList) {\n\n LinkedHashMap<String, List<String[]>> resultMap = new LinkedHashMap<>();\n for (FinanceDocument doc : financeDocumentList) {\n\n String date = DateUtils.getNormalDate(DateUtils.DATE_FORMAT_LONG, doc.getDate());\n HashMap<String, Float> valuesMap = doc.getConvertedValuesMap().get(dataType);\n\n String sign = \"+\";\n if (dataType == FinanceDocument.CUSTOM_EXPENSE) {\n sign = \"-\";\n }\n for (Map.Entry<String, Float> entry : valuesMap.entrySet()) {\n String valueString = sign + String.format(Locale.getDefault(), \"%1$,.2f\", entry.getValue()) + \" \" + MainActivity.defaultCurrency;\n if (resultMap.containsKey(date)) {\n resultMap.get(date).add(new String[]{\n Utils.keyToString(getContext(), entry.getKey()),\n valueString});\n\n\n } else {\n List<String[]> resultList = new ArrayList<>();\n resultList.add(new String[]{\n Utils.keyToString(getContext(), entry.getKey()),\n valueString});\n resultMap.put(date, resultList);\n\n }\n\n }\n }\n\n return resultMap;\n }",
"public void makeMap(){\r\n\t\tint m =1;\r\n\t\t//EnvironObj temp = new EnvironObj(null, 0, 0);\r\n\t\tfor(int i=0; i<map.size(); i++){\r\n\t\t\tfor(int j =0; j<map.get(i).size(); j++){\r\n\t\t\t\tString o = map.get(i).get(j);\r\n\t\t\t\t//System.out.println(\"grabbing o from map, o = \" + o);\r\n\t\t\t\tif(o.equals(\"t\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"treee.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\t//System.out.println(\"objectList: \" + objectList);\r\n\t\t\t\t}else if(o.equals(\"p\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"path.png\", j+m, i*20, true);\r\n\t\t\t\t\t//dont need to add to obj list bc its always in back\r\n\t\t\t\t\twalkables.add(temp);\r\n\r\n\t\t\t\t}else if(o.equals(\"h\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"house.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t}else if(o.equals(\"g\")){\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t}\r\n\t\t\t\telse if(!o.equals(\"g\")){\r\n\t\t\t\t\tString fn = o +\".txt\";\r\n\t\t\t\t\tSystem.out.println(\"filename for NPC: \" + fn);\r\n\t\t\t\t\tnp = new NPC(o, fn, j+m, i*20);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\tcharacters.add(np);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tm=0;\r\n\t\t}\r\n\t}",
"void constructMap(JsonArray array)\n {\n JsonObject obj = array.get(0).getAsJsonObject();\n\n // Loop on them\n for(Map.Entry<String, JsonElement> entry : obj.entrySet())\n {\n String key = entry.getKey(); // ID:TYPE\n if(!(key.matches(\"(\\\\d+):([A-Z_]+)\")))\n continue;\n\n String[] split = key.split(\":\");\n long id = Long.parseLong(split[0]);\n CodeType type = remapLegacyCodeType(split[1]);\n\n Map<CodeType, Map<String, String>> userMap = map.getOrDefault(id, new HashMap<>());\n Map<String, String> codesForTypeMap = userMap.getOrDefault(type, new HashMap<>());\n\n for(Map.Entry<String, JsonElement> code : entry.getValue().getAsJsonObject().entrySet())\n codesForTypeMap.put(code.getKey(), code.getValue().getAsString());\n\n userMap.put(type, codesForTypeMap);\n map.put(id, userMap);\n }\n\n array.remove(obj); // Remove the codes object\n }",
"private void makeArrays()\n\t{\n\t\tfor (String key : sub.keySet())\n\t\t\tsub.put(key, ((List<String>) sub.get(key)).toArray(s0));\n\t\tfor (String key : attrs.keySet())\n\t\t\tattrs.put(key, ((List<String>) attrs.get(key)).toArray(s0));\n\t\tfor (String key : defs.keySet())\n\t\t\tdefs.put(key, ((List<String>) defs.get(key)).toArray(s0));\n\t\tfor (String key : smodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) smodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tsmodes.put(key, array);\n\t\t}\n\t\tfor (String key : amodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) amodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tamodes.put(key, array);\n\t\t}\n\t}",
"Map getGenAttributes();",
"private void parse(){\n\t\tfor (Object res : book_results){\n\t\t\tString author = JsonPath.read(res,\"$.name\").toString();\n\t\t\tRole role = new Role(author, \"Author\");\n\t\t\tList<String> books = JsonPath.read(res,\"$./book/author/works_written[*].a:name\");\n\t\t\tmql_map.put(role, books);\n\t\t}\n\t\t\n\t\tfor (Object res : organization_results){\n\t\t\tString businessperson = JsonPath.read(res,\"$.name\").toString();\n\t\t\tRole role = new Role(businessperson, \"Businessperson\");\n\t\t\tList<String> organizations = JsonPath.read(res,\"$./organization/organization_founder/organizations_founded[*].a:name\");\n\t\t\tmql_map.put(role, organizations);\n\t\t}\n\t}",
"private HashMap<String,String> getFrequency(String code) {\n HashMap<String,String> response = new HashMap<String,String>();\n\n HashMap<String,String> kindOfFrequency = new HashMap<String,String>();\n kindOfFrequency.put(\"name\",code);\n //Get the value of the frequency according to its name\n HashMap<Integer,HashMap<String,String>> freq\n = dbController.getFrequency(kindOfFrequency);\n if (freq == null)\n return null;\n for (Map.Entry<Integer,HashMap<String,String>> objs : freq.entrySet()){\n HashMap<String,String> obj = objs.getValue();\n\n response.put(\"name\",obj.get(\"name\"));\n response.put(\"frequency\",obj.get(\"frequency\"));\n //Returns a map containing the name frequency and its value\n return response;\n }\n return null;\n }",
"private void populateDictionary() throws IOException {\n populateDictionaryByLemmatizer();\n// populateDictionaryBySynonyms();\n }",
"private Map<String, String> toMap(final Attributes atts) {\r\n\t\tfinal Map<String, String> values = Maps.newLinkedHashMap();\r\n\t\t\r\n\t\tfor (int index = 0; index < atts.getLength(); index++) {\r\n\t\t\tvalues.put(atts.getLocalName(index), atts.getValue(index));\r\n\t\t}\r\n\t\t\r\n\t\treturn values;\r\n\t}",
"private HashMap<Integer, HashMap<String,String>> getAllFrequencies() {\n HashMap<Integer,HashMap<String,String>> freq\n = dbController.getAllFrequencies();\n if (freq == null)\n return null;\n HashMap<Integer, HashMap<String, String>> response = new HashMap<Integer, HashMap<String, String>>();\n int i = 2;\n //Passing on any frequency and creates a message to send\n for (Map.Entry<Integer,HashMap<String,String>> objs : freq.entrySet()){\n HashMap<String,String> obj = objs.getValue();\n\n response.put(i, new HashMapBuilder<String, String>().put(\"name\", obj.get(\"name\"))\n .put(\"frequency\",obj.get(\"frequency\")).build());\n i++;\n }\n return response;\n }",
"public Map<Format.Type, BitSet> go() {\n collectFormat(doc.getRootElements()[0]);\n\n// System.out.println(\"Collected format map\");\n// System.out.println(formatMap);\n\n return formatMap;\n }",
"public Map<C1121a, String> mo1147f() {\n CharSequence a = m6937a(m6452q(), m6451p().m6067i());\n Map<C1121a, String> hashMap = new HashMap();\n if (!TextUtils.isEmpty(a)) {\n hashMap.put(C1121a.FONT_TOKEN, a);\n }\n return hashMap;\n }",
"public Map<String, List<Object>> getDCModelMap(){\n\t\tDBCollection dcModel = db.getCollection(\"dcModel\");\n\t\tMap<String, List<Object>> varModelMap = new HashMap<String, List<Object>>();\n \tDBCursor varModelCursor = dcModel.find();\n \tfor(DBObject varModelObj: varModelCursor) {\n \t\tvarModelMap.put((String) varModelObj.get(\"v\"), (List<Object>) varModelObj.get(\"m\")); \t\t\n \t}\n \treturn varModelMap;\n\t}",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"public void m() {\n for (Map.Entry key : this.f80656a.a().entrySet()) {\n List list = (List) key.getKey();\n if (!this.l.contains(list)) {\n this.l.add(d.a(list));\n }\n }\n if (this.l.size() > 0) {\n this.f80657b.a(new f(), this.l);\n }\n }",
"private static Map<String,Node> buildFOCMap(List<Node> focs) throws Exception\n\t{\n\t\tMap<String,Node> known_focs = new HashMap<String,Node>();\n\t\t\n\t\tfor(Node foc : focs)\n\t\t{\n\t\t\tString n = (String)foc.getProperty(FeatureOrientedChangeNode._name);\n\t\t\tif(!known_focs.containsKey(n))\n\t\t\t\tknown_focs.put(n,foc);\n\t\t}\n\n\t\treturn known_focs;\n\t}",
"public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }",
"public static void main(String[] args) {\n\t\tHashMap<String, HashMap<String, Double>> file_alph_tf = new HashMap<String, HashMap<String, Double>>();\n\t\tHashMap<String, Double> file_alph_idf = new HashMap<String, Double>();\n\t\tHashMap<String, Double> tmp_idf = new HashMap<String, Double>();\n\t\tHashMap<String, HashMap<String, Double>> result_map = new HashMap<String, HashMap<String, Double>>();\n\t\t// 이후에 cosine similarity를 계산할때 사용할 top5해쉬맵\n\t\tHashMap<String, HashMap<String, Double>> top5 = new HashMap<String, HashMap<String, Double>>();\n\t\t\n\t\tTest01 t1 = new Test01();\n\t\tTest02 t2 = new Test02();\n\t\tTest03 t3 = new Test03();\n\t\t\n\t\t// 각 문서의 특성을 추출 : Test04 - map\t\t\n\t\t\n\t\tFile[] fileList = t1.get_file();\n\t\t\n\t\tfor (File file : fileList) {\n\t\t\t\n\t\t\tHashMap <String, Double> tmp_map = new HashMap <String, Double>();\n\t\t\t\n\t\t\t// count alphabet _ each files\n\t\t\ttry {\n\t\t\t\tFileReader file_reader = new FileReader(file);\n\t\t\t\tint cur = 0;\n\t\t\t\twhile ((cur = file_reader.read()) != -1) {\n\t\t\t\t\tif (cur != 32) {\n\t\t\t\t\t\tif (!tmp_map.containsKey(String.valueOf((char)cur))) {\n\t\t\t\t\t\t\ttmp_map.put(String.valueOf((char)cur), (double) 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdouble temp_num = tmp_map.get(String.valueOf((char)cur));\n\t\t\t\t\t\t\ttmp_map.put(String.valueOf((char)cur),temp_num+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch(FileNotFoundException e) {\n\t\t\t\te.getStackTrace();\n\t\t\t} catch(IOException e) {\n\t\t\t\te.getStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// calc_TF\n\t\t\tArrayList<String> key_lst = new ArrayList<String>(tmp_map.keySet());\n\t\t\tdouble sum_value = 0;\n\t\t\t// TF의 분모 문서내에 오는 모든수 더하기\n\t\t\tfor (String k : key_lst) {\n\t\t\t\tsum_value += tmp_map.get(k);\t\n\t\t\t}\n\t\t\t// TF의 분자 : 해당 파일에 있는 알파벳의 갯수 (tmp_map에 저장되어있음) / tf분모\n\t\t\tfor (String tf_k : key_lst) {\n\t\t\t\tdouble tf = tmp_map.get(tf_k) / sum_value;\n\t\t\t\ttmp_map.put(tf_k, tf);\n\t\t\t}\n\t\t\tsum_value = 0;\n\t\t\tfile_alph_tf.put(file.getName(), tmp_map);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// calc_IDF_Bottom : counting IDF_Bottom\n\t\t\ttmp_idf = file_alph_tf.get(file.getName());\n\t\t\t\n\t\t\tfor (String idf_k : key_lst) {\n\t\t\t\tif (tmp_idf.get(idf_k) != 0) {\n\t\t\t\t\tif (!file_alph_idf.containsKey(idf_k)) {\n\t\t\t\t\t\tfile_alph_idf.put(idf_k, (double) 1);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tdouble tmp_num = file_alph_idf.get(idf_k);\n\t\t\t\t\t\tfile_alph_idf.put(idf_k, tmp_num+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t} // file의 이름으로 반복\n\t\t\n\t\t\n\t\t// calc_IDF\n\t\tfor (File file : fileList) {\n\t\t\tHashMap<String, Double> aa = new HashMap<String, Double>();\n\t\t\tArrayList<String> key_lst = new ArrayList<String>(file_alph_idf.keySet());\n\t\t\tdouble temp_num = 0;\n\t\t\tfor (String key : key_lst) {\n\t\t\t\t\n\t\t\t\tdouble tf;\n\t\t\t\ttemp_num = 0;\n\t\t\t\ttry {\n\t\t\t\t\ttf = file_alph_tf.get(file.getName()).get(key);\n\t\t\t\t\tif (file_alph_idf.get(key) != 0) {\n\t\t\t\t\t\tdouble tt = file_alph_idf.get(key);\n\t\t\t\t\t\ttemp_num = 7/tt;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttemp_num = 0;\n\t\t\t\t\t}\n\t\t\t\t} catch(NullPointerException e) {\n\t\t\t\t\ttf = 0;\n\t\t\t\t}\n\t\t\t\tdouble idf = Math.log(1+ temp_num);\n\t\t\t\tdouble tfidf = tf*idf;\n\t\t\t\taa.put(key, tfidf);\n\t\t\t}\n//\t\t\tSystem.out.println();\n\t\t\tresult_map.put(file.getName(), aa);\n\t\t}\t\n\t\n\t\t\n\t\t\n\t\t\n\t\tfor(File f : fileList) {\n\t\t\t\n\t//---------------------------------------상위 5개-------------------------------------------\t\t\t\n\t\t\t\n//\t\t\tSystem.out.println(f.getName());\n\t\t\tString f_n = f.getName(); \n\t\t\t\n\t\t\t// 0. 정렬 전 파일 출력\n//\t\t\tArrayList <String> key_lst = new ArrayList<String>(result_map.get(f_n).keySet());\n//\t\t\tfor (String kk : key_lst) {\n//\t\t\t\tSystem.out.println(kk + \" : \" + result_map.get(f_n).get(kk));\n//\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> Top5List = sortHSbyValue_double(result_map.get(f_n));\n//\t\t\tSystem.out.println(Top5List);\n\t\t\tHashMap<String, Double> map = new HashMap<String, Double>();\n\t\t\tfor (String s : Top5List) {\n\t\t\t\tmap.put(s, result_map.get(f_n).get(s));\n\t\t\t}\n\n\t\t\ttop5.put(f_n, map);\t\n\t\t}\n\t\t\n\t\t// cosine_similarity\n\t\t// 구하기 전에 벡터의 차원을 맞춰준다.\n\t\t// input받는 파일을 제외한 나머지 파일들과의 유사도를 구한다.\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"문서 이름을 입력하세요 : \");\n\t\tString input = sc.next();\n\t\t\n\t\tHashMap<String, Double> csMap = new HashMap<String, Double>();\n\t\t\n\t\tfor (File f : fileList) {\n\t\t\tHashMap<String, Double> a = (HashMap<String, Double>) top5.get(input).clone();\n\t\t\tArrayList<String> a_key_lst = new ArrayList<String>(a.keySet());\n\t\t\tArrayList<String> total_key = new ArrayList<String>();\n\t\t\t\n\t\t\tif (input.equals(f.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tHashMap<String, Double> b = (HashMap<String, Double>) top5.get(f.getName()).clone();\n\t\t\tArrayList<String> b_key_lst = new ArrayList<String>(b.keySet());\n\t\t\t\n\t\t\tfor (String a_k : a_key_lst) {\n\t\t\t\ttotal_key.add(a_k);\n\t\t\t}\n\t\t\tfor (String b_k : b_key_lst) {\n\t\t\t\ttotal_key.add(b_k);\n\t\t\t}\n\t\t\t\n\t\t\tfor (String t_k : total_key) {\n\t\t\t\tif(!a.containsKey(t_k)) {\n\t\t\t\t\ta.put(t_k, (double)0);\n\t\t\t\t}\n\t\t\t\tif(!b.containsKey(t_k)) {\n\t\t\t\t\tb.put(t_k, (double)0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] a_lst = t3.mapToList(a);\n\t\t\tdouble[] b_lst = t3.mapToList(b);\n\t\t\tdouble cs = cosinSimilarity(a_lst, b_lst);\n\t\t\tcsMap.put(f.getName(), cs);\n\t\t\t\n\t\t\ta_key_lst.clear();\n\t\t\ttotal_key.clear();\n\t\t\t\n\t\t}\n\t\t\n\t\tt2.sort_print(csMap, input);\n\t\t\n\t\tSystem.out.println();\n\t}",
"private void setupAllMafiosis()\n {\n }",
"private static void m568a() {\n if (f878a == null) {\n HashMap hashMap = new HashMap();\n f878a = hashMap;\n hashMap.put(\"CN\", p.China);\n f878a.put(\"FI\", p.Europe);\n f878a.put(\"SE\", p.Europe);\n f878a.put(\"NO\", p.Europe);\n f878a.put(\"FO\", p.Europe);\n f878a.put(\"EE\", p.Europe);\n f878a.put(\"LV\", p.Europe);\n f878a.put(\"LT\", p.Europe);\n f878a.put(\"BY\", p.Europe);\n f878a.put(\"MD\", p.Europe);\n f878a.put(\"UA\", p.Europe);\n f878a.put(\"PL\", p.Europe);\n f878a.put(\"CZ\", p.Europe);\n f878a.put(\"SK\", p.Europe);\n f878a.put(\"HU\", p.Europe);\n f878a.put(\"DE\", p.Europe);\n f878a.put(\"AT\", p.Europe);\n f878a.put(\"CH\", p.Europe);\n f878a.put(\"LI\", p.Europe);\n f878a.put(\"GB\", p.Europe);\n f878a.put(\"IE\", p.Europe);\n f878a.put(\"NL\", p.Europe);\n f878a.put(\"BE\", p.Europe);\n f878a.put(\"LU\", p.Europe);\n f878a.put(\"FR\", p.Europe);\n f878a.put(\"RO\", p.Europe);\n f878a.put(\"BG\", p.Europe);\n f878a.put(\"RS\", p.Europe);\n f878a.put(\"MK\", p.Europe);\n f878a.put(\"AL\", p.Europe);\n f878a.put(\"GR\", p.Europe);\n f878a.put(\"SI\", p.Europe);\n f878a.put(\"HR\", p.Europe);\n f878a.put(\"IT\", p.Europe);\n f878a.put(\"SM\", p.Europe);\n f878a.put(\"MT\", p.Europe);\n f878a.put(\"ES\", p.Europe);\n f878a.put(\"PT\", p.Europe);\n f878a.put(\"AD\", p.Europe);\n f878a.put(\"CY\", p.Europe);\n f878a.put(\"DK\", p.Europe);\n f878a.put(\"RU\", p.Russia);\n f878a.put(\"IN\", p.India);\n }\n }",
"private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}",
"public final Map<String, Integer> mo33708h(List<String> list) {\n return (Map) m968r(new C2164bs(this, list));\n }",
"private Map<String, Object> createDefaultMap() {\n Map<String, Object> result = new LinkedHashMap<>();\n result.put(\"stream_speed0\", 1);\n result.put(\"stream_start0\", 0);\n result.put(\"stream_end0\", 7);\n result.put(\"stream_speed1\", -2);\n result.put(\"stream_start1\", 15);\n result.put(\"stream_end1\", 19);\n\n result.put(\"fish_quantity\", numFishes);\n result.put(\"fish_reproduction\", 3);\n result.put(\"fish_live\", 10);\n result.put(\"fish_speed\", 2);\n result.put(\"fish_radius\", 4);\n\n result.put(\"shark_quantity\", numSharks);\n result.put(\"shark_live\", 20);\n result.put(\"shark_hungry\", 7);\n result.put(\"shark_speed\", 2);\n result.put(\"shark_radius\", 5);\n\n return result;\n }",
"private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }",
"@Override\r\n public String getUsoMaggiore() {\n int maxpacchetti=0;\r\n int npacchetti=0;\r\n String a;\r\n Map<String, String> mappatemp=new HashMap<>();\r\n Iterator<Map<String, String>> iterator;\r\n iterator = getUltimaEntry().iterator();\r\n System.out.println(getUltimaEntry().size());\r\n\t\twhile (iterator.hasNext()) {\r\n \r\n\t\t\tMap<String, String> m = iterator.next();\r\n //si fa la ricerca della più utilizzata all'inerno della mappa\r\n \r\n npacchetti=Integer.parseInt(m.get(\"RX-OK\"))+Integer.parseInt(m.get(\"TX-OK\"));\r\n System.out.println(maxpacchetti);\r\n if (maxpacchetti<npacchetti){\r\n maxpacchetti=npacchetti;\r\n mappatemp.put(\"Iface\",m.get(\"Iface\"));\r\n mappatemp.put(\"Pacchetti_TX+RX_OK\",String.valueOf(npacchetti));\r\n \r\n }\r\n }\r\n \r\n try {\r\n String json = new ObjectMapper().writeValueAsString(mappatemp);\r\n System.out.println(json);\r\n \r\n \r\n if (json!=null) return json ;\r\n } catch (JsonProcessingException ex) {\r\n Logger.getLogger(NetstatSingleton.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n return \"NOT WORKING\";\r\n \r\n }",
"public Map[] node_to_map_list(String prefix, Node root) {\n\n List l = this.pds3.node_to_list(root);\n\n List<String> list = new ArrayList<String>();\n\n String name = null;\n String pfx = null;\n Map map = null;\n for (int i=0; i<l.size(); i++) {\n name = \"group\";\n if (i != 0)\n name = name + i;\n //\n list.add(name);\n //\n pfx = prefix + \"/\" + name;\n map = (Map)l.get(i);\n this.metaMap.put(pfx+\"/\", this.collect_level1(pfx, map));\n }\n\n this.metaMap.put(prefix+\"/\", list);\n\n return new Map[] {this.metaMap, this.dataMap};\n }",
"private HashMap name4() {\n\n\t HashMap hm = new HashMap();\n\t hm.put(\"firstName\", \"HARI\");\n\t hm.put(\"middleName\", \"SHYAMA\");\n\t hm.put(\"lastName\", \"SUNITA\");\n\t hm.put(\"firstYearInOffice\", \"1969\");\n\t hm.put(\"lastYearInOffice\", \"1974\");\n\t return hm;\n\n\t }",
"public HashMap<String, String> toHashMap() {\n\n // Parse if needed\n run();\n\n if (cachedMap == null) {\n cachedMap = new LinkedHashMap<String, String>();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n\n cachedMap.put(\"File name\", fileName);\n cachedMap.put(\"File size\", \"\" + fileSize);\n cachedMap.put(\"PDF version\", pdfVersion);\n cachedMap.put(\"Page count\", \"\" + numberOfPages);\n cachedMap.put(\"Page size\", \"\" + mediaBoxWidthInPoints + \" x \"\n + mediaBoxHeightInPoints + \" points\");\n cachedMap.put(\"Page width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Page height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Page layout\", pageLayout);\n cachedMap.put(\"Title\", title);\n cachedMap.put(\"Author\", author);\n cachedMap.put(\"Subject\", subject);\n cachedMap.put(\"PDF producer\", producer);\n cachedMap.put(\"Content creator\", contentCreator);\n if (creationDate != null) {\n cachedMap.put(\"Creation date\",\n dateFormat.format(creationDate.getTime()));\n } else {\n cachedMap.put(\"Creation date\", \"\");\n }\n if (modificationDate != null) {\n cachedMap.put(\"Modification date\",\n dateFormat.format(modificationDate.getTime()));\n } else {\n cachedMap.put(\"Modification date\", \"\");\n }\n\n // \"Others\"\n cachedMap.put(\"Encrypted\", \"\" + isEncrypted);\n cachedMap.put(\"Keywords\", keywords);\n cachedMap.put(\"Media box width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Media box height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Crop box width\", \"\" + cropBoxWidthInPoints);\n cachedMap.put(\"Crop box height\", \"\" + cropBoxHeightInPoints);\n \n if(permissions != null) {\n cachedMap.put(\"Can Print\", Boolean.toString(permissions.canPrint()));\n cachedMap.put(\"Can Modify\", Boolean.toString(permissions.canModify()));\n cachedMap.put(\"Can Extract\", Boolean.toString(permissions.canExtractContent()));\n cachedMap.put(\"Can Modify Annotations\", Boolean.toString(permissions.canModifyAnnotations()));\n cachedMap.put(\"Can Fill Forms\", Boolean.toString(permissions.canFillInForm()));\n cachedMap.put(\"Can Extract for Accessibility\", Boolean.toString(permissions.canExtractForAccessibility()));\n cachedMap.put(\"Can Assemble\", Boolean.toString(permissions.canAssembleDocument()));\n cachedMap.put(\"Can Print Degraded\", Boolean.toString(permissions.canPrintDegraded()));\n }\n }\n\n return cachedMap;\n }",
"private Map<String, Integer> identifyInputs(Bookshelf basis) {\n\n\tMap<String, Integer> idPairs = new HashMap<String, Integer>();\n\n\tmaxTagMag = 0;\n\n\tint i = 0;\n\n\tIterator<Book> books = basis.iterator();\n\n\twhile (books.hasNext()) {\n\t Book book = books.next();\n\t Iterator<Map.Entry<String, Integer>> tags = book.enumerateTags()\n\t\t .iterator();\n\n\t while (tags.hasNext()) {\n\n\t\tMap.Entry<String, Integer> tag = tags.next();\n\n\t\tmaxTagMag = Math.max(maxTagMag, Math.abs(tag.getValue()));\n\n\t\tif (!idPairs.containsValue(tag.getKey())) {\n\t\t idPairs.put(tag.getKey(), i);\n\t\t ++i;\n\t\t}\n\t }\n\t}\n\tidPairs.put(OTHER, i);\n\n\tnumTags = i + 1;\n\n\treturn idPairs;\n }",
"public static Map<String, ArrayList<ImageDataModel>> getImageFolderMap(Activity activity) {\r\n imageFolderMap.clear();\r\n keyList.clear();\r\n imageDataModelList.clear();\r\n String BUCKET_ORDER_BY;\r\n Uri uri;\r\n Cursor cursor;\r\n int columnIndexDataPath, columnIndexFolderName, columnIndexTitleName,\r\n columnIndexDate, columnIndexSize, columnIndexBucketId, columnIndexAlbumId, columnIndexDuration;\r\n String absolutePathOfImage, folderName, imageTitle, fileDate, bucketId, AlbumId, fileSize, duration;\r\n\r\n /**\r\n * Fetching Audio type of files through content provider\r\n */\r\n /**\r\n * Fetching audio type of files through content provider\r\n */\r\n uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\r\n BUCKET_ORDER_BY = MediaStore.Audio.Media.DATE_MODIFIED + \" DESC\";\r\n String selection = MediaStore.Audio.Media.IS_MUSIC + \" != 0\";\r\n String[] projection1 = new String[]{MediaStore.Audio.AudioColumns.ALBUM,\r\n MediaStore.Audio.AudioColumns.ALBUM_ID,\r\n MediaStore.Audio.AudioColumns.DISPLAY_NAME,\r\n MediaStore.Audio.AudioColumns.DATA,\r\n MediaStore.Audio.AudioColumns.SIZE,\r\n MediaStore.Audio.AudioColumns.DATE_MODIFIED,\r\n\r\n MediaStore.Audio.AudioColumns.DURATION};\r\n\r\n cursor = activity.getContentResolver().query(uri, projection1, selection, null, BUCKET_ORDER_BY);\r\n if (cursor != null) {\r\n columnIndexFolderName = cursor\r\n .getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.ALBUM);\r\n columnIndexAlbumId = cursor\r\n .getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.ALBUM_ID);\r\n columnIndexTitleName = cursor\r\n .getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.DISPLAY_NAME);\r\n\r\n columnIndexDataPath = cursor.getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.DATA);\r\n while (cursor.moveToNext()) {\r\n absolutePathOfImage = cursor.getString(columnIndexDataPath);\r\n folderName = Constant.AUDIO_FOLDER_NAME;\r\n imageTitle = cursor.getString(columnIndexTitleName);\r\n\r\n ImageDataModel imageDataModel = new ImageDataModel();\r\n imageDataModel.setFile(new File(absolutePathOfImage));\r\n imageDataModel.setFolderName(folderName);\r\n imageDataModel.setPath(absolutePathOfImage);\r\n imageDataModel.setImageTitle(imageTitle);\r\n imageDataModel.setBucketId(\"1\");\r\n imageDataModel.setTimeDuration(\"0\");\r\n imageDataModel.setSelected(false);\r\n if (FileUtils.isImageFile(absolutePathOfImage)) {\r\n imageDataModel.setImage(true);\r\n } else if (FileUtils.isVideoFile(absolutePathOfImage)) {\r\n imageDataModel.setVideo(true);\r\n } else if (FileUtils.isAudioFile(absolutePathOfImage)) {\r\n imageDataModel.setAudio(true);\r\n }\r\n if (imageDataModel.getFile().length() > 0) {\r\n imageDataModelList.add(imageDataModel);\r\n if (imageFolderMap.containsKey(folderName)) {\r\n imageFolderMap.get(folderName).add(imageDataModel);\r\n } else {\r\n ArrayList<ImageDataModel> listOfAllImages = new ArrayList<ImageDataModel>();\r\n listOfAllImages.add(imageDataModel);\r\n imageFolderMap.put(folderName, listOfAllImages);\r\n }\r\n }\r\n }\r\n cursor.close();\r\n }\r\n keyList.addAll(imageFolderMap.keySet());\r\n //Send notification through main thread\r\n new Handler(Looper.getMainLooper()).post(new Runnable() {\r\n @Override\r\n public void run() {\r\n GlobalBus.getBus().post(new LandingFragmentNotification(Constant.UPDATE_UI));\r\n }\r\n });\r\n return imageFolderMap;\r\n }",
"public final synchronized Map<String, String> m108w() {\n Map<String, String> map;\n if (this.f112Y.size() <= 0) {\n map = null;\n } else {\n map = new HashMap(this.f112Y);\n }\n return map;\n }",
"private static Map<String, Field> schemaToMap(Set<Field> schema){\r\n\t\tMap<String, Field> map = new LinkedHashMap<String, Field>(schema.size());\r\n\t\t\r\n\t\tfor(Field f: schema)\r\n\t\t\tmap.put(f.name, f);\r\n\t\t\r\n\t\treturn map;\r\n\t}",
"public Map<String, String> mo9339b() {\n HashMap hashMap = new HashMap();\n hashMap.put(\"sdk_version\", AppLovinSdk.VERSION);\n hashMap.put(\"build\", String.valueOf(131));\n if (!((Boolean) this.f2745b.mo10202a(C1096c.f2507eM)).booleanValue()) {\n hashMap.put(AppLovinWebViewActivity.INTENT_EXTRA_KEY_SDK_KEY, this.f2745b.mo10246t());\n }\n C1200b c = this.f2745b.mo10189O().mo10261c();\n hashMap.put(InMobiNetworkValues.PACKAGE_NAME, C1277l.m3044d(c.f2980c));\n hashMap.put(TapjoyConstants.TJC_APP_VERSION_NAME, C1277l.m3044d(c.f2979b));\n hashMap.put(TapjoyConstants.TJC_PLATFORM, \"android\");\n hashMap.put(\"os\", C1277l.m3044d(VERSION.RELEASE));\n return hashMap;\n }",
"Map<String, String> mo14888a();",
"public HashMap getMetaData() ;",
"private Map createSpecimenArrayMap(SpecimenArrayForm specimenArrayForm)\r\n\t{\r\n\t\tfinal Map arrayContentMap = new HashMap();\r\n\t\tString value = \"\";\r\n\t\tfinal int rowCount = specimenArrayForm.getOneDimensionCapacity();\r\n\t\tfinal int columnCount = specimenArrayForm.getTwoDimensionCapacity();\r\n\r\n\t\tfor (int i = 0; i < rowCount; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < columnCount; j++)\r\n\t\t\t{\r\n\t\t\t\tfor (int k = 0; k < AppletConstants.ARRAY_CONTENT_ATTRIBUTE_NAMES.length; k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tvalue = \"\";\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_ONE_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(i + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_TWO_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(j + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tarrayContentMap.put(SpecimenArrayAppletUtil\r\n\t\t\t\t\t\t\t.getArrayMapKey(i, j, columnCount, k), value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arrayContentMap;\r\n\t}",
"private void generaMappa() {\n\t\t// lettura e acquisizione del file sorgente\n\t\tdecoder.leggiFile(filePath);\n\t\tStrutturaDati file = decoder.getFile();\n\n\t\t// creazione della mappa seguendo il sorgente\n\t\tfor (StrutturaDati map : file.getAttributi()) {\n\t\t\tif (map.getNome().equals(TAG_MAP_MAP)) {\n\t\t\t\tnomeMappa = map.getTag(TAG_MAP_TITLE);\n\t\t\t}\n\t\t}\n\n\t\t// creo tutte le celle\n\t\tfor (StrutturaDati map : file.getAttributi()) {\n\t\t\tif (map.getNome().equals(TAG_MAP_MAP)) {\n\t\t\t\tfor (StrutturaDati cell : map.getAttributi()) {\n\t\t\t\t\tif (cell.getNome().equals(TAG_MAP_CELL)) {\n\t\t\t\t\t\tint id = Integer.valueOf(cell.getTag(TAG_MAP_CELL_ID));\n\t\t\t\t\t\tint tipo = getTipo(cell.getTag(TAG_MAP_CELL_TYPE));\n\t\t\t\t\t\tString desc = getDescrizione(cell);\n\t\t\t\t\t\tCella newCella = new Cella(id, tipo, desc);\n\t\t\t\t\t\tif (tipo == TAG_C_GATE || tipo == TAG_C_LOOT) {// nel caso la casella sia un gate\n\t\t\t\t\t\t\tnewCella.setOggetto(getOggetto(cell));\n\t\t\t\t\t\t\tif (tipo == TAG_C_LOOT) {//creazione bivio anomalo l\n\t\t\t\t\t\t\t\tBivio biv = new Bivio(\"\", Integer.valueOf(cell.getTag(TAG_MAP_CELL_OPTION_DESTINATION)),false, 0, true);\n\t\t\t\t\t\t\t\tnewCella.addBivio(biv);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcelle.add(newCella);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// creazione dei bivi\n\t\tfor (StrutturaDati map : file.getAttributi()) {\n\t\t\t// ciclo gli attributi di rpg\n\t\t\tif (map.getNome().equals(TAG_MAP_MAP)) {\n\t\t\t\tfor (StrutturaDati cell : map.getAttributi()) {\n\t\t\t\t\t// ciclo gli attributi di map\n\t\t\t\t\tif (cell.getNome().equals(TAG_MAP_CELL)) {\n\t\t\t\t\t\t// acquisizione cella attuale\n\t\t\t\t\t\tint idCellaAtt = Integer.valueOf(cell.getTag(TAG_MAP_CELL_ID));\n\t\t\t\t\t\tCella cellaAtt = cercaCella(idCellaAtt);\n\t\t\t\t\t\tfor (StrutturaDati bivio : cell.getAttributi()) {\n\t\t\t\t\t\t\t// ciclo gli attributi della cella\n\t\t\t\t\t\t\tif (bivio.getNome().equals(TAG_MAP_CELL_OPTION)) {// se l'attributo e' un opzione\n\t\t\t\t\t\t\t\tint idBivio = Integer.valueOf(bivio.getTag(TAG_MAP_CELL_OPTION_DESTINATION));\n\t\t\t\t\t\t\t\tString intro = getIntroduzione(bivio);\n\t\t\t\t\t\t\t\t// set effetto se necessario ovvero la cella è una cella effetto\n\t\t\t\t\t\t\t\tif (cellaAtt.getTipo() == TAG_C_EFFETTO) {\n\t\t\t\t\t\t\t\t\tboolean hasObj = false;\n\t\t\t\t\t\t\t\t\tint effetto = getEffetto(bivio);\n\t\t\t\t\t\t\t\t\tif (bivio.getTag().containsKey(TAG_CELL_HAS_OBG)) {\n\t\t\t\t\t\t\t\t\t\tif (bivio.getTag(TAG_CELL_HAS_OBG).equals(OBJ_POSITIVE)) {\n\t\t\t\t\t\t\t\t\t\t\thasObj = true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tBivio newBivio = new Bivio(intro, idBivio, true, effetto, hasObj);\n\t\t\t\t\t\t\t\t\tcellaAtt.addBivio(newBivio);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tboolean hasObj = false;\n\t\t\t\t\t\t\t\t\tif (bivio.getTag().containsKey(TAG_CELL_HAS_OBG)) {\n\t\t\t\t\t\t\t\t\t\tif (bivio.getTag(TAG_CELL_HAS_OBG).equals(OBJ_POSITIVE)) {\n\t\t\t\t\t\t\t\t\t\t\thasObj = true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tBivio newBivio = new Bivio(intro, idBivio, false, 0, hasObj);\n\t\t\t\t\t\t\t\t\tcellaAtt.addBivio(newBivio);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\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}",
"private void processNameToObjectMap() {\r\n for (int i = 0; i < this.getObjectGroupCount(); i++) {\r\n ObjectGroup g = this.objectGroups.get(i);\r\n this.objectGroupNameToOffset.put(g.name, i);\r\n HashMap<String, Integer> nameToObjectMap = new HashMap<String, Integer>();\r\n for (int ib = 0; ib < this.getObjectCount(i); ib++) {\r\n nameToObjectMap.put(this.getObjectName(i, ib), ib);\r\n }\r\n g.setObjectNameMapping(nameToObjectMap);\r\n }\r\n }",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"private void init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}",
"public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }",
"@Override\r\n\tpublic Map<Integer, String> getUomIdAndModel() {\n\t\tList<UomVO> list = partUom();\r\n\t\t/*\r\n\t\t * for (UomVO ob : list) { map.put(ob.getId(), ob.getUomModel()); }\r\n\t\t */\r\n\t\t///\r\n\t\tMap<Integer, String> map = list.stream().collect(Collectors.toMap(UomVO::getId, UomVO::getUomModel));\r\n\t\treturn map;\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tMap<Integer,Integer> m1=new HashMap<Integer,Integer>();\r\n\t\tm1.put(20210601,90);\r\n\t\tm1.put(20210602,80);\r\n\t\tm1.put(20210603,70);\r\n\t\tm1.put(20210604,65);\r\n\t\tm1.put(20210608,55);\r\n\t\tSystem.out.println(studentsMedals(m1));\r\n\r\n\t}",
"private static HashMap<String, GLSLMatrixType> createMatrixTypes() {\n HashMap<String, GLSLMatrixType> matrixTypes = new HashMap<String, GLSLMatrixType>();\n for (int x = 2; x <= 4; x++) {\n for (int y = 2; y <= 4; y++) {\n GLSLMatrixType matrixType = new GLSLMatrixType(x, y);\n matrixTypes.put(matrixType.getTypename(), matrixType);\n if (y == x) {\n matrixTypes.put(\"mat\" + x, matrixType);\n }\n }\n }\n\n return matrixTypes;\n }",
"@Override\r\n public String getUsoMaggioreRuntime() {\n int maxpacchetti=0;\r\n int npacchetti=0;\r\n String a;\r\n Map<String, String> mappatemp=new HashMap<>();\r\n Iterator<Map<String, String>> iterator;\r\n iterator = getListaRuntime().iterator();\r\n System.out.println(getUltimaEntry().size());\r\n\t\twhile (iterator.hasNext()) {\r\n \r\n\t\t\tMap<String, String> m = iterator.next();\r\n //si fa la ricerca della più utilizzata all'inerno della mappa\r\n \r\n npacchetti=Integer.parseInt(m.get(\"RX-OK\"))+Integer.parseInt(m.get(\"TX-OK\"));\r\n System.out.println(maxpacchetti);\r\n if (maxpacchetti<npacchetti){\r\n maxpacchetti=npacchetti;\r\n mappatemp.put(\"Iface\",m.get(\"Iface\"));\r\n mappatemp.put(\"Pacchetti_TX+RX_OK\",String.valueOf(npacchetti));\r\n \r\n }\r\n }\r\n \r\n try {\r\n String json = new ObjectMapper().writeValueAsString(mappatemp);\r\n System.out.println(json);\r\n \r\n \r\n if (json!=null) return json ;\r\n } catch (JsonProcessingException ex) {\r\n Logger.getLogger(NetstatSingleton.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n return \"NOT WORKING\";\r\n }",
"private static Map<Long, Set<XliffAlt>> getXliffAltMap(List<XliffAlt> alts)\n {\n // tuvId : Set<XliffAlt>\n Map<Long, Set<XliffAlt>> xlfAltMap = new HashMap<Long, Set<XliffAlt>>();\n\n for (XliffAlt alt : alts)\n {\n Set<XliffAlt> myAlts = xlfAltMap.get(alt.getTuvId());\n if (myAlts == null)\n {\n myAlts = new HashSet<XliffAlt>();\n myAlts.add(alt);\n xlfAltMap.put(alt.getTuvId(), myAlts);\n }\n else\n {\n myAlts.add(alt);\n xlfAltMap.put(alt.getTuvId(), myAlts);\n }\n }\n\n return xlfAltMap;\n }",
"public final Map<String, Long> mo14821i() {\n HashMap hashMap = new HashMap();\n HashMap hashMap2 = new HashMap();\n try {\n Iterator it = ((ArrayList) mo14817d()).iterator();\n while (it.hasNext()) {\n File file = (File) it.next();\n C3474b j = mo14822j(file.getName());\n if (j != null) {\n hashMap2.put(file.getName(), j);\n }\n }\n } catch (IOException e) {\n f6563c.mo14884b(6, \"Could not process directory while scanning installed packs: %s\", new Object[]{e});\n }\n for (String str : hashMap2.keySet()) {\n hashMap.put(str, Long.valueOf(mo14833u(str)));\n }\n return hashMap;\n }",
"private void initIDF2Map(List<Map<String, List<Double>>> mapPerGestureFile) {\n\t\tMap<String,Double> idf2PerDocument = new HashMap<String, Double>(); // per univariate series\n\t\t\n\t\tfor (int i = 0; i < mapPerGestureFile.size(); i++) {\n\t\t\tMap<String,List<Double>> tmpMap = mapPerGestureFile.get(i);\n\t\t\tIterator<Entry<String, List<Double>>> iterator = tmpMap.entrySet().iterator();\n\t\t\twhile(iterator.hasNext()) {\n\t\t\t\tMap.Entry<String, List<Double>> pairs = (Entry<String, List<Double>>) iterator.next();\n\t\t\t\tif(idf2PerDocument.containsKey(pairs.getKey()))\n\t\t\t\t\t\tidf2PerDocument.put(pairs.getKey(), idf2PerDocument.get(pairs.getKey())+1.0); \n\t\t\t\telse\n\t\t\t\t\t\tidf2PerDocument.put(pairs.getKey(), 1.0);\n\t\t\t}\n\t\t}\n\t\tgetTfMapArrayIDF2().add(idf2PerDocument);\n\t}",
"@Override\n\tpublic Map<Long,FornameRequirements> getRequirementsMapByIds(List<Long> ids) {\n\t\tList<FornameRequirements> list=fornameRequirementsMapper.getRequirementsListByIds(ids);\n\t\tMap<Long,FornameRequirements> data=new HashMap<Long,FornameRequirements>();\n\t\tfor(FornameRequirements obj:list){\n\t\t\tdata.put(obj.getId(), obj);\n\t\t}\n\t\treturn data;\n\t}",
"private static void getStat(){\n\t\tfor(int key : Initial_sequences.keySet()){\n\t\t\tint tmNo = Initial_sequences.get(key);\n\t\t\tif (tmNo > 13){\n\t\t\t\ttmInitLarge ++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(tmInit.containsKey(tmNo)){\n\t\t\t\t\tint temp = tmInit.get(tmNo);\n\t\t\t\t\ttemp++;\n\t\t\t\t\ttmInit.put(tmNo, temp);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttmInit.put(tmNo, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Go through all the proteins in SC\n\t\tfor(int key : SC_sequences.keySet()){\n\t\t\tint tmNo = SC_sequences.get(key);\n\t\t\t\n\t\t\tint loop = Loop_lengths.get(key);\n\t\t\tint tmLen = TM_lengths.get(key);\n\t\t\t\n\t\t\tLoopTotalLen = LoopTotalLen + loop;\n\t\t\tTMTotalLen = TMTotalLen + tmLen;\n\t\t\t\n\t\t\t\n\t\t\tif (tmNo > 13){\n\t\t\t\ttmSCLarge ++;\n\t\t\t\tLoopLargeLen = LoopLargeLen + loop;\n\t\t\t\tTMLargeLen = TMLargeLen + tmLen;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(tmSC.containsKey(tmNo)){\n\t\t\t\t\tint temp = tmSC.get(tmNo);\n\t\t\t\t\ttemp++;\n\t\t\t\t\ttmSC.put(tmNo, temp);\n\t\t\t\t\t\n\t\t\t\t\tint looptemp = Loop_SC.get(tmNo);\n\t\t\t\t\tlooptemp = looptemp + loop;\n\t\t\t\t\tLoop_SC.put(tmNo, looptemp);\n\t\t\t\t\t\n\t\t\t\t\tint tmlenTemp = TM_len_SC.get(tmNo);\n\t\t\t\t\ttmlenTemp = tmlenTemp + tmLen;\n\t\t\t\t\tTM_len_SC.put(tmNo, tmlenTemp);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttmSC.put(tmNo, 1);\n\t\t\t\t\t\n\t\t\t\t\tLoop_SC.put(tmNo, 1);\n\t\t\t\t\tTM_len_SC.put(tmNo, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tMap map = new HashMap<>();\n\n//\t\tmap.put(\"name\", \"mykong\");\n//\t\tmap.put(\"age\", 12);\n\t\tList<Object> lstTemp = new ArrayList<Object>();\n//\t\tlstTemp.add(map);\n//\t\tmap = new HashMap<>();\n//\t\tmap.put(\"name\", \"henv\");\n//\t\tmap.put(\"age\", \"2\");\n//\t\tlstTemp.add(map);\n\t\t\n\t\tmap = new HashMap<>();\n\t\tmap.put(\"name\", \"henv3\");\n\t\tmap.put(\"age\", \"100\");\n\t\tList<DynamicVO> lstDynamic = new ArrayList<DynamicVO>();\n\t\tDynamicVO d = new DynamicVO();\n\t\td.setKey(\"dKey\");\n\t\td.setValue(\"dValue\");\n\t\tlstDynamic.add(d);\n\t\tmap.put(\"charactor\", lstDynamic);\n\t\t\n\t\tlstTemp.add(map);\n\t\t\n\t\ttry {\n\t\t\tList<Henv> listResults = convert2ClassVO(Henv.class, lstTemp);\n\t\t\tfor(int i = 0; i < listResults.size(); i++) {\n\t\t\t\tfor(int j = 0; j < listResults.get(i).getLstDynamic().size(); j++) {\n\t\t\t\t\tDynamicVO dn = (DynamicVO) listResults.get(i).getLstDynamic().get(j);\n\t\t\t\t\tSystem.out.println(dn.getKey()+ dn.getValue());\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(listResults.get(i).getLstDynamic().get(i).getKey());\n//\t\t\t\tSystem.out.println(listResults.get(i).getLstDynamic().get(i).getValue());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (InstantiationException | IllegalAccessException | NoSuchFieldException | NoSuchMethodException\n\t\t\t\t| InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private HashMap name3() {\n\n\t HashMap hm = new HashMap();\n\t hm.put(\"firstName\", \"SIMA\");\n\t hm.put(\"middleName\", \"MOHANTY\");\n\t hm.put(\"lastName\", \"RAMA\");\n\t hm.put(\"firstYearInOffice\", \"1961\");\n\t hm.put(\"lastYearInOffice\", \"1963\");\n\t return hm;\n\n\t }",
"Map<String, Object> getAllMetadata();",
"private void calculateIdf(){\r\n\t\tIdf = new HashMap<>();\r\n\t\tOcc = new HashMap<>();\r\n\t\t\r\n\t\tfor (Entry<String, Document> doc : Docs.entrySet()){\r\n\t\t\tdoc.getValue().wordSet.forEach(word -> {\r\n\t\t\t\tdouble count = Idf.containsKey(word) ? Idf.get(word) : 0;\r\n \tIdf.put(word, count+1);\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tdoc.getValue().words.forEach((w, o) -> words.add(w));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tfor (Entry<String, Double> e : new HashMap<>(Idf).entrySet()){\r\n\t\t\tIdf.put(e.getKey(),\r\n\t\t\t\t\tMath.log(Idf.keySet().size() / e.getValue()));\r\n\t\t}\r\n\t}",
"public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }",
"private void scanDocuments()\n{\n document_counts = new HashMap<>();\n kgram_counts = new HashMap<>();\n for (File f : root_files) {\n addDocuments(f);\n }\n}",
"private Map<String,Map<String,List<String>>> buildDictionary(Document doc){\n\t\t\n\t\tElement root = doc.getDocumentElement();\n\t\t\n\t\t\n\t\tMap<String,Map<String,List<String>>> dictionary = new HashMap<String,Map<String,List<String>>>();\n\t\tthis.termSet = new TreeSet<String>();\n\t\t\n\t\tNodeList termList = doc.getElementsByTagName(\"term\");\n\t\tfor(int i = 0; i < termList.getLength(); i++){\n\t\t\tElement termElement = (Element) termList.item(i);\n\t\t\tElement nameElement = (Element) termElement.getElementsByTagName(\"name\").item(0);\n\t\t\tString name = nameElement.getTextContent();\n\t\t\tthis.termSet.add(name);\n\n\t\t\tMap<String,List<String>> synonymGroup = new HashMap<String,List<String>>();\n\t\t\tsynonymGroup.put(\"exact\", new ArrayList<String>());\n\t\t\tsynonymGroup.put(\"related\", new ArrayList<String>());\n\t\t\tsynonymGroup.put(\"broad\", new ArrayList<String>());\n\t\t\tsynonymGroup.put(\"narrow\", new ArrayList<String>());\n\t\t\t\n\t\t\tNodeList synonyms = termElement.getElementsByTagName(\"synonym\");\n\t\t\tfor(int j=0; j<synonyms.getLength(); j++){\n\t\t\t\tElement synonymElement = (Element) synonyms.item(j);\n\t\t\t\tString synonym = synonymElement.getTextContent();\n\t\t\t\tString scope = synonymElement.getAttribute(\"scope\");\n\t\t\t\t//System.out.println(scope);\n\t\t\t\tList<String> synonymList = (List<String>) synonymGroup.get(scope);\n\t\t\t\t\n\t\t\t\t//System.out.println(synonym);\n\t\t\t\t\n\t\t\t\tsynonymList.add(synonym);\n\t\t\t}\n\t\t\t\n\t\t\tdictionary.put(name,synonymGroup);\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn dictionary;\n\t}",
"public HashMap toHash() {\n HashMap x = new HashMap();\n\n x.put(\"type\",\"media\");\n x.put(\"mediaid\",mediaid);\n x.put(\"title\",mediatitle);\n x.put(\"episodetitle\",episodetitle);\n x.put(\"mediapath\",mediapath);\n x.put(\"description\",Description);\n x.put(\"mediaencoding\",mediaencoding);\n x.put(\"mediatype\",mediatype);\n x.put(\"mediagroup\", mediagroup);\n x.put(\"mediasize\", getMediasize());\n x.put(\"mediaduration\", getMediaduration());\n// x.put(\"lastwatched\",lastwatched);\n x.put(\"airingstarttime\",airingstarttime);\n x.put(\"userrating\",userrating);\n x.put(\"mpaarated\",mpaarated);\n x.put(\"releasedate\",releasedate);\n x.put(\"genre\",genre);\n x.put(\"trailer\", getTrailer());\n x.put(\"mediaimporttime\", getMediaimporttime());\n\n if ( MediaFileAPI.IsTVFile(MediaFileAPI.GetMediaFileForID(mediaid))) {\n// ortus.api.DebugLogTrace(\"toHash() loading TV\");\n Object mf = MediaFileAPI.GetMediaFileForID(mediaid);\n x.put(\"channelname\",AiringAPI.GetAiringChannelName(mf));\n x.put(\"channelnumber\",AiringAPI.GetAiringChannelNumber(mf));\n x.put(\"airingduration\",AiringAPI.GetAiringDuration(mf));\n x.put(\"airingstarttime\",AiringAPI.GetAiringStartTime(mf));\n x.put(\"airingendtime\",AiringAPI.GetAiringEndTime(mf));\n }\n\n if ( seriesid > 0)\n x.put(\"seriesid\",seriesid);\n if ( seasonno > 0)\n x.put(\"seasonno\",seasonno);\n if ( episodeid > 0)\n x.put(\"episodeid\",episodeid);\n if ( episodeno > 0)\n x.put(\"episodeno\",episodeno);\n// List castlist = new ArrayList();\n// for ( Cast ic : cast) {\n// HashMap y = new HashMap();\n// y.put(\"name\",ic.getName());\n// y.put(\"job\",ic.getJob());\n// y.put(\"character\",ic.getCharacter());\n// castlist.add(y);\n// }\n// x.put(\"cast\",castlist);\n// ortus.api.DebugLogTrace(\"toHash() loading fanart\");\n if ( fanart.get(\"Backgrounds\") != null) {\n // x.put(\"background_high\", ortus.api.GetFanartFolder() + java.io.File.separator + ((Fanart)fanart.get(\"Backgrounds\").get(\"high\").get(0)).getFile());\n x.put(\"background_id\",((Fanart)fanart.get(\"Backgrounds\").get(\"high\").get(0)).getId());\n }\n if ( fanart.get(\"Posters\") != null) {\n // x.put(\"posters_high\", ortus.api.GetFanartFolder() + java.io.File.separator + ((Fanart)fanart.get(\"Posters\").get(\"high\").get(0)).getFile());\n x.put(\"posters_id\",((Fanart)fanart.get(\"Posters\").get(\"high\").get(0)).getId());\n }\n if ( fanart.get(\"Banners\") != null) {\n // x.put(\"banners_high\", ortus.api.GetFanartFolder() + java.io.File.separator + ((Fanart)fanart.get(\"Banners\").get(\"high\").get(0)).getFile());\n x.put(\"banners_id\",((Fanart)fanart.get(\"Banners\").get(\"high\").get(0)).getId());\n }\n// ortus.api.DebugLogTrace(\"GetMetadata: Returning: \" + x);\n \n return x;\n }",
"public static Map<String, Object> getMap(String a0000,String tpid) throws Exception{\n\t ExportDataBuilder edb = new ExportDataBuilder();\n\t Map<String, Object> dataMap = new HashMap<String, Object>();\n\t if(tpid.equals(\"eebdefc2-4d67-4452-a973-5f7939530a11\")){\n\t \tdataMap = edb.getGbrmspbMap(a0000);\n\t }else if(tpid.equals(\"B73E508A87A44EF889430ABA451AC85C\")){\n\t \tdataMap = edb.getGbrmspbMap(a0000);\n\t }else if(tpid.equals(\"5d3cef0f0d8b430cb35b2ac2cb3bf927\")||tpid.equals(\"0f6e25ab-ee0a-4b23-b52d-7c6774dfc462\")){\n\t \tdataMap = edb.getGwydjbMap(a0000);\n\t }else if(tpid.equals(\"a43d8c50-400d-42fe-9e0d-5665ed0b0508\")){\n\t \tdataMap = edb.getNdkhdjb(a0000);\n\t }else if(tpid.equals(\"04f59673-9c3a-4d9c-b016-a5b789d636e2\")){\n\t \tdataMap = edb.getGwyjlspb(a0000);\n\t }else if(tpid.equals(\"3de527c0-ea23-42c4-a66f\")){\n\t \t//dataMap = edb.getGwylyspb(a0000);\n\t \tdataMap = edb.getGwylyb(a0000);\n\t }else if(tpid.equals(\"9e7e1226-6fa1-46a1-8270\")){\n\t \tdataMap = edb.getGwydrspb(a0000);\n\t }else if(tpid.equals(\"28bc4d39-dccd-4f07-8aa9\")){\n\t \tdataMap = edb.getGwyzjtgb(a0000);\n\t }\n\t\t\t/** 姓名 */\n\t\t\tString a0101 = (String) dataMap.get(\"a0101\");\n\t\t\t/** 民族 */\n\t\t\tString a0117 = (String) dataMap.get(\"a0117\");\n\t\t\t/** 籍贯 */\n\t\t\tString a0111a = (String) dataMap.get(\"a0111a\");\n\t\t\t/** 健康 */\n\t\t\tString a0128 = (String) dataMap.get(\"a0128\");\n\t\t\t/** 专业技术职务 */\n\t\t\tString a0196 = (String) dataMap.get(\"a0196\");\n\t\t\t/** 特长 */\n\t\t\tString a0187a = (String) dataMap.get(\"a0187a\");\n\t\t\t/** 身份证号码 */\n\t\t\tString a0184 = (String) dataMap.get(\"a0184\");\n\t\t\t//格式化时间参数\n\t\t\tString a0107 = (String)dataMap.get(\"a0107\");\n\t\t\tString a0134 = (String)dataMap.get(\"a0134\");\n\t\t\tString a1701 = (String)dataMap.get(\"a1701\");\n\t\t\tString a2949 = (String)dataMap.get(\"a2949\");\n\t\t\tString a0288 = (String) dataMap.get(\"a0288\");\n\t\t\tString a0192t = (String) dataMap.get(\"a0192t\");\n\t\t\t//格式化学历学位\n\t\t\tString qrzxl = (String)dataMap.get(\"qrzxl\");\n\t\t\tString qrzxw = (String)dataMap.get(\"qrzxw\");\n\t\t\tString zzxl = (String)dataMap.get(\"zzxl\");\n\t\t\tString zzxw = (String)dataMap.get(\"zzxw\");\n\t\t\tif(!StringUtil.isEmpty(qrzxl)&&!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxl+\"\\r\\n\"+qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxl)){\n\t\t\t\tString qrzxlxw = qrzxl;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxw\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(zzxl)&&!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxl+\"\\r\\n\"+zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxl)){\n\t\t\t\tString zzxlxw = zzxl;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxw\", \"\");\n\t\t\t}\n\t\t\t//格式化学校及院系\n\t\t\tString QRZXLXX = (String) dataMap.get(\"qrzxlxx\");\n\t\t\tString QRZXWXX = (String) dataMap.get(\"qrzxwxx\");\n\t\t\tString ZZXLXX = (String) dataMap.get(\"zzxlxx\");\n\t\t\tString ZZXWXX = (String) dataMap.get(\"zzxwxx\");\n\t\t\tif(!StringUtil.isEmpty(QRZXLXX)&&!StringUtil.isEmpty(QRZXWXX)&&!QRZXLXX.equals(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX+\"\\r\\n\"+QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXLXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(ZZXLXX)&&!StringUtil.isEmpty(ZZXWXX)&&!ZZXLXX.equals(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXLXX+\"\\r\\n\"+ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXLXX)){\n\t\t\t\tString zzxlxx = ZZXLXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(a1701 != null){\n\t\t\t\t//简历格式化\n\t\t\t\tStringBuffer originaljl = new StringBuffer(\"\");\n\t\t\t\tString jianli = AddPersonPageModel.formatJL(a1701,originaljl);\n\t\t\t\ta1701 = jianli;\n\t\t\t\tdataMap.put(\"a1701\", a1701);\n\t\t\t}\n\t\t\tif(a0107 != null && !\"\".equals(a0107)){\n\t\t\t\ta0107 = a0107.substring(0,4)+\".\"+a0107.substring(4,6);\n\t\t\t\tdataMap.put(\"a0107\", a0107);\n\t\t\t}\n\t\t\tif(a0134 != null && !\"\".equals(a0134)){\n\t\t\t\ta0134 = a0134.substring(0,4)+\".\"+a0134.substring(4,6);\n\t\t\t\tdataMap.put(\"a0134\", a0134);\n\t\t\t}\n\t\t\tif(a2949 != null && !\"\".equals(a2949)){\n\t\t\t\ta2949 = a2949.substring(0,4)+\".\"+a2949.substring(4,6);\n\t\t\t\tdataMap.put(\"a2949\", a2949);\n\t\t\t}\n\t\t\tif(a0288 != null && !\"\".equals(a0288)){\n\t\t\t\ta0288 = a0288.substring(0,4)+\".\"+a0288.substring(4,6);\n\t\t\t\tdataMap.put(\"a0288\", a0288);\n\t\t\t}\n\t\t\tif(a0192t != null && !\"\".equals(a0192t)){\n\t\t\t\ta0192t = a0192t.substring(0,4)+\".\"+a0192t.substring(4,6);\n\t\t\t\tdataMap.put(\"a0192t\", a0192t);\n\t\t\t}\n\t\t\t//姓名2个字加空格\n/*\t\t\tif(a0101 != null){\n\t\t\t\tif(a0101.length() == 2){\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t int length = a0101.length();\n\t\t\t\t for (int i1 = 0; i1 < length; i1++) {\n\t\t\t\t if (length - i1 <= 2) { //防止ArrayIndexOutOfBoundsException\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t sb.append(a0101.substring(i1 + 1));\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t }\n\t\t\t\t dataMap.put(\"a0101\", sb.toString());\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\tdataMap.put(\"a0101\" , Space(a0101) );\n\t\t\tdataMap.put(\"a0117\" , a0117);\n\t\t\tdataMap.put(\"a0111a\", Space(a0111a));\n\t\t\tdataMap.put(\"a0128\" , a0128);\n\t\t\tdataMap.put(\"a0196\" , a0196);\n\t\t\tdataMap.put(\"a0187a\", Space(a0187a));\n\t\t\t//System.out.println(dataMap);\n\t\t\t//现职务层次格式化\n\t\t\t\n\t\t\tString a0221 = (String)dataMap.get(\"a0221\");\n\t\t\tif(a0221 !=null){\n\t\t\t\tif(a0221.length()==5){\n\t\t\t\t\ta0221 = a0221.substring(0,3)+\"\\r\\n\"+a0221.substring(3);\n\t\t\t\t\tdataMap.put(\"a0221\", a0221);\n\t\t\t\t\tdataMap.put(\"a0148\", a0221);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString a0192d = (String) dataMap.get(\"a0192d\");\n\t\t\tif(a0192d !=null){\n\t\t\t\tif(a0192d.length()>5){\n\t\t\t\t\ta0192d = a0192d.substring(0, 3)+\"\\r\\n\"+a0192d.substring(3);\n\t\t\t\t\tdataMap.put(\"a0192d\", a0192d);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//dataList.add(dataMap);\n\t return dataMap;\n\t\t}",
"void init() throws ResultException, DmcValueException, DmcNameClashException {\n globallyUniqueMAP \t\t\t\t= new HashMap<DotName,DmsDefinition>();\n clashMAP\t\t\t\t= new HashMap<DotName, ArrayList<DmsDefinition>>();\n \n // We default to use ourselves as the clash resolver\n currentResolver\t\t\t\t= this;\n \n// enumDefs \t\t\t\t\t= new HashMap<DefinitionName,EnumDefinition>();\n enumDefinitions\t\t\t\t= new DmcDefinitionSet<EnumDefinition>();\n typeDefs \t\t\t\t= new HashMap<DefinitionName,TypeDefinition>();\n internalTypeDefs \t\t= new HashMap<DefinitionName,TypeDefinition>();\n \n attributeDefinitions\t\t= new DmcDefinitionSet<AttributeDefinition>();\n classDefinitions\t\t\t= new DmcDefinitionSet<ClassDefinition>();\n \n attrByID\t\t\t\t\t= new TreeMap<Integer, AttributeDefinition>();\n classesByID\t\t\t\t\t= new TreeMap<Integer, ClassDefinition>();\n classesByJavaClass\t\t\t= new TreeMap<String, ClassDefinition>();\n actionDefs \t\t\t\t= new HashMap<DefinitionName,ActionDefinition>();\n// classDefs \t\t\t\t= new HashMap<DefinitionName,ClassDefinition>();\n complexTypeDefs \t\t\t= new HashMap<DefinitionName,ComplexTypeDefinition>();\n extendedReferenceTypeDefs = new HashMap<DefinitionName,ExtendedReferenceTypeDefinition>();\n sliceDefs \t\t\t\t= new HashMap<DefinitionName,SliceDefinition>();\n ruleCategoryDefs \t\t\t= new HashMap<DefinitionName,RuleCategory>();\n ruleCategoriesByID\t\t\t= new TreeMap<Integer, RuleCategory>();\n ruleDefs \t\t\t\t\t= new HashMap<DefinitionName,RuleDefinition>();\n ruleDefsByDot \t\t\t= new HashMap<DotName, RuleDefinition>();\n ruleData\t\t\t\t\t= new TreeMap<RuleName, RuleData>();\n schemaDefs \t\t\t\t= new TreeMap<DefinitionName,SchemaDefinition>();\n definitionModuleDefs \t\t= new TreeMap<DefinitionName,DSDefinitionModule>();\n classAbbrevs\t\t\t\t= new HashMap<DefinitionName,ClassDefinition>();\n attrAbbrevs \t\t\t\t= new HashMap<DefinitionName,AttributeDefinition>();\n hierarchicObjects\t\t\t= null;\n \n extensions\t\t\t\t= new TreeMap<String, SchemaExtensionIF>();\n \n performIDChecks = true;\n \n\n // Create the global metaschema\n if (MetaSchema._metaSchema == null){\n meta = new MetaSchema();\n \n }\n else\n meta = MetaSchema._metaSchema;\n \n // Manage the meta schema so that we have a starting point for schema management\n manageSchemaInternal(meta);\n \n resolveReferences(meta,this);\n\n // Now that everything's resolved, we have some unfinished business to take care of\n \tIterator<AttributeDefinition> adl = meta.getAttributeDefList();\n \tresolveNameTypes(adl);\n }",
"static /* synthetic */ Map m890b(Request request) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"device_verifier\", request.verifier);\n HashMap hashMap2 = new HashMap();\n C1543ak a = C1948n.m1229a().f1421g.mo16243a();\n String str = (String) a.mo16260a().get(C1544al.AndroidAdvertisingId);\n if (str != null) {\n hashMap2.put(\"gpaid\", str);\n }\n String str2 = (String) a.mo16260a().get(C1544al.DeviceId);\n if (str2 != null) {\n hashMap2.put(\"andid\", str2);\n }\n hashMap.putAll(hashMap2);\n HashMap hashMap3 = new HashMap();\n byte[] bytes = ((String) C1948n.m1229a().f1421g.mo16243a().mo16260a().get(C1544al.AndroidInstallationId)).getBytes();\n if (bytes != null) {\n hashMap3.put(\"flurry_guid\", C1734dz.m868a(bytes));\n }\n hashMap3.put(\"flurry_project_api_key\", C1948n.m1229a().f1422h.f444a);\n hashMap.putAll(hashMap3);\n Context context = request.context;\n HashMap hashMap4 = new HashMap();\n hashMap4.put(\"src\", \"flurryandroidsdk\");\n hashMap4.put(\"srcv\", \"12.3.0\");\n hashMap4.put(\"appsrc\", context.getPackageName());\n C1601bl.m537a();\n hashMap4.put(\"appsrcv\", C1601bl.m538a(context));\n hashMap.putAll(hashMap4);\n return hashMap;\n }",
"public Map<String, MonthDay> dataFeriadosNacionais(int ano);",
"HashMap getMasterAttributes() throws BaseException;",
"public HashMap<HLID, ArrayList<HLID>> getMapping() {\n\t\treturn mapping;\n\t\t// HashMap<HLActivity, ArrayList<HLActivity>> returnHashMap = new\n\t\t// HashMap<HLActivity,ArrayList<HLActivity>>();\n\t\t// // TODO Anne: check and remove\n\t\t// //Iterator<Entry<HLTransition, ArrayList<HLTransition>>> it =\n\t\t// mapping.entrySet().iterator();\n\t\t// Iterator<Entry<String, ArrayList<String>>> it =\n\t\t// mapping.entrySet().iterator();\n\t\t// while (it.hasNext()) {\n\t\t// Entry entry = it.next();\n\t\t// HLActivity castKey = (HLActivity) entry.getKey();\n\t\t// ArrayList<HLActivity> castValue = (ArrayList<HLActivity>)\n\t\t// entry.getValue();\n\t\t// returnHashMap.put(castKey, castValue);\n\t\t// }\n\t\t// return returnHashMap;\n\t}",
"static void getMidWidNames() throws IOException {\n\t\tHashMap<String, String[]> mid2other = new HashMap<String, String[]>();\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2wid);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tif (mid2other.containsKey(l[0])) {\r\n\t\t\t\t\tString[] s = mid2other.get(l[0]);\r\n\t\t\t\t\ts[1] = s[1] + \"::\" + l[1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tString[] s = new String[5];\r\n\t\t\t\t\ts[0] = l[0] + \"\";\r\n\t\t\t\t\ts[1] = l[1] + \"\";\r\n\t\t\t\t\ts[2] = \"\";\r\n\t\t\t\t\ts[3] = \"\";\r\n\t\t\t\t\ts[4] = \"\";\r\n\t\t\t\t\tmid2other.put(l[0], s);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load notable type\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2notabletype);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\tif (s[2].equals(\"\")) {\r\n\t\t\t\t\t\ts[2] = l[1];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ts[2] = s[2] + \"::\" + l[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load names & alias\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_2_len4);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\t// set name\r\n\t\t\t\tif (l[1].equals(\"/type/object/name\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[3].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[3] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[3] = s[3] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (l[1].equals(\"/common/topic/alias\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\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\t//write\r\n\t\t{\r\n\t\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_midWidTypeNameAlias);\r\n\t\t\tfor (Entry<String, String[]> e : mid2other.entrySet()) {\r\n\t\t\t\tdw.write(e.getValue());\r\n\t\t\t}\r\n\t\t\tdw.close();\r\n\t\t}\r\n\t}",
"private Map<String, C0148k> m471c() {\n HashMap hashMap = new HashMap();\n try {\n Class.forName(\"com.google.android.gms.ads.AdView\");\n C0148k kVar = new C0148k(\"com.google.firebase.firebase-ads\", \"0.0.0\", \"binary\");\n hashMap.put(kVar.mo326a(), kVar);\n C0135c.m449h().mo273b(\"Fabric\", \"Found kit: com.google.firebase.firebase-ads\");\n } catch (Exception unused) {\n }\n return hashMap;\n }",
"private void buildAttrNamesSet() {\r\n\t\tFileReader file = null;\r\n\t\tString fileName = \"data/attributesType.txt\";\r\n\r\n\t\ttry {\r\n\t\t\tfile = new FileReader(fileName);\r\n\t\t\tBufferedReader reader = new BufferedReader(file);\r\n\t\t\tString line = \"\";\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString strLine[] = line.split(\" \");\r\n\t\t\t\tint type = Integer.parseInt(strLine[1]);\r\n\t\t\t\thmAttrNames.put(strLine[0], new Integer(type));\r\n\t\t\t}\r\n\r\n\t\t\tfile.close();\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * // Get a set of the entries Set set = hmAttrNames.entrySet(); // Get\r\n\t\t * an iterator Iterator i = set.iterator(); // Display elements while\r\n\t\t * (i.hasNext()) { Map.Entry me = (Map.Entry) i.next();\r\n\t\t * System.out.print(me.getKey() + \": \");\r\n\t\t * System.out.println(me.getValue()); } System.out.println();\r\n\t\t */\r\n\t}",
"Map <String,Integer> RepresentationBinaire(BasicSet A){\r\n\t\tMap<String,Integer> bit=new TreeMap<String,Integer>();\r\n\t\tVector<String> v=context.getAttributes();\t\t\r\n\t\tBasicSet attributes=new BasicSet();\r\n\t\tattributes.addAll(v);\r\n\r\n\t\tfor(String item: attributes )\r\n\t\t{\r\n\t\t\tbit.put(item,0);\t\t\r\n\t\t}\r\n\t\tfor(String item: attributes)\r\n\t\t{\t\t\r\n\t\t\tfor(String it: A){\t\r\n\t\t\t\tif(it.equals(item)){\r\n\t\t\t\t\tbit.put(item,1);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn bit;\r\n\t}",
"protected Map<String,List<PageViewVO>> initializePageMap() {\n\t\tMap<String,List<PageViewVO>> pm = new HashMap<>();\n\t\tfor (Section sect : Section.values()) {\n\t\t\tpm.put(sect.name(), new ArrayList<>());\n\t\t}\n\t\treturn pm;\n\t}"
] | [
"0.57198435",
"0.5607928",
"0.54531056",
"0.54433775",
"0.5326129",
"0.532056",
"0.5315169",
"0.52951884",
"0.52921396",
"0.5254118",
"0.525025",
"0.5247206",
"0.52432317",
"0.5228906",
"0.5218222",
"0.5211725",
"0.52060246",
"0.5203706",
"0.5193345",
"0.5181411",
"0.51794124",
"0.51783586",
"0.51780933",
"0.5147446",
"0.5147051",
"0.5137882",
"0.5115395",
"0.5105862",
"0.5096438",
"0.5095868",
"0.50873315",
"0.5086583",
"0.5084078",
"0.50755715",
"0.5073755",
"0.5065578",
"0.506555",
"0.5063024",
"0.50623196",
"0.5062143",
"0.5048803",
"0.50461984",
"0.50400037",
"0.5038597",
"0.5032272",
"0.50175136",
"0.5015379",
"0.50080186",
"0.5006736",
"0.5005306",
"0.49971285",
"0.4992315",
"0.49891797",
"0.49811858",
"0.49740303",
"0.49734598",
"0.49731615",
"0.49671477",
"0.49627683",
"0.49553835",
"0.49483448",
"0.49480724",
"0.49476048",
"0.49461022",
"0.49400216",
"0.49307585",
"0.49121362",
"0.49120077",
"0.49016923",
"0.49016923",
"0.49008825",
"0.4894824",
"0.4879641",
"0.48752668",
"0.48704118",
"0.48676988",
"0.4864939",
"0.48603258",
"0.4859182",
"0.48588514",
"0.48541036",
"0.48498937",
"0.48434094",
"0.48410416",
"0.4834959",
"0.48332024",
"0.48260072",
"0.48253208",
"0.48252955",
"0.48237047",
"0.4819557",
"0.48173982",
"0.48160565",
"0.48140895",
"0.48121727",
"0.481161",
"0.4811385",
"0.48110247",
"0.48079664",
"0.48059273"
] | 0.63609886 | 0 |
String s = "agcgccaa"; System.out.println(s.length()); int n = new SequenceTools().getNumberOfHypthens(s, false); System.out.println(n); System.out.println(s.charAt(n)); int f = new SequenceTools().getNumberOfHypthens(s, true); System.out.println(f); System.out.println(s.charAt(s.length() f1)); System.err.println(new SequenceTools().getBeginningOfRepeatseq(3069,"cttttccgcctccgccaccaactgttccgggggtttagacatgtacagaaaaggatgacttctcctgattgcagcttcagcagtatcagatattatgtcgaacccttgtgttctttatccctgaaaggtttctcttatcagccccctcacacttcccttaatatacttatgggtatatatatatatatatatatatatgtacaagctcaataaatcaacttatgataggagaaacgctattatccaatcaccttgcttatatacttatttccctctccctacttttggtactactcgaggattagttcctcctctcgccgcagagcaatgccttcgaaagtggcccgcagagactctttcagcacgttacaactaaaagaaagggtgagcaaacaaaaaaaaagagtaacggggaaaaagagaaaacaaaaaaattattaagaggacaaagcgatgagtacccgaataataagaatatcttagggaaactttgtggtccgcaaaagactcgcaacttacggaacgcacgacaaactgctccttttccccatgggggagctcacaaccacacgcaacccccgagaacataatacacatgtgacccgagaagggaacagcagcataaatcgtgtgcttcatacgtaagcgttatgcatacaagagcttttgaacatccagactcaatatacatagcaggtaacaagtgataataaaggcagagaaagaaatgaagaagggaccgtaatggtttgcagacagcccctccctccttcacgcacccttttccgcagcagccatgacattaaaaaaaaaaaaaactttcccacacacacacacacaaacacacacagagagagagagagagagacactgacacaacagaaccacgccgactcatggacactgttgcaggcagtgaaggcgcacacacaaaaaaaaatgtacgtgggacgcgactttttcctcctctgtgctctgttgttgttgttgccttttcactccactctgtaatcgtctacatttcgttcatcctcccccccccgctccctttttttccccgccaggacagttcgcgaagaattggaagaagagagcaatagggacctcagctcacagctgcagatttgtgcaatgaagcaaacaaacaaaatagagccccatgtacaaccgcaggaggtggggagtcaatgatcaagaagaaaaagtgaggcagcggaggtaacgacacacttcagtgagcgcagagaaaataatgaaagactgagatgaagtacaggagaaaaaagaaaagttcggacgcactacctgaaaagggcatattccacctggcgtcaccatataagaagcagtccacatacctgctactggtcactcttctccttccccctcaattattattactctcccctcgatacttttcttatcttatccttctcactctttttcttttttttttaattttctcccttgcattttctttgattgctgcctcaatttcctttacattctcttccttataaagcggataaaatcattttgctgtgggtggattcgtagtccgcttaaacgcagcgtgatttcaaagtttctttctctcttcttcctctcccaggggataaaaagaaatatgagtacgaagcgcccaacaggaaaaagacacataaacgcatacacataacgcacaaaacacagcggctgaggcagcgaatcacacaccttgacggttattcgtgcccgcagcaaacagctggacggataaaggggaagagaacgtaaacagagtacagaaaagtaaaaggtcaacatcacggaggcacaaaagggtaggatcaccgagacctgtcgtacaggtgggtacgtttttttttttgaaaaactgacatggctttactttctgcggagtataggcggagcatcggcaaactgatccttcaggtcacgctttcggcgctgtcccttttcttcacgcagccgctttgaaagtagacgctgctgcatctgctgtcgcaactcctcatgcgagacgacgggatcaccgtcatggtcatccttcccctcaacactttcgtccccgtacagttgagcgcttggaaggactgaacaacggacaaacttcgctgcagtgccgtcctttcttacaggcaagttcagtacgggactaaagtctgctgttccctcaaccaatgcctgtaatagacggacgtccactttactaccagaactaccttcaccgccctcctccttaaccgcactcacaatgcccctagtgttttccgccccaccggccgccgccgcgtttccgcctctgtccccatcggtttccttctccttaccagggagataagtctgatcatcgcccgcgccaatcggcaaagtccgcttggaaccatccgccccttcttctgcggccttttgttcttgtagcatcgcctccgttcgtttatatagctggtaagtgcacaatatcctcgtagctcgttcctctataaggccaagaaacttcaactgagtggattccgtacagtggtccgatccgaccaggcgtcgggcttcctccgctgagcatccaatccgcttgaaaacaccctctgtggtctcgcgaatcctggcgagaacctctttgtgaacttcagcagagcgattaagacgatctagcatgagctctgtctcggccagacgatcttcgtattccttgatgaggcggcgctgctgaacgtcatgctcgtgttcttccgcgattaccttcttcagcgtgtgtatatcccgttccatctcctctcgactggtagttagttcgttgatacgcttgtaaagggagaagttactctcaccaacaacctggtaagtctgagccagcttttgcaaatcaccatctggagcgaacatggacagttgcgcgggaatgtccataatctctgatcccacctcagcggaagacataccatcggaagcatcctctccatcttccgtaaatggggtaggggcatgagtgtttgcaacagggaggtttttgcccacgccgctgtgatctaccgtagggtttggcatgtaggaacgcgcctcaaattcaatttgccgccggtggagttcatctcgcattctgttgatgtcgatcatgcatacatccaagttacgcacagcggtgtcatattcctccttctgctcgctaagcgctgttctaagctgctccacctgctgcaggtagccgtctcgttcatccaggtcgtggtttgactgttcaatccgttccgacatgatttttttcttagatctcagatcgtcctccatcttcttgtgtacacgttgaaaaacgcgccgttccccgcgaattatatcgatgtgatcgcgcagctctttgttataggaaacagcgtc")); String space10 = new String(new char[3732]).replace('\0', 'm'); System.out.println(space10.length()); System.out.println(space10.charAt(space10.length())); | public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
System.out.println(i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void subSequencesTest3() {\n String text = \"wnylazlzeqntfpwtsmabjqinaweaocfewgpsrmyluadlybfgaltgljrlzaaxvjehhygggdsrygvnjmpyklvyilykdrphepbfgdspjtaap\"\n + \"sxrpayholutqfxstptffbcrkxvvjhorawfwaejxlgafilmzrywpfxjgaltdhjvjgtyguretajegpyirpxfpagodmzrhstrxjrpirlbfgkhhce\"\n + \"wgpsrvtuvlvepmwkpaeqlstaqolmsvjwnegmzafoslaaohalvwfkttfxdrphepqobqzdqnytagtrhspnmprtfnhmsrmznplrcijrosnrlwgds\"\n + \"bylapqgemyxeaeucgulwbajrkvowsrhxvngtahmaphhcyjrmielvqbbqinawepsxrewgpsrqtfqpveltkfkqiymwtqssqxvchoilmwkpzermw\"\n + \"eokiraluaammkwkownrawpedhcklrthtftfnjmtfbftazsclmtcssrlluwhxahjeagpmgvfpceggluadlybfgaltznlgdwsglfbpqepmsvjha\"\n + \"lwsnnsajlgiafyahezkbilxfthwsflgkiwgfmtrawtfxjbbhhcfsyocirbkhjziixdlpcbcthywwnrxpgvcropzvyvapxdrogcmfebjhhsllu\"\n + \"aqrwilnjolwllzwmncxvgkhrwlwiafajvgzxwnymabjgodfsclwneltrpkecguvlvepmwkponbidnebtcqlyahtckk\";\n\n String[] expected = new String[6];\n expected[0] = \"wlfaafrdarvgypipgaputcjflmftgepfmrrhpvwllnfofdqqtmhnjlyeewvxhceqpgftysopelkrhhjtmlapcagllpasazflfthohdtrrvobliwnhazafeevpnlk\";\n expected[1] = \"nzpbwemllljggylhdaatprhwgzxdttypzxlhslksmeohkronrpmprwlmubovmylispqkmqizouwactmatlhmedagfmlafktgmfhcjlhxoagjullcrfxbslceoeyk\";\n expected[2] = \"yewjewyytzegvkyespyqtkoaarjhyaiarjbcrvptsgsatpbyhrslogaycawnajvnxspfwxlekakwkftzcujgglldbswjybhktxcizpypppchanlxwawjctgpnba\";\n expected[3] = \"lqtqaglbgahdnlkppshffxrefygjgjrghrfeveaavmllthqtstrrsdpxgjsgprqarrvktvmriaopltfsswevgytwpvslaiwirjfricwgzxmhqjzvljnglrumbth\";\n expected[4] = \"ansiopuflahsjvdbjxoxfvajiwavuepospgwtpeqjzavfezapfmcnsqeurrthmbweqeqqcwmrmwerfbcshaflbzsqjnghlswabsbibwvvdfsrowgwvyowpvwict\";\n expected[5] = \"ztmncsagjxyrmyrftrlsbvwxlpljrgxdtikgumqowaawxpdgnnzirbgalkhahibewtlishkwamndtnflrxgpufngehniexfgwbykxcncyrelwlmkigmdnklkdqc\";\n int keyLen = 6;\n String[] owns = this.ic.subSequences(text, keyLen);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }",
"static long repeatedString(String s, long n) {\n char[] arr=s.toCharArray();\n int i,count=0,cnt=0;\n for(i=0;i<arr.length;i++){\n if(arr[i]=='a'){\n count++;\n }\n }\n long len=(n/arr.length)*count;\n long extra=n%arr.length;\n if(extra==0){\n return len;\n }else{\n for(i=0;i<extra;i++){\n if(arr[i]=='a'){\n cnt++;\n }\n }\n return len+cnt;\n }\n\n\n }",
"public static void main(String[] args) {\n\t\tint n=3;\n\t\tString s=\"1\";\n\t\tint count =1;\n\t\tint k=1;\n\t\twhile(k<n){\n\t\t\tStringBuilder t=new StringBuilder();\n\t\t\t//t.append(s.charAt(0));\n\t\t\tfor(int i=1;i<=s.length();i++){\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(i==s.length() || s.charAt(i-1)!=s.charAt(i)){\n\t\t\t\t\tt.append(count); t.append(s.charAt(i-1));\n\t\t\t\t\tcount=1;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i-1)==s.charAt(i)){count=count+1;}\n\t\t\t }\t\n\t\t\t\ts=t.toString();\n\t\t\t\tk=k+1;\n\t\t\t\tSystem.out.println(\"k:\"+k);\n\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(s);\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"static int alternate(String s) {\n HashMap<Character,Integer>mapCharacter = new HashMap<>();\n LinkedList<String>twoChar=new LinkedList<>();\n LinkedList<Character>arr=new LinkedList<>();\n Stack<String>stack=new Stack<>();\n int largest=0;\n int counter=0;\n if (s.length()==1){\n return 0;\n }\n\n for (int i =0; i<s.length();i++){\n if (mapCharacter.get(s.charAt(i))==null)\n {\n mapCharacter.put(s.charAt(i),1);\n }\n }\n\n Iterator iterator=mapCharacter.entrySet().iterator();\n while (iterator.hasNext()){\n counter++;\n Map.Entry entry=(Map.Entry)iterator.next();\n arr.addFirst((Character) entry.getKey());\n }\n\n for (int i=0;i<arr.size();i++){\n for (int j=i;j<arr.size();j++){\n StringBuilder sb =new StringBuilder();\n for (int k=0;k<s.length();k++){\n if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){\n sb.append(s.charAt(k));\n }\n }\n twoChar.addFirst(sb.toString());\n }\n }\n\n\n for (int b=0;b<twoChar.size();b++){\n String elementIn=twoChar.get(b);\n stack.push(elementIn);\n\n for (int i=0;i<elementIn.length()-1;i++){\n\n if (elementIn.charAt(i)==elementIn.charAt(i+1)){\n stack.pop();\n break;\n }\n }\n }\n\n int stackSize=stack.size();\n\n for (int j=0;j<stackSize;j++){\n String s1=stack.pop();\n int length=s1.length();\n if (length>largest){\n largest=length;\n\n }\n }\n return largest;\n\n\n\n\n }",
"static long repeatedString(String s, long n) {\n long l=s.length();\n long k=n/l;\n long r=n%l;\n long count=0;\n long count1=0;\n char ch[]=s.toCharArray();\n for(int t=0;t<ch.length;t++){\n if(ch[t]=='a')\n count1++;\n }\n for(int t=0;t<r;t++){\n if(ch[t]=='a')\n count++;\n }\n return k*count1+count;\n\n }",
"static int alternate(String s) {\n\n \n char[] charArr = s.toCharArray();\n\n int[] arrCount=new int[((byte)'z')+1];\n\n for(char ch:s.toCharArray()){ \n arrCount[(byte)ch]+=1;\n }\n \n int maxLen=0;\n for(int i1=0;i1<charArr.length;++i1)\n {\n char ch1= charArr[i1];\n for(int i2=i1+1;i2<charArr.length;++i2)\n {\n char ch2 = charArr[i2];\n if(ch1 == ch2)\n break;\n\n //validate possible result\n boolean ok=true;\n {\n char prev = ' ';\n for(char x:charArr){\n if(x == ch1 || x == ch2){\n if(prev == x){\n ok=false;\n break;\n }\n prev = x;\n }\n }\n\n }\n if(ok)\n maxLen = Math.max(maxLen,arrCount[(byte)ch1]+arrCount[(byte)ch2]);\n }\n }\n\n return maxLen;\n\n }",
"static long repeatedString(String s, long n) {\n\n char[] str = s.toCharArray();\n\n String temp = \"\";\n\n int i=0;\n long count=0;\n\n while(i<str.length){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n long occurance = n/str.length;\n long remainder = n%str.length;\n count = count*occurance;\n\n i=0;\n while(i<remainder){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n return count;\n\n }",
"static long repeatedString(String s, long n) {\n \t\n \tchar first;\n \tfirst = s.charAt(0);\n \t\n \tint count = 0;\n \tlong[] fill = new long[n];\n \t\n \tfor(int i=1; i<n; i++) {\n \t\tif(first == s.charAt(i)) count++;\n \t}\n \t\n \tlong result = ((n / s.length()) * count) + (n % s.length());\n \treturn result;\n\n }",
"private int countLength ( StringBuffer sequence )\n{\n int bases = 0;\n\n // Count up the non-gap base characters.\n for ( int i = 0; i < sequence.length (); i++ )\n\n if ( sequence.charAt ( i ) != '*' ) bases++;\n\n return bases;\n}",
"static\nint\ncountPairs(String str) \n\n{ \n\nint\nresult = \n0\n; \n\nint\nn = str.length(); \n\n\nfor\n(\nint\ni = \n0\n; i < n; i++) \n\n\n// This loop runs at most 26 times \n\nfor\n(\nint\nj = \n1\n; (i + j) < n && j <= MAX_CHAR; j++) \n\nif\n((Math.abs(str.charAt(i + j) - str.charAt(i)) == j)) \n\nresult++; \n\n\nreturn\nresult; \n\n}",
"@Test\n\tpublic void eg1() {\n\t\tString s=\"babad\";\n\t\tSystem.out.println(longestPalindromicSubString(s));\n\t\t\n\t}",
"static long repeatedString(String s, long n) {\n long a_count = 0;\n long total_a_count = 0;\n long modulo_s = 0;\n\n if(n>s.length()){\n for (int i=0; i<s.length(); i++)\n if(s.charAt(i)=='a') a_count++;\n\n total_a_count = a_count*(n/s.length());\n modulo_s = n%s.length();\n\n for (int i=0; i<modulo_s; i++)\n if(s.charAt(i)=='a') total_a_count++;\n\n return total_a_count;\n }\n\n else {\n for (int i=0; i<n; i++)\n if(s.charAt(i)=='a') a_count++;\n return a_count;\n }\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n try{\n \tint n=sc.nextInt();\t\n }\n catch(Exception e){\n break;\n }\n String p=sc.next();\n String t1=sc.next();\n char text[]=t1.toCharArray();\n char pat[]=p.toCharArray();\n if(p.length()>t1.length()){\n System.out.println();\n }\n else {\n int f[]=new int[pat.length];\n f[0]=0;\n int j=0;\n for(int i=1;i<pat.length;){\n if(pat[i]==pat[j]){\n f[i]=j+1;\n i++;\n j++;\n }\n else {\n if(j>0){\n j=f[j-1];\n }\n else {\n f[i]=0;\n i++;\n }\n }\n }\n int i=0;\n j=0;\n boolean b=false;\n while(i<text.length&&j<pat.length){\n if(pat[j]==text[i]){ \n i++;\n j++;\n if(j==pat.length){\n System.out.println(i-pat.length);\n b=true;\n j=f[j-1];\n }\n }\n else if(j>0){ \n j=f[j-1];\n }\n else {\n i++;\n }\n }\n if(!b) {\n System.out.println();\n }\n System.out.println();\n \n }\n }\n }",
"public String countAndSay(int n) {\n if(n == 1){\n return \"1\";\n }else{\n StringBuilder sb = new StringBuilder();\n int k = 0;\n String s = countAndSay(n-1);\n int l = s.length();\n for(int i = 0; i < l; i++){\n if(i == 0){\n k ++;\n }else{\n if(s.charAt(i) == s.charAt(i-1)){\n k ++;\n }else{\n sb.append(k);\n sb.append(s.charAt(i-1));\n k = 1;\n }\n }\n }\n sb.append(k);\n sb.append(s.charAt(l-1));\n return sb.toString();\n }\n }",
"public int findSubstringInWraproundString1(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n int pLength = p.length();\n // keep track of the number of consecutive letters for each substrings which starts from a...z\n int[] consecutiveNumberFrom = new int[26]; \n consecutiveNumberFrom[p.charAt(0) - 'a'] = 1;\n // keep track of the number of legacy consecutive letters\n int[] consecutiveCount = new int[pLength];\n consecutiveCount[0] = 1;\n int result = 1;\n for(int i = 1; i < pLength; i++) {\n consecutiveCount[i] = isConsecutive(p.charAt(i - 1), p.charAt(i))\n ? consecutiveCount[i - 1] + 1\n : 1;\n for(int j = i - consecutiveCount[i] + 1; j <= i; j++) {\n if(consecutiveNumberFrom[p.charAt(j) - 'a'] < i - j + 1) {\n result++;\n consecutiveNumberFrom[p.charAt(j) - 'a']++;\n } else {\n break;\n }\n }\n }\n return result;\n }",
"public static void main(String [] args) {\n\t\tString str = \"ccacacabccacabaaaabbcbccbabcbbcaccabaababcbcacabcabacbbbccccabcbcabbaaaaabacbcbbbcababaabcbbaa\"\n\t\t\t\t+ \"ababababbabcaabcaacacbbaccbbabbcbbcbacbacabaaaaccacbaabccabbacabaabaaaabbccbaaaab\"\n\t\t\t\t+ \"acabcacbbabbacbcbccbbbaaabaaacaabacccaacbcccaacbbcaabcbbccbccacbbcbcaaabbaababacccbaca\"\n\t\t\t\t+ \"cbcbcbbccaacbbacbcbaaaacaccbcaaacbbcbbabaaacbaccaccbbabbcccbcbcbcbcabbccbacccbacabcaacbcac\"\n\t\t\t\t+ \"cabbacbbccccaabbacccaacbbbacbccbcaaaaaabaacaaabccbbcccaacbacbccaaacaacaaaacbbaaccacbcbaaaccaab\"\n\t\t\t\t+ \"cbccacaaccccacaacbcacccbcababcabacaabbcacccbacbbaaaccabbabaaccabbcbbcaabbcabaacabacbcabbaaabccab\"\n\t\t\t\t+ \"cacbcbabcbccbabcabbbcbacaaacaabb\"\n\t\t\t\t+ \"babbaacbbacaccccabbabcbcabababbcbaaacbaacbacacbabbcacccbccbbbcbcabcabbbcaabbaccccabaa\"\n\t\t\t\t+ \"bbcbcccabaacccccaaacbbbcbcacacbabaccccbcbabacaaaabcccaaccacbcbbcccaacccbbcaaaccccaabacabc\"\n\t\t\t\t+ \"abbccaababbcabccbcaccccbaaabbbcbabaccacaabcabcbacaccbaccbbaabccbbbccaccabccbabbbccbaabcaab\"\n\t\t\t\t+ \"cabcbbabccbaaccabaacbbaaaabcbcabaacacbcaabbaaabaaccacbaacababcbacbaacacccacaacbacbbaacbcbbbabc\"\n\t\t\t\t+ \"cbababcbcccbccbcacccbababbcacaaaaacbabcabcacaccabaabcaaaacacbccccaaccbcbccaccacbcaaaba\";\n\t\tSystem.out.println(substrCount2(1017, str));\n\t}",
"static int theLoveLetterMystery(String s){\n \n int i=0, j = s.length()-1;\n int count =0;\n if(s.length() == 0 || s == null)\n return count;\n while(i<j)\n {\n if(s.charAt(i) == s.charAt(j))\n {\n i++;\n j--;\n continue;\n }\n \n else\n count = count + Math.abs((int)(s.charAt(i) - s.charAt(j)));\n \n i++;\n j--;\n }\n return count;\n }",
"private static void longestRepeatingSubsequence(String string) {\n\t\t\n\t}",
"static long substrCount(int n, String s) {\n ArrayList<Point> points = new ArrayList<>();\n\n char current = s.charAt(0);\n int count = 1;\n\n for (int i = 1; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (current == ch) {\n count++;\n } else {\n points.add(new Point(current, count));\n current = ch;\n count = 1;\n }\n }\n points.add(new Point(current, count));\n\n count = 0;\n if (points.size() > 2) {\n\n count += addup(points.get(0).count);\n\n for (int i = 1; i < points.size() - 1; i++) {\n Point prev = points.get(i - 1);\n Point curr = points.get(i);\n Point next = points.get(i + 1);\n\n\n count += addup(curr.count);\n\n if (prev.ch == next.ch && curr.count == 1) {\n int min = Math.min(prev.count, next.count);\n count += min;\n }\n }\n\n count += addup(points.get(points.size() - 1).count);\n\n } else if (points.size() == 1) {\n Point curr = points.get(0);\n count += addup(curr.count);\n } else if (points.size() == 2) {\n Point prev = points.get(0);\n count += addup(prev.count);\n Point next = points.get(1);\n count += addup(next.count);\n }\n\n\n System.out.println(points);\n\n return count;\n\n }",
"static long substrCount(int n, String s) {\nchar arr[]=s.toCharArray();\nint round=0;\nlong count=0;\nwhile(round<=arr.length/2)\n{\nfor(int i=0;i<arr.length;i++)\n{\n\t\n\t\tif(round==0)\n\t\t{\n\t\t//System.out.println(arr[round+i]);\n\t\tcount++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(i-round>=0&&i+round<arr.length)\n\t\t\t{\n\t\t\t\tboolean flag=true;\n\t\t\t\tchar prev1=arr[i-round];\n\t\t\t\tchar prev2=arr[i+round];\n\t\t\t\t\n\t\t\t\tfor(int j=1;j<=round;j++)\n\t\t\t\t{\n\t\t\t\t\tif(prev1!=arr[i+j]||prev1!=arr[i-j])\n\t\t\t\t\t{\n\t\t\t\t\t\tflag=false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\tif(arr[i+j]!=arr[i-j])\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tflag=false;\n\t\t\t\t\t\tbreak;\n\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\n\t\t\t\t}\n\t\t\t\tif(flag)\n\t\t\t\t{\n\t\t\t\t\t//System.out.print(arr[i-round]);\n\t\t\t\t\t//System.out.print(arr[round+i]);\n\t\t\t\t\t//System.out.println(round);\n\t\t\t\t\t//System.out.println();\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n}\nround++;\n}\nreturn count;\n }",
"static long repeatedString(String s, long n) {\n if (s.contains(\"a\")) {\n StringBuilder stringBuilder = new StringBuilder(s);\n String infiniteString = \"\";\n if (stringBuilder.length() < n) {\n //repeat String if length is less than n\n infiniteString = infiniteString(s, n);\n }\n int count = 0;\n char[] stringArray = infiniteString.toCharArray();\n for (int i = 0; i < n; i++) {\n\n char a = 'a';\n if (stringArray[i] == a) {\n count++;\n }\n }\n return count;\n } else {\n return 0;\n }\n }",
"public abstract String getLongestRepeatedSubstring();",
"private int createPosition (String s) {\r\n\t\tint x = 37;\r\n\t\tdouble hashCode=0;\r\n\t\tfor (int i=0; i<s.length(); i++) {\r\n\t\t\thashCode = (double) (hashCode+ (int)(s.charAt(s.length()-(i+1)))*(Math.pow(x,i)));\r\n\t\t}\r\n\t\treturn (int)(hashCode % size);\r\n\t}",
"public abstract void createLongestRepeatedSubstring();",
"@Test\n public void repeatedSubstringPattern() {\n assertTrue(new Solution1().repeatedSubstringPattern(\"abcabcabcabc\"));\n }",
"public String next() {\n // abc len=2 [0,1]--> [0,2]---> [1,2] //\n // abc len=3 [0,1,2]\n // 01,02,03,12,13,23 len=2 c=4\n //\n for (int i = len-1; i >=0; i--) {\n // i = 1; (2)\n // i = 0; (1)\n// if (index[i]< characters.length()-1 - (len-1 - i)) {\n if (index[i]< characters.length() - len + i) {\n index[i]++;\n break;\n }\n }\n StringBuilder sb = new StringBuilder();\n for(int i:index) {\n sb.append(characters.charAt(i));\n }\n return sb.toString();\n }",
"public static void main(String[] args) {\n\n String s = \"bleinlirvdllgpqysgejejaptjrnmuvsulpwwofocahzbdngybbqdfleycicnpbrdkzmzraayiqzwplgnnmirnddadidsyftrezectrelgwzegsrvzyjramgqvwwotacyurxrpfyrvkrqpcjrezpbizwkzwtucohtcwqktiyrlvxtwuilwvjdhoqaiiqjpkosjkolpgojlfabpperqqtmnjowynwmxavicjdknpgnmpktovtssynavflaxqbxygryjbfymjfcemqgnhrhyunopicpsskhzkvdnedrweuneshcuoegxzlmcuvojbnqcyapqvnwpfufqpekjvxxujogguhhtvwlrrvctqdllpdegtwwmfnceaiqfpfoqggkqpbmdzhdpsrklllsssazidvcpsipxhucgcqxpekijfijqblnvbrubgqohwpqrngilierbzjrjozslmibpocyzeqrtfenkcklvtajhrzumyjgdkzdaztytogvrncqgcutwdpvnuesbadhfgijjcjygonhvkhlypwnexumozowkfnykdovqjrwnwsudufhvcikaedsfiyzoqyvodmwixpmdpxtveinykvdrjdbmandgzcouzdlpiynwlhcwqafaqpqjdkbouelfbmztbqshzlgedbduhgcerrbqnqzfvgpfheqrnwlsduxklrfjjnkmvetkuzagkdmkaugptrdenqfiavgqzfubybmjcgoqlmvgcdmddwigtqmvjpkwlkuyxdycuriyrvlbghvyagxulvqmrkxlqfpxblnwdctznlrbbactsrbubcaayntkjmhzjzuyruejekcorvtbglaccnzxhutfqzjrfadgpgubqynmbxziudhmzcpmpx\";\n\n System.out.println(twoChars(s));\n }",
"public static void main(String[] args)\n {\n Pattern pattern = Pattern.compile(\"aba\");\n Matcher m = pattern.matcher(\"abababa\");\n //boolean find()//return true if found the pattern and go to the next sub sequence\n while(m.find()){\n System.out.print(m.start());//0 and 4 but not 2!\n System.out.print(m.end());//3 and 7 (return the position of the last char matched + 1)\n System.out.print(m.group());// = s.substring(m.start(), m.end());\n System.out.print(\"\\n\");\n }\n //what's append?\n //first occurence starts at 0, ends at 2 and aba\n //search for the second occurence from 3\n //second occurence starts at 4, ends at 6 and aba\n //search for the thrid occurence from 7\n \n System.out.print(\"========\\n\");\n \n //0-length matches\n Pattern pattern2 = Pattern.compile(\"a?\");\n Matcher m2 = pattern2.matcher(\"aba\");\n while(m2.find()){\n System.out.print(m2.start());//the char a is or not is at position 0,1,2 and 3\n System.out.print(m2.end());//1,1,3,3 ==> ?? @see page 500\n System.out.print(\"\\n\");\n }\n \n /** Expressions **/\n // \\d digit\n // \\s whitespace\n // \\w letters, digits or _\n // [abc] searching for a, b or c\n // [a-f] searching for a letter to f lettre included\n // [A-F] searching for A letter to F lettre included\n // [a-fA-F] search for a letter to f or A letter to F lettre included\n // 0 [x-X] search for 0 followed by x or X\n /** quantifiers **/\n //? Zero or one\n //* Zero or more\n //+ One or more\n// 0[x-X]+ => 0 followed by one x or one X\n// (0[x-X])+ => 0 followed by x or X one time\n \n //. = any char (whitespace is a char)\n //Escaping special char !!! . = any char, \\. = compilator error, \\\\. = .\n }",
"static int alternatingCharacters(String s) {\n \tint res = 0;\n \tfor(int i = 0; i < s.length();) {\n \t\tint j = i;\n \t\twhile(j < s.length() - 1 && s.charAt(j) == s.charAt(j+1)) {\n \t\t\tres++;\n \t\t\tj++;\n \t\t}\n \t\ti = j + 1;\n \t}\n \treturn res;\n }",
"public int distinctSubseqII(String S) {\n int[] end = new int[26]; // 本字符添加之前的长度\n int res = 0;\n int added; // 当前额外增加的数量\n int mod = (int) 1e9 + 7;\n\n System.out.println('\\n' + S);\n for (char c : S.toCharArray()) {\n // 额外增加的数量等于前面的数量加上1(当前字符串)减去最后一次相同字符添加之前的数量\n added = (res + 1 - end[c - 'a']) % mod;\n\n end[c - 'a'] = (res + 1) % mod; // 影响的为前一个字符的数量加上单字符的数量\n\n res = (res + added) % mod;\n System.out.printf(\"%2c, %2d, %2d\\n\", c, res, end[c - 'a']);\n }\n return (res + mod) % mod;\n }",
"public static void main(String[] args) {\n\t\tString s = \"Mahesh\";\r\n\t\tchar[] arr = s.toCharArray();\r\n\t\tint count = 0;\r\n\t\tfor(char s1: arr) {\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\t\r\n\t\tint index = 0;\r\n\t\ttry {\r\n\t\t\twhile(true) {\r\n\t\t\t\ts.charAt(index);\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(index);\r\n\t}",
"static int theLoveLetterMystery(String s){\n // Complete this function\n int i= 0;\n int j = s.length()-1;\n int operations = 0;\n while(j>i){\n int char_i = s.charAt(i);\n int char_j = s.charAt(j);\n operations = operations + Math.abs(char_i - char_j);\n i++;\n j--;\n }\n return operations;\n }",
"public String generateKey(String str, String key)\n{\n int x = str.length();\n \n for (int i = 0; ; i++)\n {\n if (x == i)\n i = 0;\n if (key.length() == str.length())\n break;\n key+=(key.charAt(i));\n }\n return key;\n}",
"public String solution(String s) {\n\t\tStream<Character> tmp = s.chars().mapToObj(value -> (char)value);\n\t\treturn tmp.collect(Collectors.groupingBy(Function.identity(), Collectors.counting())).entrySet().stream().filter(characterLongEntry -> characterLongEntry.getValue() == 2).findFirst().get().getKey().toString();\n\t}",
"static int noOfAppends(String s) \n{ \n\tif (isPalindrome(s.toCharArray())) \n\t\treturn 0; \n\n\t// Removing first character of string by \n\t// incrementing base address pointer. \n\ts=s.substring(1); \n\n\treturn 1 + noOfAppends(s); \n}",
"public static int longestRepeatingSubsequenceNaive(String sequence) {\r\n\t\tint i1 = 0;\r\n\t\tint i2 = 0;\r\n\t\treturn longestRepeatingSubsequenceNaiveHelper(sequence, i1, i2);\r\n\t}",
"public static void main(String[] args) {\n // TODO Auto-generated method stub\n String test = \"abcabcbb\";\n int result = LongestSubStringWithoutRepeatingCharacters.solution(test);\n System.out.println(result);\n }",
"private static char firstNonRepeatingCharacterV1(String str) {\n if(str == null) return '_';\n Map<Character, Integer> charCountMap = new HashMap<>();\n Set<Character> linkedHashSet = new LinkedHashSet<>();\n\n for(int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n if(charCountMap.containsKey(ch)) {\n charCountMap.put(ch, charCountMap.get(ch) + 1); // do not need this step\n } else {\n charCountMap.put(ch, 1);\n }\n }\n for(int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n if(charCountMap.get(ch) == 1) {\n return ch;\n }\n }\n return '_';\n }",
"private static int solution4(String s) {\r\n int n = s.length(), ans = 0;\r\n Map<Character, Integer> map = new HashMap<>();\r\n for (int j = 0, i = 0; j < n; j++) {\r\n if (map.containsKey(s.charAt(j)))\r\n i = Math.max(map.get(s.charAt(j)), i);\r\n ans = Math.max(ans, j - i + 1);\r\n map.put(s.charAt(j), j + 1);\r\n }\r\n return ans;\r\n }",
"public static void main(String[] args) {\nsub_seq(\"abc\", \"\");\nSystem.out.println();\nSystem.out.println(sub_seq_count(\"ab\", \"\"));\n\t}",
"static int minSteps(int n, String B){\n // Complete this function\n int count=0;\n for(int i=0;i<n-2;i++){\n int j=i+1;\n int k=j+1;\n if(B.charAt(i) == '0' && B.charAt(j) == '1' && B.charAt(k) == '0'){\n count++;\n i=i+2;\n }\n }\n return count;\n }",
"private static int m615a(String str, int i) {\n int length = str.length() - 1;\n int i2 = 1;\n int i3 = 0;\n while (length >= 0) {\n int indexOf = (f337z[0].indexOf(str.charAt(length)) * i2) + i3;\n i3 = i2 + 1;\n if (i3 > i) {\n i3 = 1;\n }\n length--;\n i2 = i3;\n i3 = indexOf;\n }\n return i3 % 47;\n }",
"public static void main (String[] args) {\n String s1 = \"hac\";\n String s2 = \"cathartic\";\n\n System.out.println(subsequence(s1,s2, 0, 0));\n }",
"public int findSubstringInWraproundString(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n // count[i] is the maximum unique substring that ends with a...z\n int[] count = new int[26];\n // keep track of the number of consecutive letters ended with current letter\n int consecutiveCount = 1;\n for(int i = 0; i < p.length(); i++) {\n if(i > 0 && isConsecutive(p.charAt(i - 1), p.charAt(i))) {\n consecutiveCount++;\n } else {\n consecutiveCount = 1;\n }\n int index = p.charAt(i) - 'a';\n count[index] = Math.max(count[index], consecutiveCount);\n }\n int result = 0;\n for(int singleCount : count) {\n result += singleCount;\n }\n return result;\n }",
"public static String findRepeatingSequence(String input){\n\t char [] inputArray = input.toCharArray();\n\t StringBuffer sequence = new StringBuffer();\n\t\tfor (int i = 0; i < inputArray.length - 1; i++) {\n\t\t\tif (Character.toString(inputArray[i]).equals(Character.toString(inputArray[i + 1]))) {\n\t\t\t\t\n\t\t\t\tsequence.append(Character.toString(inputArray[i]));\n\t\t\t\t\n\t\t\t\t\twhile (Character.toString(inputArray[i]).equals(Character.toString(inputArray[i + 1]))) {\n\t\t\t\t\t\tsequence.append(Character.toString(inputArray[i]));\n\t\t\t\t\t\tif (i + 1 < inputArray.length - 1) {\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t \n\n\t\t\t}else{\n\t\t\t\tif (sequence.length()>0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\n\t }\n\t\n\treturn sequence.toString();\t\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n for(int ii=0;ii<t;ii++){\n String str = sc.next();\n int sa[] = getSuffixArray(str);\n int lcp[] = getLCP(sa,str);\n int n = str.length();\n long range[] = new long[n];\n for(int i=0;i<n;i++){\n long len = (long)(n-sa[i]);\n range[i] = (long)(len*(len+1)/2)-(long)(lcp[i]*(lcp[i]+1)/2);\n }\n long k = sc.nextLong();\n for(int i=0;i<n;i++){\n int s = sa[i];\n int lc = lcp[i];\n if(range[i]>=k){\n int len = 1+lc;\n while(k>len){\n k -= len;\n len++;\n }\n System.out.println(str.charAt(s+(int)k-1));\n break;\n }\n else\n k -= range[i];\n }\n }\n }",
"public int getLength(){\n return sequence.length(); \n\t}",
"private static int findNextStarter(char[] paramArrayOfChar, int paramInt1, int paramInt2, int paramInt3, int paramInt4, char paramChar)\n/* */ {\n/* 1576 */ int j = 0xFF00 | paramInt3;\n/* */ \n/* 1578 */ DecomposeArgs localDecomposeArgs = new DecomposeArgs(null);\n/* */ \n/* */ \n/* 1581 */ while (paramInt1 != paramInt2)\n/* */ {\n/* */ \n/* 1584 */ char c1 = paramArrayOfChar[paramInt1];\n/* 1585 */ if (c1 < paramChar) {\n/* */ break;\n/* */ }\n/* */ \n/* 1589 */ long l = getNorm32(c1);\n/* 1590 */ if ((l & j) == 0L) {\n/* */ break;\n/* */ }\n/* */ char c2;\n/* 1594 */ if (isNorm32LeadSurrogate(l))\n/* */ {\n/* 1596 */ if ((paramInt1 + 1 == paramInt2) || \n/* 1597 */ (!UTF16.isTrailSurrogate(c2 = paramArrayOfChar[(paramInt1 + 1)]))) {\n/* */ break;\n/* */ }\n/* */ \n/* 1601 */ l = getNorm32FromSurrogatePair(l, c2);\n/* */ \n/* 1603 */ if ((l & j) == 0L) {\n/* */ break;\n/* */ }\n/* */ } else {\n/* 1607 */ c2 = '\\000';\n/* */ }\n/* */ \n/* */ \n/* 1611 */ if ((l & paramInt4) != 0L)\n/* */ {\n/* */ \n/* 1614 */ int i = decompose(l, paramInt4, localDecomposeArgs);\n/* */ \n/* */ \n/* */ \n/* 1618 */ if ((localDecomposeArgs.cc == 0) && ((getNorm32(extraData, i, paramInt3) & paramInt3) == 0L)) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ \n/* 1623 */ paramInt1 += (c2 == 0 ? 1 : 2);\n/* */ }\n/* */ \n/* 1626 */ return paramInt1;\n/* */ }",
"private static int getLongestSemiAlternatingSubString(String s) {\n int max = 0, count = 1, len = s.length(), p1 = 0;\n for (int p2 = 1; p2 < len; p2++) {\n if (s.charAt(p2 - 1) == s.charAt(p2)) {\n count++;\n } else {\n count = 1;\n }\n if (count < 3) {\n max = Math.max(max, p2 - p1 + 1);\n } else {\n p1 = p2 - 1;\n count = 2;\n }\n }\n return max;\n }",
"@Test\n public void subSequencesTest2() {\n String text = \"hashco\"\n + \"llisio\"\n + \"nsarep\"\n + \"ractic\"\n + \"allyun\"\n + \"avoida\"\n + \"blewhe\"\n + \"nhashi\"\n + \"ngaran\"\n + \"domsub\"\n + \"setofa\"\n + \"larges\"\n + \"etofpo\"\n + \"ssible\"\n + \"keys\";\n\n String[] expected = new String[6];\n expected[0] = \"hlnraabnndslesk\";\n expected[1] = \"alsalvlhgoeatse\";\n expected[2] = \"siacloeaamtroiy\";\n expected[3] = \"hsrtyiwsrsogfbs\";\n expected[4] = \"cieiudhhaufepl\";\n expected[5] = \"oopcnaeinbasoe\";\n String[] owns = this.ic.subSequences(text, 6);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }",
"public static void main(String[] args) {\n\t\tString str=\"aabcccccaaaa\";\n\t\tString str2=\"\";\n\t\tint freq=1;\n\t\tfor(int i=0;i<str.length()-1;i++){\n\t\t\tif(str.charAt(i)==str.charAt(i+1)){\n\t\t\t\tfreq++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstr2=str2+str.charAt(i)+freq;\n\t\t\t\tfreq=1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(str2+str.charAt(str.length()-1)+freq);\n\t}",
"public static String solution(String S, int K) {\n StringBuilder string = new StringBuilder();\n for (int i = 0; i < S.length(); i++) {\n char character = S.charAt(i);\n if (character == '-') continue;\n string.append(character);\n }\n // Builds a new string with hyphens between characters,\n // separating string into substrings of size K.\n StringBuilder output = new StringBuilder(string.length());\n for (int i = 0; i < string.length(); i++) {\n char character = string.charAt(i);\n if (i != 0 && i % K == 0) {\n output.append('-');\n output.append(character);\n } else {\n output.append(character);\n }\n }\n\n char character = output.charAt(output.length() - 1);\n int count = 0;\n while (character != '-') {\n count++;\n character = output.charAt(output.length() - (count + 1));\n }\n\n String result = output.toString();\n while (count < 3) {\n result = moveHypensLeft(result);\n count++;\n }\n\n return result;\n }",
"public List<String> findRepeatedDnaSequences(String s) {\n if(s.length() < 10) return new ArrayList<String>();\n \n int[] map = new int[256];\n map['A'] = 0;\n map['T'] = 1;\n map['C'] = 2;\n map['G'] = 3;\n \n List<String> result = new ArrayList<String>();\n \n //this set contains string that occurs before\n Set<Integer> visited = new HashSet<Integer>();\n //this set contains string that we have inserted into result\n Set<Integer> inResult = new HashSet<Integer>();\n \n int key = 0;\n \n //Since we only partially modify the key, we need to firstly initialize it\n for(int i = 0; i < 9; i++){\n key <<= 2;\n key |= map[s.charAt(i)];\n }\n \n for(int i = 9; i < s.length(); i++){\n key <<= 2;\n key |= map[s.charAt(i)];\n //our valid key has 20 digits, we use 0xFFFFF to remove digits that beyong this range\n key &= 0xFFFFF;\n \n String temp = s.substring(i - 9, i+1);\n \n //if this is not the first time we visit this substring\n if(!visited.add(key)){\n //if this is the first time we add this substring into result\n if(inResult.add(key)){\n result.add(temp);\n }\n }\n }\n \n return result;\n }",
"public static void main(String[] args) {\n\t\tString sentence = \"He said hi, then she replied hi. hi guys!\";\n\t\t//print letter in pairs\n\t\tSystem.out.println(sentence.substring(7,10));//hi\n System.out.println(sentence.substring(28,31));//hi\n System.out.println(sentence.substring(32,36));//hi\n \n System.out.println(sentence.substring(0,3));//he\n System.out.println(sentence.substring(1,2));//e\n System.out.println(sentence.substring(3,4));//s\n System.out.println(sentence.substring(4,6));//ai\n //two characters at the time\n //check if temp equals \"hi\", if true,add 1 to count\n int count=0;\n for(int i=0;i<sentence.length()-1;i++) {\n \tString temp=sentence.substring(i,i+2);//2 letters\n \t//System.out.println(temp);\n \tif(temp.equals(\"hi\")) {//count how many \"hi\"\n \t\tcount++;\n \t\t\n \t}\n \t\n }\n //count:3\n System.out.println(\"Count: \"+count);//Count: 3\n\t}",
"public static void main(String args[]) {\n\t\tString str = \"abcd\";\n\t\tint leftmostRepeat = leftmostRepeat(str);\n\t\tSystem.out.println(leftmostRepeat);\n\t\t\n\t}",
"private static int solution3(String s) {\r\n int n = s.length();\r\n Set<Character> set = new HashSet<>();\r\n int ans = 0, i = 0, j = 0;\r\n while (i < n && j < n) {\r\n if (!set.contains(s.charAt(j))) {\r\n set.add(s.charAt(j++));\r\n ans = Math.max(ans, j - i);\r\n } else {\r\n set.remove(s.charAt(i++));\r\n }\r\n }\r\n return ans;\r\n }",
"public String countAndSay(int n) {\n if (n<=0)\n return \"\";\n \n int count = 0;\n StringBuilder str = new StringBuilder();\n \n // Append 1 to the string as the sequence start with 1.\n str.append(\"1\");\n \n // In a loop, generate the next string in the sequence 'n'-1 times. \n // Since \"1\" is already the first element in the sequence.\n for(int i=1; i<n; i++){\n \n // Creating the next sequence, looking at the previous one\n int j=0, len=str.length();\n StringBuilder result = new StringBuilder();\n \n // Loop through each element in the current i'th sequence string, and generate the next one.\n // If the j'th and the (j+1)'th element are the same, increase the count. Else, append the \n // string with the count and the j'th element and continue with the next element in the string.\n while(j<len){\n count = 1;\n while(j<len-1 && str.charAt(j) == str.charAt(j+1)){\n count++;\n j++;\n }\n result.append(count);\n result.append(str.charAt(j));\n j++;\n }\n\n // Update the string 'str' to be the result string, as that will be used to create the \n // next string in the sequence.\n str = result;\n }\n \n return str.toString();\n }",
"static String isValid(String s){\n // Complete this function\n int[] charArray = new int[26];\n for(int i=0;i<26;i++){\n charArray[i] = 0;\n }\n for(int i=0;i<s.length();i++){\n int index = s.charAt(i) - 'a';\n charArray[index]++;\n }\n boolean oneDelete = false;\n //int prevValue = charArray[0];\n //System.out.println(\"a\" + \": \" + charArray[0]);\n /*for(int i=1;i<26;i++){\n System.out.println((char) (i+'a') + \": \" + charArray[i] + \" \" + \"prevValue\" + \": \" + prevValue);\n \n if(charArray[i] !=0 && prevValue!= 0 && charArray[i] != prevValue){\n if(oneDelete){\n return \"NO\";\n }else{\n if(Math.abs(charArray[i] - prevValue) != 1){\n return \"NO\";\n }else{\n oneDelete = true;\n }\n }\n }\n if(charArray[i] !=0){\n prevValue = charArray[i]; \n }\n }*/\n HashMap<Integer,Integer> frequencyCount = new HashMap<>();\n for(int i=0;i<26;i++){\n if(charArray[i] !=0){\n if(!frequencyCount.containsKey(charArray[i])){\n frequencyCount.put(charArray[i],1);\n }else{\n int count =frequencyCount.get(charArray[i]);\n frequencyCount.put(charArray[i],count+1);\n }\n }\n }\n \n if(frequencyCount.size() > 2){\n return \"NO\";\n }else if(frequencyCount.size() == 2){\n if(frequencyCount.containsKey(1) && frequencyCount.get(1) == 1){\n return \"YES\";\n }\n if(isConsecutiveFrequencies(frequencyCount)){\n return \"YES\";\n }else{\n return \"NO\";\n }\n }else{\n return \"YES\"; \n }\n \n \n }",
"public int lengthOfLSS(String s){\n HashMap<Character, Integer> m = new HashMap<>();\n int ans = 0;\n \n for(int i=0, j=0; j<s.length(); j++){\n if(m.containsKey(s.charAt(j))){\n i = Math.max(m.get(s.charAt(j)),i);\n }\n ans = Math.max(j-i+1,ans);\n m.put(s.charAt(j),j+1);\n }\n\n return ans;\n }",
"public static void main(String[] args) {\n\n\t\tint[] a = new int[100];\n\t\tSystem.out.println(a.length);\n\n\t\tString s = \"akhil\";\n\t\tSystem.out.println(s.length());\n\n\t\tSystem.out.println(s.charAt(2));\n\n\t\t// System.out.println(s.charAt(20)); //exception\n\n\t\tSystem.out.println(s.indexOf('a'));\n\t\tSystem.out.println(s.lastIndexOf('l'));\n\n\t\tString rno = \"13C51A0501\";\n\n\t\tSystem.out.println(rno.contains(\"51A\"));\n\t\tSystem.out.println(rno.startsWith(\"13C\"));\n\t\tSystem.out.println(rno.endsWith(\"501\"));\n\n\t\tSystem.out.println(s.toUpperCase());\n\t\tSystem.out.println(s.toLowerCase());\n\n\t\tString s1 = \" Akhil \";\n\t\tSystem.out.println(s1.length());\n\t\tSystem.out.println(s1.trim().length());\n\n\t}",
"private static char firstNonRepeatingCharacterV2(String str) {\n if(str == null) return '_';\n Map<Character, Integer> charCountMap = new HashMap<>();\n Set<Character> linkedHashSet = new LinkedHashSet<>();\n\n for(int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n if(charCountMap.containsKey(ch)) {\n charCountMap.put(ch, charCountMap.get(ch) + 1); // do not need this step\n linkedHashSet.remove(ch);\n } else {\n charCountMap.put(ch, 1);\n linkedHashSet.add(ch);\n }\n }\n //The first character in the linkedHashSet will be the firstNonRepeatingCharacter.\n Iterator<Character> itr = linkedHashSet.iterator();\n if(itr.hasNext()){\n return itr.next();\n } else {\n return '_';\n }\n }",
"public static void main(String [] args){\n System.out.println(lengthOfLongestSubstring(\"1a1b1c1d1\"));\n System.out.println(lengthOfLongestSubstring1(\"1a1b1c1d1\"));\n\n System.out.println(17/10);\n }",
"public static void main(String[] args) {\n\t\tString s = \"aabacbebebe\";\n\n\t\tSystem.out.println(\"Given String : \" + s);\n\n\t\tSystem.out.println(\"Longest Substring Using Set (2-pointer) : \"\n\t\t\t\t+ lengthOfLongestSubstringUsingSet(s));\n\t\tSystem.out.println(\"Longest Substring Using Sliding Window : \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\n\t\tSystem.out.println(\"\\n ===== Longest string with 2 distinct characters ===== \");\n\t\tSystem.out.println(\"Original String : \" + s);\n\t\tSystem.out\n\t\t\t\t.println(\"Length of Longest Substring with at most 2 distinct characters: \"\n\t\t\t\t\t\t+ longestStringWithTwoDistinctChars(s));\n\n\t\tSystem.out.println(\"\\n ===== Longest string with K distinct characters ===== \");\n\n\t\tPair<Integer, Pair<Integer, Integer>> pair = longestStringWithKDistinctChars(s, 3);\n\t\tSystem.out.print(\"Longest Substring length with 3 Distinct Chars : \");\n\t\tSystem.out.print(pair.getKey() + \", \" + pair.getValue().getKey() + \" \"\n\t\t\t\t+ pair.getValue().getValue());\n\n\t\tif (pair.getValue().getKey() != -1)\n\t\t\tSystem.out.println(\", \"\n\t\t\t\t\t+ s.substring(pair.getValue().getKey(), pair.getValue()\n\t\t\t\t\t\t\t.getValue() + 1));\n\t\telse\n\t\t\tSystem.out.println(\", Empty String\");\n\t\t\n\t\tSystem.out.println(\"\\n ===== Longest string with K distinct characters (AS approach) ===== \");\n\n\t\tPair<Integer, Pair<Integer, Integer>> pair1 = longestStringWithKDistinctCharsAS(s, 3);\n\t\tSystem.out.print(\"Longest Substring length with 3 Distinct Chars : \");\n\t\tSystem.out.print(pair1.getKey() + \", \" + pair1.getValue().getKey() + \" \"\n\t\t\t\t+ pair1.getValue().getValue());\n\n\t\tif (pair1.getValue().getKey() != -1)\n\t\t\tSystem.out.println(\", \"\n\t\t\t\t\t+ s.substring(pair1.getValue().getKey(), pair1.getValue()\n\t\t\t\t\t\t\t.getValue() + 1));\n\t\telse\n\t\t\tSystem.out.println(\", Empty String\");\n\n\t\tSystem.out.println(\"\\n ===== Longest string with no repeating characters ===== \");\n\n\t\ts = \"abcabcbb\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\n\t\ts = \"bbbbb\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\n\t\ts = \"pwwkew\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\t}",
"static long substrCount(int n, String s) {\n \tlong output=0;\n \t\n \tboolean[][] matrix = new boolean[n][n];\n \t\n \tfor(int i=0; i<n; i++) {\n \t\tmatrix[i][i] = true;\n \t\toutput++;\n \t}\n \t\n \tfor(int gap=1; gap<n; gap++) {\n \t\tfor(int i=0; i+gap <n; i++) {\n \t\t\tint j = i+gap;\n \t\t\t\n \t\t\tif(gap ==1) {\n \t\t\t\tif(s.charAt(i) == s.charAt(j)) {\n \t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t} else {\n \t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tif(s.charAt(i) == s.charAt(j) && matrix[i+1] [j-1]) {\n \t\t\t\t\t\n \t\t\t\t\tif(j-i >= 4 && s.charAt(i)== s.charAt(i+1)) {\n \t\t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t\t} else if(j-i <4) {\n \t\t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t} else {\n \t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \t\n \treturn output;\n }",
"public boolean gHappy(String str) {\n for(int x=0; x<str.length(); x++)\n {\n if(str.charAt(x)=='g')\n {\n if(str.length()<2)\n return false;\n else if(x==0 && str.charAt(x+1) != 'g')\n return false;\n else if(x>0 && str.charAt(x-1) != 'g' && x+1==str.length())\n return false;\n else if(x>0 && str.charAt(x-1) != 'g' && str.charAt(x+1) != 'g')\n return false;\n }\n }\n\n return true;\n}",
"include<stdio.h>\nint main()\n{\n char str[100];\n scanf(\"%s\", str);\n int i, count=1, length; \n for(length=0; str[length]!='\\0'; length++);\n if(length>20)\n {\n printf(\"Invalid Input\");\n }\n else\n {\n for(i=0; i<length; i++)\n {\n if(str[i] == str[i+1])\n {\n count++;\n }\n else\n {\n printf(\"%c%d\", str[i], count); \n count = 1;\n }\n }\n }\n return 0;\n}",
"public static void main(String[] args) {\n// x = x + 2;\n// System.out.println(name.substring(x,x+2));\n// x = x + 2;\n// System.out.println(name.substring(x,x+2));\n// x = x + 2;\n// System.out.println(name.substring(x,x+2));\n\n String name = \"Gokyuzum\";\n int charCount = name.length();\n int lastCharIndex = charCount-1;\n\n // my condition is x <= charCount - 2 or lastCharIndex-1\n\n for (int x = 0; x <= lastCharIndex-1; x += 2){\n System.out.println(name.substring(x,x+2));\n }\n\n }",
"public static void main(String[] args) {\n\t\tString s = \"AAAAAAAAAAA\";\n\t\tSystem.out.println(s.substring(0, 10));\n\t\tRepeatedDNAsequences hp = new RepeatedDNAsequences();\n\t\tSystem.out.println(hp.findRepeatedDnaSequences(s));\n\t}",
"private void repeatingCharacter(String input) {\n\t\tMap<Character,Integer> map = new HashMap<Character,Integer>();\n\t\t//O[n]\n\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\tmap.put(input.charAt(i),map.getOrDefault(input.charAt(i), 0)+1);\n\t\t}\n\t\t//o[n]\n\t\tint max = Collections.max(map.values());\n\t\tint secondMax = 0;\n\t\tchar output = 0;\n\t\t//o[n]\n\t\tfor(Map.Entry<Character, Integer> a : map.entrySet()) {\n\t\t\tif(a.getValue()<max && a.getValue()>secondMax) {\n\t\t\t\tsecondMax = a.getValue();\n\t\t\t\toutput = a.getKey();\n\t\t\t}\n\t\t}\n\t\tif(!(secondMax == max)) {\n\t\t\tSystem.out.println(output);\n\t\t}else {\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"@Test\n\tpublic void buildDiamond_widestPointCharSetToCharGreaterThanA_returnedValueHasCorrectNumberOfRepetitions() {\n\t\tfor (char widestPointChar = 'B'; widestPointChar <= 'Z'; widestPointChar++) {\n\t\t\t//assume\n\t\t\tint diagonalLength = widestPointChar - Diamond.BASE_CHARACTER + 1;\n\n\t\t\t//act\n\t\t\tString diamondString = Diamond.buildDiamond(widestPointChar);\n\n\t\t\t//assert\n\t\t\tchar[] diagonal = new char[diagonalLength];\n\t\t\tArrays.fill(diagonal, widestPointChar);\n\n\t\t\tassertTrue(diamondString.contains(String.valueOf(diagonal)));\n\t\t\tassertEquals(Math.pow(diagonalLength, 2), diamondString.length());\n\t\t}\n\t}",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n boolean isSymmetric = true;\n String s = input.nextLine();\n for (int i = 0; i < s.length() / 2; i++) {\n if (s.charAt(i) != s.charAt(s.length() - 1 - i)) {\n isSymmetric = false;\n }\n }\n System.out.println(isSymmetric ? 1 : 37);\n }",
"public List<String> findRepeatedDnaSequences(String s){\n HashMap<Character,Integer> map=new HashMap<>();\n Set<Integer> firstSet=new HashSet<>();\n Set<Integer> dupSet=new HashSet<>();\n List<String> res=new ArrayList<>();\n map.put('A',0);\n map.put('C',1);\n map.put('G',2);\n map.put('T',3);\n char[] chars=s.toCharArray();\n for(int i=0;i<chars.length-9;i++){\n int v=0;\n for(int j=i;j<i+10;j++){\n v<<=2;\n v|=map.get(chars[j]);\n }\n if(!firstSet.add(v)&&dupSet.add(v)){\n res.add(s.substring(i,i+10));\n }\n }\n return res;\n }",
"public static int length(int n)\n {\n int w = n;\n if(w == 1)\n {\n return 1;\n } \n else\n {\n return 1 + length(next(w));\n }\n }",
"public static void SubString(String str, int n)\r\n {\r\n\t\tint count = 0;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < n; i++) { \r\n for (int j = i+1; j <= n; j++) {\r\n \t String subs = str.substring(i, j);\r\n \t \r\n \t if((Integer.valueOf(subs)) <= 26) {\r\n \t\t System.out.println(subs);\r\n \t\t sb.append(subs);\r\n \t\t \r\n \t }\r\n }\r\n }\r\n \r\n for(int i = 0; i < sb.length() - 2; i++) {\r\n \t for(int j = i + 1; j < sb.length() - 1; j++) {\r\n \t\t for(int k = j + 1; k < sb.length(); k++) {\r\n \t\t\t StringBuilder temp = new StringBuilder();\r\n \t\t\t temp.append(sb.charAt(i));\r\n \t\t\t temp.append(sb.charAt(j));\r\n \t\t\t temp.append(sb.charAt(k));\r\n \t\t\t //System.out.println(temp.toString());\r\n \t\t\t if(temp.toString().equals(str)) { // !!! have to use equals!!!!\r\n \t\t\t\t count++;\r\n \t\t\t }\r\n \t\t }\r\n \t } \r\n \t}\r\n System.out.println(\"count \" + count);\r\n }",
"public String countAndSay(int n) {\n String input = \"1\";\n String immediate_str = \"\";\n\n \n for (int i = 1; i < n; i++) {\n //System.out.println(input);\n char [] nums = input.toCharArray();\n int count = 0;\n int prev = -1;\n for (int j = 0; j < nums.length; j++) {\n //System.out.println(j + \",\"+ nums[j]);\n if ((nums[j] - '0') == prev) {\n count ++;\n }\n else {\n if (prev != -1)\n immediate_str += Integer.toString(count) + Integer.toString(prev);\n count = 1;\n }\n prev = nums[j] - '0';\n }\n immediate_str += Integer.toString(count) + Integer.toString(prev);\n input = immediate_str;\n immediate_str = \"\";\n }\n return input; \n }",
"static boolean possibility(HashMap<Integer,\n Integer> m,\n int length, String s)\n{\n // counts the occurrence of number\n // which is odd\n int countodd = 0;\n \n for (int i = 0; i < length; i++)\n {\n // if occurrence is odd\n if (m.get(s.charAt(i) - '0') % 2 == 1)\n countodd++;\n \n // if number exceeds 1\n if (countodd > 1)\n return false;\n }\n \n return true;\n}",
"public static int solution(String s) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n if (s.length() == 1) {\n return 1;\n }\n int result = 0;\n int index = 0;\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n while (index < s.length()) {\n char temp = s.charAt(index);\n if (!map.containsKey(temp)) {\n map.put(temp, index);\n index++;\n } else {\n int start = map.get(temp);\n index = start + 1;\n if (map.size() > result) {\n result = map.size();\n }\n map.clear();\n }\n }\n if (map.size() > result) {\n result = map.size();\n }\n return result;\n }",
"int getStartCharIndex();",
"public static void main(String[] args){\n\t\tString st = \"attabababab\"; \n\t\t// finding the longest pallindrome from the given sequence \n\t\tSystem.out.println(findlongestpalindrome(st));\n\t\t//System.out.println(ispalindrome1(\"atata\"));\n\t}",
"@Test(timeout = 4000)\n public void test059() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.GetSuffix(22);\n assertEquals((-1), javaCharStream0.bufpos);\n }",
"int[] buildFrequencyTable(String s)\n{\n int[] table = new int [Character.getNumericValue('z') - Character.getNumericValue('a') + 1];\n for (char c : s.toCharArray())\n {\n int x = getCharNumber(c);\n if (x != -1) table[x]++;\n }\n return table;\n}",
"public static void main(String[] args) {\n\n String str1= \"Java\";\n // 0123\n\n char ch1= str1.charAt(3);\n System.out.println(ch1);\n\n // char ch2 = str1.charAt(4); out of range\n // System.out.println(ch2);\n\n //length(): returns the total number of chars in \"int\".\n String str2 = \"Cybertek School\";\n int total = str2.length();\n System.out.println(total);\n\n int maxIndex = str2.length()-1;\n char ch3= str2.charAt(maxIndex);\n System.out.println(ch3);\n System.out.println(\"=======================================\");\n\n //concat(str); it does the concatenation\n\n String str3= \"Cybertek\";\n str3 = str3.concat(\" School\"); //\"Cybertek School\"\n System.out.println(str3);\n\n String str4 = \"Java\";\n str4= str4.concat(\" is fun\"); // return new string as \"Java is fun\"\n\n System.out.println(str4);\n\n System.out.println(\"=======================================\");\n\n //toLowerCase() & toUperCase(); converting strings to lower and uper cases.\n\n String str5 = \"CYBERTEK SCHOOL\";\n str5 = str5.toLowerCase(); //\"cybertek school\"\n System.out.println(str5);\n\n String str6 = \"murtaza nazeeri\";\n str6= str6.toUpperCase(); // reassigned to \"MURTAZA NAZEERI\"\n System.out.println(str6); //\n\n System.out.println(\"=======================================\");\n\n //trim(): removes the unused(white) spaces from the string.\n\n String str7 = \" Messi \";\n str7 = str7.trim();\n System.out.println(str7);\n System.out.println(str7.length());\n\n String str8= \" \";\n str8 = str8.trim();\n\n System.out.println(str8.length());\n\n System.out.println(\"=========================================\");\n\n //1) substring(beginning index, ending index): creates substring starting from beginnging to ending index.\n //the ending index is excluded.\n String sentence1= \"I like Java\";\n // 0123456789..\n\n String word1 = sentence1.substring(7,sentence1.length()); //\"Java\"\n String word2 = sentence1.substring(2,6);\n System.out.println(word1);\n System.out.println(word2);\n\n String word3= sentence1.substring(2,6) + sentence1.substring(7,sentence1.length());\n System.out.println(word3);\n\n\n\n\n // 2) substring(begiining index): creates the sub string from beginning index till the end of the string. returns new string\n String sentence2 = \"I like to learn Java\";\n // 0123456789\n\n String r1 = sentence2.substring(10); // \"learn Java\";\n System.out.println(r1);\n\n String r2 = \"Java\"; //JaVa;\n // 0123\n String r3 = r2.substring(0, 2); //Ja\n\n String r4 = r2.substring(2,3) ; // v\n r4 = r4.toUpperCase(); //V\n\n String r5 = r2.substring(3); //a\n\n String result = r3+r4+r5; // JaVa\n\n System.out.println(result);\n\n\n System.out.println(\"=============================================\");\n\n\n }",
"public static void main(String[] args) {\n\t\tString s=\"22\";\n\t\t\n\t\tif(s.indexOf(\"1\")>=0||s.equals(\"\"))\n\t\t\tSystem.out.println(\"hello\");\n\t\t\t\n\t\tArrayList f=new ArrayList();\n\t\tint stack[]=new int[2*s.length()];\n\t\tint top=-1;\n\t\tchar a[][]=new char[][]{{},{},{'#','a','b','c','#'},{'#','d','e','f','#'},{'#','g','h','i','#'},{'#','j','k','l','#'},{'#','m','n','o','#'},{'#','p','q','r','s','#'},{'#','t','u','v','#'},{'#','w','x','y','z','#'}};\n\t\tint length[]=new int []{0,0,3,3,3,3,3,4,3,4};\n\t\tStringBuilder ans=new StringBuilder();\n\t\tfor(int i=0;i<s.length();i++){\n\t\t\tint x=stack[++top]=(int)s.charAt(i)-'0';\n\t\t\tans.append(a[x][1]);\n\t\t\tstack[++top]=1;\n\t\t}\n\t\twhile(stack[1]!=length[(int)s.charAt(0)-'0']+1){\n\t\t\tif(a[stack[top-1]][stack[top]]!='#'){\n\t\t\t\tif(s.length()==(top+1)/2){\n\t\t\t\t\twhile(a[stack[top-1]][stack[top]]!='#'){\n\t\t\t\t\t\tint r=(top-1)/2;\n\t\t\t\t\t\tchar r1=a[stack[top-1]][stack[top]];\n\t\t\t\t\t\tans.setCharAt(r, r1);\n\t\t\t\t\t\tString ans1=ans.toString();\n\t\t\t\t\t\tf.add(ans1);\n\t\t\t\t\t\tstack[top]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tans.setCharAt((top-1)/2, a[stack[top-1]][stack[top]]);\n\t\t\t\t\ttop+=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstack[top]=1;\n\t\t\t\ttop-=2;\n\t\t\t\tstack[top]++;\n\t\t\t\tans.setCharAt((top-1)/2, a[stack[top-1]][stack[top]]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(f.size());\n\t}",
"public int firstUniqChar(String s) {\n int n = s.length();\n int[] cnt = new int[26];\n int[] index = new int[26];\n Arrays.fill(index, n+1);\n \n // Keep the index \n for(int i=0; i<n; i++){\n cnt[s.charAt(i) - 'a']++;\n index[s.charAt(i) - 'a'] = i;\n }\n \n int minIndex = n+1;\n for(int i=0; i<26; ++i){\n if(cnt[i] > 1)\n continue;\n minIndex = Math.min(minIndex, index[i]);\n }\n return minIndex == n+1 ? -1 : minIndex;\n }",
"public static void main(String[] args) {\n String a = \"agbcba\";\n StringBuilder rev = new StringBuilder(a);\n System.out.println(a.length() - findLCS(a, rev.reverse().toString(), a.length(), a.length()));\n }",
"public static int firstUniqChar(String s) {\n\n HashMap<String, Integer> hm = new HashMap<>();\n\n for(int i = 0; i < s.length(); i++) {\n if(hm.containsKey(s.substring(i, i+1))) {\n hm.put(s.substring(i,i+1), hm.get(s.substring(i,i+1))+1);\n }\n else {\n hm.put(s.substring(i,i+1), 1);\n }\n }\n\n for(int i = 0; i< s.length(); i++) {\n if(hm.get(s.substring(i,i+1)) == 1) {\n return i;\n }\n }\n //this means all the string is repeating\n return -1;\n }",
"public int normalizedLength(List<String> sequence);",
"public void printCharsWhile(String s){\n while int i = 0(i < s.lenth){\n println(s.charAt(i));\n x++;\n }",
"static\nint\ncountSeq(\nint\nn, \nint\ndiff) \n{ \n\n// We can't cover difference of more \n\n// than n with 2n bits \n\nif\n(Math.abs(diff) > n) \n\nreturn\n0\n; \n\n\n// n == 1, i.e., 2 bit long sequences \n\nif\n(n == \n1\n&& diff == \n0\n) \n\nreturn\n2\n; \n\nif\n(n == \n1\n&& Math.abs(diff) == \n1\n) \n\nreturn\n1\n; \n\n\nint\nres = \n// First bit is 0 & last bit is 1 \n\ncountSeq(n-\n1\n, diff+\n1\n) + \n\n\n// First and last bits are same \n\n2\n*countSeq(n-\n1\n, diff) + \n\n\n// First bit is 1 & last bit is 0 \n\ncountSeq(n-\n1\n, diff-\n1\n); \n\n\nreturn\nres; \n}",
"static int size_of_xthl(String passed){\n\t\treturn 1;\n\t}",
"static int lps(char seq[], int i, int j) {\n // Base Case 1: If there is only 1 character\n if (i == j) {\n return 1;\n }\n\n // Base Case 2: If there are only 2 characters and both are same\n if (seq[i] == seq[j] && i + 1 == j) {\n return 2;\n }\n\n // If the first and last characters match\n if (seq[i] == seq[j]) {\n return lps(seq, i + 1, j - 1) + 2;\n }\n\n // If the first and last characters do not match\n return max(lps(seq, i, j - 1), lps(seq, i + 1, j));\n }",
"@Test(timeout = 4000)\n public void test058() throws Throwable {\n StringReader stringReader0 = new StringReader(\"b|}T=mM,PuM8AP|}\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 10, 0, 0);\n assertEquals((-1), javaCharStream0.bufpos);\n \n char[] charArray0 = javaCharStream0.GetSuffix(0);\n assertEquals(0, charArray0.length);\n }",
"static int chara(String a) {\n int character = 0;\n while ((16 * character) < a.length()) {\n character++;\n }\n return character;\n }",
"public String countAndSay(int n) {\n\n \tif (n <= 0)\n \t\treturn null;\n \t\n \tString[] retString = new String[n];\n \tfor (int i = 0; i < n; i++){\n \t\tif (i < 1)\n \t\t\tretString[i] = \"1\";\n \t\telse{\n \t\t\tString prev = retString[i-1];\n \t\t\tchar[] prevArray = prev.toCharArray();\n \t\t\tStringBuffer buffer = new StringBuffer();\n \t\t\tchar current = prevArray[0];\n \t\t\tint count = 0;\n \t\t\tfor (int j = 0; j < prevArray.length; j++){\n \t\t\t\tif (prevArray[j] == current){\n \t\t\t\t\tcount ++; \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\tbuffer.append(count);\n \t\t\t\t\tbuffer.append(current);\n \t\t\t\t\tcurrent = prevArray[j];\n \t\t\t\t\tcount = 1;\n \t\t\t\t}\n \t\t\t}\n \t\t\tbuffer.trimToSize();\n \t\t\tif (buffer.length() == 0 || buffer.charAt(buffer.length()-1) != current){\n \t\t\t\tbuffer.append(count);\n \t\t\t\tbuffer.append(current);\n \t\t\t}\n \t\t\tretString[i] = buffer.toString();\n \t\t}\n \t}\n \treturn retString[n-1];\n \t\n }",
"public static int longerThanOriginalOne(String s){\n\n\t\tint count = 1;\n\t\tchar c = s.charAt(0);\n\n\t\tint total = 0;\n\n\t\tfor (int i = 1; i < s.length(); i++){\n\t\t\tif (s.charAt(i) == c){\n\t\t\t\tcount += 1;\n\t\t\t}else{\n\t\t\t\ttotal += 1 + Integer.toString(count).length();\n\t\t\t\tc = s.charAt(i);\n\t\t\t\tcount = 1;\n\n\t\t\t}\n\t\t}\n\t\ttotal += 1 + Integer.toString(count).length();\n\t return total;\n\n\n\t}",
"public int countPalindromicSubsequences(String s) {\n \n Integer[][][] memo = new Integer[s.length()][s.length()][4];\n \n int ans = 0;\n for (int i = 0; i < 4; i++) {\n ans = (ans + distinct(s, memo, 0, s.length() - 1, i)) % MOD;\n }\n \n return ans;\n }",
"public static void main(String[] args) {\n\n String s = \"Java Programming Java oops\";\n\n int fullLenght = s.length();\n\n int lengthWithoutas = s.replace(\"a\", \"\").length();\n\n int numOfas = fullLenght - lengthWithoutas;\n\n System.out.println(\"Number of a's in the string = \" + numOfas);\n\n\n }",
"public static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Anisha sinhA\");\n\t\t\n\t\tSystem.out.println(\"index of h--\"+sb.indexOf(\"h\"));\n\t\t//System.out.println(\"last index of a--\"+sb.lastIndexOf(\"a\"));\n\t\t//System.out.println(\"5th position of a --\"+sb.charAt(5));\n\t\t\n\t\tSystem.out.println(\"5th position of a -->\"+sb.indexOf(\"a\", 5));\n\t\t\n\t\t\n\t\t\n\n\t}",
"String LetterCount(String str) {\n String strr1[]=str.split(\" \");\n String strr[]= strr1;\n String strt=\"\";\n int count=0;\n int count1=0;\n int maxi=0;\n \n for(int i=0; i<strr.length; i++){\n char[] crr=strr[i].toCharArray();\n java.util.Arrays.sort(crr);\n strt=new String(crr);\n for(int j=0; j<strt.length()-1; j++){\n while(strt.charAt(j)==strt.charAt(j+1) && j<strt.length()-2){\n count++;\n j++;\n }\n }\n if(count>count1){\n count1=count;\n maxi=i;\n }\n count=0;\n }\n return strr1[maxi];\n \n }",
"public static int lengthOfLongestSubstring(String s) \r\n {\r\n \tif (s.length()==0) \r\n \t\treturn 0;\r\n \t\r\n HashMap<Character, Integer> map = new HashMap<Character, Integer>();\r\n int length = 0;\r\n int start = 0;\r\n \r\n for (int end=0; end < s.length(); end++)\r\n {\r\n \t// When we have reached a repeated character, then the currently held string is potentially the largest string.\r\n \t// If the character is there in the map, start needs to be changed. \r\n \t// If it is not there, start remains the same so that it can increase the count\r\n if (map.containsKey(s.charAt(end)))\r\n {\r\n \t// Consider input as abba. For b[2], start < map.get(s.charAt(end)) + 1 \r\n \t// For b[3], start > map.get(s.charAt(end)) + 1. It means, if the character has occured towards the beginning, we dont want the start to be modified.\r\n \tstart = Math.max(start, map.get(s.charAt(end)) + 1);\r\n } \r\n \r\n map.put(s.charAt(end), end);\r\n \r\n // Why +1? Lets say start=2, end=5. Then the length will be 5-2=3. And, 3+1 = 4.\r\n length = Math.max(length, end-start+1);\r\n \r\n }\r\n return length;\r\n }",
"public static int hailstoneLength(int n) {\n /* to be implemented in part (a) */\n int length = 0;\n while (n != 1){\n if (n%2!=0)\n n= 3*n+1;\n else if (n%2==0)\n n= n/2;\n length ++;\n }\n return length + 1;\n }"
] | [
"0.62613666",
"0.62245923",
"0.6169961",
"0.59698904",
"0.5957534",
"0.5904573",
"0.59040165",
"0.5819061",
"0.5779684",
"0.57642734",
"0.57632136",
"0.57518715",
"0.57434314",
"0.57291096",
"0.5679247",
"0.5659925",
"0.56049716",
"0.55838495",
"0.5573374",
"0.5569907",
"0.55692273",
"0.55648506",
"0.5556868",
"0.55416775",
"0.5519516",
"0.5512428",
"0.5483749",
"0.54796827",
"0.5471931",
"0.5462423",
"0.5449157",
"0.5442374",
"0.54384744",
"0.54336375",
"0.542673",
"0.54215056",
"0.5415781",
"0.5412756",
"0.540464",
"0.539898",
"0.53903186",
"0.5388172",
"0.53843373",
"0.53742576",
"0.53683656",
"0.5362788",
"0.53405696",
"0.5338589",
"0.53327817",
"0.5328682",
"0.5323054",
"0.53198016",
"0.5316003",
"0.53146523",
"0.53129977",
"0.5312094",
"0.53111374",
"0.53092736",
"0.52882916",
"0.5287458",
"0.5286503",
"0.52783674",
"0.5277905",
"0.5272004",
"0.52633154",
"0.5263018",
"0.52461374",
"0.52415335",
"0.5240965",
"0.5220845",
"0.52184176",
"0.5218155",
"0.52179754",
"0.5208274",
"0.5198024",
"0.51966816",
"0.51955646",
"0.5194056",
"0.5183789",
"0.5181427",
"0.5178498",
"0.5177838",
"0.51774657",
"0.5174268",
"0.5172842",
"0.51723826",
"0.516482",
"0.5154461",
"0.5152912",
"0.5151644",
"0.51489717",
"0.51348835",
"0.51289546",
"0.5128371",
"0.51271826",
"0.51258403",
"0.5119885",
"0.51066405",
"0.51034814",
"0.5102324",
"0.50976753"
] | 0.0 | -1 |
Added by Ravi for Manage Profile | public ParentTO manageParentAccountDetails(String username){
return parentDAO.manageParentAccountDetails( username );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void editTheirProfile() {\n\t\t\n\t}",
"@Override\n\tpublic void showProfile() {\n\t\t\n\t}",
"public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}",
"public void saveProfileCreateData() {\r\n\r\n }",
"public void saveProfileEditData() {\r\n\r\n }",
"private void editProfile() {\n Log.d(TAG, \"Starting volley request to API\");\n try {\n String authority = String.format(Constants.AUTHORITY,\n Constants.TENANT,\n Constants.EDIT_PROFILE_POLICY);\n\n User currentUser = Helpers.getUserByPolicy(\n sampleApp.getUsers(),\n Constants.EDIT_PROFILE_POLICY);\n\n sampleApp.acquireToken(\n this,\n Constants.SCOPES.split(\"\\\\s+\"),\n currentUser,\n UiBehavior.SELECT_ACCOUNT,\n null,\n null,\n authority,\n getEditPolicyCallback());\n } catch(MsalClientException e) {\n /* No User */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n }\n\n }",
"public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}",
"void gotoEditProfile();",
"@Override\n public void setActiveProfile(String profileName) {\n }",
"H getProfile();",
"private void addProfile(ProfileInfo profileInfo)\r\n\t{\r\n\t\taddProfile(profileInfo.getProfileName(), \r\n\t\t\t\tprofileInfo.getUsername(), \r\n\t\t\t\tprofileInfo.getServer(),\r\n\t\t\t\tprofileInfo.getPort());\r\n\t}",
"public String getProfile();",
"@Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == PROFILE_SETTING) {\n IProfile newProfile = new ProfileDrawerItem().withNameShown(true).withName(\"Batman\").withEmail(\"[email protected]\").withIcon(getResources().getDrawable(R.drawable.profile5));\n if (headerResult.getProfiles() != null) {\n //we know that there are 2 setting elements. set the new profile above them ;)\n headerResult.addProfile(newProfile, headerResult.getProfiles().size() - 2);\n } else {\n headerResult.addProfiles(newProfile);\n }\n }\n\n //false if you have not consumed the event and it should close the drawer\n return false;\n }",
"String getProfile();",
"private void addProfile(String profileName, String username, String server, int port)\r\n\t{\r\n\t\tps.setValue(count + PROFILE, profileName + \",\" + username + \",\" + server + \",\" + port);\r\n\t}",
"@Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n Intent intent = null;\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_ADD_ACCOUNT) {\n intent = new Intent(MainActivity.this, AddAccountActivity.class);\n //TODO: Save profile\n //TODO: Create profile drawer item from saved profile and show it in UI\n /*\n IProfile profileNew = new ProfileDrawerItem()\n .withNameShown(true)\n .withName(\"New Profile\")\n .withEmail(\"[email protected]\")\n .withIcon(getResources().getDrawable(R.drawable.profile_new));\n\n if (accountHeader.getProfiles() != null) {\n //we know that there are 2 setting elements. set the new profile above them\n accountHeader.addProfile(profileNew, accountHeader.getProfiles().size() - 2);\n } else {\n accountHeader.addProfiles(profileNew);\n }\n */\n } else if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_MANAGE_ACCOUNT) {\n intent = new Intent(MainActivity.this, ManageAccountActivity.class);\n //TODO: update the UI\n }else if(profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_USER) {\n Toast.makeText(sApplicationContext, \"The User\", Toast.LENGTH_SHORT).show();\n SharedPreferences sp = sApplicationContext.getSharedPreferences(PREF_NAME, MODE_PRIVATE);\n String currentUserUUIDString = sp.getString(PREF_CURRENT_USER_UUID, null);\n if(((UserProfile)profile).getId().toString().equalsIgnoreCase(currentUserUUIDString)){\n Toast.makeText(sApplicationContext, \"SAME User\", Toast.LENGTH_SHORT).show();\n //TODO:\n }else{\n Toast.makeText(sApplicationContext, \"Different User\", Toast.LENGTH_SHORT).show();\n //TODO:\n SharedPreferences.Editor spe = sp.edit();\n spe.putString(PREF_CURRENT_USER_UUID, ((UserProfile)profile).getId().toString());\n spe.commit();\n\n UpdateContentUI();\n }\n }\n\n if(intent != null){\n MainActivity.this.startActivity(intent);\n }\n\n //false if you have not consumed the event And it should close the drawer\n return false;\n }",
"public void setProfile(Profile profile) {\n _profile = profile;\n }",
"@Override\n public void Mesibo_onProfileUpdated(MesiboProfile profile) {\n toast(profile.getName() + \" has updated profile\");\n }",
"public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}",
"private void callUpdateProfile() {\n String userStr = CustomSharedPreferences.getPreferences(Constants.PREF_USER_LOGGED_OBJECT, \"\");\n Gson gson = new Gson();\n User user = gson.fromJson(userStr, User.class);\n LogUtil.d(\"QuyNT3\", \"Stored profile:\" + userStr +\"|\" + (user != null));\n //mNameEdt.setText(user.getName());\n String id = user.getId();\n String oldPassword = mOldPassEdt.getText().toString();\n String newPassword = mNewPassEdt.getText().toString();\n String confirmPassword = mConfirmPassEdt.getText().toString();\n String fullName = mNameEdt.getText().toString();\n String profileImage = user.getProfile_image();\n UpdateUserProfileRequest request = new UpdateUserProfileRequest(id, fullName, profileImage,\n oldPassword, newPassword, confirmPassword);\n request.setListener(callBackEvent);\n new Thread(request).start();\n }",
"public int getProfile_id() {\n return profileID;\n }",
"public Profile() {\n initComponents();\n AutoID();\n member_table();\n \n }",
"@Override\n\tpublic void updateUserProfileInfo(String name) throws Exception {\n\n\t}",
"public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }",
"@Override\r\n public int addProfile(Profile newProfile) {\r\n return profileDAO.addProfile(newProfile);\r\n }",
"public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}",
"public void showProfile() {\r\n\t\tprofile.setVisible(true);\r\n\t}",
"private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on cancel or submit\n startActivity(intent);\n }",
"public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }",
"@RequestMapping(\"/su/profile\")\n\tpublic ModelAndView suprofile() {\n\t\tModelAndView mav = new ModelAndView();\n\t\tYourtaskuser yourtaskuser = authentication.getActiveUser();\n\t\tmav.addObject(\"yourtaskuser\", yourtaskuser);\n\t\tmav.addObject(\"suinfo\", suinfoDAO.findSuinfoByPrimaryKey(yourtaskuser.getUserid()));\n\t\tmav.setViewName(\"profile/userprofile.jsp\");\n\t\treturn mav;\n\t}",
"private void addProfile(String inputName) {\n \tif (! inputName.equals(\"\")) {\n\t\t\t///Creates a new profile and adds it to the database if the inputName is not found in the database\n \t\tif (database.containsProfile(inputName)) {\n \t\t\tlookUp(inputName);\n \t\t\tcanvas.showMessage(\"Profile with name \" + inputName + \" already exist.\");\n \t\t\treturn;\n \t\t}\n\t\t\tprofile = new FacePamphletProfile (inputName);\n\t\t\tdatabase.addProfile(profile);\n\t\t\tcurrentProfile = database.getProfile(inputName);\n \t\tcanvas.displayProfile(currentProfile);\n\t\t\tcanvas.showMessage(\"New profile created.\");\n\t\t\t\n \t}\n\t\t\n\t}",
"void gotoEditProfile(String fbId);",
"public String getProfile() {\n return profile;\n }",
"public void openProfile(){\n\t\t\n\t\tclickElement(profile_L, driver);\n\t}",
"boolean hasProfile();",
"private void profileUpdate(){\n File out = new File ( Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\"\n + Setting.APP_FOLDER + \"/\" + \"profile\");\n if (!out.exists()){\n try {\n ColdStart.createProfile();\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else{\n HandlerThread ht = new HandlerThread(\"UpdateProfile\", android.os.Process.THREAD_PRIORITY_BACKGROUND);\n ht.start();\n Handler h = new Handler(ht.getLooper());\n h.post(new Runnable() {\n @Override\n public void run() {\n ColdStart.updateProfile();\n }\n });\n\n }\n }",
"@Override\n public void onChanged(@Nullable final Profile profile) {\n userProfile = profile;\n }",
"TasteProfile.UserProfile getUserProfile (String user_id);",
"@Override\n\tpublic long createProfile(Profile profile) {\n\t\treturn 0;\n\t}",
"public void testProfileManagementUI(String profileConfig) throws Exception {\r\n selenium.click(\"link=Profile Management\");\r\n selenium.waitForPageToLoad(\"30000\");\r\n\t\tassertTrue(selenium.isTextPresent(\"Profile Configurations\"));\r\n\t\tassertTrue(selenium.isElementPresent(\"link=Add New Profile Configuration\"));\r\n\t\tassertTrue(selenium.isTextPresent(\"Available Profile Configurations\"));\r\n\t\tassertEquals(\"default\", selenium.getTable(\"//div[@id='workArea']/table.1.0\"));\r\n\t\tassertEquals(\"Delete\", selenium.getTable(\"//div[@id='workArea']/table.1.1\"));\r\n\r\n //Click on the Claim URL for http://schemas.xmlsoap.org/ws/2005/05/identity\r\n assertTrue(selenium.isElementPresent(\"link=Add New Profile Configuration\"));\r\n selenium.click(\"link=\"+ profileConfig );\r\n\t\tselenium.waitForPageToLoad(\"30000\");\r\n assertTrue(selenium.isTextPresent(\"Profile Configurations for \"+ profileConfig));\r\n\t\tselenium.click(\"//input[@value='Cancel']\");\r\n\t\tselenium.waitForPageToLoad(\"30000\");\r\n }",
"private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }",
"public void clickOnProfile() {\n\t\telement(\"link_profile\").click();\n\t\tlogMessage(\"User clicks on Profile on left navigation bar\");\n\t}",
"private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }",
"@Override\n\tprotected void setProfile(List<Step> arg0, List<Step> arg1) {\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\n if (e.getSource() == add && ! tfName.getText().equals(\"\")){\n String name = tfName.getText();\n if (profileDB.containsProfile(name)){\n canvas.showMessage(\"A profile with the name \" + name + \" already exists.\");\n } else {\n FacePamphletProfile profile = new FacePamphletProfile(tfName.getText());\n profileDB.addProfile(profile);\n canvas.displayProfile(profileDB.getProfile(name));\n canvas.showMessage(\"New profile with the name \" + name + \" created.\");\n currentProfile = profile;\n }\n }\n if (e.getSource() == delete && ! tfName.getText().equals(\"\")) {\n String name = tfName.getText();\n if (! profileDB.containsProfile(name)){\n canvas.showMessage(\"A profile with the name \" + name + \" does not exist.\");\n } else {\n profileDB.deleteProfile(name);\n canvas.showMessage(\"Profile of \" + name + \" deleted.\");\n currentProfile = null;\n }\n }\n\n if (e.getSource() == lookUp && !tfName.getText().equals(\"\")) {\n String name = tfName.getText();\n if (profileDB.containsProfile(name)){\n canvas.displayProfile(profileDB.getProfile(name));\n canvas.showMessage(\"Displaying \" + name);\n currentProfile = profileDB.getProfile(name);\n } else {\n canvas.showMessage(\"A profile with the mane \" + name + \" does not exist\");\n currentProfile = null;\n }\n }\n\n if ((e.getSource() == changeStatus || e.getSource() == tfChangeStatus) && ! tfChangeStatus.getText().equals(\"\")){\n if (currentProfile != null){\n String status = tfChangeStatus.getText();\n profileDB.getProfile(currentProfile.getName()).setStatus(status);\n canvas.displayProfile(profileDB.getProfile(currentProfile.getName()));\n canvas.showMessage(\"Status updated.\");\n } else {\n canvas.showMessage(\"Please select a profile to change status.\");\n }\n }\n\n if ((e.getSource() == changePicture || e.getSource() == tfChangePicture) && ! tfChangePicture.getText().equals(\"\")){\n if (currentProfile != null){\n String fileName = tfChangePicture.getText();\n GImage image;\n try {\n image = new GImage(fileName);\n profileDB.getProfile(currentProfile.getName()).setImage(image);\n canvas.displayProfile(profileDB.getProfile(currentProfile.getName()));\n canvas.showMessage(\"Picture updated.\");\n } catch (ErrorException ex){\n canvas.showMessage(\"Unable to open image file: \" + fileName);\n }\n } else {\n canvas.showMessage(\"Please select a profile to change picture.\");\n }\n }\n\n if ((e.getSource() == addFriend || e.getSource() == tfAddFriend) && ! tfAddFriend.getText().equals(\"\")) {\n if (currentProfile != null){\n String friendName = tfAddFriend.getText();\n if (profileDB.containsProfile(friendName)){\n if (! currentProfile.toString().contains(friendName)){\n profileDB.getProfile(currentProfile.getName()).addFriend(friendName);\n profileDB.getProfile(friendName).addFriend(currentProfile.getName());\n canvas.displayProfile(profileDB.getProfile(currentProfile.getName()));\n canvas.showMessage(friendName + \" added as a friend.\");\n } else {\n canvas.showMessage(currentProfile.getName() + \" already has \" + friendName + \" as a friend.\");\n }\n } else {\n canvas.showMessage(friendName + \" does not exist.\");\n }\n } else {\n canvas.showMessage(\"Please select a profile to add friend.\");\n }\n }\n\t}",
"public void setProfile( ProjectProfileBO pProfile )\r\n {\r\n mProfile = pProfile;\r\n }",
"@Override\r\n public void updateProfile(Profile newProfile, Profile oldProfile) {\r\n profileDAO.updateProfile(oldProfile, newProfile);\r\n }",
"@Override\n\tpublic void showBookProfile() {\n\t\t\n\t}",
"public void createEditProfileSession(Profile profile) {\n editor.putString(KEY_EMAIL, profile.getMail());\n editor.putString(KEY_NAME, profile.getName());\n editor.putString(KEY_NUMBER,profile.getMobile());\n editor.commit();\n }",
"public void setProfileImg() {\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_profile);\n toolbar_profile = findViewById(R.id.pro_toolbar);\n setTitle(\"My Profile\");\n setSupportActionBar(toolbar_profile);\n\n proname = findViewById(R.id.profile_name);\n profoi = findViewById(R.id.profile_foi);\n proorg = findViewById(R.id.profile_orga);\n\n currentId=String.valueOf(Settings.Secure.getString(getContentResolver(),Settings.Secure.ANDROID_ID));\n //load user information\n userInfo();\n editProfile = findViewById(R.id.editprofile);\n editProfile.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(Profile.this,Profile_Edit.class));\n }\n });\n }",
"public interface ProfileType\n {\n /**\n * Parent profile type\n */\n String ADMIN = \"0\";\n\n /**\n * remeber profile type\n */\n String GENERAL = \"1\";\n }",
"public WebElement profileSetUpTab() {\n\t\treturn getElementfluent(By.xpath(\"//menuitem[contains(text(),'Profile')]\"));\n\t}",
"@Override\n\t\tpublic void onUserProfileUpdate(User arg0) {\n\t\t\t\n\t\t}",
"@RequestMapping(value=\"/ExternalUsers/EditProfile\", method = RequestMethod.GET)\n\t\tpublic String editProfile(ModelMap model) {\n\t\t\t// redirect to the editProfile.jsp\n\t\t\treturn \"/ExternalUsers/EditProfile\";\n\t\t\t\n\t\t}",
"private void getUserProfile() {\n mFirstname.setText(\"FirstName: \"+userPreferences.getAgentFirstName());\n mLastname.setText(\"LastName: \"+userPreferences.getAgentLastName());\n\n\n Log.i(\"username\",userPreferences.getAgentUsername());\n if(userPreferences.getAgentUsername()==null){\n mUsernameTxt.setText(\"\");\n }else if(userPreferences.getAgentUsername().equals(\"null\")){\n mUsernameTxt.setText(\"\");\n }else{\n mUsernameTxt.setText(userPreferences.getAgentUsername());\n }\n\n mEmail.setText(\"Email: \"+userPreferences.getAgentEmail());\n mPhoneNum.setText(\"Phone No: \"+userPreferences.getAgentPhoneNUM());\n\n\n /* mPinProfileTxt.setText(\"Pin: \"+userPreferences.getPin());\n mBank.setText(\"Bank Name: \"+userPreferences.getBank());\n mAccountName.setText(\"Acct Name: \"+userPreferences.getAccountName());\n mAccountNumber.setText(\"Acct No: \"+userPreferences.getAccountNumber());*/\n\n mProgressBarProfile.setVisibility(View.VISIBLE);\n if(personal_img_url==null) {\n Glide.with(this).load(userPreferences.getAgentProfileImg()).apply(new RequestOptions().fitCenter().circleCrop()).into(mProfilePhoto);\n }else{\n Glide.with(this).load(personal_img_url).apply(new RequestOptions().fitCenter().circleCrop()).into(mProfilePhoto);\n\n }\n mProgressBarProfile.setVisibility(View.GONE);\n }",
"private void updateStudentProfileInfo() {\n\t\t\n\t\tstudent.setLastName(sLastNameTF.getText());\n\t\tstudent.setFirstName(sFirstNameTF.getText());\n\t\tstudent.setSchoolName(sSchoolNameTF.getText());\n\t\t\n\t\t//Update Student profile information in database\n\t\t\n\t}",
"@Override\n public void loadProfileUserData() {\n mProfilePresenter.loadProfileUserData();\n }",
"@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);",
"private void composeProfile() {\n if(NetworkUtils.isConnectedToNetwork((ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE)) == false) {\n Toast.makeText(this.getApplicationContext(), \"Please check your network connection!\", Toast.LENGTH_LONG).show();\n return;\n }\n Intent i = new Intent(this, ProfileActivity.class);\n i.putExtra(\"screen_name\", (String) null);\n startActivity(i);\n }",
"public Profile getProfile() {\n return _profile;\n }",
"@Override\n protected void onCurrentProfileChanged(Profile profile, Profile profile2) {\n Intent appPrincipal = new Intent(MainActivity.this,ActividadPrincipal.class);\n //appPrincipal.putExtra(\"NOMBRE\", nombre);\n mProfileTracker.stopTracking();\n startActivity(appPrincipal);\n finish();\n }",
"public Boolean getProfile()\n {\n return profile;\n }",
"public void propertyChange(PropertyChangeEvent evt) {\n if (ProfilesFactory.PROP_PROFILE_ADDED.equals(evt.getPropertyName())) {\n String profileName = (String) evt.getNewValue();\n Profile profile = ProfilesFactory.getDefault().getProfile(profileName);\n if (ProfilesFactory.getDefault().isOSCompatibleProfile(profileName)) {\n registerProfile(profile);\n }\n } else if (ProfilesFactory.PROP_PROFILE_REMOVED.equals(evt.getPropertyName())) {\n String profileName = (String) evt.getOldValue();\n variablesByProfileNames.remove(profileName);\n displayTypesByProfileNames.remove(profileName);\n commandsToFillByProfileNames.remove(profileName);\n }\n }",
"public void removeProfile(){\n Database db = Database.getInstance(context);\n db.getWritableDatabase().delete(PROFILE_TABLE, null, null);\n }",
"@RequestMapping(\"/admin/profile\")\n\tpublic ModelAndView adminprofile() {\n\t\tModelAndView mav = new ModelAndView();\n\t\tYourtaskuser yourtaskuser = authentication.getActiveUser();\n\t\tmav.addObject(\"yourtaskuser\", yourtaskuser);\n\t\tmav.setViewName(\"profile/adminprofile.jsp\");\n\t\treturn mav;\n\t}",
"public ProjectProfileBO getProfile()\r\n {\r\n return mProfile;\r\n }",
"@Override\r\n\tpublic int createProfileDAO() {\n\t\treturn 1;\r\n\t}",
"@Override\n public void checkProfileUserData() {\n mProfilePresenter.checkProfileUserData();\n }",
"public void updateProfile(Profile newProfile) throws Exception {\n // If the two profiles are exactly the same, an update isn't required\n if (this.equals(newProfile))\n return;\n\n String logString = newProfile.getImei() + \": \";\n // Check all attributes, updating them whenever they differ\n if (!softwareVersion.equals(newProfile.getSoftwareVersion())) {\n ProfileDBManager.updateSoftwareVersion(this.imei, newProfile.getSoftwareVersion());\n logString = logString + \"Old SW Version - \" + softwareVersion + \" | New SW Version - \" + newProfile.getSoftwareVersion() + \".\";\n }\n\n if (!simOperator.equals(newProfile.getSimOperator())) {\n ProfileDBManager.updateSimOperator(this.imei, newProfile.getSimOperator());\n logString = logString + \"Old SIM Operator - \" + simOperator + \" | New SIM Operator - \" + newProfile.getSimOperator() + \".\";\n }\n\n if (!simOperatorName.equals(newProfile.getSimOperatorName())) {\n ProfileDBManager.updateSimOperatorName(this.imei, newProfile.getSimOperatorName());\n logString = logString + \"Old SIM Operator Name - \" + simOperatorName + \" | New SIM Operator Name - \" + newProfile.getSimOperatorName() + \".\";\n }\n\n if(!simSerialNumber.equals(newProfile.getSimSerialNumber())) {\n ProfileDBManager.updateSimSerialNumber(this.imei, newProfile.getSimSerialNumber());\n logString = logString + \"Old SIM Serial Number - \" + simSerialNumber + \" | New SIM Serial Number - \" + newProfile.getSimSerialNumber() + \".\";\n }\n\n if(!simCountryIso.equals(newProfile.getSimCountryIso())) {\n ProfileDBManager.updateSimCountryIso(this.imei, newProfile.getSimCountryIso());\n logString = logString + \"Old SIM Country ISO - \" + simCountryIso + \" | New SIM Country ISO - \" + newProfile.getSimCountryIso() + \".\";\n }\n\n if(!imsiNumber.equals(newProfile.getImsiNumber())) {\n ProfileDBManager.updateImsiNumber(this.imei, newProfile.getImsiNumber());\n logString = logString + \"Old IMSI Number - \" + imsiNumber + \" | New IMSI Number - \" + newProfile.getImsiNumber() + \".\";\n }\n\n if (!ipAddress.equals(newProfile.getIpAddress())) {\n ProfileDBManager.updateIpAddress(this.imei, newProfile.getIpAddress());\n logString = logString + \"Old IP Address Location - \" + ipAddress + \" | New IP Address Location - \" + newProfile.getIpAddress() + \".\";\n }\n\n if(!osVersion.equals(newProfile.getOsVersion())) {\n ProfileDBManager.updateOsVersion(this.imei, newProfile.getOsVersion());\n logString = logString + \"Old OS Version - \" + osVersion + \" | New OS Version - \" + newProfile.getOsVersion() + \".\";\n }\n\n if(!sdkVersion.equals(newProfile.getSdkVersion())) {\n ProfileDBManager.updateSdkVersion(this.imei, newProfile.getSdkVersion());\n logString = logString + \"Old SDK Version - \" + sdkVersion + \" | New SDK Version - \" + newProfile.getSdkVersion() + \".\";\n }\n\n if(!deviceName.equals(newProfile.getDeviceName())) {\n ProfileDBManager.updateDeviceName(this.imei, newProfile.getDeviceName());\n logString = logString + \"Old Device Name - \" + deviceName + \" | New Device Name - \" + newProfile.getDeviceName() + \".\";\n }\n\n if(!keyboardLanguage.equals(newProfile.getKeyboardLanguage())) {\n ProfileDBManager.updateKeyboardLanguage(this.imei, newProfile.getKeyboardLanguage());\n logString = logString + \"Old Keyboard Language - \" + keyboardLanguage + \" | New Keyboard Language - \" + newProfile.getKeyboardLanguage() + \".\";\n }\n\n if(!networksSSID.equals(newProfile.getNetworksSSID())) {\n ProfileDBManager.updateNetworksSSID(this.imei, newProfile.getNetworksSSID());\n logString = logString + \"Old Networks - \" + networksSSID.toString() + \" | New Networks - \" + newProfile.getNetworksSSID().toString() + \".\";\n }\n\n if(!googleAccounts.equals(newProfile.getGoogleAccounts())) {\n ProfileDBManager.updateGoogleAccounts(this.imei, newProfile.getGoogleAccounts());\n logString = logString + \"Old Google Accounts - \" + googleAccounts.toString() + \" | New Google Accounts - \" + newProfile.getGoogleAccounts().toString() + \".\";\n }\n\n if(!memorizedAccounts.equals(newProfile.getMemorizedAccounts())) {\n ProfileDBManager.updateMemorizedAccounts(this.imei, newProfile.getMemorizedAccounts());\n logString = logString + \"Old Accounts - \" + memorizedAccounts.toString() + \" | New Accounts - \" + newProfile.getMemorizedAccounts().toString() + \".\";\n }\n\n if(!inputMethods.equals(newProfile.getInputMethods())) {\n ProfileDBManager.updateInputMethods(this.imei, newProfile.getInputMethods());\n logString = logString + \"Old Input Methods - \" + inputMethods.toString() + \" | New Input Methods - \" + newProfile.getInputMethods().toString() + \".\";\n }\n\n if(!installedApplications.equals(newProfile.getInstalledApplications())) {\n ProfileDBManager.updateInstalledApplications(this.imei, newProfile.getInstalledApplications());\n logString = logString + \"Old Applications - \" + installedApplications.toString() + \" | New Applications - \" + newProfile.getInstalledApplications().toString() + \".\";\n }\n\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(logString);\n System.out.println(logString);\n }",
"private void gotoUserProfile() {\n Intent launchUserProfile = new Intent(this, Profile.class);\n startActivity(launchUserProfile);\n }",
"void EditWorkerProfileUser(String uid, boolean isWorker, List<Skill> skills);",
"public void saveProfile(WSSecurityProfile profile) throws WSSecurityProfileManagerException{\n \t\n\t\tsynchronized(profilesFile_UserDefined){\n\t\t\t // If the file does not exist yet\n\t\t if (!profilesFile_UserDefined.exists()){\n\t\t \t//Create a new file\n\t\t \t try {\n\t\t \t\tprofilesFile_UserDefined.createNewFile();\n\t\t \t }\n\t\t \t catch(IOException ex)\n\t\t \t {\n\t\t \t\t String exMessage = \"WSSecurityProfileManager failed to create a file for user-defined profiles.\";\n\t\t \t\t logger.error(exMessage, ex);\n\t\t \t\t throw new WSSecurityProfileManagerException(exMessage);\n\t\t \t }\n\t\t }\n\n\t\t BufferedWriter userProfilesFileWriter = null;\n\t\t try{\n\t\t \t// Open the file for writing (i.e. appending)\n\t\t \t userProfilesFileWriter = new BufferedWriter((new FileWriter(profilesFile_UserDefined, true)));\n\t\t \t // Add a new profile entry\n\t\t String profileEntry ;\n\t\t profileEntry = \"-----BEGIN PROFILE-----\\n\";\n\t\t \t // Profile name\n\t\t profileEntry = profileEntry +\"Name=\"+ profile.getWSSecurityProfileName() +\"\\n\";\n\t\t \t // Profile description\n\t\t profileEntry = profileEntry +\"Description=\" + profile.getWSSecurityProfileDescription() +\"\\n\";\n\t\t \t // Profile itself\n\t\t profileEntry = profileEntry +\"Profile=\" + profile.getWSSecurityProfileString();\n\t\t profileEntry = profileEntry + \"-----END PROFILE-----\\n\";\n\t\t \n\t\t \t userProfilesFileWriter.append(profileEntry);\n\t\t \t userProfilesFileWriter.newLine();\n\t\t \t \n\t\t \t // Also add to the list with user defined profiles \n\t\t \t wsSecurityProfiles_UserDefined.add(profile);\n\t\t \t wsSecurityProfileNames_UserDefined.add(profile.getWSSecurityProfileName());\n\t\t \t wsSecurityProfileDescriptions_UserDefined.add(profile.getWSSecurityProfileDescription());\n\t\t \t \n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t \t // Should not happen\n\t\t }\n\t\t catch(IOException ex){\n\t\t \t String exMessage = \"WSSecurityProfileManager failed to save the new user-defined profile.\";\n\t\t \t logger.error(exMessage, ex);\n\t\t \t throw new WSSecurityProfileManagerException(exMessage);\n\t\t }\n\t\t finally {\n\t\t \tif (userProfilesFileWriter != null)\n\t\t \t{\n\t\t \t\ttry {\n\t\t \t\t\tuserProfilesFileWriter.close();\n\t\t \t\t}\n\t\t \t\tcatch (IOException e) { \n\t\t \t//ignore\n\t\t \t\t}\n\t\t \t}\n\t\t } \n\t\t}\n\t}",
"public T getSelectedProfile(int Id);",
"public void setProfileImage(ProfileImage profileImage) {\n this.profileImage = profileImage;\n }",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n\n Toast.makeText(context, personName + \"\\n\" + email, Toast.LENGTH_SHORT).show();\n\n /*txtName.setText(personName);\n txtEmail.setText(email);*/\n\n // by default the profile url gives 50x50 px image only\n // we can replace the value with whatever dimension we want by\n // replacing sz=X\n /*personPhotoUrl = personPhotoUrl.substring(0,\n personPhotoUrl.length() - 2)\n + PROFILE_PIC_SIZE;\n\n new LoadProfileImage(imgProfilePic).execute(personPhotoUrl);*/\n\n } else {\n Toast.makeText(context,\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public boolean updateProfile(int Id,T deliEntry);",
"public void addDevs() {\n ProfileArrayList.add(new Profile(\"Windows\", \"Lead Developer, Web Developer\", \"https://winsub.kr\"));\n ProfileArrayList.add(new Profile(\"RecustomKR\", \"Web Developer\", \"https://winsub.kr\"));\n ProfileArrayList.add(new Profile(\"Kongjak\", \"Android Developer\", \"https://kongjak.com\"));\n ProfileArrayList.add(new Profile(\"천상의나무\", \"Telegram Bot Developer\", \"https://github.com/newpremium\"));\n }",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi.getCurrentPerson(mGoogleApiClient);\n String personId = currentPerson.getId();\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n\n String personBirthday = currentPerson.getBirthday();\n int personGender = currentPerson.getGender();\n String personNickname = currentPerson.getNickname();\n\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.i(TAG, \"Id: \" + personId + \", Name: \" + personName + \", plusProfile: \" + personGooglePlusProfile + \", email: \" + email + \", Image: \" + personPhotoUrl + \", Birthday: \" + personBirthday + \", Gender: \" + personGender + \", Nickname: \" + personNickname);\n\n // by default the profile url gives\n // 50x50 px\n // image only\n // we can replace the value with\n // whatever\n // dimension we want by\n // replacing sz=X\n personPhotoUrl = personPhotoUrl.substring(0, personPhotoUrl.length() - 2) + PROFILE_PIC_SIZE;\n\n Log.e(TAG, \"PhotoUrl : \" + personPhotoUrl);\n\n Log.i(TAG, \"Finally Set UserData\");\n Log.i(TAG, \"account : \" + email + \", Social_Id : \" + personId);\n\n StringBuffer sb = new StringBuffer();\n sb.append(\"Id : \").append(personId).append(\"\\n\");\n sb.append(\"Name : \").append(personName).append(\"\\n\");\n sb.append(\"plusProfile : \").append(personGooglePlusProfile).append(\"\\n\");\n sb.append(\"Email : \").append(email).append(\"\\n\");\n sb.append(\"PhotoUrl : \").append(personPhotoUrl).append(\"\\n\");\n sb.append(\"Birthday : \").append(personBirthday).append(\"\\n\");\n sb.append(\"Gender : \").append(personGender).append(\"\\n\");\n sb.append(\"Nickname : \").append(personNickname).append(\"\\n\");\n\n tv_info.setText(sb.toString());\n\n signOutFromGplus();\n\n /** set Google User Data **/\n RegisterData.name = personName;\n RegisterData.email = email;\n RegisterData.password = \"\";\n RegisterData.source = \"google\";\n RegisterData.image = personPhotoUrl;\n\n new UserLoginAsyncTask().execute();\n } else {\n Toast.makeText(mContext, \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void addProfile(Profile profile) {\n\t\tprofiles.put(profile.getProfileOwner(), profile.getProfileText());\n\t\tpersistentStorageAgent.writeThrough(profile);\n\t}",
"public String getUserProfileAction()throws Exception{\n\t\tMap<String, Object> response=null;\n\t\tString responseStr=\"\";\n\t\tString userName=getSession().get(\"username\").toString();\n\t\tresponse = getService().getUserMgmtService().getUserProfile(userName);\n\t\tresponseStr=response.get(\"username\").toString()+\"|\"+response.get(\"firstname\").toString()+\"|\"+response.get(\"lastname\").toString()+\"|\"+response.get(\"emailid\")+\"|\"+response.get(\"role\");\n\t\tgetAuthBean().setResponse(responseStr);\n\t\tgetSession().putAll(response);\n\t\tinputStream = new StringBufferInputStream(responseStr);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}",
"public void manageProfile(String username)\n {\n User tmpUser = getUser(username);\n Scanner input = new Scanner(System.in);\n String option = \"\";\n if(tmpUser.getRole().equals(\"Job Seeker\"))\n {\n JobSeeker tmpSeeker = getJobSeeker(username);\n tmpSeeker.displayJobSeeker();\n do\n {\n menu.manageSeekerProfile();\n option = input.nextLine();\n switch (option)\n {\n case \"1\":\n System.out.println(\"Please enter new name: \");\n tmpSeeker.setName(input.nextLine().trim());break;\n case \"2\":\n System.out.println(\"Please enter new email: \");\n tmpSeeker.setEmail(input.nextLine().trim());break;\n case \"3\":\n System.out.println(\"Please enter new gender: \");\n tmpSeeker.setGender(input.nextLine().trim());break;\n case \"4\":\n System.out.println(\"Please add new skill: \");\n String newSkill = input.nextLine().trim();\n tmpSeeker.addSkill(newSkill);break;\n case \"5\":\n break;\n default:\n System.out.println(\"Wrong input. Please input valid number(1-5)\");\n break;\n }\n }while(!option.equals(\"5\"));\n System.out.println(\"Your new profile is:\");\n tmpSeeker.displayJobSeeker();\n runOJSSJobSeeker(tmpSeeker);\n }\n \n if(tmpUser.getRole().equals(\"Job Recruiter\"))\n {\n JobRecruiter tmpRecruiter = getJobRecruiter(username);\n tmpRecruiter.displayJobRecruiter();\n do\n {\n menu.manageRecruiterProfile();\n option = input.nextLine();\n switch (option)\n {\n case \"1\":\n System.out.println(\"Please enter new name: \");\n tmpRecruiter.setName(input.nextLine().trim());break;\n case \"2\":\n System.out.println(\"Please enter new email: \");\n tmpRecruiter.setEmail(input.nextLine().trim());break;\n case \"3\":\n System.out.println(\"Please enter new gender: \");\n tmpRecruiter.setGender(input.nextLine().trim());break;\n case \"4\":\n System.out.println(\"Please enter new company name: \");\n tmpRecruiter.setCompanyName(input.nextLine().trim());break;\n case \"5\":\n System.out.println(\"Please enter new location: \");\n tmpRecruiter.setLocation(input.nextLine().trim());break;\n case \"6\":\n break;\n default:\n System.out.println(\"Wrong input. Please input valid number(1-6)\");\n break;\n }\n }while(!option.equals(\"6\"));\n System.out.println(\"Your new profile is:\");\n tmpRecruiter.displayJobRecruiter();\n runOJSSJobRecruiter(tmpRecruiter);\n }\n }",
"SecurityProfile securityProfile();",
"@Test\n public void testGeneratedProfileFields() {\n Profile p = getProfile(BASIC_PROFILE_PATH);\n assertNotNull(\"Profile uniqueId was null\", p.getUniqueId());\n assertNotNull(\"Profile display name was null\", p.getDisplayName());\n }",
"private void onProfileRefresh(Profile profile) {\n if (profile == null)\n throw new IllegalStateException(\"A profile cannot be null on successful profile refresh\");\n\n boolean ownProfile = userId.equals(Login.getUserId());\n\n profile.setUserId(userId);\n if (ownProfile)\n Login.setProfile(profile);\n\n profileImage.setImageBitmap(profile.getProfileImage());\n profile.setProfileImage(null); // save memory\n nameView.setText(profile.getName());\n String address = profile.getCity() + \", \" + profile.getState();\n addressView.setText(address);\n favouriteActivityView.setText(profile.getFavouriteSport());\n\n setupBioTextView(profile);\n\n onFriendsSync(profile);\n }",
"public void handleNavMenuViewProfile() {\n if (user != null) {\n view.launchProfilePage(user);\n }\n }",
"private void getProfile() {\n if (this.mLocalProfile.isEmpty()) {\n getDeviceType();\n getDeviceName();\n getScreenResolution();\n getScreenSize();\n }\n }",
"@Override\n\tpublic boolean updateProfile(String name, String address, String dob, String gender, String phone, String email,\n\t\t\t String status, int id) {\n\t\treturn false;\n\t}",
"@RequestMapping(\"/sc/profile\")\n\tpublic ModelAndView scprofile() {\n\t\tModelAndView mav = new ModelAndView();\n\t\tYourtaskuser yourtaskuser = authentication.getActiveUser();\n\t\tmav.addObject(\"yourtaskuser\", yourtaskuser);\n\t\tmav.addObject(\"scinfo\", scinfoDAO.findScinfoByPrimaryKey(yourtaskuser.getUserid()));\n\t\tmav.setViewName(\"profile/companyprofile.jsp\");\n\t\treturn mav;\n\t}",
"public void setApplicationProfile( String iApplicationProfile )\n {\n mApplicationProfile = iApplicationProfile;\n }",
"@Override\n public void onSuccess(Uri uri) {\n\n\n UserProfileChangeRequest profleUpdate = new UserProfileChangeRequest.Builder()\n .setDisplayName(name)\n .setPhotoUri(uri)\n .build();\n\n\n currentUser.updateProfile(profleUpdate)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n // user info updated successfully\n showMessage(\"Register Complete\");\n updateUI();\n }\n\n }\n });\n\n }",
"@Override\n public void onSuccess(Uri uri) {\n\n\n UserProfileChangeRequest profleUpdate = new UserProfileChangeRequest.Builder()\n .setDisplayName(name)\n .setPhotoUri(uri)\n .build();\n\n\n currentUser.updateProfile(profleUpdate)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n // user info updated successfully\n showMessage(\"Register Complete\");\n updateUI();\n }\n\n }\n });\n\n }",
"HumanProfile getUserProfile();",
"@Override\n public void onSuccess(Uri uri) {\n UserProfileChangeRequest profileUpdate = new UserProfileChangeRequest.Builder().setDisplayName(lname).setPhotoUri(uri).build();\n currentUser.updateProfile(profileUpdate).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n //user info updated succssfully\n saveInformation();\n showMessage(\"Register Complete\");\n updateUI();\n }\n }\n });\n }",
"@RequestMapping(value = {\"/profile\"})\n @PreAuthorize(\"hasRole('logon')\")\n public String showProfile(HttpServletRequest request, ModelMap model)\n {\n User currentUser = userService.getPrincipalUser();\n model.addAttribute(\"currentUser\", currentUser);\n return \"protected/profile\";\n }",
"public String fetchProfile() throws Exception {\n\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\t\tMerchantStore profile = null;\n\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tprofile = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\tString user = super.getPrincipal().getRemoteUser();\n\t\t\tMerchantUserInformation userInfo = mservice.getMerchantUserInformation(user);\n\n\t\t\t//MerchantUserInformation userInfo = mservice\n\t\t\t//\t\t.getMerchantUserInfo(merchantid.intValue());\n\n\t\t\tif (profile == null) {// should be created from the original\n\t\t\t\t\t\t\t\t\t// subscribtion process\n\t\t\t\tprofile = new MerchantStore();\n\t\t\t\tString serverName = super.getServletRequest().getServerName();\n\t\t\t\tint serverPort = super.getServletRequest().getServerPort();\n\t\t\t\t\n\t\t\t\tif(serverPort>0) {\n\t\t\t\t\tserverName = serverName + \":\" + String.valueOf(serverPort);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprofile.setDomainName(serverName);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tprofile.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\n\t\t\t}\n\n\t\t\tif (profile.getSupportedlanguages() != null\n\t\t\t\t\t&& !profile.getSupportedlanguages().equals(\"\")) {\n\n\t\t\t\tLanguageHelper.setLanguages(profile.getSupportedlanguages(),\n\t\t\t\t\t\tctx);\n\t\t\t\tMap m = ctx.getSupportedlang();\n\t\t\t\tif (m != null && m.size() > 0) {\n\t\t\t\t\tSet s = m.keySet();\n\t\t\t\t\tIterator i = s.iterator();\n\t\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\t\tString key = (String) i.next();\n\t\t\t\t\t\tsupportedLanguages.add(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// set at least the user country code\n\t\t\tif (profile.getCountry() == 0) {\n\t\t\t\tprofile.setCountry(userInfo.getUsercountrycode());\n\t\t\t}\n\t\t\t// set a default background\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(1);\n\t\t\t}\n\n\t\t\tif (profile.getStoreaddress() == null) {\n\t\t\t\tprofile.setStoreaddress(userInfo.getUseraddress());\n\t\t\t}\n\n\t\t\tif (profile.getStorecity() == null) {\n\t\t\t\tprofile.setStorecity(userInfo.getUsercity());\n\t\t\t}\n\n\t\t\tif (profile.getStorepostalcode() == null) {\n\t\t\t\tprofile.setStorepostalcode(userInfo.getUserpostalcode());\n\t\t\t}\n\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(new Integer(1));// set to white\n\t\t\t}\n\n\t\t\tprofile.setTemplateModule(profile.getTemplateModule());\n\n\t\t\tDate businessDate = profile.getInBusinessSince();\n\t\t\tif (businessDate == null) {\n\t\t\t\tbusinessDate = new Date();\n\t\t\t}\n\t\t\tthis.setInBusinessSince(DateUtil.formatDate(businessDate));\n\n\t\t\tsuper.prepareSelections(profile.getCountry());\n\n\t\t\tthis.merchantProfile = profile;\n\t\t\treturn SUCCESS;\n\n\t\t} catch (Exception e) {\n\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"errors.technical\"));\n\t\t\tlog.error(e);\n\t\t\treturn ERROR;\n\t\t}\n\t}",
"public static void setEnabledProfile(int profile) {\n if (enabledMenuItem != null) {\n enabledMenuItem.disableProfile();\n }\n\n // Also allow the signer tab to disable the signer\n if (profile == 0) {\n enabledMenuItem.disableProfile();\n enabledMenuItem = null;\n } else {\n\n // I don't want to keep a map of all the profiles. Just iterate through them until we find the right one\n for (MasherySignerMenuItem menuItem : menuItems) {\n if (menuItem.getProfileNumber() == profile) {\n menuItem.enableProfile();\n enabledMenuItem = menuItem;\n }\n }\n }\n }",
"public Profile getProfile() {\n return m_profile;\n }",
"@Override\n\tpublic boolean updateProfile(long profileId, Profile profile) {\n\t\treturn false;\n\t}",
"public void goToProfilePage() {\n\t\tUtil.element(userTab, driver).click();\n\t}",
"@GetMapping\n public String showProfilePage(Model model){\n user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n model.addAttribute(\"profileForm\",ProfileForm.createProfileFormFromUser(user));\n model.addAttribute(\"image\",user.getProfileImage() != null);\n\n return PROFILE_PAGE_NAME;\n }"
] | [
"0.7856495",
"0.7221694",
"0.71902215",
"0.7051014",
"0.7048084",
"0.6996332",
"0.69655216",
"0.6867734",
"0.6726497",
"0.6720092",
"0.6709087",
"0.66958755",
"0.6689558",
"0.6659086",
"0.66141886",
"0.65830034",
"0.6577054",
"0.65696186",
"0.6447423",
"0.6434671",
"0.6425355",
"0.64173615",
"0.64123064",
"0.64042705",
"0.63818645",
"0.63720864",
"0.637091",
"0.6360995",
"0.6359961",
"0.635377",
"0.6342626",
"0.6312425",
"0.6304792",
"0.6291068",
"0.62868375",
"0.6285102",
"0.6277395",
"0.62741",
"0.62694526",
"0.62659377",
"0.62591916",
"0.62571704",
"0.62388265",
"0.62367254",
"0.6209459",
"0.62037915",
"0.6202871",
"0.6201332",
"0.61969084",
"0.61812806",
"0.61760587",
"0.6175842",
"0.61597973",
"0.61530185",
"0.6152261",
"0.6149232",
"0.61491835",
"0.613965",
"0.6131645",
"0.6129225",
"0.6115943",
"0.61109966",
"0.61049277",
"0.6103848",
"0.6089948",
"0.60861343",
"0.60849184",
"0.6082823",
"0.60707927",
"0.60693556",
"0.60564476",
"0.6029659",
"0.6024169",
"0.6022307",
"0.60221356",
"0.60218877",
"0.6021347",
"0.6007544",
"0.6005845",
"0.6005725",
"0.60022247",
"0.59914917",
"0.59913605",
"0.5975086",
"0.59630144",
"0.59601796",
"0.59599644",
"0.5957315",
"0.59530395",
"0.5952625",
"0.59498864",
"0.59498864",
"0.5947415",
"0.5945612",
"0.5940703",
"0.5936131",
"0.5916567",
"0.59152585",
"0.5903131",
"0.59008425",
"0.5900585"
] | 0.0 | -1 |
Added by Ravi for Manage Profile | public boolean updateUserProfile(ParentTO parentTO) throws BusinessException {
return parentDAO.updateUserProfile(parentTO);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void editTheirProfile() {\n\t\t\n\t}",
"@Override\n\tpublic void showProfile() {\n\t\t\n\t}",
"public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}",
"public void saveProfileCreateData() {\r\n\r\n }",
"public void saveProfileEditData() {\r\n\r\n }",
"private void editProfile() {\n Log.d(TAG, \"Starting volley request to API\");\n try {\n String authority = String.format(Constants.AUTHORITY,\n Constants.TENANT,\n Constants.EDIT_PROFILE_POLICY);\n\n User currentUser = Helpers.getUserByPolicy(\n sampleApp.getUsers(),\n Constants.EDIT_PROFILE_POLICY);\n\n sampleApp.acquireToken(\n this,\n Constants.SCOPES.split(\"\\\\s+\"),\n currentUser,\n UiBehavior.SELECT_ACCOUNT,\n null,\n null,\n authority,\n getEditPolicyCallback());\n } catch(MsalClientException e) {\n /* No User */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n }\n\n }",
"public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}",
"void gotoEditProfile();",
"@Override\n public void setActiveProfile(String profileName) {\n }",
"H getProfile();",
"private void addProfile(ProfileInfo profileInfo)\r\n\t{\r\n\t\taddProfile(profileInfo.getProfileName(), \r\n\t\t\t\tprofileInfo.getUsername(), \r\n\t\t\t\tprofileInfo.getServer(),\r\n\t\t\t\tprofileInfo.getPort());\r\n\t}",
"public String getProfile();",
"@Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == PROFILE_SETTING) {\n IProfile newProfile = new ProfileDrawerItem().withNameShown(true).withName(\"Batman\").withEmail(\"[email protected]\").withIcon(getResources().getDrawable(R.drawable.profile5));\n if (headerResult.getProfiles() != null) {\n //we know that there are 2 setting elements. set the new profile above them ;)\n headerResult.addProfile(newProfile, headerResult.getProfiles().size() - 2);\n } else {\n headerResult.addProfiles(newProfile);\n }\n }\n\n //false if you have not consumed the event and it should close the drawer\n return false;\n }",
"String getProfile();",
"private void addProfile(String profileName, String username, String server, int port)\r\n\t{\r\n\t\tps.setValue(count + PROFILE, profileName + \",\" + username + \",\" + server + \",\" + port);\r\n\t}",
"@Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n Intent intent = null;\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_ADD_ACCOUNT) {\n intent = new Intent(MainActivity.this, AddAccountActivity.class);\n //TODO: Save profile\n //TODO: Create profile drawer item from saved profile and show it in UI\n /*\n IProfile profileNew = new ProfileDrawerItem()\n .withNameShown(true)\n .withName(\"New Profile\")\n .withEmail(\"[email protected]\")\n .withIcon(getResources().getDrawable(R.drawable.profile_new));\n\n if (accountHeader.getProfiles() != null) {\n //we know that there are 2 setting elements. set the new profile above them\n accountHeader.addProfile(profileNew, accountHeader.getProfiles().size() - 2);\n } else {\n accountHeader.addProfiles(profileNew);\n }\n */\n } else if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_MANAGE_ACCOUNT) {\n intent = new Intent(MainActivity.this, ManageAccountActivity.class);\n //TODO: update the UI\n }else if(profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_USER) {\n Toast.makeText(sApplicationContext, \"The User\", Toast.LENGTH_SHORT).show();\n SharedPreferences sp = sApplicationContext.getSharedPreferences(PREF_NAME, MODE_PRIVATE);\n String currentUserUUIDString = sp.getString(PREF_CURRENT_USER_UUID, null);\n if(((UserProfile)profile).getId().toString().equalsIgnoreCase(currentUserUUIDString)){\n Toast.makeText(sApplicationContext, \"SAME User\", Toast.LENGTH_SHORT).show();\n //TODO:\n }else{\n Toast.makeText(sApplicationContext, \"Different User\", Toast.LENGTH_SHORT).show();\n //TODO:\n SharedPreferences.Editor spe = sp.edit();\n spe.putString(PREF_CURRENT_USER_UUID, ((UserProfile)profile).getId().toString());\n spe.commit();\n\n UpdateContentUI();\n }\n }\n\n if(intent != null){\n MainActivity.this.startActivity(intent);\n }\n\n //false if you have not consumed the event And it should close the drawer\n return false;\n }",
"public void setProfile(Profile profile) {\n _profile = profile;\n }",
"@Override\n public void Mesibo_onProfileUpdated(MesiboProfile profile) {\n toast(profile.getName() + \" has updated profile\");\n }",
"public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}",
"private void callUpdateProfile() {\n String userStr = CustomSharedPreferences.getPreferences(Constants.PREF_USER_LOGGED_OBJECT, \"\");\n Gson gson = new Gson();\n User user = gson.fromJson(userStr, User.class);\n LogUtil.d(\"QuyNT3\", \"Stored profile:\" + userStr +\"|\" + (user != null));\n //mNameEdt.setText(user.getName());\n String id = user.getId();\n String oldPassword = mOldPassEdt.getText().toString();\n String newPassword = mNewPassEdt.getText().toString();\n String confirmPassword = mConfirmPassEdt.getText().toString();\n String fullName = mNameEdt.getText().toString();\n String profileImage = user.getProfile_image();\n UpdateUserProfileRequest request = new UpdateUserProfileRequest(id, fullName, profileImage,\n oldPassword, newPassword, confirmPassword);\n request.setListener(callBackEvent);\n new Thread(request).start();\n }",
"public int getProfile_id() {\n return profileID;\n }",
"public Profile() {\n initComponents();\n AutoID();\n member_table();\n \n }",
"@Override\n\tpublic void updateUserProfileInfo(String name) throws Exception {\n\n\t}",
"public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }",
"@Override\r\n public int addProfile(Profile newProfile) {\r\n return profileDAO.addProfile(newProfile);\r\n }",
"public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}",
"public void showProfile() {\r\n\t\tprofile.setVisible(true);\r\n\t}",
"public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }",
"private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on cancel or submit\n startActivity(intent);\n }",
"@RequestMapping(\"/su/profile\")\n\tpublic ModelAndView suprofile() {\n\t\tModelAndView mav = new ModelAndView();\n\t\tYourtaskuser yourtaskuser = authentication.getActiveUser();\n\t\tmav.addObject(\"yourtaskuser\", yourtaskuser);\n\t\tmav.addObject(\"suinfo\", suinfoDAO.findSuinfoByPrimaryKey(yourtaskuser.getUserid()));\n\t\tmav.setViewName(\"profile/userprofile.jsp\");\n\t\treturn mav;\n\t}",
"private void addProfile(String inputName) {\n \tif (! inputName.equals(\"\")) {\n\t\t\t///Creates a new profile and adds it to the database if the inputName is not found in the database\n \t\tif (database.containsProfile(inputName)) {\n \t\t\tlookUp(inputName);\n \t\t\tcanvas.showMessage(\"Profile with name \" + inputName + \" already exist.\");\n \t\t\treturn;\n \t\t}\n\t\t\tprofile = new FacePamphletProfile (inputName);\n\t\t\tdatabase.addProfile(profile);\n\t\t\tcurrentProfile = database.getProfile(inputName);\n \t\tcanvas.displayProfile(currentProfile);\n\t\t\tcanvas.showMessage(\"New profile created.\");\n\t\t\t\n \t}\n\t\t\n\t}",
"void gotoEditProfile(String fbId);",
"public String getProfile() {\n return profile;\n }",
"public void openProfile(){\n\t\t\n\t\tclickElement(profile_L, driver);\n\t}",
"boolean hasProfile();",
"private void profileUpdate(){\n File out = new File ( Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\"\n + Setting.APP_FOLDER + \"/\" + \"profile\");\n if (!out.exists()){\n try {\n ColdStart.createProfile();\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else{\n HandlerThread ht = new HandlerThread(\"UpdateProfile\", android.os.Process.THREAD_PRIORITY_BACKGROUND);\n ht.start();\n Handler h = new Handler(ht.getLooper());\n h.post(new Runnable() {\n @Override\n public void run() {\n ColdStart.updateProfile();\n }\n });\n\n }\n }",
"@Override\n public void onChanged(@Nullable final Profile profile) {\n userProfile = profile;\n }",
"TasteProfile.UserProfile getUserProfile (String user_id);",
"@Override\n\tpublic long createProfile(Profile profile) {\n\t\treturn 0;\n\t}",
"public void testProfileManagementUI(String profileConfig) throws Exception {\r\n selenium.click(\"link=Profile Management\");\r\n selenium.waitForPageToLoad(\"30000\");\r\n\t\tassertTrue(selenium.isTextPresent(\"Profile Configurations\"));\r\n\t\tassertTrue(selenium.isElementPresent(\"link=Add New Profile Configuration\"));\r\n\t\tassertTrue(selenium.isTextPresent(\"Available Profile Configurations\"));\r\n\t\tassertEquals(\"default\", selenium.getTable(\"//div[@id='workArea']/table.1.0\"));\r\n\t\tassertEquals(\"Delete\", selenium.getTable(\"//div[@id='workArea']/table.1.1\"));\r\n\r\n //Click on the Claim URL for http://schemas.xmlsoap.org/ws/2005/05/identity\r\n assertTrue(selenium.isElementPresent(\"link=Add New Profile Configuration\"));\r\n selenium.click(\"link=\"+ profileConfig );\r\n\t\tselenium.waitForPageToLoad(\"30000\");\r\n assertTrue(selenium.isTextPresent(\"Profile Configurations for \"+ profileConfig));\r\n\t\tselenium.click(\"//input[@value='Cancel']\");\r\n\t\tselenium.waitForPageToLoad(\"30000\");\r\n }",
"private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }",
"public void clickOnProfile() {\n\t\telement(\"link_profile\").click();\n\t\tlogMessage(\"User clicks on Profile on left navigation bar\");\n\t}",
"private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }",
"@Override\n\tprotected void setProfile(List<Step> arg0, List<Step> arg1) {\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\n if (e.getSource() == add && ! tfName.getText().equals(\"\")){\n String name = tfName.getText();\n if (profileDB.containsProfile(name)){\n canvas.showMessage(\"A profile with the name \" + name + \" already exists.\");\n } else {\n FacePamphletProfile profile = new FacePamphletProfile(tfName.getText());\n profileDB.addProfile(profile);\n canvas.displayProfile(profileDB.getProfile(name));\n canvas.showMessage(\"New profile with the name \" + name + \" created.\");\n currentProfile = profile;\n }\n }\n if (e.getSource() == delete && ! tfName.getText().equals(\"\")) {\n String name = tfName.getText();\n if (! profileDB.containsProfile(name)){\n canvas.showMessage(\"A profile with the name \" + name + \" does not exist.\");\n } else {\n profileDB.deleteProfile(name);\n canvas.showMessage(\"Profile of \" + name + \" deleted.\");\n currentProfile = null;\n }\n }\n\n if (e.getSource() == lookUp && !tfName.getText().equals(\"\")) {\n String name = tfName.getText();\n if (profileDB.containsProfile(name)){\n canvas.displayProfile(profileDB.getProfile(name));\n canvas.showMessage(\"Displaying \" + name);\n currentProfile = profileDB.getProfile(name);\n } else {\n canvas.showMessage(\"A profile with the mane \" + name + \" does not exist\");\n currentProfile = null;\n }\n }\n\n if ((e.getSource() == changeStatus || e.getSource() == tfChangeStatus) && ! tfChangeStatus.getText().equals(\"\")){\n if (currentProfile != null){\n String status = tfChangeStatus.getText();\n profileDB.getProfile(currentProfile.getName()).setStatus(status);\n canvas.displayProfile(profileDB.getProfile(currentProfile.getName()));\n canvas.showMessage(\"Status updated.\");\n } else {\n canvas.showMessage(\"Please select a profile to change status.\");\n }\n }\n\n if ((e.getSource() == changePicture || e.getSource() == tfChangePicture) && ! tfChangePicture.getText().equals(\"\")){\n if (currentProfile != null){\n String fileName = tfChangePicture.getText();\n GImage image;\n try {\n image = new GImage(fileName);\n profileDB.getProfile(currentProfile.getName()).setImage(image);\n canvas.displayProfile(profileDB.getProfile(currentProfile.getName()));\n canvas.showMessage(\"Picture updated.\");\n } catch (ErrorException ex){\n canvas.showMessage(\"Unable to open image file: \" + fileName);\n }\n } else {\n canvas.showMessage(\"Please select a profile to change picture.\");\n }\n }\n\n if ((e.getSource() == addFriend || e.getSource() == tfAddFriend) && ! tfAddFriend.getText().equals(\"\")) {\n if (currentProfile != null){\n String friendName = tfAddFriend.getText();\n if (profileDB.containsProfile(friendName)){\n if (! currentProfile.toString().contains(friendName)){\n profileDB.getProfile(currentProfile.getName()).addFriend(friendName);\n profileDB.getProfile(friendName).addFriend(currentProfile.getName());\n canvas.displayProfile(profileDB.getProfile(currentProfile.getName()));\n canvas.showMessage(friendName + \" added as a friend.\");\n } else {\n canvas.showMessage(currentProfile.getName() + \" already has \" + friendName + \" as a friend.\");\n }\n } else {\n canvas.showMessage(friendName + \" does not exist.\");\n }\n } else {\n canvas.showMessage(\"Please select a profile to add friend.\");\n }\n }\n\t}",
"@Override\r\n public void updateProfile(Profile newProfile, Profile oldProfile) {\r\n profileDAO.updateProfile(oldProfile, newProfile);\r\n }",
"public void setProfile( ProjectProfileBO pProfile )\r\n {\r\n mProfile = pProfile;\r\n }",
"@Override\n\tpublic void showBookProfile() {\n\t\t\n\t}",
"public void createEditProfileSession(Profile profile) {\n editor.putString(KEY_EMAIL, profile.getMail());\n editor.putString(KEY_NAME, profile.getName());\n editor.putString(KEY_NUMBER,profile.getMobile());\n editor.commit();\n }",
"public void setProfileImg() {\n }",
"public interface ProfileType\n {\n /**\n * Parent profile type\n */\n String ADMIN = \"0\";\n\n /**\n * remeber profile type\n */\n String GENERAL = \"1\";\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_profile);\n toolbar_profile = findViewById(R.id.pro_toolbar);\n setTitle(\"My Profile\");\n setSupportActionBar(toolbar_profile);\n\n proname = findViewById(R.id.profile_name);\n profoi = findViewById(R.id.profile_foi);\n proorg = findViewById(R.id.profile_orga);\n\n currentId=String.valueOf(Settings.Secure.getString(getContentResolver(),Settings.Secure.ANDROID_ID));\n //load user information\n userInfo();\n editProfile = findViewById(R.id.editprofile);\n editProfile.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(Profile.this,Profile_Edit.class));\n }\n });\n }",
"public WebElement profileSetUpTab() {\n\t\treturn getElementfluent(By.xpath(\"//menuitem[contains(text(),'Profile')]\"));\n\t}",
"@Override\n\t\tpublic void onUserProfileUpdate(User arg0) {\n\t\t\t\n\t\t}",
"@RequestMapping(value=\"/ExternalUsers/EditProfile\", method = RequestMethod.GET)\n\t\tpublic String editProfile(ModelMap model) {\n\t\t\t// redirect to the editProfile.jsp\n\t\t\treturn \"/ExternalUsers/EditProfile\";\n\t\t\t\n\t\t}",
"private void getUserProfile() {\n mFirstname.setText(\"FirstName: \"+userPreferences.getAgentFirstName());\n mLastname.setText(\"LastName: \"+userPreferences.getAgentLastName());\n\n\n Log.i(\"username\",userPreferences.getAgentUsername());\n if(userPreferences.getAgentUsername()==null){\n mUsernameTxt.setText(\"\");\n }else if(userPreferences.getAgentUsername().equals(\"null\")){\n mUsernameTxt.setText(\"\");\n }else{\n mUsernameTxt.setText(userPreferences.getAgentUsername());\n }\n\n mEmail.setText(\"Email: \"+userPreferences.getAgentEmail());\n mPhoneNum.setText(\"Phone No: \"+userPreferences.getAgentPhoneNUM());\n\n\n /* mPinProfileTxt.setText(\"Pin: \"+userPreferences.getPin());\n mBank.setText(\"Bank Name: \"+userPreferences.getBank());\n mAccountName.setText(\"Acct Name: \"+userPreferences.getAccountName());\n mAccountNumber.setText(\"Acct No: \"+userPreferences.getAccountNumber());*/\n\n mProgressBarProfile.setVisibility(View.VISIBLE);\n if(personal_img_url==null) {\n Glide.with(this).load(userPreferences.getAgentProfileImg()).apply(new RequestOptions().fitCenter().circleCrop()).into(mProfilePhoto);\n }else{\n Glide.with(this).load(personal_img_url).apply(new RequestOptions().fitCenter().circleCrop()).into(mProfilePhoto);\n\n }\n mProgressBarProfile.setVisibility(View.GONE);\n }",
"private void updateStudentProfileInfo() {\n\t\t\n\t\tstudent.setLastName(sLastNameTF.getText());\n\t\tstudent.setFirstName(sFirstNameTF.getText());\n\t\tstudent.setSchoolName(sSchoolNameTF.getText());\n\t\t\n\t\t//Update Student profile information in database\n\t\t\n\t}",
"@Override\n public void loadProfileUserData() {\n mProfilePresenter.loadProfileUserData();\n }",
"@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);",
"private void composeProfile() {\n if(NetworkUtils.isConnectedToNetwork((ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE)) == false) {\n Toast.makeText(this.getApplicationContext(), \"Please check your network connection!\", Toast.LENGTH_LONG).show();\n return;\n }\n Intent i = new Intent(this, ProfileActivity.class);\n i.putExtra(\"screen_name\", (String) null);\n startActivity(i);\n }",
"public Profile getProfile() {\n return _profile;\n }",
"@Override\n protected void onCurrentProfileChanged(Profile profile, Profile profile2) {\n Intent appPrincipal = new Intent(MainActivity.this,ActividadPrincipal.class);\n //appPrincipal.putExtra(\"NOMBRE\", nombre);\n mProfileTracker.stopTracking();\n startActivity(appPrincipal);\n finish();\n }",
"public Boolean getProfile()\n {\n return profile;\n }",
"public void propertyChange(PropertyChangeEvent evt) {\n if (ProfilesFactory.PROP_PROFILE_ADDED.equals(evt.getPropertyName())) {\n String profileName = (String) evt.getNewValue();\n Profile profile = ProfilesFactory.getDefault().getProfile(profileName);\n if (ProfilesFactory.getDefault().isOSCompatibleProfile(profileName)) {\n registerProfile(profile);\n }\n } else if (ProfilesFactory.PROP_PROFILE_REMOVED.equals(evt.getPropertyName())) {\n String profileName = (String) evt.getOldValue();\n variablesByProfileNames.remove(profileName);\n displayTypesByProfileNames.remove(profileName);\n commandsToFillByProfileNames.remove(profileName);\n }\n }",
"public void removeProfile(){\n Database db = Database.getInstance(context);\n db.getWritableDatabase().delete(PROFILE_TABLE, null, null);\n }",
"@RequestMapping(\"/admin/profile\")\n\tpublic ModelAndView adminprofile() {\n\t\tModelAndView mav = new ModelAndView();\n\t\tYourtaskuser yourtaskuser = authentication.getActiveUser();\n\t\tmav.addObject(\"yourtaskuser\", yourtaskuser);\n\t\tmav.setViewName(\"profile/adminprofile.jsp\");\n\t\treturn mav;\n\t}",
"public ProjectProfileBO getProfile()\r\n {\r\n return mProfile;\r\n }",
"@Override\r\n\tpublic int createProfileDAO() {\n\t\treturn 1;\r\n\t}",
"@Override\n public void checkProfileUserData() {\n mProfilePresenter.checkProfileUserData();\n }",
"public void updateProfile(Profile newProfile) throws Exception {\n // If the two profiles are exactly the same, an update isn't required\n if (this.equals(newProfile))\n return;\n\n String logString = newProfile.getImei() + \": \";\n // Check all attributes, updating them whenever they differ\n if (!softwareVersion.equals(newProfile.getSoftwareVersion())) {\n ProfileDBManager.updateSoftwareVersion(this.imei, newProfile.getSoftwareVersion());\n logString = logString + \"Old SW Version - \" + softwareVersion + \" | New SW Version - \" + newProfile.getSoftwareVersion() + \".\";\n }\n\n if (!simOperator.equals(newProfile.getSimOperator())) {\n ProfileDBManager.updateSimOperator(this.imei, newProfile.getSimOperator());\n logString = logString + \"Old SIM Operator - \" + simOperator + \" | New SIM Operator - \" + newProfile.getSimOperator() + \".\";\n }\n\n if (!simOperatorName.equals(newProfile.getSimOperatorName())) {\n ProfileDBManager.updateSimOperatorName(this.imei, newProfile.getSimOperatorName());\n logString = logString + \"Old SIM Operator Name - \" + simOperatorName + \" | New SIM Operator Name - \" + newProfile.getSimOperatorName() + \".\";\n }\n\n if(!simSerialNumber.equals(newProfile.getSimSerialNumber())) {\n ProfileDBManager.updateSimSerialNumber(this.imei, newProfile.getSimSerialNumber());\n logString = logString + \"Old SIM Serial Number - \" + simSerialNumber + \" | New SIM Serial Number - \" + newProfile.getSimSerialNumber() + \".\";\n }\n\n if(!simCountryIso.equals(newProfile.getSimCountryIso())) {\n ProfileDBManager.updateSimCountryIso(this.imei, newProfile.getSimCountryIso());\n logString = logString + \"Old SIM Country ISO - \" + simCountryIso + \" | New SIM Country ISO - \" + newProfile.getSimCountryIso() + \".\";\n }\n\n if(!imsiNumber.equals(newProfile.getImsiNumber())) {\n ProfileDBManager.updateImsiNumber(this.imei, newProfile.getImsiNumber());\n logString = logString + \"Old IMSI Number - \" + imsiNumber + \" | New IMSI Number - \" + newProfile.getImsiNumber() + \".\";\n }\n\n if (!ipAddress.equals(newProfile.getIpAddress())) {\n ProfileDBManager.updateIpAddress(this.imei, newProfile.getIpAddress());\n logString = logString + \"Old IP Address Location - \" + ipAddress + \" | New IP Address Location - \" + newProfile.getIpAddress() + \".\";\n }\n\n if(!osVersion.equals(newProfile.getOsVersion())) {\n ProfileDBManager.updateOsVersion(this.imei, newProfile.getOsVersion());\n logString = logString + \"Old OS Version - \" + osVersion + \" | New OS Version - \" + newProfile.getOsVersion() + \".\";\n }\n\n if(!sdkVersion.equals(newProfile.getSdkVersion())) {\n ProfileDBManager.updateSdkVersion(this.imei, newProfile.getSdkVersion());\n logString = logString + \"Old SDK Version - \" + sdkVersion + \" | New SDK Version - \" + newProfile.getSdkVersion() + \".\";\n }\n\n if(!deviceName.equals(newProfile.getDeviceName())) {\n ProfileDBManager.updateDeviceName(this.imei, newProfile.getDeviceName());\n logString = logString + \"Old Device Name - \" + deviceName + \" | New Device Name - \" + newProfile.getDeviceName() + \".\";\n }\n\n if(!keyboardLanguage.equals(newProfile.getKeyboardLanguage())) {\n ProfileDBManager.updateKeyboardLanguage(this.imei, newProfile.getKeyboardLanguage());\n logString = logString + \"Old Keyboard Language - \" + keyboardLanguage + \" | New Keyboard Language - \" + newProfile.getKeyboardLanguage() + \".\";\n }\n\n if(!networksSSID.equals(newProfile.getNetworksSSID())) {\n ProfileDBManager.updateNetworksSSID(this.imei, newProfile.getNetworksSSID());\n logString = logString + \"Old Networks - \" + networksSSID.toString() + \" | New Networks - \" + newProfile.getNetworksSSID().toString() + \".\";\n }\n\n if(!googleAccounts.equals(newProfile.getGoogleAccounts())) {\n ProfileDBManager.updateGoogleAccounts(this.imei, newProfile.getGoogleAccounts());\n logString = logString + \"Old Google Accounts - \" + googleAccounts.toString() + \" | New Google Accounts - \" + newProfile.getGoogleAccounts().toString() + \".\";\n }\n\n if(!memorizedAccounts.equals(newProfile.getMemorizedAccounts())) {\n ProfileDBManager.updateMemorizedAccounts(this.imei, newProfile.getMemorizedAccounts());\n logString = logString + \"Old Accounts - \" + memorizedAccounts.toString() + \" | New Accounts - \" + newProfile.getMemorizedAccounts().toString() + \".\";\n }\n\n if(!inputMethods.equals(newProfile.getInputMethods())) {\n ProfileDBManager.updateInputMethods(this.imei, newProfile.getInputMethods());\n logString = logString + \"Old Input Methods - \" + inputMethods.toString() + \" | New Input Methods - \" + newProfile.getInputMethods().toString() + \".\";\n }\n\n if(!installedApplications.equals(newProfile.getInstalledApplications())) {\n ProfileDBManager.updateInstalledApplications(this.imei, newProfile.getInstalledApplications());\n logString = logString + \"Old Applications - \" + installedApplications.toString() + \" | New Applications - \" + newProfile.getInstalledApplications().toString() + \".\";\n }\n\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(logString);\n System.out.println(logString);\n }",
"private void gotoUserProfile() {\n Intent launchUserProfile = new Intent(this, Profile.class);\n startActivity(launchUserProfile);\n }",
"void EditWorkerProfileUser(String uid, boolean isWorker, List<Skill> skills);",
"public void saveProfile(WSSecurityProfile profile) throws WSSecurityProfileManagerException{\n \t\n\t\tsynchronized(profilesFile_UserDefined){\n\t\t\t // If the file does not exist yet\n\t\t if (!profilesFile_UserDefined.exists()){\n\t\t \t//Create a new file\n\t\t \t try {\n\t\t \t\tprofilesFile_UserDefined.createNewFile();\n\t\t \t }\n\t\t \t catch(IOException ex)\n\t\t \t {\n\t\t \t\t String exMessage = \"WSSecurityProfileManager failed to create a file for user-defined profiles.\";\n\t\t \t\t logger.error(exMessage, ex);\n\t\t \t\t throw new WSSecurityProfileManagerException(exMessage);\n\t\t \t }\n\t\t }\n\n\t\t BufferedWriter userProfilesFileWriter = null;\n\t\t try{\n\t\t \t// Open the file for writing (i.e. appending)\n\t\t \t userProfilesFileWriter = new BufferedWriter((new FileWriter(profilesFile_UserDefined, true)));\n\t\t \t // Add a new profile entry\n\t\t String profileEntry ;\n\t\t profileEntry = \"-----BEGIN PROFILE-----\\n\";\n\t\t \t // Profile name\n\t\t profileEntry = profileEntry +\"Name=\"+ profile.getWSSecurityProfileName() +\"\\n\";\n\t\t \t // Profile description\n\t\t profileEntry = profileEntry +\"Description=\" + profile.getWSSecurityProfileDescription() +\"\\n\";\n\t\t \t // Profile itself\n\t\t profileEntry = profileEntry +\"Profile=\" + profile.getWSSecurityProfileString();\n\t\t profileEntry = profileEntry + \"-----END PROFILE-----\\n\";\n\t\t \n\t\t \t userProfilesFileWriter.append(profileEntry);\n\t\t \t userProfilesFileWriter.newLine();\n\t\t \t \n\t\t \t // Also add to the list with user defined profiles \n\t\t \t wsSecurityProfiles_UserDefined.add(profile);\n\t\t \t wsSecurityProfileNames_UserDefined.add(profile.getWSSecurityProfileName());\n\t\t \t wsSecurityProfileDescriptions_UserDefined.add(profile.getWSSecurityProfileDescription());\n\t\t \t \n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t \t // Should not happen\n\t\t }\n\t\t catch(IOException ex){\n\t\t \t String exMessage = \"WSSecurityProfileManager failed to save the new user-defined profile.\";\n\t\t \t logger.error(exMessage, ex);\n\t\t \t throw new WSSecurityProfileManagerException(exMessage);\n\t\t }\n\t\t finally {\n\t\t \tif (userProfilesFileWriter != null)\n\t\t \t{\n\t\t \t\ttry {\n\t\t \t\t\tuserProfilesFileWriter.close();\n\t\t \t\t}\n\t\t \t\tcatch (IOException e) { \n\t\t \t//ignore\n\t\t \t\t}\n\t\t \t}\n\t\t } \n\t\t}\n\t}",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n\n Toast.makeText(context, personName + \"\\n\" + email, Toast.LENGTH_SHORT).show();\n\n /*txtName.setText(personName);\n txtEmail.setText(email);*/\n\n // by default the profile url gives 50x50 px image only\n // we can replace the value with whatever dimension we want by\n // replacing sz=X\n /*personPhotoUrl = personPhotoUrl.substring(0,\n personPhotoUrl.length() - 2)\n + PROFILE_PIC_SIZE;\n\n new LoadProfileImage(imgProfilePic).execute(personPhotoUrl);*/\n\n } else {\n Toast.makeText(context,\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void setProfileImage(ProfileImage profileImage) {\n this.profileImage = profileImage;\n }",
"public T getSelectedProfile(int Id);",
"public boolean updateProfile(int Id,T deliEntry);",
"public void addDevs() {\n ProfileArrayList.add(new Profile(\"Windows\", \"Lead Developer, Web Developer\", \"https://winsub.kr\"));\n ProfileArrayList.add(new Profile(\"RecustomKR\", \"Web Developer\", \"https://winsub.kr\"));\n ProfileArrayList.add(new Profile(\"Kongjak\", \"Android Developer\", \"https://kongjak.com\"));\n ProfileArrayList.add(new Profile(\"천상의나무\", \"Telegram Bot Developer\", \"https://github.com/newpremium\"));\n }",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi.getCurrentPerson(mGoogleApiClient);\n String personId = currentPerson.getId();\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n\n String personBirthday = currentPerson.getBirthday();\n int personGender = currentPerson.getGender();\n String personNickname = currentPerson.getNickname();\n\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.i(TAG, \"Id: \" + personId + \", Name: \" + personName + \", plusProfile: \" + personGooglePlusProfile + \", email: \" + email + \", Image: \" + personPhotoUrl + \", Birthday: \" + personBirthday + \", Gender: \" + personGender + \", Nickname: \" + personNickname);\n\n // by default the profile url gives\n // 50x50 px\n // image only\n // we can replace the value with\n // whatever\n // dimension we want by\n // replacing sz=X\n personPhotoUrl = personPhotoUrl.substring(0, personPhotoUrl.length() - 2) + PROFILE_PIC_SIZE;\n\n Log.e(TAG, \"PhotoUrl : \" + personPhotoUrl);\n\n Log.i(TAG, \"Finally Set UserData\");\n Log.i(TAG, \"account : \" + email + \", Social_Id : \" + personId);\n\n StringBuffer sb = new StringBuffer();\n sb.append(\"Id : \").append(personId).append(\"\\n\");\n sb.append(\"Name : \").append(personName).append(\"\\n\");\n sb.append(\"plusProfile : \").append(personGooglePlusProfile).append(\"\\n\");\n sb.append(\"Email : \").append(email).append(\"\\n\");\n sb.append(\"PhotoUrl : \").append(personPhotoUrl).append(\"\\n\");\n sb.append(\"Birthday : \").append(personBirthday).append(\"\\n\");\n sb.append(\"Gender : \").append(personGender).append(\"\\n\");\n sb.append(\"Nickname : \").append(personNickname).append(\"\\n\");\n\n tv_info.setText(sb.toString());\n\n signOutFromGplus();\n\n /** set Google User Data **/\n RegisterData.name = personName;\n RegisterData.email = email;\n RegisterData.password = \"\";\n RegisterData.source = \"google\";\n RegisterData.image = personPhotoUrl;\n\n new UserLoginAsyncTask().execute();\n } else {\n Toast.makeText(mContext, \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void addProfile(Profile profile) {\n\t\tprofiles.put(profile.getProfileOwner(), profile.getProfileText());\n\t\tpersistentStorageAgent.writeThrough(profile);\n\t}",
"public String getUserProfileAction()throws Exception{\n\t\tMap<String, Object> response=null;\n\t\tString responseStr=\"\";\n\t\tString userName=getSession().get(\"username\").toString();\n\t\tresponse = getService().getUserMgmtService().getUserProfile(userName);\n\t\tresponseStr=response.get(\"username\").toString()+\"|\"+response.get(\"firstname\").toString()+\"|\"+response.get(\"lastname\").toString()+\"|\"+response.get(\"emailid\")+\"|\"+response.get(\"role\");\n\t\tgetAuthBean().setResponse(responseStr);\n\t\tgetSession().putAll(response);\n\t\tinputStream = new StringBufferInputStream(responseStr);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}",
"SecurityProfile securityProfile();",
"public void manageProfile(String username)\n {\n User tmpUser = getUser(username);\n Scanner input = new Scanner(System.in);\n String option = \"\";\n if(tmpUser.getRole().equals(\"Job Seeker\"))\n {\n JobSeeker tmpSeeker = getJobSeeker(username);\n tmpSeeker.displayJobSeeker();\n do\n {\n menu.manageSeekerProfile();\n option = input.nextLine();\n switch (option)\n {\n case \"1\":\n System.out.println(\"Please enter new name: \");\n tmpSeeker.setName(input.nextLine().trim());break;\n case \"2\":\n System.out.println(\"Please enter new email: \");\n tmpSeeker.setEmail(input.nextLine().trim());break;\n case \"3\":\n System.out.println(\"Please enter new gender: \");\n tmpSeeker.setGender(input.nextLine().trim());break;\n case \"4\":\n System.out.println(\"Please add new skill: \");\n String newSkill = input.nextLine().trim();\n tmpSeeker.addSkill(newSkill);break;\n case \"5\":\n break;\n default:\n System.out.println(\"Wrong input. Please input valid number(1-5)\");\n break;\n }\n }while(!option.equals(\"5\"));\n System.out.println(\"Your new profile is:\");\n tmpSeeker.displayJobSeeker();\n runOJSSJobSeeker(tmpSeeker);\n }\n \n if(tmpUser.getRole().equals(\"Job Recruiter\"))\n {\n JobRecruiter tmpRecruiter = getJobRecruiter(username);\n tmpRecruiter.displayJobRecruiter();\n do\n {\n menu.manageRecruiterProfile();\n option = input.nextLine();\n switch (option)\n {\n case \"1\":\n System.out.println(\"Please enter new name: \");\n tmpRecruiter.setName(input.nextLine().trim());break;\n case \"2\":\n System.out.println(\"Please enter new email: \");\n tmpRecruiter.setEmail(input.nextLine().trim());break;\n case \"3\":\n System.out.println(\"Please enter new gender: \");\n tmpRecruiter.setGender(input.nextLine().trim());break;\n case \"4\":\n System.out.println(\"Please enter new company name: \");\n tmpRecruiter.setCompanyName(input.nextLine().trim());break;\n case \"5\":\n System.out.println(\"Please enter new location: \");\n tmpRecruiter.setLocation(input.nextLine().trim());break;\n case \"6\":\n break;\n default:\n System.out.println(\"Wrong input. Please input valid number(1-6)\");\n break;\n }\n }while(!option.equals(\"6\"));\n System.out.println(\"Your new profile is:\");\n tmpRecruiter.displayJobRecruiter();\n runOJSSJobRecruiter(tmpRecruiter);\n }\n }",
"@Test\n public void testGeneratedProfileFields() {\n Profile p = getProfile(BASIC_PROFILE_PATH);\n assertNotNull(\"Profile uniqueId was null\", p.getUniqueId());\n assertNotNull(\"Profile display name was null\", p.getDisplayName());\n }",
"private void onProfileRefresh(Profile profile) {\n if (profile == null)\n throw new IllegalStateException(\"A profile cannot be null on successful profile refresh\");\n\n boolean ownProfile = userId.equals(Login.getUserId());\n\n profile.setUserId(userId);\n if (ownProfile)\n Login.setProfile(profile);\n\n profileImage.setImageBitmap(profile.getProfileImage());\n profile.setProfileImage(null); // save memory\n nameView.setText(profile.getName());\n String address = profile.getCity() + \", \" + profile.getState();\n addressView.setText(address);\n favouriteActivityView.setText(profile.getFavouriteSport());\n\n setupBioTextView(profile);\n\n onFriendsSync(profile);\n }",
"private void getProfile() {\n if (this.mLocalProfile.isEmpty()) {\n getDeviceType();\n getDeviceName();\n getScreenResolution();\n getScreenSize();\n }\n }",
"public void handleNavMenuViewProfile() {\n if (user != null) {\n view.launchProfilePage(user);\n }\n }",
"@Override\n\tpublic boolean updateProfile(String name, String address, String dob, String gender, String phone, String email,\n\t\t\t String status, int id) {\n\t\treturn false;\n\t}",
"@RequestMapping(\"/sc/profile\")\n\tpublic ModelAndView scprofile() {\n\t\tModelAndView mav = new ModelAndView();\n\t\tYourtaskuser yourtaskuser = authentication.getActiveUser();\n\t\tmav.addObject(\"yourtaskuser\", yourtaskuser);\n\t\tmav.addObject(\"scinfo\", scinfoDAO.findScinfoByPrimaryKey(yourtaskuser.getUserid()));\n\t\tmav.setViewName(\"profile/companyprofile.jsp\");\n\t\treturn mav;\n\t}",
"public void setApplicationProfile( String iApplicationProfile )\n {\n mApplicationProfile = iApplicationProfile;\n }",
"@Override\n public void onSuccess(Uri uri) {\n\n\n UserProfileChangeRequest profleUpdate = new UserProfileChangeRequest.Builder()\n .setDisplayName(name)\n .setPhotoUri(uri)\n .build();\n\n\n currentUser.updateProfile(profleUpdate)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n // user info updated successfully\n showMessage(\"Register Complete\");\n updateUI();\n }\n\n }\n });\n\n }",
"@Override\n public void onSuccess(Uri uri) {\n\n\n UserProfileChangeRequest profleUpdate = new UserProfileChangeRequest.Builder()\n .setDisplayName(name)\n .setPhotoUri(uri)\n .build();\n\n\n currentUser.updateProfile(profleUpdate)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n // user info updated successfully\n showMessage(\"Register Complete\");\n updateUI();\n }\n\n }\n });\n\n }",
"HumanProfile getUserProfile();",
"@Override\n public void onSuccess(Uri uri) {\n UserProfileChangeRequest profileUpdate = new UserProfileChangeRequest.Builder().setDisplayName(lname).setPhotoUri(uri).build();\n currentUser.updateProfile(profileUpdate).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n //user info updated succssfully\n saveInformation();\n showMessage(\"Register Complete\");\n updateUI();\n }\n }\n });\n }",
"@RequestMapping(value = {\"/profile\"})\n @PreAuthorize(\"hasRole('logon')\")\n public String showProfile(HttpServletRequest request, ModelMap model)\n {\n User currentUser = userService.getPrincipalUser();\n model.addAttribute(\"currentUser\", currentUser);\n return \"protected/profile\";\n }",
"public String fetchProfile() throws Exception {\n\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\t\tMerchantStore profile = null;\n\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tprofile = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\tString user = super.getPrincipal().getRemoteUser();\n\t\t\tMerchantUserInformation userInfo = mservice.getMerchantUserInformation(user);\n\n\t\t\t//MerchantUserInformation userInfo = mservice\n\t\t\t//\t\t.getMerchantUserInfo(merchantid.intValue());\n\n\t\t\tif (profile == null) {// should be created from the original\n\t\t\t\t\t\t\t\t\t// subscribtion process\n\t\t\t\tprofile = new MerchantStore();\n\t\t\t\tString serverName = super.getServletRequest().getServerName();\n\t\t\t\tint serverPort = super.getServletRequest().getServerPort();\n\t\t\t\t\n\t\t\t\tif(serverPort>0) {\n\t\t\t\t\tserverName = serverName + \":\" + String.valueOf(serverPort);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprofile.setDomainName(serverName);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tprofile.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\n\t\t\t}\n\n\t\t\tif (profile.getSupportedlanguages() != null\n\t\t\t\t\t&& !profile.getSupportedlanguages().equals(\"\")) {\n\n\t\t\t\tLanguageHelper.setLanguages(profile.getSupportedlanguages(),\n\t\t\t\t\t\tctx);\n\t\t\t\tMap m = ctx.getSupportedlang();\n\t\t\t\tif (m != null && m.size() > 0) {\n\t\t\t\t\tSet s = m.keySet();\n\t\t\t\t\tIterator i = s.iterator();\n\t\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\t\tString key = (String) i.next();\n\t\t\t\t\t\tsupportedLanguages.add(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// set at least the user country code\n\t\t\tif (profile.getCountry() == 0) {\n\t\t\t\tprofile.setCountry(userInfo.getUsercountrycode());\n\t\t\t}\n\t\t\t// set a default background\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(1);\n\t\t\t}\n\n\t\t\tif (profile.getStoreaddress() == null) {\n\t\t\t\tprofile.setStoreaddress(userInfo.getUseraddress());\n\t\t\t}\n\n\t\t\tif (profile.getStorecity() == null) {\n\t\t\t\tprofile.setStorecity(userInfo.getUsercity());\n\t\t\t}\n\n\t\t\tif (profile.getStorepostalcode() == null) {\n\t\t\t\tprofile.setStorepostalcode(userInfo.getUserpostalcode());\n\t\t\t}\n\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(new Integer(1));// set to white\n\t\t\t}\n\n\t\t\tprofile.setTemplateModule(profile.getTemplateModule());\n\n\t\t\tDate businessDate = profile.getInBusinessSince();\n\t\t\tif (businessDate == null) {\n\t\t\t\tbusinessDate = new Date();\n\t\t\t}\n\t\t\tthis.setInBusinessSince(DateUtil.formatDate(businessDate));\n\n\t\t\tsuper.prepareSelections(profile.getCountry());\n\n\t\t\tthis.merchantProfile = profile;\n\t\t\treturn SUCCESS;\n\n\t\t} catch (Exception e) {\n\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"errors.technical\"));\n\t\t\tlog.error(e);\n\t\t\treturn ERROR;\n\t\t}\n\t}",
"public Profile getProfile() {\n return m_profile;\n }",
"public static void setEnabledProfile(int profile) {\n if (enabledMenuItem != null) {\n enabledMenuItem.disableProfile();\n }\n\n // Also allow the signer tab to disable the signer\n if (profile == 0) {\n enabledMenuItem.disableProfile();\n enabledMenuItem = null;\n } else {\n\n // I don't want to keep a map of all the profiles. Just iterate through them until we find the right one\n for (MasherySignerMenuItem menuItem : menuItems) {\n if (menuItem.getProfileNumber() == profile) {\n menuItem.enableProfile();\n enabledMenuItem = menuItem;\n }\n }\n }\n }",
"@Override\n\tpublic boolean updateProfile(long profileId, Profile profile) {\n\t\treturn false;\n\t}",
"public void goToProfilePage() {\n\t\tUtil.element(userTab, driver).click();\n\t}",
"@GetMapping\n public String showProfilePage(Model model){\n user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n model.addAttribute(\"profileForm\",ProfileForm.createProfileFormFromUser(user));\n model.addAttribute(\"image\",user.getProfileImage() != null);\n\n return PROFILE_PAGE_NAME;\n }"
] | [
"0.78562313",
"0.72235554",
"0.7191738",
"0.705139",
"0.70472825",
"0.69958705",
"0.6965498",
"0.68670106",
"0.6727715",
"0.67222124",
"0.6709486",
"0.6697667",
"0.66904116",
"0.6661301",
"0.66151685",
"0.6584018",
"0.65784043",
"0.6570261",
"0.6448645",
"0.64354706",
"0.6426191",
"0.64179415",
"0.641328",
"0.6404169",
"0.6381799",
"0.63738704",
"0.6372513",
"0.636123",
"0.63605666",
"0.6354418",
"0.63433754",
"0.6312599",
"0.63069063",
"0.62921256",
"0.62884927",
"0.6284596",
"0.62792236",
"0.6276722",
"0.62699467",
"0.62653923",
"0.62598974",
"0.62581307",
"0.62404966",
"0.62374437",
"0.62083656",
"0.6203722",
"0.62035096",
"0.6203051",
"0.6196047",
"0.6183043",
"0.61763334",
"0.61759806",
"0.61610633",
"0.61545473",
"0.6151552",
"0.6150935",
"0.6149005",
"0.6141491",
"0.61327183",
"0.6130448",
"0.6117896",
"0.6112123",
"0.6106578",
"0.61047167",
"0.60903144",
"0.6087557",
"0.60849065",
"0.6082445",
"0.6072203",
"0.60695297",
"0.6057863",
"0.60304517",
"0.602401",
"0.602396",
"0.6023423",
"0.6022737",
"0.60203886",
"0.60081303",
"0.60079944",
"0.60060936",
"0.60025316",
"0.5992753",
"0.59913385",
"0.5976184",
"0.59638023",
"0.59617496",
"0.5961513",
"0.59578776",
"0.5954212",
"0.59532064",
"0.59519815",
"0.59519815",
"0.5950749",
"0.59478325",
"0.5942438",
"0.5937458",
"0.59172505",
"0.5916564",
"0.59027237",
"0.590222",
"0.59018064"
] | 0.0 | -1 |
Added by Ravi for Claim New Invitation | public boolean addInvitationToAccount(String userName, String invitationCode) {
if(!parentDAO.checkInvitationCodeClaim(userName, invitationCode)) {
return parentDAO.addInvitationToAccount(userName, invitationCode);
}
return Boolean.FALSE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Invitation(){}",
"void createInvitation(OutgoingEMailInvitation invitation, Boolean notify);",
"org.hl7.fhir.Instant addNewIssued();",
"void updateInvitationForReceivingUser(Invitation invitation);",
"@Override\n public void onInvitationReceived(Invitation invitation) {\n String mIncomingInvitationId = invitation.getInvitationId();\n }",
"public Invitation() {\n }",
"Task<?> addInvitationForReceivingUser(Invitation invitation);",
"@Override\r\n\tpublic void onAddUser(BmobInvitation message) {\n\t\trefreshInvite(message);\r\n\t}",
"Task<?> addInvitationForSendingUser(Invitation invitation);",
"void setInvitationId(String invitationId);",
"Integer addNew(InviteEntity builder) throws IOException;",
"void updateInvitationForSendingUser(Invitation invitation);",
"@ThinkParityAuthenticate(AuthenticationType.USER)\n public void createInvitation(final JabberId userId,\n final JabberId invitationUserId,\n final IncomingEMailInvitation invitation);",
"Claim() {\n }",
"public Investment() {\r\n\t\t\r\n\t}",
"public void createInviteNotification(Event e, Users u) {\n Invite invite= new Invite();\n invite.setUser(u);\n invite.setStatus(Invite.InviteStatus.invited);\n invite.setEvent(e);\n em.persist(invite);\n Notification notification = new Notification();\n notification.setType(NotificationType.invite);\n notification.setNotificatedUser(u);\n notification.setRelatedEvent(e);\n notification.setSeen(false);\n notification.setGenerationDate(new Date());\n em.persist(notification);\n mailManager.sendMail(u.getEmail(), \"New Invite\", \"Hi! You have received a new invite\");\n }",
"public interface IInviteDetailActivityView {\n /**\n * 会员加入邀约活动后的信号设置\n */\n public void setAddToInviteSign(String flag);\n}",
"Notification createAppointmentRequestSubmissionConfirmationNotification(AppointmentRequest appointmentRequest, List<Appointment> appointments );",
"private void claim(int proposal) {\n this.claimStatus = new ClaimOrConcession(proposal);\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();",
"String getInvitationId();",
"void addInvitedTrans(ITransaction transaction, String userId);",
"ISSeedModifications createISSeedModifications();",
"public Invitation(int personId, Party party, String status) {\n this.personId = personId;\n this.party = party;\n this.status = status;\n }",
"public static void createEvent(String token){\n ensureGraphClient(token);\n\n LinkedList<Option> requestOptions = new LinkedList<Option>();\n //requestOptions.add(new HeaderOption(\"Authorization\", \"Bearer nupl9.C5rb]aO5:yvT:3L.TKcH7tB1Im\" ));\n\n // Participantes:\n LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();\n Attendee mentor = new Attendee();\n Attendee mentorado = new Attendee();\n\n EmailAddress mentorMail = new EmailAddress();\n mentorMail.address = \"[email protected]\";\n mentorMail.name = \"Daniell Wagner\";\n mentor.emailAddress = mentorMail;\n\n EmailAddress mentoradoMail = new EmailAddress();\n mentoradoMail.address = \"[email protected]\";\n mentoradoMail.name = \"Guilherme Carneiro\";\n mentorado.emailAddress = mentoradoMail;\n\n mentor.type = AttendeeType.REQUIRED;\n mentorado.type = AttendeeType.REQUIRED;\n\n attendeesList.add(mentor);\n attendeesList.add(mentorado);\n\n // Evento:\n Event event = new Event();\n event.subject = \"Mentoria com \" + mentor.emailAddress.name;\n\n ItemBody body = new ItemBody();\n body.contentType = BodyType.HTML;\n body.content = \"\" +\n \"<b>Mentoria sobre SCRUM</b> <br>\" +\n \"Olá, \" + mentorado.emailAddress.name + \" <br> \" +\n \"Você tem uma mentoria marcada com o mentor \"\n + mentor.emailAddress.name + \"!!\";\n\n event.body = body;\n\n DateTimeTimeZone start = new DateTimeTimeZone();\n start.dateTime = \"2020-03-26T16:00:00\";\n start.timeZone = \"Bahia Standard Time\";\n event.start = start;\n\n DateTimeTimeZone end = new DateTimeTimeZone();\n end.dateTime = \"2020-03-26T18:00:00\";\n end.timeZone = \"Bahia Standard Time\";\n event.end = end;\n\n Location location = new Location();\n location.displayName = \"Stefanini Campina Grande\";\n event.location = location;\n\n event.attendees = attendeesList;\n\n try {\n graphClient.me().calendar().events()\n .buildRequest()\n .post(event);\n }catch(Exception e) {\n\n System.out.println(\"Deu águia: \");\n e.printStackTrace();\n }\n }",
"private Intent newVoicemailIntent() {\n final Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED,\n Uri.fromParts(\"voicemail\", EMPTY_NUMBER, null));\n intent.putExtra(\"phone_subscription\", mSubscription);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n return intent;\n }",
"Exploitation createExploitation();",
"public Reimbursement(){}",
"boolean hasCustomerUserAccessInvitation();",
"public static synchronized void handleInvitation(Context context,\n Intent intent) {\n Logger.d(TAG,\n \"handleInvitation() entry with intend action is \"\n + intent.getAction());\n String action = intent.getAction();\n if (action == null) {\n return;\n }\n String contact = formatCallerId(intent);\n intent.putExtra(DISPLAY_NAME, contact);\n if (ChatIntent.ACTION_NEW_CHAT.equalsIgnoreCase(action)) {\n Chat chatSession = RcsNotification.getInstance()\n .getChatSession(intent);\n if (chatSession == null) {\n Logger.d(TAG, \"The chat session is null\");\n return;\n }\n try {\n handleChatInvitation(context, intent);\n } catch (Exception e) {\n Logger.d(TAG, \"Chat operation error\");\n e.printStackTrace();\n }\n } else if (FileTransferIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n getInstance().handleFileTransferInvitation(context,\n intent);\n } else if (GroupChatIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n Logger.d(TAG, \"Group Chat invitation arrived\");\n try {\n if (!(intent.getBooleanExtra(\"isGroupChatExist\",\n false))) {\n boolean autoAccept = intent.getBooleanExtra(\n AUTO_ACCEPT, false);\n RcsNotification.getInstance()\n .handleGroupChatInvitation(context,\n intent, autoAccept);\n }\n } catch (Exception e) {\n Logger.d(TAG, \"Group Chat operation error\");\n e.printStackTrace();\n }\n } else if (ImageSharingIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n handleImageSharingInvitation(context, intent);\n } else if (VideoSharingIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n handleVideoSharingInvitation(context, intent);\n } /*\n * else if (ChatIntent.CHAT_SESSION_REPLACED.equalsIgnoreCase(action))\n * { handleChatInvitation(context, intent); }\n */\n Logger.v(TAG, \"handleInvitation() exit\");\n }",
"protected NbaTXLife createIndividualResponse(TXLifeResponse origTXLifeResponse, Holding currentHolding, List relationsList,\n List formInstanceList, List partyList) {\n NbaTXLife newNbaTXLife = new NbaTXLife();\n TXLife newTXLife = new TXLife();\n newNbaTXLife.setTXLife(newTXLife);\n UserAuthResponseAndTXLifeResponseAndTXLifeNotify ua = new UserAuthResponseAndTXLifeResponseAndTXLifeNotify();\n newTXLife.setUserAuthResponseAndTXLifeResponseAndTXLifeNotify(ua);\n TXLifeResponse newTXLifeResponse = new TXLifeResponse();\n ua.addTXLifeResponse(newTXLifeResponse);\n newTXLifeResponse.setTransRefGUID(origTXLifeResponse.getTransRefGUID());\n newTXLifeResponse.setTransType(origTXLifeResponse.getTransType());\n newTXLifeResponse.setTransExeDate(origTXLifeResponse.getTransExeDate());\n newTXLifeResponse.setTransExeTime(origTXLifeResponse.getTransExeTime());\n newTXLifeResponse.setTestIndicator(origTXLifeResponse.getTestIndicator());\n TXLifeResponseExtension origTXLifeResponseExtension = NbaUtils.getFirstTXLifeResponseExtension(origTXLifeResponse);\n TXLifeResponseExtension newTXLifeResponseExtension = NbaUtils.getFirstTXLifeResponseExtension(newTXLifeResponse);\n if (newTXLifeResponseExtension == null) {\n\n\t\t\tOLifEExtension olifeExtension = NbaTXLife.createOLifEExtension(NbaOliConstants.EXTCODE_TXLIFERESPONSE);\n\t\t\tnewTXLifeResponse.addOLifEExtension(olifeExtension);\n\t\t\tnewTXLifeResponseExtension = olifeExtension.getTXLifeResponseExtension();\n\t\t\tif (newTXLifeResponseExtension != null) {//APSL2253\n\t\t\t\tnewTXLifeResponseExtension.setActionAdd();\n\t\t\t}\n\t\t}\n if (origTXLifeResponseExtension == null) {\n\n\t\t\tOLifEExtension olifeExtension = NbaTXLife.createOLifEExtension(NbaOliConstants.EXTCODE_TXLIFERESPONSE);\n\t\t\torigTXLifeResponse.addOLifEExtension(olifeExtension);\n\t\t\torigTXLifeResponseExtension = olifeExtension.getTXLifeResponseExtension();\n\t\t\tif (origTXLifeResponseExtension != null) {//APSL2253\n\t\t\t\torigTXLifeResponseExtension.setActionAdd();\n\t\t\t}\n\t\t}\n newTXLifeResponseExtension.setTransactionContext(origTXLifeResponseExtension.getTransactionContext());\n newTXLifeResponseExtension.setActionUpdate();\n newTXLifeResponse.setMIBRequest(origTXLifeResponse.getMIBRequest());\n newTXLifeResponse.setTransResult(new TransResult());\n newTXLifeResponse.getTransResult().setResultCode(origTXLifeResponse.getTransResult().getResultCode());\n newTXLifeResponse.getTransResult().setRecordsFound(1);\n OLifE newOlifLifE = new OLifE();\n newTXLifeResponse.setOLifE(newOlifLifE);\n newOlifLifE.addHolding(currentHolding);\n newOlifLifE.getRelation().addAll(relationsList);\n newOlifLifE.getFormInstance().addAll(formInstanceList);\n newOlifLifE.getParty().addAll(partyList);\n return newNbaTXLife;\n }",
"boolean editInvitation(Invitation invitation);",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\tpublic void AnonymousElecSmrCR_Multipleregister_newuser_emailurl(){\n\t\t\t\tReport.createTestLogHeader(\"Anonymous SMR\", \"Verifies the anonymous SMR page for Gas customer\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"Anonymousnonalertbpcp\");\n\t\t\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"CrmDetailsforSMR\");\n\t\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"ViewuserVerifynew\");\t\t\n\t\t\t new SubmitMeterReadAction()\n\t\t\t .openSMRpageforemailurl(smrProfile)\n\t\t\t .verifyAnonymousSAPElecCus_CR_Multiplereg_newuser_emailurl(smrProfile);\n\t\t\t // .VerifySAPCRM_SMR_noalret(smrProfile,crmuserProfile,userProfile);\n\t\t\t }",
"@Override\n public String toString() {\n return \"Invitation{\" +\n \"personId=\" + personId +\n \", party=\" + party +\n \", status='\" + status + '\\'' +\n '}';\n }",
"@Override\n public Invitee createInvitee(Invitee invitee) {\n String uniqueId = generateUniqueId();\n invitee.setUniqueId(uniqueId);\n\n String sql = \"INSERT INTO invitee_details (invite_id,unique_id, invitee_user_id, name, email) VALUES (?,?,?,?,?) RETURNING has_voted, is_attending\";\n SqlRowSet results = jdbcTemplate.queryForRowSet(sql, invitee.getInviteId(), invitee.getUniqueId(), invitee.getUserId(),\n invitee.getName(), invitee.getEmail());\n\n while (results.next()) {\n invitee.setHasVoted(results.getBoolean(\"has_voted\"));\n invitee.setIsAttending(results.getString(\"is_attending\"));\n }\n\n return invitee;\n }",
"public Investigator() {}",
"Invitation getInvitationById(int invitationId);",
"public void createInvoice() {\n\t}",
"Notification createNewAppointmentNotification(Appointment appointment);",
"@Override\r\n public void addGrantedNotification(NotificationDetail notificationDetail) {\n }",
"public void createSignInIntent() {\n List<AuthUI.IdpConfig> providers = Arrays.asList(\n new AuthUI.IdpConfig.EmailBuilder().build()\n );\n\n startActivityForResult(AuthUI.getInstance()\n .createSignInIntentBuilder()\n .setAvailableProviders(providers)\n .build(), SIGN_IN);\n }",
"private void createMemberInvitation(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getChatroomInvites();\n\t\tList<User> users = chatroom.getMemberInvitees();\n\t\t// create the relation\n\t\tchatrooms.add(chatroom);\n\t\tusers.add(user);\n\t\t// save the chatroom, and its relations\n\t\tchatroomRepository.save(chatroom);\n\t}",
"@BodyParser.Of(BodyParser.Json.class)\n @Transactional\n public static Result add(String accessToken) {\n AccessToken access = AccessTokens.access(accessToken);\n Result error = Access.checkAuthentication(access, Access.AuthenticationType.NOT_CONNECTED_USER);\n if (error != null) {\n \treturn error;\n }\n\n JsonNode root = request().body().asJson();\n\n if (root == null) {\n \treturn new errors.Error(errors.Error.Type.JSON_REQUIRED).toResponse();\n }\n\n errors.Error parametersErrors = new errors.Error(Type.PARAMETERS_ERROR);\n String email = root.path(\"email\").textValue();\n String password = root.path(\"password\").textValue();\n String firstname = root.path(\"first_name\").textValue();\n String lastname = root.path(\"last_name\").textValue();\n checkParams(true, email, password, firstname, lastname, parametersErrors);\n \n if (parametersErrors.isParameterError())\n \treturn parametersErrors.toResponse();\n \n // Beta Handling\n BetaInvitation betaInvitation = BetaInvitation.find.where().eq(\"email\", email).findUnique();\n if (betaInvitation == null) {\n \tbetaInvitation = new BetaInvitation(null, email, password, firstname, lastname, State.REQUESTING);\n \tbetaInvitation.lang = access.lang;\n \tbetaInvitation.save();\n \tMailer.get().sendMail(EmailType.BETA_REQUEST_SENT, access.getLang(), email, ImmutableMap.of(\"FIRSTNAME\", firstname, \"LASTNAME\", lastname));\n \treturn status(ACCEPTED);\n } else if (betaInvitation.state == State.INVITED) { \n\t User newUser = new User(email, password, firstname, lastname);\n\t updateOneUser(newUser, root);\n\t newUser.save();\n\t \n\t // Beta Handling\n\t betaInvitation.createdUser = newUser;\n\t betaInvitation.state = State.CREATED;\n\t betaInvitation.save();\n\t return created(getUserObjectNode(newUser));\n } else {\n \treturn new errors.Error(errors.Error.Type.BETA_PROCESSING).toResponse();\n }\n }",
"private void onContactInvitation(final NotificationBDD notificationBDD) {\n final InvitationConnexion invitationConnexion = new InvitationConnexion();\n invitationConnexion.setDate((notificationBDD.getDate()));\n invitationConnexion.setIdFirebase(notificationBDD.getId());\n invitationConnexion.setInvite(utilisateurConnecte);\n final LocalUserProfilEBDD localUserProfilEBDD = new LocalUserProfilEBDD();\n invitationConnexionBDD.open();\n// invitationConnexionBDD.insererInvitationConnexion(invitationConnexion);\n final Position position = new Position();\n final ParametresUtilisateur parametres = new ParametresUtilisateur();\n remoteBD.getUserProfil(notificationBDD.getAskerID(), localUserProfilEBDD, new OnUserProfilReceived() {\n @Override\n public void onUserProfilReceived(UtilisateurProfilEBDD userProfilEBDD) {\n final View coordinatorLayoutView = findViewById(R.id.snackbarPosition);\n Snackbar.make(coordinatorLayoutView, \"Invitation de connexion reçue !\", Snackbar.LENGTH_LONG)\n .setAction(\"VOIR\", clickListener)\n .show();\n invitationConnexion.setExpediteur(FromEBDDToLocalClassTranslator.translateUserProfil(localUserProfilEBDD, position, notificationBDD.getAskerID(), parametres));\n invitationConnexionBDD.insererInvitationConnexion(invitationConnexion);\n invitationConnexionBDD.affichageInvitationConnexion();\n }\n });\n\n\n\n }",
"private void onInviteClicked() {\n Intent intent = new AppInviteInvitation.IntentBuilder(getString(R.string.invitation_title))\n .setMessage(getString(R.string.invitation_message))\n .setDeepLink(Uri.parse(getString(R.string.invitation_deep_link)))\n .setCustomImage(Uri.parse(getString(R.string.invitation_custom_image)))\n .setCallToActionText(getString(R.string.invitation_cta))\n .build();\n startActivityForResult(intent, REQUEST_INVITE);\n }",
"public void sendInvitations(){\r\n for(int i = 0; i< emails.size(); i++){\r\n System.out.println(\"Inviting: \" + emails.get(i));\r\n }\r\n\r\n }",
"public Investor(String name) {\n super(name, \"Investor\", 80, 100, 110, 2);\n }",
"public boolean isIncomingInvitePending();",
"public de.fraunhofer.fokus.movepla.model.Entitlement create(\n long entitlementId);",
"trinsic.services.common.v1.CommonOuterClass.JsonPayload getDidcommInvitation();",
"private void setupInvitedDripFlow() {\n // all the entries created in invite in the last interval.\n List<DProjectInvites> invites = AppConfig.getInstance().getdProjectInvitesDAO().findAllInternal();\n if (invites == null || invites.isEmpty()) return;\n List<DProjectInvites> newInvites = new ArrayList<>();\n for (DProjectInvites invite : invites) {\n if (invite.getCreated_timestamp().after(lastRunDate)) {\n newInvites.add(invite);\n }\n }\n LOG.info(\"setupInvitedDripFlow newInvites = \" + newInvites.size());\n if (newInvites.isEmpty()) return;\n\n DripFlows.addToProjectInviteFlow(newInvites);\n }",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"private void concede() {\n this.claimStatus = new ClaimOrConcession(); // conceded claim\n }",
"void receiveTransaction(IMeeting meeting, String userId);",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\tpublic void AnonymousElecSmrCR_Multipleregister_newuser(){\n\t\tReport.createTestLogHeader(\"Anonymous SMR\", \"Verify whether the anonymous Elec customer is able to do SMR journey,verify BPCP and Audit details for single register\");\n\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRElecCRdata\");\n\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"CrmDetailsforSMR\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"ViewuserVerifynew\");\t\t\n\t new SubmitMeterReadAction()\n\t .openSMRpageCRGas(\"Elec\")\n\t .verifyAnonymousSAPElecCus_CR_Multiplereg_newuser(smrProfile) ;\n\t // .VerifySAPCRM_SMR(crmuserProfile,userProfile,smrProfile);\n\t}",
"private void onPersonalizeButtonPressed(View view) {\n UserIdentity userIdentity = new UserIdentity();\n String extUserId = etExtUsrId.getText().toString();\n if (isBlank(extUserId)) {\n Toast.makeText(MainActivity.this, R.string.cannot_personalize, Toast.LENGTH_SHORT).show();\n return;\n }\n userIdentity.setExternalUserId(extUserId);\n mobileMessaging.personalize(userIdentity, null, new MobileMessaging.ResultListener<User>() {\n @Override\n public void onResult(Result<User, MobileMessagingError> result) {\n externalUserId = extUserId;\n Toast.makeText(MainActivity.this, R.string.personalized_success, Toast.LENGTH_SHORT).show();\n prepareInbox();\n }\n });\n }",
"public void setInvitedUserId(Integer invitedUserId) {\n this.invitedUserId = invitedUserId;\n }",
"ClaimSoftgoal createClaimSoftgoal();",
"@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException 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\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\t\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}",
"public void acceptInvitation(Player player) {\n if (invitations.containsKey(player)) {\n Player p = invitations.remove(player);\n List<Player> team = teams.get(p);\n team.add(player);\n teamMessage(p, ChatColor.BLUE + player.getName() + \" has joined the team!\");\n } else {\n player.sendMessage(ChatColor.RED + \"You were not invited to any teams! Forever alone..\");\n }\n }",
"@java.lang.Override\n public boolean hasDidcommInvitation() {\n return deliveryMethodCase_ == 3;\n }",
"boolean hasDidcommInvitation();",
"public void generateInvoice() throws InvoicePrintException {\n authInvoice = null;\n try {\n signedInvoice = signer.sign(xmlGenerate.generateXMLFile(getInvoice(), getCustomer(), issuer), issuer.getCertificate(), issuer.getPassword());\n final List<Autorizacion> authResponse = authorization.syncRequest(signedInvoice, ServiceEnvironment.TEST, 20);\n if (!authResponse.isEmpty()) {\n final Autorizacion autorizacion = authResponse.get(0);\n final String authorizationStatus = autorizacion.getEstado();\n LOG.info(String.format(\"Invoice status: %s\", authorizationStatus));\n FacesMessageHelper.addInfo(String.format(\"Factura %s\", authorizationStatus), null);\n FacesMessageHelper.addQueryMessages(autorizacion.getMensajes().getMensaje());\n\n if (AuthorizationState.AUTORIZADO.name().equals(authorizationStatus)) {\n authInvoice = autorizacion.getNumeroAutorizacion() == null ? null : autorizacion;\n List<Attachment> attachments = createAttachments(autorizacion);\n stroreDocument(AuthorizationState.AUTORIZADO);\n sendMailWithAttachments(attachments);\n }\n } else {\n FacesMessageHelper.addError(\"Existe Problemas con el Servicio de Rentas Internas \", \"\");\n stroreDocument(AuthorizationState.NO_AUTORIZADO);\n }\n\n } catch (ReturnedInvoiceException rie) {\n final Comprobante comprobante = rie.getComprobantes().get(0);\n FacesMessageHelper.addRequestMessages(comprobante.getMensajes().getMensaje());\n stroreDocument(AuthorizationState.NO_AUTORIZADO);\n } catch (SignerException e) {\n LOG.error(e, e);\n FacesMessageHelper.addError(String.format(\"Hubo un error al firmar el documento: %s\", e.getMessage()), \"\");\n stroreDocument(AuthorizationState.NO_AUTORIZADO);\n } catch (Exception e) {\n FacesMessageHelper.addError(\"Existe Problemas con el Servicio de Rentas Internas \", \"Reintente la facturacion\");\n stroreDocument(AuthorizationState.NO_AUTORIZADO);\n }\n }",
"InviteEntity accept(Integer inviteId);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.WhoOwnsWhom addNewWhoOwnsWhom();",
"public void saveFiAvailableInvoice(FiAvailableInvoice fiAvailableInvoice);",
"@java.lang.Override\n public boolean hasDidcommInvitation() {\n return deliveryMethodCase_ == 3;\n }",
"public String putNewRefCodeAndSendInvitations(ArrayList<String> validEmails, User user) throws MessagingException {\n\t\tString randomId = SessionIdentifierGenerator.nextSessionId();\n\t\tPreparedStatement pst;\n\t\tEmailHelper emailHelper = new EmailHelper();\n\t\ttry {\n\t\t\t\tfor(int index = 0;index < validEmails.size(); index++){\n\t\t\t\t\tpst = RegDataBaseManager.startDatabaseOperation(INSERT_USER);\n\t\t\t\t\tpst.setString(1, randomId+\"-\"+validEmails.get(index));\n\t\t\t\t\tpst.setString(2, randomId);\n\t\t\t\t\tpst.setString(3, validEmails.get(index));\n\t\t\t\t\tRegDataBaseManager.getDatabaseOprationResult(pst);\n\t\t\t\t\temailHelper.sendInvitationEmail(validEmails.get(index), randomId, user);\n\t\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn randomId;\n\t}",
"protected void createMibPlanFRow(Holding currentHolding, Party sourceParty, NbaTXLife newNbaTXLife) {\n if (getLogger().isDebugEnabled()) {\n getLogger().logDebug(\"Follow Up set created from TxLife 404 Response Message:\\n \" + newNbaTXLife.toXmlString());\n }\n NbaMibPlanF nbaMibPlanF = new NbaMibPlanF();\n nbaMibPlanF.setReferenceId(GUIDFactory.create().getHex());\n nbaMibPlanF.setCarrierCode(getCurrentCarrierCode());\n nbaMibPlanF.setTrackingId(currentHolding.getPolicy().getApplicationInfo().getTrackingID());\n Person person = sourceParty.getPersonOrOrganization().getPerson();\n nbaMibPlanF.setLastName(person.getLastName());\n nbaMibPlanF.setFirstName(person.getFirstName());\n nbaMibPlanF.setData(newNbaTXLife.toXmlString());\n nbaMibPlanF.setCreateDate(getToday());\n nbaMibPlanF.setErrorMessage(\" \");\n nbaMibPlanF.setStatusCode(NbaMibPlanF.STATUS_UNAPPLIED_FOLLOW_UP);\n getResponseMessages().add(nbaMibPlanF);\n }",
"com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest addNewEvSORequest();",
"public Action<PaymentState, PaymentEvent> preAuthAction(){\n\n// this is where you will implement business logic, like API call, check value in DB ect ...\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 8){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }",
"@Override\r\n\tpublic boolean insertInvigilate(Invigilate invigilate) {\n\t\tif(invigilateMapper.insert(invigilate)>0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private AuthorizationVerificationBody createAuthorizationVerificationBody(String clientId, String sub, String carrierAuthEndpoint, String issuer, String redirectUri, String correlationId, int iat, int exp) {\n\n AuthorizationVerificationBody authVerificationBody = new AuthorizationVerificationBody();\n\n authVerificationBody.setBaseUrl(carrierAuthEndpoint);\n authVerificationBody.setRedirectUri(redirectUri);\n authVerificationBody.setCorrelation_id(correlationId);\n authVerificationBody.setAud(issuer);\n authVerificationBody.setNotificationUri(\"http://localhost:8094/authorization/si_callback\");\n authVerificationBody.setClientId(clientId);\n authVerificationBody.setSub(clientId);\n authVerificationBody.setIss(clientId);\n authVerificationBody.setIat(iat);\n authVerificationBody.setExp(exp);\n authVerificationBody.setExpiresIn(EXPIRES_IN_VALUE);\n authVerificationBody.setResponseType(ASYNC_TOKEN);\n\n authVerificationBody.setLoginHint(sub);\n authVerificationBody.setScope(\"openid\");\n authVerificationBody.setAcrValues(ACR_VALUES_A3);\n\n return authVerificationBody;\n }",
"public void onClick(View v) {\n\t\t\t\tif(authorities[0] == Authority.Email.ordinal()) {\n\t\t\t\t\tfinal String subject = \"You have a new Musubi message!\";\n\t\t\t\t\tfinal String body = message + \" \" + MUSUBI_MARKET_URL;\n\t\t\t\t\tIntent send = new Intent(Intent.ACTION_SENDTO);\n\t\t\t\t\tStringBuilder recipientsString = new StringBuilder();\n\t\t\t\t\t// only add emails\n\t\t\t\t\tfor(int i = 0; i < recipients.length; i++) {\n\t\t\t\t\t\tif(authorities[i] == Authority.Email.ordinal()) {\n\t\t\t\t\t\t\trecipientsString.append(recipients[i]).append(\",\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\trecipientsString.deleteCharAt(recipientsString.length()-1);\n\t\t\t\t\tString uriText;\n\t\t\t\t\turiText = \"mailto:\" + recipientsString.toString() +\n\t\t\t\t\t\"?subject=\" + subject + \n\t\t\t\t\t\"&body=\" + body;\n\t\t\t\t\t//TODO: real url encoding?\n\t\t\t\t\turiText = uriText.replace(\" \", \"%20\");\n\t\t\t\t\tUri uri = Uri.parse(uriText);\n\t\t\t\t\tsend.setData(uri);\n\t\t\t\t\tstartActivity(Intent.createChooser(send, \"Send invitation...\"));\n\n\t\t\t\t\tMIdentity[] identities = markAsHasSent(mIntent);\n\t\t\t\t\t//let other people in the feed know that spamming is unnecessary\n\t\t\t\t\tif(mFeedUri != null) {\n\t\t\t\t\t\tObj invitedObj = OutOfBandInvitedObj.from(Arrays.asList(identities).iterator());\n\t\t\t\t\t\tHelpers.sendToFeed(EmailUnclaimedMembersActivity.this, invitedObj, mFeedUri);\n\t\t\t\t\t}\n\n\t\t\t\t\tEmailUnclaimedMembersActivity.this.finish();\n\t\t\t\t} else if(authorities[0] == Authority.Facebook.ordinal()) {\n\t\t\t\t\tFacebook fb = AccountLinkDialog.getFacebookInstance(EmailUnclaimedMembersActivity.this);\n//\t\t\t\t\tAsyncFacebookRunner asyncRunner = new AsyncFacebookRunner(fb);\n//\n\t\t \t\tif(fb.isSessionValid()) {\n//\t\t \t\t\t// TODO: batch request in json array. currently facebook limits 50 requests per batch\n//\t\t \t\t\t// need to split up it if it's more than 50\n//\t\t \t\t\tfinal String fbmsg = new StringBuilder()\n//\t\t \t\t\t\t.append(\"message=\").append(message)\n//\t\t \t\t\t\t.append(\"&link=\").append(link)\n//\t\t \t\t\t\t.append(\"&picture=\").append(LOGO_PICTURE_URL).toString();\n//\t\t \t\t\t\n//\t\t \t\t\tJSONArray batchObj = new JSONArray();\n//\t\t \t\t\ttry {\n//\t\t \t\t\t\tfor(String id : recipients) {\n//\t\t \t\t\t\tJSONObject post = new JSONObject();\n//\t\t \t\t\t\tpost.put(\"method\", \"POST\");\n//\t\t \t\t\t\tpost.put(\"relative_url\", id+\"/feed\");\n//\t\t \t\t\t\tpost.put(\"body\", fbmsg);\n//\t\t \t\t\t\tbatchObj.put(post);\n//\t\t \t\t\t}\n//\t\t \t\t\t} catch (JSONException e) {\n//\t\t \t\t\t\tLog.e(TAG, e.toString());\n//\t\t \t\t\t}\n//\t\t \t\t\tBundle batch = new Bundle();\n//\t\t \t\t\tbatch.putString(\"batch\", batchObj.toString());\n//\t\t \t\t\tasyncRunner.request(\"/\", batch, \"POST\", new FriendRequestListener(), null);\n\t\t \t\t\t\n\t\t \t\t\tStringBuilder recipientsString = new StringBuilder();\n\t\t\t\t\t\t// only add fb ids\n\t\t\t\t\t\tfor(int i = 0; i < recipients.length; i++) {\n\t\t\t\t\t\t\tif(authorities[i] == Authority.Facebook.ordinal()) {\n\t\t\t\t\t\t\t\trecipientsString.append(recipients[i]).append(\",\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\trecipientsString.deleteCharAt(recipientsString.length()-1);\n\t\t \t\t\tBundle params = new Bundle();\n\t\t \t\t\tparams.putString(\"message\", message);\n\t\t \t\t\tparams.putString(\"to\", recipientsString.toString());\n\t\t \t\t\tfb.dialog(EmailUnclaimedMembersActivity.this, \"apprequests\", params, new AppRequestDialogListener());\n\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t}",
"public void startNewPurchase() throws VerificationFailedException {\n\t}",
"public void startNewPurchase() throws VerificationFailedException {\n\t}",
"public String getInviteCode() {\n return inviteCode;\n }",
"public acceptFreelancer() {\r\n id = 1; // ensure id has a valid value\r\n }",
"@Test\n public void testClaimClaimId() {\n new ClaimFieldTester()\n .verifyBase64FieldCopiedCorrectly(\n FissClaim.Builder::setRdaClaimKey, RdaFissClaim::getClaimId, \"claimId\", 32);\n }",
"InvoiceItem addInvoiceItem(InvoiceItem invoiceItem);",
"@Override\n public void onInvite(final int type, final boolean isOpen) {\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n postInvite(type, isOpen);\n }\n });\n }",
"public Action<PaymentState, PaymentEvent> authAction(){\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 5){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }",
"private void creatRequest() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id)) //R.string.default_web_client_id需要將系統執行一次,讓他產生\n .requestEmail()\n .build();\n\n mGoogleSignInClient = GoogleSignIn.getClient(this,gso);\n }",
"void addIdentificationRequest(Identification request);",
"public void createUnclaimed()\r\n\t{\r\n\t\t\r\n\ttry{\t\t\t\r\n\t\t\r\n\t\tint i=0;\r\n\t\tString data=getTestData(\"CreateUnclaimed\");\r\n\t\tString[] values=data.split(\",\");\r\n\t\tString loginId=values[i++],securePin=values[i++]; \r\n\t\t\r\n\t\tWelcomePage wp=new WelcomePage(driver);\r\n\t\twp.selectUser(loginId);\r\n\t\t\r\n\t\tLoginNewPage lnp=new LoginNewPage(driver);\r\n\t\tlnp.login(securePin);\r\n\t\t\r\n\t\tGeneric.verifyLogin(driver,data);\t\r\n\t\t\r\n\t\tHomePage hp=new HomePage(driver);\r\n\t\thp.addSend();\r\n\r\n\t\tAddSendPage asp=new AddSendPage(driver);\r\n\t\tasp.sendMoneyThroughMobile();\t\t\r\n\t\t\r\n\t\tSendMoneyPage smp = new SendMoneyPage(driver);\r\n\t\tsmp.enterValues(data);\r\n\t\tsmp.verifyFundTransferSuccessMsg();\r\n\t\t\r\n\t\tGeneric.logout(driver);\r\n\t\tGeneric.wait(3);\r\n\t\t\r\n\t\t}catch(Exception e){Log.info(\"Create Unclaimed unsuccessful\\n\"+e.getMessage());}\r\n\t}",
"public void createDelayNotification (Invite inv) {\n Notification notification = new Notification();\n notification.setRelatedEvent(inv.getEvent());\n notification.setNotificatedUser(inv.getUser());\n notification.setSeen(false);\n notification.setType(NotificationType.delayedEvent);\n notification.setGenerationDate(new Date());\n em.persist(notification);\n \n \n }",
"public boolean claim(String id);",
"public Invoice(){//String invoiceId, String customer, String invoiceIssuer, Timestamp invoicingDate, TimeStamp dueDate, BigDecimal netAmount, BigDecimal vat, BigDecimal totalAmount, String currency, String linkToInvoiceDocument, String linkToInvoiceDocumentCopy, String invoicingPeriod, BigDecimal gp, Event event, Timestamp paidDate, BigDecimal amountOpen, String revenueType, String originalInvoiceId) {\r\n }",
"private void createRequest() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(default_web_client_id))\n .requestEmail()\n .build();\n\n mGoogleSignInClient = GoogleSignIn.getClient(Signup.this, gso);\n\n\n }",
"@Test\n\tpublic void createAccountRRSPInvestmentTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnRrspInvestments.setSelected(true);\n\t\tdata.setRdbtnRrspInvestments(rdbtnRrspInvestments);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.RRSP_INVESTMENTS.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}",
"public void newClaimButtonClicked(View view) {\n\t\tstartActivity(new Intent(this, NewClaimActivity.class));\n\t}",
"@Override\r\n\tpublic void ShowInvite(Context _in_context, String _in_data) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void ShowInvite(Context _in_context, String _in_data) {\n\t\t\r\n\t}",
"Message create(MessageInvoice invoice);",
"@Test\n\tpublic void test03_AcceptARequest(){\n\t\tinfo(\"Test03: Accept a Request\");\n\t\tinfo(\"prepare data\");\n\t\t/*Create data test*/\n\t\tString username1 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password1 = username1;\n\t\tString email1 = username1 + mailSuffixData.getMailSuffixRandom();\n\n\t\tString username2 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password2 = username2;\n\t\tString email2= username2 + mailSuffixData.getMailSuffixRandom();\n\n\t\tinfo(\"Add new user\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToAddUser();\n\t\taddUserPage.addUser(username1, password1, email1, username1, username1);\n\t\taddUserPage.addUser(username2, password2, email2, username2, username2);\n\n\t\t/*Step Number: 1\n\t\t *Step Name: Accept a request\n\t\t *Step Description: \n\t\t\t- Login as John\n\t\t\t- Open intranet homepage\n\t\t\t- On this gadget, mouse over an invitation of mary\n\t\t\t- Click on Accept button\n\t\t *Input Data: \n\t\t/*Expected Outcome: \n\t\t\t- The invitation of root, mary is shown on the invitation gadget\n\t\t\t- The Accept and Refuse button are displayed.\n\t\t\t- John is connected to mary and the invitation fades out and is permanently removed from the list\n\t\t\t- Request of root are moving to the top of the gadget if needed*/ \n\t\tinfo(\"Sign in with mary account\");\n\t\tmagAc.signIn(username1, password1);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\n\t\tinfo(\"--Send request 2 to John\");\n\t\tmagAc.signIn(username2, password2);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tmouseOver(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username2),true);\n\t\tclick(hp.ELEMENT_INVITATIONS_PEOPLE_ACCEPT_BTN.replace(\"${name}\",username2), 2,true);\n\t\twaitForElementNotPresent(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username2));\n\t\twaitForAndGetElement(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username1));\n\n\t\tinfo(\"Clear Data\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToUsersAndGroupsManagement();\n\t\tuserAndGroup.deleteUser(username1);\n\t\tuserAndGroup.deleteUser(username2);\n\t}",
"@Override\r\n\tpublic void entregarRecibo() {\n\t\tSystem.out.println(\"Imprimir recibo\");\r\n\t}",
"Notification createAppointmentConfirmationNotification(Appointment appointment);",
"public void AjouterInvitation(long idDemandeur,long idCible) {\n\t\tDate dateDemande=new Date();\n\t\tString dateDemandeEnChaine=dateFormat.format(dateDemande);\t\t\n\t\t try {\n\t\t\t dateDemande=dateFormat.parse (dateDemandeEnChaine);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tAmi amitie1=new Ami(\"Envoi\", idDemandeur, idCible, dateDemande,getMembre(idCible));\n\t\tAmi amitie2=new Ami(\"Recu\", idCible , idDemandeur, dateDemande,getMembre(idDemandeur));\n\t\t\n\t\tgerantAmi.save(amitie1);\t\n\t\tgerantAmi.save(amitie2);\t\n\t}",
"public void addRecipient(){\n //mRATable.insert();\n }",
"public void createDeleteNotification (Invite inv) {\n Notification notification = new Notification();\n notification.setRelatedEvent(inv.getEvent());\n notification.setNotificatedUser(inv.getUser());\n notification.setSeen(false);\n notification.setType(NotificationType.deletedEvent);\n notification.setGenerationDate(new Date());\n em.persist(notification);\n //I send the notification mail to the user\n mailManager.sendMail(inv.getUser().getEmail(), \"Deleted Event\", \"Hi! An event for which you have received an invite has been cancelled. Join MeteoCal to discover it.\");\n }",
"public void addVerificationRequest(Patient patient)\n {\n accountsToVerify.add(patient);\n }"
] | [
"0.63924694",
"0.62601167",
"0.6092353",
"0.605483",
"0.60454494",
"0.60425603",
"0.5986082",
"0.5919783",
"0.5909692",
"0.5889036",
"0.5839715",
"0.57952285",
"0.57751095",
"0.5715905",
"0.5683755",
"0.56802845",
"0.56353664",
"0.55642295",
"0.5547875",
"0.55233294",
"0.5507183",
"0.5505828",
"0.5480962",
"0.54730135",
"0.546848",
"0.5458592",
"0.5453697",
"0.54529846",
"0.54496455",
"0.5439422",
"0.5418339",
"0.540501",
"0.53972036",
"0.5380818",
"0.5370745",
"0.53617746",
"0.5343662",
"0.53395647",
"0.53290707",
"0.5322336",
"0.5316531",
"0.5310105",
"0.5292099",
"0.52910894",
"0.52861696",
"0.52735263",
"0.52666223",
"0.5254817",
"0.5238227",
"0.523434",
"0.52288306",
"0.5219711",
"0.5219445",
"0.520821",
"0.5195465",
"0.5189308",
"0.5178941",
"0.51757044",
"0.51738477",
"0.51719195",
"0.5171437",
"0.51671773",
"0.51667696",
"0.51646054",
"0.5157599",
"0.51447254",
"0.514289",
"0.51356316",
"0.5133212",
"0.51232594",
"0.51230156",
"0.5114379",
"0.51137394",
"0.51081324",
"0.5107884",
"0.5107884",
"0.51038975",
"0.5096214",
"0.5092736",
"0.50869256",
"0.508438",
"0.5080346",
"0.5076305",
"0.50740445",
"0.5061046",
"0.50561345",
"0.50512105",
"0.50443095",
"0.5042965",
"0.5034486",
"0.5033942",
"0.50333345",
"0.50333345",
"0.50246716",
"0.5022751",
"0.5016166",
"0.5014914",
"0.5011373",
"0.5010845",
"0.5008742",
"0.50062126"
] | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel_Rollno = new javax.swing.JLabel();
jTextField_Rollno = new javax.swing.JTextField();
jLabel_student_name = new javax.swing.JLabel();
jTextField_Student_Name = new javax.swing.JTextField();
jLabel_student_name1 = new javax.swing.JLabel();
jComboBox_year = new javax.swing.JComboBox<>();
jComboBox_Month = new javax.swing.JComboBox<>();
jComboBox_Date = new javax.swing.JComboBox<>();
jLabel_city = new javax.swing.JLabel();
jTextField_City = new javax.swing.JTextField();
jLabel_course = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jList_Course = new javax.swing.JList<>();
jScrollPane2 = new javax.swing.JScrollPane();
jList_Semester = new javax.swing.JList<>();
jLabel_Semester = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jList_Division = new javax.swing.JList<>();
jLabel_division = new javax.swing.JLabel();
jScrollPane4 = new javax.swing.JScrollPane();
jTextArea_output = new javax.swing.JTextArea();
jButton_VIEW = new javax.swing.JButton();
jButton_DELETE = new javax.swing.JButton();
jButton_ADD2 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel_Rollno.setText("Rollno :");
jLabel_student_name.setText("Student Name :");
jLabel_student_name1.setText("Birth Date:");
jComboBox_year.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "1998", "1999", "2000", "2001", "2002" }));
jComboBox_Month.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));
jComboBox_Date.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
jLabel_city.setText("City :");
jLabel_course.setText("Course :");
jList_Course.setModel(new javax.swing.AbstractListModel<String>() {
String[] strings = { "BCA", "MCA", "Msc.iT" };
public int getSize() { return strings.length; }
public String getElementAt(int i) { return strings[i]; }
});
jList_Course.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
jScrollPane1.setViewportView(jList_Course);
jList_Semester.setModel(new javax.swing.AbstractListModel<String>() {
String[] strings = { "1", "2", "3", "4", "5", "6" };
public int getSize() { return strings.length; }
public String getElementAt(int i) { return strings[i]; }
});
jList_Semester.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
jScrollPane2.setViewportView(jList_Semester);
jLabel_Semester.setText("Semester :");
jList_Division.setModel(new javax.swing.AbstractListModel<String>() {
String[] strings = { "1", "2", "3", "4", "5", "6" };
public int getSize() { return strings.length; }
public String getElementAt(int i) { return strings[i]; }
});
jList_Division.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
jScrollPane3.setViewportView(jList_Division);
jLabel_division.setText("Division:");
jTextArea_output.setColumns(20);
jTextArea_output.setRows(5);
jScrollPane4.setViewportView(jTextArea_output);
jButton_VIEW.setText("VIEW");
jButton_VIEW.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton_VIEWActionPerformed(evt);
}
});
jButton_DELETE.setText("DELETE");
jButton_DELETE.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton_DELETEActionPerformed(evt);
}
});
jButton_ADD2.setText("ADD");
jButton_ADD2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton_ADD2ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(29, 29, 29)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel_student_name1)
.addGap(45, 45, 45)
.addComponent(jComboBox_Date, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jComboBox_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jComboBox_year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jLabel_student_name)
.addGap(18, 18, 18))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel_Rollno)
.addGap(63, 63, 63)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField_Rollno, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField_Student_Name, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 368, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel_course)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton_ADD2, javax.swing.GroupLayout.Alignment.TRAILING))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jButton_DELETE)
.addGap(18, 18, 18)
.addComponent(jButton_VIEW))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel_Semester, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel_division)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel_city)
.addGap(18, 18, 18)
.addComponent(jTextField_City, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(77, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel_Rollno)
.addComponent(jTextField_Rollno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel_student_name)
.addComponent(jTextField_Student_Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel_student_name1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jComboBox_Date)
.addComponent(jComboBox_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jComboBox_year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel_city)
.addComponent(jTextField_City, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel_course)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel_Semester)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel_division)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton_VIEW)
.addComponent(jButton_DELETE)
.addComponent(jButton_ADD2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"0.6944929",
"0.6942576",
"0.69355655",
"0.6931378",
"0.6927896",
"0.69248974",
"0.6924723",
"0.69116884",
"0.6910487",
"0.6892381",
"0.68921053",
"0.6890637",
"0.68896896",
"0.68881863",
"0.68826133",
"0.68815064",
"0.6881078",
"0.68771756",
"0.6875212",
"0.68744373",
"0.68711984",
"0.6858978",
"0.68558776",
"0.6855172",
"0.6854685",
"0.685434",
"0.68525875",
"0.6851834",
"0.6851834",
"0.684266",
"0.6836586",
"0.6836431",
"0.6828333",
"0.68276715",
"0.68262815",
"0.6823921",
"0.682295",
"0.68167603",
"0.68164384",
"0.6809564",
"0.68086857",
"0.6807804",
"0.6807734",
"0.68067646",
"0.6802192",
"0.67943805",
"0.67934304",
"0.6791657",
"0.6789546",
"0.6789006",
"0.67878324",
"0.67877173",
"0.6781847",
"0.6765398",
"0.6765197",
"0.6764246",
"0.6756036",
"0.6755023",
"0.6751404",
"0.67508715",
"0.6743043",
"0.67387456",
"0.6736752",
"0.67356426",
"0.6732893",
"0.6726715",
"0.6726464",
"0.67196447",
"0.67157453",
"0.6714399",
"0.67140275",
"0.6708251",
"0.6707117",
"0.670393",
"0.6700697",
"0.66995865",
"0.66989213",
"0.6697588",
"0.66939527",
"0.66908985",
"0.668935"
] | 0.0 | -1 |
Method that changes the status of the switch depending on boulder situation. | public void changeStatus()
{
if(this.isActivate == false)
{
this.isActivate = true;
switchSound.play();
//this.dungeon.updateSwitches(true);
}
else{
this.isActivate = false;
switchSound.play(1.75, 0, 1.5, 0, 1);
//this.dungeon.updateSwitches(false);
}
notifyObservers();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void switchOn();",
"public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }",
"public void setStatus(int status){\n Log.d(TAG, \"-- SET STATUS --\");\n switch(status){\n //connecting to remote device\n case BluetoothClientService.STATE_CONNECTING:{\n Toast.makeText(this, \"Connecting to remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connecting_button);\n break;\n }\n //not connected\n case BluetoothClientService.STATE_NONE:{\n Toast.makeText(this, \"Unable to connect to remote device\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.disconnect_button);\n statusButton.setTextOff(getString(R.string.disconnected));\n statusButton.setChecked(false);\n break;\n }\n //established connection to remote device\n case BluetoothClientService.STATE_CONNECTED:{\n Toast.makeText(this, \"Connection established with remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connect_button);\n statusButton.setTextOff(getString(R.string.connected));\n statusButton.setChecked(true);\n //start motion monitor\n motionMonitor = new MotionMonitor(this, mHandler);\n motionMonitor.start();\n break;\n }\n }\n }",
"public void switchStatus() {\n if (ioStatus.get() == EdgeStatus.INPUT) {\n ioStatus.set(EdgeStatus.OUTPUT);\n } else {\n ioStatus.set(EdgeStatus.INPUT);\n }\n }",
"public void changeStatus(){\n Status = !Status;\n\n }",
"private void updateSwitchState() {\n this.mDisabled = !MiuiStatusBarManager.isShowNetworkSpeedForUser(this.mContext, -2);\n }",
"public void updateSwitches(){\r\n if(this.ar){\r\n this.augmentedReality.setChecked(true);\r\n }else{\r\n this.augmentedReality.setChecked(false);\r\n }\r\n\r\n if(this.easy){\r\n this.easyMode.setChecked(true);\r\n }else{\r\n this.easyMode.setChecked(false);\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsiv_update.changeSwitchStatus();\n\t\t\t\tEditor editor = sharedPreferences.edit();\n\t\t\t\teditor.putBoolean(MobileGuard.APP_AUTO_UPDATE,\n\t\t\t\t\t\tsiv_update.getSwitchStatus());\n\t\t\t\teditor.commit();\n\t\t\t}",
"public void setSwitchOn() throws UnavailableDeviceException, ClosedDeviceException, IOException{\n\t\tswitch1.setValue(false);\n\t\tthis.switchState = true; \n\t}",
"public void changeState(){\n\t\t//red - Green\n\t\tif (lights[0].isOn()){\n\t\t\tlights[0].turnOff();\n\t\t\tlights[2].turnOn();\n\t\t}\n\t\t\n\t\t//Green -yellow\n\t\telse if(lights[2].isOn()){\n\t\t\tlights[2].turnOff();\n\t\t\tlights[1].turnOn();\n\t\t}\n\t\t//yellow to red\n\t\telse if (lights[1].isOn()){\n\t\t\tlights[1].turnOff();\n\t\t\tlights[0].turnOn();\n\t\t}\n\t\t\n\t}",
"public boolean switchOn(){\n if(this.is_Switched_On){\n return false;\n }\n this.is_Switched_On = true;\n return true;\n }",
"@Override\n public void onClick(View v) {\n boolean checked = ((Switch)v).isChecked();\n if(checked){\n // when the switch is checked send the state 1 and value of progress to the server\n light_value=\"1\";\n SetData(MainActivity.URL+\"/mobile/set.php?token=\"+token,\"24\",light_value, String.valueOf(seekBar_light_bedroom2.getProgress()));\n }else {\n // when the switch is unchecked send the state 0 and value of progress to the server\n light_value=\"0\";\n SetData(MainActivity.URL+\"/mobile/set.php?token=\"+token,\"24\",light_value, String.valueOf(seekBar_light_bedroom2.getProgress()));\n }\n }",
"@Override\r\n public boolean isSwitchOn() {\r\n return isOn;\r\n }",
"@Override\r\n public void turnOn(){\r\n isOn = true;\r\n Reporter.report(this, Reporter.Msg.SWITCHING_ON);\r\n if (isOn){\r\n engageLoads();\r\n }\r\n }",
"public void Switch()\n {\n if(getCurrentPokemon().equals(Pokemon1))\n {\n // Change to pokemon2\n setCurrentPokemon(Pokemon2);\n }\n // if my current pokemon is the same as pokemon2\n else if(getCurrentPokemon().equals(Pokemon2))\n {\n // swap to pokemon1\n setCurrentPokemon(Pokemon1);\n }\n }",
"public void setCargoIntookState() {\n redLED.set(true);\n greenLED.set(false);\n blueLED.set(false);\n }",
"public abstract void setTurn(ModelStatus model);",
"private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}",
"public void setStable() {\n this.unstable = false;\n this.unstableTimeline.stop();\n this.statusLed.setFastBlink(false);\n if (this.shutdownButton.isSelected() == true) {\n this.statusLed.setStatus(\"off\");\n } else if (this.offlineButton.isSelected() == true) {\n this.statusLed.setStatus(\"warning\");\n } else {\n this.statusLed.setStatus(\"ok\");\n } \n }",
"public abstract void setBlinking(boolean status);",
"public void setBreakStatus(boolean state){\n\tonBreak = state;\n\tstateChanged();\n }",
"public void turnOn() {\n this.status = true;\n update(this.redValue, this.greenValue, this.blueValue);\n }",
"public void change() {\r\n this.mode = !this.mode;\r\n }",
"public void setStatus(boolean newStatus);",
"private void setLightStatus() {\n if (mCmd.equals(MSG_ON)) {\n setLighIsOn(true);\n } else {\n setLighIsOn(false);\n }\n }",
"public void changeState() {\r\n if(state == KioskState.CLOSED) {\r\n state = KioskState.OPEN;\r\n } else {\r\n state = KioskState.CLOSED;\r\n }\r\n }",
"@Test\n //checks for state switching (on/off)\n void SwitchStates() {\n Assertions.assertFalse(machine.isTurnedOn());\n\n //then, switch on and check if on\n machine.setTurnedOn(true);\n Assertions.assertTrue(machine.isTurnedOn());\n\n //switch off to see if turned off correctly\n machine.setTurnedOn(false);\n Assertions.assertFalse(machine.isTurnedOn());\n\n //and now check the inversion\n machine.flipSwitch();\n\n Assertions.assertTrue(machine.isTurnedOn());\n }",
"public void toggleSwitch() {\r\n if (this.radioToggleGroup.getSelectedToggle().equals(this.inHouseRadio)) {\r\n machineOrCompanyLabel.setText(\"Machine ID\");\r\n inHouseSelected = true;\r\n } else {\r\n machineOrCompanyLabel.setText(\"Company Name\");\r\n inHouseSelected = false;\r\n }\r\n }",
"public abstract void setSwitchType(String switchType);",
"private void setBidded(){\n this.status = \"Bidded\";\n }",
"OnOffSwitch alarmSwitch();",
"public boolean isSwitched();",
"public boolean switchOff(){\n if(!this.is_Switched_On){\n return false;\n }\n this.is_Switched_On = false;\n return true;\n }",
"public void steady(){\n if(steady){\n if(!bellySwitch.get()) {\n leftMotor.set(-.3);\n rightMotor.set(-.3);\n }else {\n leftMotor.set(0);\n rightMotor.set(0);\n } \n }\n }",
"public void setSwitch(String Switch) {\n this.Switch = Switch;\n }",
"public void setSwitch(String Switch) {\n this.Switch = Switch;\n }",
"public void flashlightSwitch()\n {\n usingFlashlight = !usingFlashlight;\n }",
"public static void setBooleanSwitchPossible() {\n booleanSwitchPossible = true;\n }",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"public void handleUpdateState(QSTile.BooleanState booleanState, Object obj) {\n boolean z;\n int i;\n int i2 = 1;\n boolean z2 = obj == QSTileImpl.ARG_SHOW_TRANSIENT_ENABLING;\n if (booleanState.slash == null) {\n booleanState.slash = new QSTile.SlashState();\n }\n boolean z3 = z2 || this.mHotspotController.isHotspotTransient();\n checkIfRestrictionEnforcedByAdminOnly(booleanState, \"no_config_tethering\");\n if (obj instanceof CallbackInfo) {\n CallbackInfo callbackInfo = (CallbackInfo) obj;\n booleanState.value = z2 || callbackInfo.isHotspotEnabled;\n i = callbackInfo.numConnectedDevices;\n z = callbackInfo.isDataSaverEnabled;\n } else {\n booleanState.value = z2 || this.mHotspotController.isHotspotEnabled();\n i = this.mHotspotController.getNumConnectedDevices();\n z = this.mDataSaverController.isDataSaverEnabled();\n }\n booleanState.icon = this.mEnabledStatic;\n booleanState.label = this.mContext.getString(R$string.quick_settings_hotspot_label);\n booleanState.isTransient = z3;\n booleanState.slash.isSlashed = !booleanState.value && !z3;\n if (z3) {\n booleanState.icon = QSTileImpl.ResourceIcon.get(17302458);\n }\n booleanState.expandedAccessibilityClassName = Switch.class.getName();\n booleanState.contentDescription = booleanState.label;\n boolean z4 = booleanState.value || booleanState.isTransient;\n if (z) {\n booleanState.state = 0;\n } else {\n if (z4) {\n i2 = 2;\n }\n booleanState.state = i2;\n }\n String secondaryLabel = getSecondaryLabel(z4, z3, z, i);\n booleanState.secondaryLabel = secondaryLabel;\n booleanState.stateDescription = secondaryLabel;\n }",
"protected abstract void switchOnCustom();",
"public void onClick(View v) {\n is_enabled=!is_enabled;\n if(!is_enabled){\n textView_current_Status.setText(R.string.switcher_is_being_enabled_please_wait);\n //sayHello();\n Set_Switch_On();\n }else{\n textView_current_Status.setText(R.string.switcher_is_currently_disabled);\n Set_Switch_Off();\n }\n }",
"private void handleTrackingSwitchChecked() {\n mSwitchTracking.setText(R.string.switchStopTracking);\n if (mListener != null) {\n mListener.onStartFragmentStartTracking();\n }\n }",
"public void changeTurn(){\n\t\tif (this.turn ==\"blue\")\n\t\t{\n\t\t\tthis.turn = \"red\";\n\t\t\t\n\t\t}else{\n\t\t\tthis.turn =\"blue\";\n\t\t}\n\t}",
"private void changeTurn(){ \r\n\t\tif (currentTurn == 1)\r\n\t\t\tcurrentTurn = 0; \r\n\t\telse\r\n\t\t\tcurrentTurn = 1; \r\n\t}",
"public void Power() {\n if (Estado == false){\r\n Estado = true;\r\n } else if (Estado == true){\r\n Estado = false;\r\n }\r\n }",
"private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}",
"public void changeTurn() {\n\t\t\n\t\tif(currentTurn == white) {\n\t\t\t\n\t\t\tcurrentTurn = black;\n\t\t}\n\t\telse if(currentTurn == black){\n\t\t\t\n\t\t\tcurrentTurn = white;\n\t\t}\n\t}",
"public void switchOff();",
"public void changeTurn(){\r\n model.setCheckPiece(null);\r\n model.swapPlayers();\r\n }",
"private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}",
"public void turn_on () {\n this.on = true;\n }",
"public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsiv_intercep.changeSwitchStatus();\n\t\t\t\tboolean status = siv_intercep.getSwitchStatus();\n\t\t\t\tIntent intent = new Intent(SettingActivity.this,\n\t\t\t\t\t\tMgInCallStateService.class);\n\t\t\t\tif (status) {\n\t\t\t\t\tstartService(intent);\n\t\t\t\t} else {\n\t\t\t\t\tstopService(intent);\n\t\t\t\t}\n\t\t\t}",
"private void switchBtnActionPerformed(ActionEvent evt) {\r\n if(switchBtn.isSelected()) {\r\n switchBtn.setText(\"MIPS -> C\");\r\n switchBtnState = 1;\r\n }\r\n else {\r\n switchBtn.setText(\"C -> MIPS\");\r\n switchBtnState = -1;\r\n }\r\n }",
"public void go_to_switch_position() {\n stop_hold_arm();\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_switch, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n hold_arm();\n }",
"void setNightModeState(boolean b);",
"public void turnOn() {\n\t\tOn = true;\n\t}",
"private void changeTurn() {\n if (turn == RED) {\n turn = YELLOW;\n } else {\n turn = RED;\n }\n }",
"public void change () {\n\t\tswitch (setting) {\n\t\tcase OFF:\n\t\t\tsetting=possibleSettings.LOW;\n\t\tcase LOW:\n\t\t\tsetting=possibleSettings.MEDIUM;\n\t\tcase MEDIUM:\n\t\t\tsetting=possibleSettings.HIGH;\n\t\tcase HIGH:\n\t\t\tsetting=possibleSettings.OFF;\n\t\t\n\t\t}\n\t\t//assert setting()==OFF || setting()==LOW || setting()==MEDIUM || setting()==HIGH;\n\t\t//setting = (setting + 1) % 4;\n\t}",
"@Override\r\n public void onChange(SwitchButton sb, boolean state) {\n Log.d(\"switchButton\", state ? \"锟斤拷\":\"锟斤拷\");\r\n mImgView.setImageBitmap(null);\r\n //defreckle\r\n if(qubanSBtn.isSwitchOn())\r\n mImgView.setImageBitmap(mFaceEditor.BFDefreckleAuto());//));\r\n else\r\n mImgView.setImageBitmap(mFaceEditor.getBaseImage());\r\n }",
"public void changeTurn() {\n if (turn == 1) {\n turn = 2;\n\n } else {\n turn = 1;\n\n }\n setTextBackground();\n }",
"public void setSwitchOff() throws UnavailableDeviceException, ClosedDeviceException, IOException {\n\t\tswitch1.setValue(true);\n\t\tthis.switchState = false; \n\t}",
"public void turnOff() {\n update(0,0,0);\n this.status = false;\n }",
"void finishSwitching();",
"public void turnLightsOff()\n {\n set(Relay.Value.kOff);\n }",
"public void switchSmart(){\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseBrightnessCmd(seekBarBrightness.getProgress()), 3, seekBarBrightness.getProgress(), item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n //String CMD_HSV = \"{\\\"id\\\":1,\\\"method\\\":\\\"set_hsv\\\",\\\"params\\\":[0, 0, \\\"smooth\\\", 30]}\\r\\n\";\r\n //write(CMD_HSV, 0, 0);\r\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseRGBCmd(msAccessColor(Color.WHITE)), 0, 0, item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n }",
"public void switchAtm(boolean flag);",
"public void Switch_1_click(View view) {\n\n String SwitchStatus;\n sw_val = 1;\n if(true)\n {\n if (!is_esp_conn) // calling function to check connectivity to ESP on every button press\n esp_not_conn();\n\n\n\n if (ipAddress.equals(\"\"))\n Toast.makeText(MainActivity.this, \"Invalid IP detected\\nKindly check connection...\", Toast.LENGTH_LONG).show();\n }\n {\n if (view == S1_on) {\n SwitchStatus = \"1\";\n S1_on.setBackgroundColor(Color.GREEN);\n S1_off.setBackgroundColor(Color.LTGRAY);\n } else {\n SwitchStatus = \"0\";\n S1_off.setBackgroundColor(Color.RED);\n S1_on.setBackgroundColor(Color.LTGRAY);\n }\n\n //Connect to default port number. Ex: http://IpAddress:80\n String url =\"http://\" + ipAddress + \":\" + \"80\" + \"/sw\" + sw_val + \"/\" +SwitchStatus;\n changeSwitchState(url);\n\n\n }\n }",
"@Override\n public void onCheckedChanged(CompoundButton toggleButton, boolean isChecked) {\n if (!isChecked) {\n viewHolder.state_endpoint_in_scene_text_view.setText(context.getResources().getString(R.string.label_off));\n state[0] = 0;\n } else {\n viewHolder.state_endpoint_in_scene_text_view.setText(context.getResources().getString(R.string.label_on));\n state[0] = 255;\n }\n // If the values are modified while the user does not check/unckeck the checkbox, then we update the value from the controller.\n int exist = mode.getPayload().indexOf(c);\n if (exist != -1) {\n mode.getPayload().get(exist).setV(state[0]);\n }\n }",
"public void turnLightsOn()\n {\n set(Relay.Value.kForward);\n }",
"public void changeTurn()\r\n {\r\n isPlayersTurn = !isPlayersTurn;\r\n }",
"public void setStatus(Boolean s){ status = s;}",
"private boolean poleSwitchEngaged(){\n return true; //poleSwitch.get();\n }",
"public void add_switch(String symbol, SLR1_automat.State state) throws Exception;",
"public void switchColor(){\r\n System.out.println(color);\r\n if(color==\"W\"){\r\n color=\"B\";\r\n System.out.println(color);\r\n }else{ \r\n color=\"W\";\r\n } \r\n }",
"private void setTurn() {\n if (turn == black) {\n turn = white;\n } else {\n turn = black;\n }\n }",
"protected abstract void switchOffCustom();",
"public void brakeFailureStatus() {\n \tthis.brakeFailureActive = this.trainModelGUI.brakeFailStatus();\n }",
"protected void toggleLaser() {\n laserOn = !laserOn;\n }",
"protected void changeStatus(String state)\n { call_state=state;\n printLog(\"state: \"+call_state,Log.LEVEL_MEDIUM); \n }",
"public void setTurning(java.lang.Boolean value);",
"private ScanState switchState(ScanState desired,String forOperation) {\n return switchState(desired,allowedStates.get(forOperation));\n }",
"public void status(boolean b) {\n status = b;\n }",
"public void turnOn() {\n\t\tisOn = true;\n\t}",
"public static void driveMode(){\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Intake Disabled:\", Intake.intakeDisabled);\n\t\tSmartDashboard.putNumber(\"motorSpeed\", Intake.intakeMotorSpeed);\n\t\tSmartDashboard.putNumber(\"conveyorMotorSpeed\", Score.conveyorMotorSpeed);\n\t\tSmartDashboard.putBoolean(\"Intake Motor Inverted?:\", Actuators.getFuelIntakeMotor().getInverted());\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\n\t\t\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putNumber(\"Total Current Draw:\", SensorsDio.PDPCurrent(Sensors.getPowerDistro()));\n\n\t\n\t//TODO: Add Gear Vibrations for both controllers\n\t//Vibration Feedback\n\t\t//Sets the Secondary to vibrate if climbing motor is going to stall\n\t\tVibrations.climbStallVibrate(Constants.MAX_RUMBLE);\t\n\t\t//If within the second of TIME_RUMBLE then both controllers are set to HALF_RUMBLE\n\t\tVibrations.timeLeftVibrate(Constants.HALF_RUMBLE, Constants.TIME_RUMBLE);\t\n\t\t\n\t}",
"private static void setNormalState() {\n InitialClass.arduino.serialWrite('0');\n InitialClass.arduino.serialWrite('6');\n InitialClass.arduino.serialWrite('2');\n InitialClass.arduino.serialWrite('8');\n InitialClass.arduino.serialWrite('C');\n InitialClass.arduino.serialWrite('A');\n InitialClass.arduino.serialWrite('4');\n /// hide animated images of scada\n pumpForSolutionOn.setVisible(false);\n pumpForTitrationOn.setVisible(false);\n mixerOn.setVisible(false);\n valveTitrationOpened.setVisible(false);\n valveSolutionOpened.setVisible(false);\n valveWaterOpened.setVisible(false);\n valveOutOpened.setVisible(false);\n\n log.append(\"Клапана закрыты\\nдвигатели выключены\\n\");\n\n }",
"@Override\n\t public void onClick(View v) {\n\t \teditor.putInt(\"buttonLabel\", 4);\n\t \t\teditor.commit();\n\t \tif(powerSwitch.isChecked() && nCurrentSpeed > drivingSpeed){\n\t \t\twarning();\n\t \t}\n\t \telse\n\t \t\tlaunchContact();\n\t }",
"void setShutterLEDState(boolean on);",
"protected void updateState( int newMode)\n {\n if (newMode == mode) return;\n mode = newMode;\n port.controlMotor(power, newMode);\n }",
"@Override\n\tpublic void adjust() {\n\t\tstate = !state;\n\t}",
"public void setLaneChange(java.lang.Boolean value);",
"private void displayStatus(final byte b) {\n\n\t\trunOnUiThread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tbyte[] output = {b};\n Log.d(TAG, \"status: \" + Utils.bytesToHex2(output)); \n\t\t\t\tString currentTime = \"[\" + formater.format(new Date()) + \"] : \";\n\t\t\t\tif ((byte) (b & 0x01) == 0x01) {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tisUsbDisconnected = false;\n\t\t\t\t\t}\n\t\t\t\t\tledUsb.setPressed(true);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x01) == 0x00)\n\t\t\t\t\t\tlog(currentTime + \"usb connected\");\n\t\t\t\t} else {\n\t\t\t\t\tledUsb.setPressed(false);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x01) == 0x01)\n\t\t\t\t\t\tlog(currentTime + \"usb disconnected\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif ((byte) (b & 0x02) == 0x02) {\n\t\t\t\t\tledWifi.setPressed(true);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x02) == 0x00)\n\t\t\t\t\t log(currentTime + \"wifi connected\");\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tledWifi.setPressed(false);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x02) == 0x02)\n\t\t\t\t\tlog(currentTime + \"wifi disconnected\");\n\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tif ((byte) (b & 0x04) == 0x04) {\n\t\t\t\t\tledTelep.setPressed(true);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x04) == 0x00)\n\t\t\t\t log(currentTime + \"telep. connected\");\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tledTelep.setPressed(false);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x04) == 0x04)\n\t\t\t\t\tlog(currentTime + \"telep. disconnected\");\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tmPreviousStatus = b;\n\n\t\t\t}\n\t\t});\n\n\t}",
"public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }",
"public void switchPlayer() {\n \tisWhitesTurn = !isWhitesTurn;\n }",
"public boolean isSwitchedOn(){\r\n return _switchedOn;\r\n }",
"public void setCargoOuttakeState() {\n greenLED.set(true);\n redLED.set(false);\n blueLED.set(false);\n }",
"@Override\n\t\t\tpublic void onSwitchChange(TagButton tagButton, boolean isChecked) {\n\t\t\t\tif (isChecked)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(Test.this, \"开\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(Test.this, \"关\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"private void goOnBreak(){\n\tDo(\"Going on break\");\n\tstartedBreak = true;\n\tstateChanged();\n }",
"public void onChange(boolean selfChange, Uri uri) {\n if (Settings.Global.getUriFor(\"forced_app_standby_enabled\").equals(uri)) {\n boolean enabled = isForcedAppStandbyEnabled();\n synchronized (AppStateTracker.this.mLock) {\n if (AppStateTracker.this.mForcedAppStandbyEnabled != enabled) {\n AppStateTracker.this.mForcedAppStandbyEnabled = enabled;\n }\n }\n } else if (Settings.Global.getUriFor(\"forced_app_standby_for_small_battery_enabled\").equals(uri)) {\n boolean enabled2 = isForcedAppStandbyForSmallBatteryEnabled();\n synchronized (AppStateTracker.this.mLock) {\n if (AppStateTracker.this.mForceAllAppStandbyForSmallBattery != enabled2) {\n AppStateTracker.this.mForceAllAppStandbyForSmallBattery = enabled2;\n AppStateTracker.this.updateForceAllAppStandbyState();\n }\n }\n } else {\n Slog.w(AppStateTracker.TAG, \"Unexpected feature flag uri encountered: \" + uri);\n }\n }"
] | [
"0.68727005",
"0.6821479",
"0.67314535",
"0.6723592",
"0.66747826",
"0.6631215",
"0.66268307",
"0.65371054",
"0.64713544",
"0.6399125",
"0.6394297",
"0.636091",
"0.6317046",
"0.6279644",
"0.6250545",
"0.6233012",
"0.6177965",
"0.6175229",
"0.6170116",
"0.61682916",
"0.6153741",
"0.6149746",
"0.6145362",
"0.6142496",
"0.6129589",
"0.6104093",
"0.60926723",
"0.6076577",
"0.6073742",
"0.6070265",
"0.60627085",
"0.6034527",
"0.6022559",
"0.600573",
"0.6000676",
"0.6000676",
"0.5997086",
"0.59967285",
"0.5991703",
"0.5978653",
"0.5978128",
"0.59776974",
"0.5963661",
"0.5962286",
"0.5959645",
"0.5934531",
"0.59161437",
"0.5903157",
"0.5902307",
"0.58960664",
"0.58958817",
"0.58871573",
"0.5885944",
"0.58787936",
"0.5878433",
"0.587071",
"0.5854602",
"0.5852355",
"0.5849801",
"0.5849012",
"0.5844399",
"0.58394915",
"0.58355945",
"0.5824666",
"0.5816667",
"0.58094364",
"0.58092535",
"0.5808976",
"0.58033186",
"0.5794017",
"0.579194",
"0.5778794",
"0.5778215",
"0.57765085",
"0.57736045",
"0.5772218",
"0.57614356",
"0.57569927",
"0.5750644",
"0.57390547",
"0.57364184",
"0.5734988",
"0.5733169",
"0.5728848",
"0.5724079",
"0.5713575",
"0.57110685",
"0.5707367",
"0.5706363",
"0.56987154",
"0.569667",
"0.5693545",
"0.56860626",
"0.56855994",
"0.5677214",
"0.56658435",
"0.56498957",
"0.5647155",
"0.56438935",
"0.56389683"
] | 0.6740986 | 2 |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
NetworkHandler nwHandler=new NetworkHandler(this);
textRightColor=Color.rgb(0,42,17);
//Setup the grid view and the corresponding adapter
setContentView(R.layout.test2);
inetDetailsTV=(TextView)findViewById(R.id.inetTV);
gpsDetailsTV=(TextView)findViewById(R.id.gpsTV);
serviceDetailsTV=(TextView)findViewById(R.id.serviceTV);
tourB=(Button)findViewById(R.id.tourB);
tourB.setOnClickListener(new ButtonHandler());
startService(new Intent(this,NotificationService.class));
//serviceDetailsTV.setTextColor(textRightColor);
serviceDetailsTV.setText("GO-Reminder is online");
//simple test to start a new service
if(nwHandler.getIsConnected()){
//inetDetailsTV.setTextColor(textRightColor);
inetDetailsTV.setText("You are connected to Internet");
}else{
inetDetailsTV.setText("You are not connected to Internet.");
}
if(CommonUtils.GPS_IS_ENABLED){
//gpsDetailsTV.setTextColor(textRightColor);
gpsDetailsTV.setText("GPS is enabled");
}else{
gpsDetailsTV.setText("GPS is disabled.");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"protected void onCreate() {\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}",
"@Override\n public void onCreate()\n {\n\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n initData();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}",
"protected void onFirstTimeLaunched() {\n }",
"@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void onCreate() {\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}",
"@Override\n public void onCreate() {\n\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}",
"public void onCreate() {\n }",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}",
"@Override\n\tpublic void onCreate() {\n\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }",
"@Override\n public void onCreate()\n {\n\n\n }",
"@Override\n\tprotected void onCreate() {\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}",
"public void onCreate();",
"public void onCreate();",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }",
"@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }",
"public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }",
"@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }",
"@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}",
"@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}",
"@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }"
] | [
"0.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",
"0.74805456",
"0.7475343",
"0.7469598",
"0.7469598",
"0.7455178",
"0.743656",
"0.74256307",
"0.7422192",
"0.73934627",
"0.7370002",
"0.73569906",
"0.73569906",
"0.7353011",
"0.7347353",
"0.7347353",
"0.7333878",
"0.7311508",
"0.72663945",
"0.72612154",
"0.7252271",
"0.72419256",
"0.72131634",
"0.71865886",
"0.718271",
"0.71728176",
"0.7168954",
"0.7166841",
"0.71481615",
"0.7141478",
"0.7132933",
"0.71174103",
"0.7097966",
"0.70979583",
"0.7093163",
"0.7093163",
"0.7085773",
"0.7075851",
"0.7073558",
"0.70698684",
"0.7049258",
"0.704046",
"0.70370424",
"0.7013127",
"0.7005552",
"0.7004414",
"0.7004136",
"0.69996923",
"0.6995201",
"0.69904065",
"0.6988358",
"0.69834954",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69783133",
"0.6977392",
"0.69668365",
"0.69660246",
"0.69651115",
"0.6962911",
"0.696241",
"0.6961096",
"0.69608897",
"0.6947069",
"0.6940148",
"0.69358927",
"0.6933102",
"0.6927288",
"0.69265485",
"0.69247025"
] | 0.0 | -1 |
calculate from first element to last element | public void calculateArray() {
for (int i = 0; i < array.length; i++) {
sum += array[i];
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int lastOneIndexForLoop(int first, int last){\n//\t\tint max = Integer.MAX_VALUE;\n\t\tif(first < 0) first = 0;\n\t\tif(last < 0) last = 0;\n\t\tif(first > last) return 0;\n\n\t\treturn last;\n\t}",
"public int currentFirstIndexSetRelativeToZero() {\n return calculateIndexRelativeToZero(currentFirstIndexSet());\n }",
"public double average(int first, int last){\n double final = 0;\n for(int i = first; i < last; i++){\n final += scores[i];\n }\n return final/(last-first+1);\n}",
"public double t1() {\n\t\treturn segments.size() - 1;\n\t}",
"public double getFirst()\n {\n return first;\n }",
"public static int[] process(int[] prevHolder) { \r\n\t\t int[] holder = new int[prevHolder.length + 1];\r\n\t \r\n\t /**the first entry in holder will always be 1*/\t \r\n\t holder[0] = 1;\r\n\t \r\n\t /**this loop populates the numbers inbetween the first and last index values, the first and last values are already handled*/\r\n\t for (int i = 1; i < holder.length - 1; i++) {\r\n\t \t holder[i] = prevHolder[i-1] + prevHolder[i];\r\n\t }\r\n\t \r\n\t /**the last entry in holder is always 1*/\r\n\t holder[holder.length - 1] = 1;\r\n\t \r\n\t \r\n\t /**returns the result from this iteration of the for loop in the main method to be used in the next iteration*/\t \r\n\t return holder;\r\n\t }",
"public abstract double getDistance(int[] end);",
"public double getSum()\n {\n return first + second;\n }",
"public double get(){\n sum = 0;\n if(hasFilled){\n for(int j=0; j<list.length; j++)\n {\n sum += list[j];\n }\n \n return sum/(double)list.length;\n }\n else{\n for(int j = 0; j < index;j++){\n sum += list[j];\n }\n return sum/(double)index;\n }\n }",
"public int upperBound() {\n\t\tif(step > 0)\n\t\t\treturn last;\n\t\telse\n\t\t\treturn first;\n\t}",
"double getLeft(double min);",
"public double getFirst() {\n return first;\n }",
"public void sumValues(){\n\t\tint index = 0;\n\t\tDouble timeIncrement = 2.0;\n\t\tDouble timeValue = time.get(index);\n\t\tDouble packetValue;\n\t\twhile (index < time.size()){\n\t\t\tDouble packetTotal = 0.0;\n\t\t\twhile (timeValue < timeIncrement && index < packets.size()){\n\t\t\t\ttimeValue = time.get(index);\n\t\t\t\tpacketValue = packets.get(index);\n\t\t\t\tpacketTotal= packetTotal + packetValue;\n\t\t\t\tindex = index + 1;\n\t\t\t}\n\t\t\tArrayList<Double> xy = new ArrayList<Double>();\n\t\t\txy.add(timeIncrement);\n\t\t\txy.add(packetTotal);\n\t\t\ttotalIncrements.add(xy);\n\t\t\t// to get max and min need separate arrays\n\t\t\ttimeIncrements.add(timeIncrement);\n\t\t\tbyteIncrements.add(packetTotal);\n\t\t\ttimeIncrement = timeIncrement + 2.0;\t\n\t\t}\n\t\treturn;\n\n\t}",
"public int getFirstInInterval(int start) {\n if (start > last()) {\n return -1;\n }\n if (start <= first) {\n return first;\n }\n if (stride == 1) {\n return start;\n }\n int offset = start - first;\n int i = offset / stride;\n i = (offset % stride == 0) ? i : i + 1; // round up\n return first + i * stride;\n }",
"public double getEnd();",
"private int elementNC(int i) {\n return first + i * stride;\n }",
"private int getDistanceEnd() {\n int lastPoint = getNumPoints() - 1;\n return getDistanceIndex(lastPoint) + lastPoint;\n }",
"public static int computeTimeFinish(ArrayList<Integer> l) {\n\n int sum = 0;\n Collections.sort(l);\n int[] peoples = new int[3];\n peoples[0] = l.size() / 3;\n peoples[1] = (l.size() - peoples[0]) / 2;\n peoples[2] = (l.size() - peoples[0]) / 2;\n int position = 0;\n\n while (l.size() > 0){\n int count = 0;\n int total = 0;\n\n while (peoples[position] > 0){\n\n if (l.size() == 0){\n break;\n }\n\n if (count % 2 == 0) {\n total += l.get(l.size() - 1);\n l.remove(l.size() - 1);\n } else {\n total += l.get(0);\n l.remove(0);\n }\n peoples[position]--;\n count++;\n }\n if (total > sum){\n sum = total;\n }\n position++;\n }\n\n return sum;\n }",
"public int getDelta() {\n\t\treturn (int) ((end - start) % Integer.MAX_VALUE);\n\t}",
"int getTotalElements();",
"private int helper(int[] a, int s, int e) {\n if (s == e) return a[s];\n int c1 = a[s] - helper(a, s + 1, e);\n int c2 = a[e] - helper(a, s, e - 1);\n return Math.max(c1, c2);\n }",
"public E getLast() {\r\n\t\tif (tail == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(size - 1).data;\t\r\n\t\t}\r\n\t}",
"public double getLeft(double min) {\n return min - this.size; \n }",
"public int query(int start, int end) {\n return prefixSum[end][1] - prefixSum[start][0];\n }",
"public final void sub() {\n\t\tif (size > 1) {\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue - topMostValue);\n\t\t}\n\t}",
"public int lastNonZero() {\n\t\tint i;\n\t\tfor(i=pointList.size()-1; i>=0; i--) {\n\t\t\tif (pointList.get(i).getY() > 0)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn 0;\n\t}",
"@Override\n public Persona Last() {\n return array.get(tamano - 1);\n }",
"private int calculate(int index) {\n return (head + index) % data.length;\n }",
"@Override\n public int element() {\n isEmptyList();\n return first.value;\n }",
"private static void BubbleRec(int[] arr, int first, int last) {\n\t\t\n\t\tif(first<last) {\n\t\t\tif (arr[first]>arr[first+1]) swap(arr, first);\n\t\t\t\n\t\t\t//Sort the biggest element to last index\n\t\t\tBubbleRec(arr, first+1, last); \n\t\t\t\n\t\t\t// Prohibit calling n+1 pass before finishing n pass\n\t\t\t// Start n+1 pass\n\t\t\tif (first==0) BubbleRec(arr, first, last-1);\n\t\t}\n\t}",
"public final void div() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue > 0) {\n\t\t\t\tpush(secondTopMostValue / topMostValue);\n\t\t\t}\n\t\t}\n\t}",
"private static double middleValueElementInArray(int[] arr) {\n double sum = sumElementArray(arr);\n return sum /arr.length;\n }",
"public E getLast(){\n return tail.getPrevious().getElement();\n }",
"@Override\n\tpublic int arithmetical(int first, int second) {\n\t\treturn first - second;\n\t}",
"private int getmiddle() {\n Node slow = this;\n Node fast = this;\n Boolean slow_move = false;\n while (fast != null) {\n if (slow_move) {\n fast = fast.nextNode;\n slow = slow.nextNode;\n slow_move = false;\n } else {\n fast = fast.nextNode;\n slow_move = true;\n }\n }\n return slow.value;\n }",
"private static int divideAndConquer(int[] hist, int first, int last) {\n if (last - first < 2) { // single bar or 2 bars don't hold water\n return 0;\n } else {\n final int idxMax = findIndexOfMaxInside(hist, first, last);\n final int maxVal = hist[idxMax];\n final int level = Math.min(hist[first], hist[last]);\n\n if (maxVal <= level) { // hollow area: base case!\n int water = 0;\n for (int i = first + 1; i < last; ++i) {\n water += level - hist[i]; // subtract 'bottom'\n }\n return water;\n } else { // maxVal sticks above water: conquer\n return divideAndConquer(hist, first, idxMax) + divideAndConquer(hist, idxMax, last);\n }\n }\n }",
"public int robTotal(int[] nums, int sums[],int start, int end) {\n\t\tfor (int i = start; i< end+1; i++) {\n\t\t\trobRecAtIndex(i, nums, sums);\n\t\t}\n\t\treturn sums[end];\n\t}",
"public double getStart();",
"public float getLastValue() {\n // ensure float division\n return ((float)(mLastData - mLow))/mStep;\n }",
"private long getTimeEnd(ArrayList<Point> r, ArrayList<Point> s){\n\t\t// Get the trajectory with earliest last point\n\t\tlong tn = s.get(s.size()-1).timeLong < r.get(r.size()-1).timeLong ? \n\t\t\t\ts.get(s.size()-1).timeLong : r.get(r.size()-1).timeLong;\n\t\treturn tn;\n\t}",
"public int getRear() {\n if(size == 0) return -1;\n return tail.prev.val;\n}",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 - n2;\r\n\t}",
"int absoluteValuesSumMinimization(int[] a) {\n return a[(a.length-1)/2];\n }",
"private List<Valuable> helper(double amount, List<Valuable> money) {\n if(money.size() == 0) return null;\n Valuable current = money.get(0);\n if(amount >= current.getValue()) {\n if(amount - current.getValue() == 0) return new ArrayList<Valuable>(money.subList(1,money.size()));\n List<Valuable> tempList;\n if(( tempList=helper(amount-current.getValue(),money.subList(1,money.size())) ) != null ) {\n return tempList;\n }\n }\n List<Valuable> returnList = helper(amount,money.subList(1,money.size()));\n if(returnList != null) returnList.add(current);\n return returnList;\n }",
"public double sum() {\n double sum = x;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n sum += iter.next.x;\n iter = iter.next;\n }\n return sum;\n }",
"public int getFront() {\n return !isEmpty() ? elements[last - 1] : -1;\n }",
"public double getAveDelta(double[] curr, double[] prev) {\n\t\tdouble aveDelta = 0;\n\t\tassert (curr.length == prev.length);\n\t\tfor (int j = 0; j < curr.length; j++) {\n\t\t\taveDelta += Math.abs(curr[j] - prev[j]);\n\t\t}\n\t\taveDelta /= curr.length;\n\t\treturn aveDelta;\n\t}",
"public int serachMaxOrMinPoint(int [] A){\r\n\t\r\n\tint mid, first=0,last=A.length-1;\r\n\t\r\n\twhile( first <= last){\r\n\t\tif(first == last){\r\n\t\t\treturn A[first];\r\n\t\t}\r\n\t\telse if(first == last-1){\r\n\t\t\treturn Math.max(A[first], A[last]);\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\tmid= first + (last-first)/2;\r\n\t\t\t\r\n\t\t\tif(A[mid]>A[mid-1] && A[mid]>A[mid+1])\r\n\t\t\t\treturn A[mid];\r\n\t\t\telse if(A[mid]>A[mid-1] && A[mid]<A[mid+1])\r\n\t\t\t\tfirst=mid+1;\r\n\t\t\telse if(A[mid]<A[mid-1] && A[mid]>A[mid+1])\r\n\t\t\t\tlast=mid-1;\r\n\t\t\telse return -1;\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\treturn -1;\r\n\t\r\n}",
"private static List<Integer> addOne(List<Integer> input) {\n\n\t\tList<Integer> copy = new ArrayList<>();\n\t\tcopy.addAll(input);\n\n\t\tint size = copy.size();\n\t\tcopy.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && copy.get(i)==10; i--) {\n\t\t\tcopy.set(i, 0);\n\t\t\tcopy.set(i-1, copy.get(i-1)+1);\n\t\t}\n\n\t\tif(copy.get(0) == 10) {\n\t\t\tcopy.set(0, 0);\n\t\t\tcopy.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn copy;//this NOT modifies the original input\n\t}",
"public int getMiddleValue(){\n\tint nodeValue=0, llSize=0, brojac=0,middle;\n\tNode current=head;\n\twhile(current!=null){\n\t\tllSize++;\n\t\tcurrent=current.next;\n\t}\n\tmiddle=llSize/2;\n\tcurrent=head;\n\twhile(brojac!=middle){\n\t\tcurrent=current.next;\n\t\tbrojac++;\n\t}\n\tnodeValue=current.value;\n\treturn nodeValue;\n}",
"@Test\n public void elementLocationTestIterative() {\n int elementNumber = 3;\n System.out.println(nthToLastReturnIterative(list.getHead(), elementNumber).getElement());\n }",
"double getSum();",
"double getSum();",
"private static void BubbleRecMod(int[] arr, int first, int last) {\n\t\t\n\t\tboolean pass = true;\n\t\tif (first<last) {\n\t\t\tpass = false; //assume this is last pass over array\n\t\t\tif (arr[first]>arr[first+1]) {\n\t\t\t\tswap(arr, first);\n\t\t\t\tpass = true; //after an exchange, must look again\n\t\t\t}\n\t\t\t//Sort the biggest element to last index\n\t\t\tBubbleRecMod(arr, first+1, last); \n\t\t\t// Prohibit calling n+1 pass before finishing n pass\n\t\t\t// Start n+1 pass\n\t\t\tif (first==0) BubbleRecMod(arr, first, last-1);\n\t\t}\n\t}",
"public T getLast()\n\t//POST: FCTVAL == last element of the list\n\t{\n\t\tNode<T> tmp = start;\n\t\twhile(tmp.next != start) //traverse the list to end\n\t\t{\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn tmp.value;\t//return end element\n\t}",
"public abstract ArrayList<Object> calculateTransform(ArrayList<Integer> arr);",
"@Override\n\tpublic void run() {\n\t\tresult =\n\t\t\tStream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})\n\t\t\t\t.limit(limit)\n\t\t\t\t.map(n -> n[0])\n\t\t\t\t.collect(toList());\n\n\t}",
"public static void main(String[] args) {\n int[] nums = {1, 3, 4, 5, 8, 9, 4};\n\n\n for (int i = nums.length - 1; i >= 0; i--) {\n System.out.print(\"reverse order \" + nums[i]);\n System.out.print(\"->\");\n }\n System.out.println(\"****\");\n int lastItem = nums[nums.length - 1];\n System.out.println(\"Last Item value \" + lastItem);\n System.out.println(\"middle item index value=\" + nums[nums.length / 2]);\n int sum = 0;\n for (int x = 0; x < nums.length; x++) {\n\n sum = sum + nums[x];\n }\n System.out.println(\"sum= \" + sum);\n int max =nums[0];\n for (int eachnums : nums) {\n if(eachnums>max){\n max=eachnums;\n }\n\n }\n System.out.println(\"max value = \"+max);\n int min=nums[0];\n\n for(int eachnums:nums){\n if(eachnums<min){\n min=eachnums;\n }\n }\n System.out.println(\"min = \"+min);\n }",
"public int sumDescendants() {\n if (left == null && right == null) {\n int oldVal = value;\n /* fill code*/\n value = 0;\n return oldVal;\n\n } else {\n int oldVal = value;\n\n /* fill code*/\n value = left.sumDescendants()+ right.sumDescendants();\n\n return oldVal + value;\n\n }\n }",
"public int resta(){\r\n return x-y;\r\n }",
"private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }",
"public E nextStep() {\r\n\t\tthis.current = this.values[Math.min(this.current.ordinal() + 1, this.values.length - 1)];\r\n\t\treturn this.current;\r\n\t}",
"private int go(int a[]) {\n int n = a.length;\n int maxsofar = Integer.MIN_VALUE;\n int minsofar = Integer.MAX_VALUE;\n int curmin = 0, curmax = 0, total = 0;\n int ans = 0;\n\n for (int i = 0; i < n; i++) {\n curmax = Math.max(curmax + a[i], a[i]);\n curmin = Math.min(curmin + a[i], a[i]);\n maxsofar = Math.max(maxsofar, curmax);\n minsofar = Math.min(minsofar, curmin);\n total += a[i];\n }\n\n if (maxsofar > 0) {\n ans = Math.max(maxsofar, total - minsofar);\n } else {\n ans = maxsofar;\n }\n return ans;\n }",
"public final void add() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue + topMostValue);\n\t\t}\n\t}",
"public int step() {\n ArrayList<Integer> copy = new ArrayList<Integer>();\n for (int i = 1; i < register.size(); i++) { \n copy.add(register.get(i));\n }\n int tapNum = register.get(register.size()-tap-1);\n int begin = register.get(0);\n if (tapNum == 1 ^ begin == 1) {\n copy.add(1);\n }\n else {\n copy.add(0);\n }\n register.clear();\n register.addAll(copy);\n return register.get(register.size()-1);\n }",
"public static Triplet<Integer, Integer, Integer> subArraySum(List<Integer> list) {\n\n int left;\n int right;\n int min = MAX_VALUE;\n\n List<Pair<Integer, Integer>> pairs = build(list);\n Pair<Integer, Integer> prev = pairs.get(0);\n int start = prev.getRight();\n int end = prev.getRight();\n for (int i = 1; i < pairs.size(); i++) {\n Pair<Integer, Integer> pair = pairs.get(i);\n int diff = pair.getLeft() - prev.getLeft();\n if (diff <= min) {\n min = diff;\n start = prev.getRight();\n end = pair.getRight();\n }\n prev = pair;\n }\n left = min(start, end) + 1;\n right = max(start, end);\n return Triplet.build(left, right, min);\n }",
"private int first_leaf() { return n/2; }",
"@Test\n public void testPrevious_Middle() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 5, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.next();\n\n Integer expResult = 5;\n Integer result = instance.previous();\n assertEquals(expResult, result);\n }",
"public abstract T accumulate(T left, T right);",
"double getTotal();",
"@Test\n public void testPreviousIndex_Middle() {\n\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n int expResult = 1;\n int result = instance.previousIndex();\n\n assertEquals(expResult, result);\n }",
"public int getLast() {\n if (size == 0)\n return NO_ELEMENT;\n else\n return endOfBlock[numberOfBlocks - 1] - 1;\n }",
"private int goalEntry1d(int ind) {\n if (ind == L - 1) return 0;\n else return ind + 1;\n }",
"public int[] getNext() {\n\n if (numLeft.equals(total)) {\n numLeft = numLeft.subtract(BigInteger.ONE);\n return a;\n }\n\n int i = r - 1;\n while (a[i] == n - r + i) {\n i--;\n }\n a[i] = a[i] + 1;\n for (int j = i + 1; j < r; j++) {\n a[j] = a[i] + j - i;\n }\n\n numLeft = numLeft.subtract(BigInteger.ONE);\n return a;\n }",
"public double getFirstExtreme(){\r\n return firstExtreme;\r\n }",
"public static void main(String[] args) {\n\t\tint arr[] = {2,4,11,5,8,1,9};\r\n\t\tint res = arr[1] - arr[0];\r\n\t\tfor(int i = 0; i < arr.length; i++) {\r\n\t\t\tfor(int j = i + 1; j < arr.length; j++) {\r\n\t\t\t\tres = Math.max(res, arr[j] - arr[i]);\r\n\t\t\t}\r\n\t\t}\r\n//\t\tSystem.out.println(first + \" : \" + last + \" : \" + max);\r\n\t\tSystem.out.println(res);\r\n\t}",
"private long getTotalDuration() {\n if(mMarkers.size() == 0) {\n return 0;\n }\n long first = mMarkers.get(0).time;\n long last = mMarkers.get(mMarkers.size() - 1).time;\n return last - first;\n }",
"protected int searchLeft(double value) {\n int i = search(value);\n while (i > 0 && value == sequence.get(i - 1)) {\n i -= 1;\n }\n return i;\n }",
"public U getLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(numElems-1);\r\n\t }",
"public synchronized DoubleLinkedListNodeInt getLast() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\treturn tail.getPrev();\n\t}",
"@Override\n\tpublic Gesture get()\n\t{\n\t\tint sizeToFind = history.size() > 6 ? 6 : history.size() - 1; \n\t\t\n\t\twhile (sizeToFind >= 3) {\n\t\t\tint recentStart = history.size() - sizeToFind;\n\t\t\tint recentEnd = history.size();\n\t\t\t\n\t\t\tfor (int i = 0; i < history.size() - sizeToFind - 1; i++) {\n\t\t\t\tint setEnd = i + sizeToFind;\n\t\t\t\t\n\t\t\t\t// both intervals are the same size\n\t\t\t\tassert recentEnd - recentStart == setEnd - i;\n\t\t\t\t\n\t\t\t\tif (same(recentStart, recentEnd, i, setEnd)) {\n\t\t\t\t\treturn Gesture.fromInt(history.get(i + sizeToFind)[0]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsizeToFind--;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public Integer rollAndSum() {\n return null;\n }",
"static ArrayList<Integer> subarraySum(int[] arr, int n, int S){\r\n \r\n ArrayList<Integer> list = new ArrayList<>();\r\n \r\n int first = 0;\r\n int last = 0;\r\n int sum = 0;\r\n \r\n while(last < n || first < n){\r\n \r\n if(sum < S && last < n){\r\n sum = sum + arr[last]; \r\n ++last;\r\n }\r\n else if(sum == S){\r\n list.add(first+1);\r\n list.add(last);\r\n return list;\r\n }\r\n else if(first < n){\r\n sum = sum - arr[first];\r\n ++first;\r\n }\r\n }\r\n \r\n if(list.isEmpty()){\r\n list.add(-1);\r\n }\r\n return list;\r\n \r\n }",
"private static List<Integer> addOnePlus(List<Integer> input) {\n\n\t\tint size = input.size();\n\t\tinput.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && input.get(i)==10; i--) {\n\t\t\tinput.set(i, 0);\n\t\t\tinput.set(i-1, input.get(i-1)+1);\n\t\t}\n\n\t\tif(input.get(0) == 10) {\n\t\t\tinput.set(0, 0);\n\t\t\tinput.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn input;//this modifies the original input\n\t}",
"public static Node middleNode(Node start, Node last) { \n if (start == null) \n return null; \n \n Node slow = start; \n Node fast = start.next; \n \n while (fast != last) \n { \n fast = fast.next; \n if (fast != last) \n { \n slow = slow.next; \n fast = fast.next; \n } \n } \n return slow; \n }",
"protected int left(int i ) { return 2 * i + 1; }",
"private static int findSum(int[] nums, int start, int end) {\n int sum = 0;\n for ( int i = start ; i < end ; i++ ) {\n sum = sum + nums[i];\n }\n return sum;\n }",
"int getMin() \n\t{ \n\t\tint x = min.pop(); \n\t\tmin.push(x); \n\t\treturn x; \n\t}",
"@Override\n\tpublic void calculating() {\n\t\tresult=leftVal-rightVal;\n\t\t\n\t}",
"public double getMiddleNumber()\n {\n double min = getMinimumValue();\n double max = getMaximumValue();\n return (min + max) / 2;\n }",
"private double average(LinkedList<Double> lastSums2) {\n\t\tOptionalDouble average = lastSums2.stream().mapToDouble(a -> a).average();\n\t\treturn average.getAsDouble();\n\t}",
"public static double getMedian()\n {\n // add your code here\n if(s.size()==g.size()){\n return (double) ((s.peek()+g.peek())/2);\n }\n else if(s.size() > g.size()) {\n return (double) s.peek();\n }\n else {\n return (double) g.peek();\n }\n }",
"public static int partition(int[] list, int first, int last) {\n // Choose the middle element as the pivot among\n // first, medium, last\n int pivot = getPivot(list, first, last);\n int low = first + 1; // Index for forward search\n int high = last; // Index for backward search\n\n while (high > low) {\n // Search forward for left\n while (low <= high && list[low] <= pivot) {\n low++;\n }\n\n // Search backward for right\n while (low <= high && list[high] > pivot) {\n high--;\n }\n\n // Swap two elements in the list\n if (high > low) {\n int temp = list[high];\n list[high] = list[low];\n list[low] = temp;\n }\n }\n\n while (high > first && list[high] >= pivot)\n high--;\n\n // Swap pivot with list[high]\n if (pivot > list[high]) {\n list[first] = list[high];\n list[high] = pivot;\n return high;\n }\n else {\n return first;\n }\n }",
"public int getSingles() {\n return h-(d+t+hr);\n }",
"@Override\r\n\tpublic Object last(){\r\n\t\tcheck();\r\n\t\treturn tail.value;\r\n\t}",
"private static Integer deductOne(Integer element) {\n return element - 1;\n }",
"@Override\n public Z computeNext() {\n int n = size();\n if (n <= 2) {\n return Z.valueOf(mInits[n]);\n }\n final int pow2 = Integer.highestOneBit(n);\n final int j = n - pow2;\n Z result = a(j).multiply(mFaj0).add(a(j + 1).multiply(mFaj1));\n if (j == pow2 - 1) {\n result = result.add(1);\n }\n return result;\n \n }",
"private int lastNotNull() {\n\t\treturn (!this.checkEmpty()) ? findLast() : 0;\n\t}",
"private static BigInteger findSum(BigInteger start, BigInteger end) {\n return start.add(end).multiply(end.subtract(start).add(new BigInteger(\"1\"))).divide(new BigInteger(\"2\"));\n }",
"public ListNode mergeNodesV3(ListNode head) {\n /**\n * this step is very important.\n * head point at the first non-zero node.\n */\n head = head.next;\n ListNode start = head;\n while (start != null) {\n ListNode end = start;\n int sum = 0;\n while (end.val != 0) {\n sum += end.val;\n end = end.next;\n }\n if (sum > 0) {\n start.val = sum;\n start.next = end.next;\n start = start.next;\n }\n }\n return head;\n }",
"public double lastYValue() {\n\t\tif (pointList.size()==0)\n\t\t\treturn Double.NaN;\n\t\telse\n\t\t\treturn pointList.get( pointList.size()-1).getY();\n\t}"
] | [
"0.5758859",
"0.57048404",
"0.5557552",
"0.5539025",
"0.55160606",
"0.5489614",
"0.5486633",
"0.5461912",
"0.5418225",
"0.5401244",
"0.53947824",
"0.5360592",
"0.53470695",
"0.5330408",
"0.53182703",
"0.5315941",
"0.52763665",
"0.52691203",
"0.5258824",
"0.52409667",
"0.5239223",
"0.52248657",
"0.52132404",
"0.5212964",
"0.5193887",
"0.5190877",
"0.51822305",
"0.51733094",
"0.51663035",
"0.5126837",
"0.5126467",
"0.51226974",
"0.51210815",
"0.5106544",
"0.51036996",
"0.5096232",
"0.5094186",
"0.5093243",
"0.50925225",
"0.5074762",
"0.5070398",
"0.5064916",
"0.50591683",
"0.50521564",
"0.50475854",
"0.50470644",
"0.5043521",
"0.50412816",
"0.50408775",
"0.5036939",
"0.50362974",
"0.5030014",
"0.5030014",
"0.5029092",
"0.50257784",
"0.5023092",
"0.50176865",
"0.500997",
"0.5006289",
"0.49987188",
"0.49981672",
"0.4996186",
"0.49893636",
"0.4987055",
"0.49785754",
"0.4975138",
"0.49712446",
"0.4964608",
"0.49629956",
"0.49613538",
"0.49585876",
"0.4954631",
"0.4934646",
"0.49333444",
"0.49301898",
"0.49276134",
"0.49263114",
"0.49214175",
"0.4907367",
"0.49008036",
"0.4891888",
"0.488559",
"0.48814288",
"0.48793814",
"0.48791355",
"0.48776782",
"0.48765582",
"0.48760423",
"0.48746487",
"0.48729968",
"0.48716605",
"0.48662886",
"0.4865353",
"0.48630685",
"0.4860652",
"0.485366",
"0.48506546",
"0.4849255",
"0.48448342",
"0.48418015",
"0.48332566"
] | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
mostrarDialogConfiguracion();
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] | [
"0.79039484",
"0.78061193",
"0.7765948",
"0.772676",
"0.76312095",
"0.76217103",
"0.75842994",
"0.7530533",
"0.748778",
"0.7458179",
"0.7458179",
"0.7438179",
"0.74213266",
"0.7402824",
"0.7391232",
"0.73864055",
"0.7378979",
"0.73700106",
"0.7362941",
"0.73555434",
"0.73453045",
"0.7341418",
"0.7330557",
"0.7327555",
"0.7326009",
"0.7318337",
"0.73160654",
"0.73132724",
"0.73037714",
"0.73037714",
"0.73011225",
"0.7297909",
"0.7293188",
"0.72863173",
"0.7282876",
"0.72807044",
"0.72783154",
"0.72595924",
"0.72595924",
"0.72595924",
"0.7259591",
"0.72591716",
"0.7249715",
"0.72243243",
"0.7219297",
"0.7216771",
"0.72042644",
"0.72012293",
"0.7199543",
"0.7193037",
"0.7184855",
"0.7177254",
"0.7168334",
"0.7167477",
"0.71536905",
"0.7153523",
"0.7135821",
"0.7134834",
"0.7134834",
"0.7128953",
"0.7128911",
"0.71241933",
"0.7123363",
"0.71228945",
"0.71219414",
"0.7117495",
"0.71173275",
"0.71169853",
"0.7116851",
"0.7116851",
"0.7116851",
"0.7116851",
"0.71148705",
"0.7112308",
"0.7109725",
"0.71084905",
"0.71055764",
"0.70995593",
"0.7098301",
"0.7096311",
"0.70935965",
"0.70935965",
"0.7086441",
"0.7082852",
"0.70806813",
"0.70801675",
"0.7073609",
"0.70681775",
"0.7061872",
"0.7060011",
"0.7059868",
"0.70513153",
"0.7037599",
"0.7037599",
"0.7036033",
"0.70353055",
"0.70353055",
"0.70322436",
"0.70304227",
"0.70294935",
"0.70187974"
] | 0.0 | -1 |
Se llama al ServicioPomodoro y se le pasa parmatros para configurar los tiempos del pomodoro | private void iniciarServicioPomodoro(int pomodoro, int corto, int largo){
Intent inicioServicio = new Intent(this,ServicioPomodoro.class);
inicioServicio.setAction("intentIniciar");
inicioServicio.putExtra("intervaloPomodoro", pomodoro);
inicioServicio.putExtra("intervaloDescansoCorto", corto);
inicioServicio.putExtra("intervaloDescansoLargo", largo);
startService(inicioServicio);
tiempo.setBase(SystemClock.elapsedRealtime());
tiempo.start();
controlCronometro();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pararServicioPomodoro(){\n Intent pararServicio = new Intent(this,ServicioPomodoro.class);\n pararServicio.setAction(\"intentParar\");\n startService(pararServicio);\n tiempo.stop();\n tiempo.setBase(SystemClock.elapsedRealtime());\n }",
"public void setPontosTimeMandante(int pontosTimeMandante) {\r\n this.pontosTimeMandante = pontosTimeMandante;\r\n }",
"public void setTempoVolta() {\n LocalDateTime aux;\n aux = this.tempoFinal.minusHours(this.tempoInit.getHour()).minusMinutes(this.tempoInit.getMinute()).minusSeconds(this.tempoInit.getSecond()).minusNanos(this.tempoInit.getNano());\n int mili = aux.getNano()/1000000;\n this.setTempoMili(mili);\n if(this.tempoMili<10){\n this.tempoVolta = aux.getMinute() + \":\" + aux.getSecond() + \".00\" + mili;\n } else if(this.tempoMili<100){\n this.tempoVolta = aux.getMinute() + \":\" + aux.getSecond() + \".0\" + mili;\n }else{\n this.tempoVolta = aux.getMinute() + \":\" + aux.getSecond() + \".\" + mili;\n }\n this.setTempoSec((aux.getMinute()*60)+aux.getSecond());\n if(this.melhorSec == 0 && this.melhorMili == 0){\n this.melhorSec = this.tempoSec;\n this.melhorMili = this.tempoMili;\n } else {\n if(this.tempoSec<this.melhorSec){\n this.melhorSec = this.tempoSec;\n this.melhorMili = this.tempoMili;\n } else if(this.tempoSec==this.melhorSec && this.melhorMili>this.tempoMili){\n this.melhorMili = this.tempoMili;\n } \n }\n }",
"public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}",
"public void teleopPeriodic() {\n \t//driveTrain.setInputSpeed(xbox.getAxisLeftY(), xbox.getAxisRightY());\n \t\n \tdriveTrain.print();\n \t\n \t// funcao PID\n \tif (xbox.getButtonX()) {\n\t\t\tbotaoapertado = true;\n\t\t} else if (xbox.getButtonY()) {\n\t\t\tbotaoapertado = false;\n\t\t\tdriveTrain.start();\n\t\t\tdriveTrain.setSetPoint(0, 0);\n\t\t}\n \tif (botaoapertado) {\n \t\tdriveTrain.setSetPoint(100, 100);\n\t\t}\n \t\n }",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n // ros_string = workingSerialCom.read();\n // yavuz = workingSerialCom.StringConverter(ros_string, 2);\n // Inverse.Inverse(yavuz);\n\n // JoystickDrive.execute();\n\n\n\n // ros_string = workingSerialCom.read();\n // alt_yurur = workingSerialCom.StringConverter(ros_string, 1);\n // robot_kol = workingSerialCom.StringConverter(ros_string, 2);\n Full.Full(yavuz);\n \n }",
"@Override\n public void teleopPeriodic() {\n CommandScheduler.getInstance().run();\n OI.getInstance().getPilot().run();\n SmartDashboard.putNumber(\"gyro\", getRobotContainer().getTecbotSensors().getYaw());\n SmartDashboard.putBoolean(\"isSpeed\", getRobotContainer().getDriveTrain().getTransmissionMode() == DriveTrain.TransmissionMode.speed);\n SmartDashboard.putString(\"DT_MODE\", getRobotContainer().getDriveTrain().getCurrentDrivingMode().toString());\n SmartDashboard.putNumber(\"x_count\", getRobotContainer().getClimber().getxWhenPressedCount());\n\n }",
"public void teleopPeriodic() {\n joystick1X = leftStick.getAxis(Joystick.AxisType.kX);\n joystick1Y = leftStick.getAxis(Joystick.AxisType.kY);\n joystick2X = rightStick.getAxis(Joystick.AxisType.kX);\n joystick2Y = rightStick.getAxis(Joystick.AxisType.kY);\n \n mapped1Y = joystick1Y/2 + 0.5;\n mapped1X = joystick1X/2 + 0.5;\n mapped2X = joystick2X/2 + 0.5;\n mapped2Y = joystick2Y/2 + 0.5;\n \n X1testServo.set(mapped1X);\n Y1testServo.set(mapped1Y);\n X2testServo.set(mapped2X);\n Y2testServo.set(mapped2Y);\n }",
"public void setTesto(){\n \n if(sec < 10){\n this.testo = min + \":0\" + sec + \":\" + deci;\n }\n else{\n this.testo = min + \":\" + sec + \":\" + deci;\n }\n \n }",
"public static void main(String[] args) {\n\t\t\n\t\tint h,m,s;\n\t\tScanner teclado = new Scanner(System.in);\n\t\tTiempo hora;\n\t\t\n\t\t/*\n\t\tSystem.out.println(\"Ingrese las horas\");\n\t\th = teclado.nextInt();\n\t\t\n\t\tSystem.out.println(\"Ingrese los minutos\");\n\t\tm = teclado.nextInt();\n\t\t\n\t\t*System.out.println(\"Ingrese los segundos\");\n\t\ts = teclado.nextInt();*/\n\t\t\n\t\thora = new Tiempo(17,53,52);\n\t\t\n\t\tSystem.out.println(hora.toString());\n\t\t\n\t\thora.aumentarHoras(2);\n\t\tSystem.out.println(hora.toString());\n\t\t\n\t\thora.aumentarMinutos(120);\n\t\tSystem.out.println(hora.toString());\n\t\t\n\t\thora.aumentarSegundos(3400);\n\t\tSystem.out.println(hora.toString());\n\t\t\n\t\thora.disminuirHoras(22);\n\t\tSystem.out.println(hora.toString());\n\t\t\n\t\thora.disminuirMinutos(120);\n\t\tSystem.out.println(hora.toString());\n\t\t\n\t\thora.disminuirMinutos(3600);\n\t\tSystem.out.println(hora.toString());\n\t}",
"@Override\n public void jornadaTrabalho(int x) {\n DateTimeFormatter formatoData = DateTimeFormatter.ofPattern(\"HH:mm\");\n \n if (x == 40) {\n // Jornada de Trabalho PADRÃO 40h\n entrada1 = LocalTime.of(8, 0);\n saida1 = LocalTime.of(12, 0);\n entrada2 = LocalTime.of(14, 0);\n saida2 = LocalTime.of(18, 0);\n cbxJornada.setSelectedIndex(1);\n jornada = 40;\n } else if (x == 44) {\n // Jornada de Trabalho PADRÃO 44h\n entrada1 = LocalTime.of(7, 0, 0);\n saida1 = LocalTime.of(12, 0, 0);\n entrada2 = LocalTime.of(14, 0, 0);\n saida2 = LocalTime.of(18, 0, 0);\n cbxJornada.setSelectedIndex(2);\n jornada = 44;\n }\n //Popula os campos de horas\n txtEntrada1.setText(entrada1.format(formatoData));\n txtSaida1.setText(saida1.format(formatoData));\n txtEntrada2.setText(entrada2.format(formatoData));\n txtSaida2.setText(saida2.format(formatoData));\n }",
"private void setUpFrom(){\n\t\tEPVentanaTemporal ven = new EPVentanaTemporal();\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\t//setemamos la ventana.\n\t\tven.setNombre(\"time_batch\");\n\t\tven.setValor(\"10\");\n\t\tven.setUnidadTemporal(\"seconds\");\n\t\tven.setPseudonombre(\"a1\");\n\t\tpro.setNombre(\"p4\");\n\t\tpro.setPseudonombre(\"\");\n\t\tpro.setVentana(ven);\n\t\texpresionesFrom.add(pro);\n\t}",
"public static void main(String[] args) {\n TermometroEncapsulado termometro = new TermometroEncapsulado();\n \n // Configura a temp inicial para temp atual, temp min e max registrada\n // Como está encapsulado, preciso usar os setters\n termometro.setTemperaturaAtual(23.0);\n termometro.setTemperaturaMaxRegistrada(23.0);\n termometro.setTemperaturaMinRegistrada(23.0);\n \n // Exibe a temperarura atual - aqui preciso usar o getTemperaturaAtual()\n System.out.println(\"Temperatura atual: \" + \n termometro.getTemperaturaAtual());\n \n // Exibe os valores dos atributos do termometro\n termometro.exibirValores();\n \n // Aumenta a temperatura atual 2 vezes e exibe os valores dos atributos do termômetro\n termometro.aumentaTemperatura(3.0);\n termometro.aumentaTemperatura(5.0);\n termometro.exibirValores();\n \n // Diminui a temperatura atual 2 vezes e exibe os valores dos atributos do termômetro\n termometro.diminuiTemperatura(10.0);\n termometro.diminuiTemperatura(2.0);\n termometro.exibirValores();\n \n // Exibe a temperatura atual convertida para Fahreinheit\n System.out.println(\"\");\n System.out.println(String.format(\"Temperatura em Fahreinheit: %.2f ºF\",\n termometro.converterParaFahreinheit()));\n }",
"private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }",
"public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }",
"public void presetTime(long tick,int ento){\r\n\r\n\t}",
"public void teleopPeriodic() {\r\n }",
"public interface DefaultSettings {\n int SAMPLERATE = 16000;\n int BEAT_LENGTH_IN_MS = 100;\n int BUFFER_SIZE = 4096;\n int MAX_TEMPO_VALUE = 400;\n int MIN_TEMP_VALUE = 1;\n\n int PRESS_TEMPO_CHANGE_TIME_IN_MS = 500;\n}",
"public Television(int precioBase, double peso) {\n\t\tsuper(precioBase, peso);\n\t\tthis.resolucion = RESOLUCION;\n\t\tthis.sintonizadorTDT = SINTONIZADOR_TDT;\n\t}",
"public void setParametr(double p) {\n parametr = p; // додано 26.12.2011\n timeServ = parametr; // 20.11.2012\n\n }",
"static void setTiming(){\n killTime=(Pars.txType!=0) ? Pars.txSt+Pars.txDur+60 : Pars.collectTimesB[2]+Pars.dataTime[1]+60;//time to kill simulation\n tracksTime=(Pars.tracks && Pars.txType==0) ? Pars.collectTimesI[1]:(Pars.tracks)? Pars.collectTimesBTx[1]:100*24*60;//time to record tracks\n }",
"@Override\n public void teleopPeriodic() {\n }",
"@Override\n public void teleopPeriodic() {\n }",
"public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}",
"void setTempo(int tempo);",
"public static void main(String [] args){//inicio del main\r\n\r\n Scanner sc= new Scanner(System.in); \r\n\r\nSystem.out.println(\"ingrese los segundos \");//mesaje\r\nint num=sc.nextInt();//total de segundos\r\nint hor=num/3600;//total de horas en los segundos\r\nint min=(num-(3600*hor))/60;//total de min en las horas restantes\r\nint seg=num-((hor*3600)+(min*60));//total de segundo sen los miniutos restantes\r\nSystem.out.println(\"Horas: \" + hor + \" Minutos: \" + min + \" Segundos: \" + seg);//salida del tiempo\r\n\r\n}",
"private void configChronos(SwapValue dateTime, SwapValue alarm, SwapValue calibration, SwapValue period, ArrayList pages)\n {\n // Display SYNC waiting screen\n syncDiag = new SyncDialog(null, true);\n syncDiag.setVisible(true);\n\n // Sync dialog closed by the user?\n if (syncDiag != null)\n {\n syncDiag = null;\n return;\n }\n\n // Once arrived to this point, we have a mote having sent a SYNC signal\n if (syncAddress > 0)\n {\n // Is the mote a Chronos watch?\n if (swapDmt.getMoteManufacturer(syncAddress).equalsIgnoreCase(\"panStamp\"))\n {\n if (swapDmt.getMoteProduct(syncAddress).equalsIgnoreCase(\"Chronos\"))\n {\n try\n {\n // Create temporary Chronos device\n ChronosWatch chronos = new ChronosWatch(syncAddress);\n // Configure settings\n chronos.setDateTime(dateTime);\n Thread.sleep(200);\n chronos.setAlarm(alarm);\n Thread.sleep(200);\n chronos.setCalibration(calibration);\n Thread.sleep(200);\n chronos.setTxPeriod(period);\n Thread.sleep(200);\n // Configure pages\n int i;\n for(i=0 ; i<ChronosWatch.NUMBER_OF_PAGES ; i++)\n {\n SwapValue pageCfg = (SwapValue)pages.get(i);\n if (pageCfg != null)\n {\n chronos.setPage(i, pageCfg);\n Thread.sleep(200);\n }\n }\n\n // Take out the chronos from the SYNC state\n chronos.stopSwapComms();\n }\n catch (XmlException ex)\n {\n ex.print();\n }\n catch (CcException ex)\n {\n ex.print();\n }\n catch (InterruptedException ex)\n {\n System.out.println(ex.getMessage());\n }\n\n syncAddress = -1;\n }\n }\n }\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 }",
"void getCurrentPeriodo();",
"public double selPeriodo(int periodo, int estrato) {\n double perTasa = 0;\n if (periodo == 201611) {\n if (estrato == 1) {\n perTasa = tasaNov16_1;\n }\n if (estrato == 2) {\n perTasa = tasaNov16_2;\n }\n if (estrato == 3) {\n perTasa = tasaNov16_3;\n }\n if (estrato == 4) {\n perTasa = tasaNov16_4;\n }\n if (estrato == 5) {\n perTasa = tasaNov16_5;\n }\n if (estrato == 6) {\n perTasa = tasaNov16_6;\n }\n }\n if (periodo == 201610) {\n if (estrato == 1) {\n perTasa = tasaOct16_1;\n }\n if (estrato == 2) {\n perTasa = tasaOct16_2;\n }\n if (estrato == 3) {\n perTasa = tasaOct16_3;\n }\n if (estrato == 4) {\n perTasa = tasaOct16_4;\n }\n if (estrato == 5) {\n perTasa = tasaOct16_5;\n }\n if (estrato == 6) {\n perTasa = tasaOct16_6;\n }\n }\n if (periodo == 201609) {\n if (estrato == 1) {\n perTasa = tasaSep16_1;\n }\n if (estrato == 2) {\n perTasa = tasaSep16_2;\n }\n if (estrato == 3) {\n perTasa = tasaSep16_3;\n }\n if (estrato == 4) {\n perTasa = tasaSep16_4;\n }\n if (estrato == 5) {\n perTasa = tasaSep16_5;\n }\n if (estrato == 6) {\n perTasa = tasaSep16_6;\n }\n }\n if (periodo == 201608) {\n if (estrato == 1) {\n perTasa = tasaAgo16_1;\n }\n if (estrato == 2) {\n perTasa = tasaAgo16_2;\n }\n if (estrato == 3) {\n perTasa = tasaAgo16_3;\n }\n if (estrato == 4) {\n perTasa = tasaAgo16_4;\n }\n if (estrato == 5) {\n perTasa = tasaAgo16_5;\n }\n if (estrato == 6) {\n perTasa = tasaAgo16_6;\n }\n }\n if (periodo == 201607) {\n if (estrato == 1) {\n perTasa = tasaJul16_1;\n }\n if (estrato == 2) {\n perTasa = tasaJul16_2;\n }\n if (estrato == 3) {\n perTasa = tasaJul16_3;\n }\n if (estrato == 4) {\n perTasa = tasaJul16_4;\n }\n if (estrato == 5) {\n perTasa = tasaJul16_5;\n }\n if (estrato == 6) {\n perTasa = tasaJul16_6;\n }\n }\n if (periodo == 201606) {\n if (estrato == 1) {\n perTasa = tasaJun16_1;\n }\n if (estrato == 2) {\n perTasa = tasaJun16_2;\n }\n if (estrato == 3) {\n perTasa = tasaJun16_3;\n }\n if (estrato == 4) {\n perTasa = tasaJun16_4;\n }\n if (estrato == 5) {\n perTasa = tasaJun16_5;\n }\n if (estrato == 6) {\n perTasa = tasaJun16_6;\n }\n }\n if (periodo == 201605) {\n if (estrato == 1) {\n perTasa = tasaMay16_1;\n }\n if (estrato == 2) {\n perTasa = tasaMay16_2;\n }\n if (estrato == 3) {\n perTasa = tasaMay16_3;\n }\n if (estrato == 4) {\n perTasa = tasaMay16_4;\n }\n if (estrato == 5) {\n perTasa = tasaMay16_5;\n }\n if (estrato == 6) {\n perTasa = tasaMay16_6;\n }\n }\n if (periodo == 201604) {\n if (estrato == 1) {\n perTasa = tasaAbr16_1;\n }\n if (estrato == 2) {\n perTasa = tasaAbr16_2;\n }\n if (estrato == 3) {\n perTasa = tasaAbr16_3;\n }\n if (estrato == 4) {\n perTasa = tasaAbr16_4;\n }\n if (estrato == 5) {\n perTasa = tasaAbr16_5;\n }\n if (estrato == 6) {\n perTasa = tasaAbr16_6;\n }\n }\n if (periodo == 201603) {\n if (estrato == 1) {\n perTasa = tasaMar16_1;\n }\n if (estrato == 2) {\n perTasa = tasaMar16_2;\n }\n if (estrato == 3) {\n perTasa = tasaMar16_3;\n }\n if (estrato == 4) {\n perTasa = tasaMar16_4;\n }\n if (estrato == 5) {\n perTasa = tasaMar16_5;\n }\n if (estrato == 6) {\n perTasa = tasaMar16_6;\n }\n }\n if (periodo == 201602) {\n if (estrato == 1) {\n perTasa = tasaFeb16_1;\n }\n if (estrato == 2) {\n perTasa = tasaFeb16_2;\n }\n if (estrato == 3) {\n perTasa = tasaFeb16_3;\n }\n if (estrato == 4) {\n perTasa = tasaFeb16_4;\n }\n if (estrato == 5) {\n perTasa = tasaFeb16_5;\n }\n if (estrato == 6) {\n perTasa = tasaFeb16_6;\n }\n }\n if (periodo == 201601) {\n if (estrato == 1) {\n perTasa = tasaEne16_1;\n }\n if (estrato == 2) {\n perTasa = tasaEne16_2;\n }\n if (estrato == 3) {\n perTasa = tasaEne16_3;\n }\n if (estrato == 4) {\n perTasa = tasaEne16_4;\n }\n if (estrato == 5) {\n perTasa = tasaEne16_5;\n }\n if (estrato == 6) {\n perTasa = tasaEne16_6;\n }\n }\n if (periodo == 201512) {\n if (estrato == 1) {\n perTasa = tasaDic_1;\n }\n if (estrato == 2) {\n perTasa = tasaDic_2;\n }\n if (estrato == 3) {\n perTasa = tasaDic_3;\n }\n if (estrato == 4) {\n perTasa = tasaDic_4;\n }\n if (estrato == 5) {\n perTasa = tasaDic_5;\n }\n if (estrato == 6) {\n perTasa = tasaDic_6;\n }\n }\n if (periodo == 201511) {\n if (estrato == 1) {\n perTasa = tasaNov_1;\n }\n if (estrato == 2) {\n perTasa = tasaNov_2;\n }\n if (estrato == 3) {\n perTasa = tasaNov_3;\n }\n if (estrato == 4) {\n perTasa = tasaNov_4;\n }\n if (estrato == 5) {\n perTasa = tasaNov_5;\n }\n if (estrato == 6) {\n perTasa = tasaNov_6;\n }\n }\n if (periodo == 201510) {\n if (estrato == 1) {\n perTasa = tasaOct_1;\n }\n if (estrato == 2) {\n perTasa = tasaOct_2;\n }\n if (estrato == 3) {\n perTasa = tasaOct_3;\n }\n if (estrato == 4) {\n perTasa = tasaOct_4;\n }\n if (estrato == 5) {\n perTasa = tasaOct_5;\n }\n if (estrato == 6) {\n perTasa = tasaOct_6;\n }\n }\n if (periodo == 201509) {\n if (estrato == 1) {\n perTasa = tasaSep_1;\n }\n if (estrato == 2) {\n perTasa = tasaSep_2;\n }\n if (estrato == 3) {\n perTasa = tasaSep_3;\n }\n if (estrato == 4) {\n perTasa = tasaSep_4;\n }\n if (estrato == 5) {\n perTasa = tasaSep_5;\n }\n if (estrato == 6) {\n perTasa = tasaSep_6;\n }\n }\n if (periodo == 201508) {\n if (estrato == 1) {\n perTasa = tasaAgo_1;\n }\n if (estrato == 2) {\n perTasa = tasaAgo_2;\n }\n if (estrato == 3) {\n perTasa = tasaAgo_3;\n }\n if (estrato == 4) {\n perTasa = tasaAgo_4;\n }\n if (estrato == 5) {\n perTasa = tasaAgo_5;\n }\n if (estrato == 6) {\n perTasa = tasaAgo_6;\n }\n }\n if (periodo == 201507) {\n if (estrato == 1) {\n perTasa = tasaJul_1;\n }\n if (estrato == 2) {\n perTasa = tasaJul_2;\n }\n if (estrato == 3) {\n perTasa = tasaJul_3;\n }\n if (estrato == 4) {\n perTasa = tasaJul_4;\n }\n if (estrato == 5) {\n perTasa = tasaJul_5;\n }\n if (estrato == 6) {\n perTasa = tasaJul_6;\n }\n }\n if (periodo == 201506) {\n if (estrato == 1) {\n perTasa = tasaJun_1;\n }\n if (estrato == 2) {\n perTasa = tasaJun_2;\n }\n if (estrato == 3) {\n perTasa = tasaJun_3;\n }\n if (estrato == 4) {\n perTasa = tasaJun_4;\n }\n if (estrato == 5) {\n perTasa = tasaJun_5;\n }\n if (estrato == 6) {\n perTasa = tasaJun_6;\n }\n }\n if (periodo == 201505) {\n if (estrato == 1) {\n perTasa = tasaMay_1;\n }\n if (estrato == 2) {\n perTasa = tasaMay_2;\n }\n if (estrato == 3) {\n perTasa = tasaMay_3;\n }\n if (estrato == 4) {\n perTasa = tasaMay_4;\n }\n if (estrato == 5) {\n perTasa = tasaMay_5;\n }\n if (estrato == 6) {\n perTasa = tasaMay_6;\n }\n }\n if (periodo == 201504) {\n if (estrato == 1) {\n perTasa = tasaAbr_1;\n }\n if (estrato == 2) {\n perTasa = tasaAbr_2;\n }\n if (estrato == 3) {\n perTasa = tasaAbr_3;\n }\n if (estrato == 4) {\n perTasa = tasaAbr_4;\n }\n if (estrato == 5) {\n perTasa = tasaAbr_5;\n }\n if (estrato == 6) {\n perTasa = tasaAbr_6;\n }\n }\n return perTasa;\n }",
"@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}",
"public void setTentos (int tentos) {\n this.tentos = tentos;\n }",
"public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }",
"public Tiempo(int horas, int minutos, int segundos, String displayTiempo) {\r\n\t\tthis.horas = horas;\r\n\t\tif(minutos >= 0 && minutos <= 59){\r\n\t\t\tthis.minutos = minutos;\r\n\t\t}else{\r\n\t\t\tthis.minutos = 0;\r\n\t\t}\r\n\t\tif(segundos >=0 && segundos <=59){\r\n\t\t\tthis.segundos = segundos;\r\n\t\t}else{\r\n\t\t\tthis.segundos = 0;\r\n\t\t}\r\n\t\tthis.displayTiempo = displayTiempo;\r\n\t}",
"public int getPontosTimeMandante() {\r\n return pontosTimeMandante;\r\n }",
"public mbvBoletinPeriodo() {\r\n }",
"private void IniciarCronometro() {\n ActionListener action = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n currentSegundo++;\n\n if (currentSegundo == 60) {\n currentMinuto++;\n currentSegundo = 0;\n }\n\n if (currentMinuto == 60) {\n currentHora++;\n currentMinuto = 0;\n }\n\n String hr = currentHora <= 9 ? \"0\" + currentHora : currentHora + \"\";\n String min = currentMinuto <= 9 ? \"0\" + currentMinuto : currentMinuto + \"\";\n String seg = currentSegundo <= 9 ? \"0\" + currentSegundo : currentSegundo + \"\";\n\n lbcronometro.setText(hr + \":\" + min + \":\" + seg);\n tempo = hr + \":\" + min + \":\" + seg;\n }\n };\n this.timer = new Timer(velocidade, action);\n this.timer.start();\n }",
"private void setTEMparsFromRunner(){\n\t\t\n\t\tString fdummy=\" \";\n\t\t\n\t\tsoipar_cal sbcalpar = new soipar_cal();\n\t\tvegpar_cal vbcalpar = new vegpar_cal();\t\n\t\t\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_CMAX, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setCmax(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NMAX, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setNmax(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_CFALL, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setCfall(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NFALL, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setNfall(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KRB, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setKrb(Float.valueOf(fdummy));\n\t\t\t\t\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCFIB, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcfib(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCHUM, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdchum(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCMIN, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcmin(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCSLOW, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcslow(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NUP, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setNup(Float.valueOf(fdummy));\n\t\t\n\t\tif (fdummy!=\" \") TEM.runcht.cht.resetCalPar(vbcalpar, sbcalpar);\n\n\t\t//\n\t\tsoipar_bgc sbbgcpar = new soipar_bgc();\n\t\tvegpar_bgc vbbgcpar = new vegpar_bgc();\n\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m1, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM1(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m2, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM2(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m3, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM3(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m4, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM4(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsoma, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsoma(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsompr, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsompr(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsomcr, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsomcr(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_som2co2, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setSom2co2(Float.valueOf(fdummy));\n\t\t\n\t\tif (fdummy!=\" \") TEM.runcht.cht.resetBgcPar(vbbgcpar, sbbgcpar);\n\t\t\t\t\n\t}",
"public void setTempoMili(int tempoMili) {\n this.tempoMili = tempoMili;\n }",
"public static void main(String[] args) {\n int horaSalida;\n int minutosSalida;\n int horaLlegada;\n int minutosLlegada;\n //Salida:\n int duracion;\n //condiciones y restricciones: el vuelo puede pasar de medianoche y no dura mas de 24h\n Scanner sc = new Scanner(System.in);\n do {\n System.out.println(\"Ingrese la hora de salida\");\n horaSalida = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosSalida = sc.nextInt();\n\n System.out.println(\"Ingrese la hora de llegada\");\n horaLlegada = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosLlegada = sc.nextInt();\n if (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60) {\n System.out.println(\"Los datos no han sido ingresados correctamente, vuelva a intentarlo\");\n }\n } while (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60);\n\n //Conversion de horas y minutos en solo minutos 19<2\n if (horaSalida > horaLlegada) {//caso 1\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n if (horaLlegada == horaSalida && (minutosSalida > minutosLlegada || minutosSalida == minutosLlegada)) {//caso 2\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n duracion = ((horaLlegada * 60) + minutosLlegada) - ((horaSalida * 60) + minutosSalida);\n\n if (duracion >= 1440) {//24*60=1440 si se pasa esto significa que el vuelo dura mas de 24h ex: 3:41 y llego 3:20\n System.out.print(\"El vuelo no puede durar mas de 24 horas \");\n } else {\n System.out.print(\"La duracion del vuelo es \" + duracion + \" minutos o \");\n //CODICIONES PARA EL AFFICHAGE\n if ((duracion / 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion / 60 + \"h\");\n\n if ((duracion % 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion % 60 + \"m\");\n }\n }",
"public Relogio()\n\t{\n \n\t\thora = 0;\n\t\tminuto = 0;\n\t\tsegundo = 0;\n //forma.format(hora);\n if((hora<0 || hora>23) || (minuto<0 || minuto>59) || (segundo<0 || segundo>59)){\n System.out.println(\"Valor de tempo invalido!\");\n }\n\t}",
"public void teleopPeriodic() {\n\t\t// resetAndDisable();\n\t\tupdateDashboard();\n\t\tLogitechJoystick.controllers();\n\t\tDrivetrain.arcadeDrive();\n\t\tShooterAngleMotor.angleShooter();\n\t\tBallShooter.shootBalls();\n\t\tSonicSensor.updateSensors();\n\t\t\n\t\t//if(LogitechJoystick.rightBumper2)\n\t\t\t//{\n\t\t\t\t//LowBar.makeArmStable();\n\t\t\t//}\n\n\t}",
"@Override\n protected void initialize() {\n desiredTime = System.currentTimeMillis() + (long) (seconds * 1000);\n Robot.driveTrain.configForTeleopMode();\n }",
"protected void processTimer(){\n if(timer != null){\n timer.cancel();\n timer = null;\n }\n // Verificamos si el partido esta en progreso\n if(match.status == Match.STATUS_PENDING || match.status == Match.STATUS_ENDED){\n return;\n }\n // Creamos temporizador 90 * 60 * 1000 = 5.400.000\n timer = new CountDownTimer(5400000, 1000) {\n @Override\n public void onTick(long l) {\n // Calcular los segundos que pasaron\n long seconds = (new Date().getTime() - matchDayLong) / 1000;\n // Calcular los minutos del partido\n long minutes = seconds / 60;\n //long minutes = TimeUnit.MILLISECONDS.toMinutes(uptime);\n if(minutes < 0){\n minutes = 0;\n seconds = 0;\n statusMedium.setText(\"PT\");\n }if(minutes > 45 && minutes < 60){\n minutes = 45;\n seconds = 60;\n }else if(minutes > 90){\n minutes = 90;\n seconds = 60;\n statusMedium.setText(\"ST\");\n }else if(minutes >= 60){\n minutes -= 15;\n statusMedium.setText(\"ST\");\n }else{\n statusMedium.setText(\"PT\");\n }\n\n statusTime.setText(String.format(\"%02d:%02d\", minutes, (seconds%60)));\n }\n\n @Override\n public void onFinish() {\n\n }\n }.start();\n }",
"public void setHoraCompra() {\n LocalTime hora=LocalTime.now();\n this.horaCompra = hora;\n }",
"public static void main(String[] args) {\n LocalDateTime termino = LocalDateTime.now();\n if (termino.getHour() >= 17) {\n if(termino.getMinute() >= 31){\n System.out.println(\"Ar-Condicionado Ligado + produto.getSala()\");\n }\n }\n if(termino.getDayOfWeek().getValue() != 7){\n //depois de consultar no banco e dar o alerta, mudar o atributo leituraAlerta no banco para true\n \n }\n \n }",
"public void solicitarDatos() {\n Scanner scanner = new Scanner(System.in);\n Terreno terreno = new Terreno();\n Vivienda vivienda = new Vivienda();\n\n //preguntamos datos:\n System.out.println(\"Metros cuadrados: \");\n Integer m2 = scanner.nextInt();\n\n System.out.println(\"Precio: \");\n Double precio = scanner.nextDouble();\n\n System.out.println(\"Nombre del pueblo: \");\n String nombrePueblo = scanner.next();\n\n System.out.println(\"ID: \");\n Integer id = scanner.nextInt();\n\n //escogemos opción:\n\n System.out.println(\"Estás creando un Terreno(t) o una Vivienda(v)?: \");\n String opcion = scanner.next();\n //controlamos que la opción introducida sea válida y el precio mayor que 0 en ambos casos:\n //(si el precio es menor a 0, directamente no se crea el objeto a la hora de añadir)\n if (opcion.equals(\"t\") && precio > 0) {\n terreno.solicitarDatos(m2, precio, nombrePueblo, id);\n } else if (opcion.equals(\"v\") && precio > 0) {\n vivienda.solicitarDatos(m2, precio, nombrePueblo, id);\n } else {\n System.out.println(\"El precio es menor a 0 o no has introducido una opción correcta\");\n }\n }",
"private void getAllTotesCenterTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"public int getHora(){\n return minutosStamina;\n }",
"@Override\n public void teleopPeriodic() {\n // drive.DrivePeriodic();\n controllerMap.controllerMapPeriodic();\n // intake.IntakePeriodic();\n // climb.ClimbPeriodic();\n\n }",
"public void teleopPeriodic() {\n \t//getInstance().run();;\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickRight); //This line drives the robot using the values of the joystick and the motor controllers selected above\n \tScheduler.getInstance().run();\n\t\n }",
"public void setTempoSec(int tempoSec) {\n this.tempoSec = tempoSec;\n }",
"private void iniciarHilo() {\n tarea = new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n if (encendido) { // se activa la variable encendido si se presiona el boton iniciar\n try {\n Thread.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n mili++;\n if (mili >= 999) {\n seg++;\n mili = 0;\n }\n if (seg >= 59) {\n minutos++;\n seg = 0;\n }\n h.post(new Runnable() {\n @Override\n public void run() {\n String m = \"\", s = \"\", mi = \"\";\n if (mili < 10) { //Modificar la variacion de los 0\n m = \"00\" + mili;\n } else if (mili <= 100) {\n m = \"0\" + mili;\n } else {\n m = \"\" + mili;\n }\n if (seg <= 10) {\n s = \"0\" + seg;\n } else {\n s = \"\" + seg;\n }\n if (minutos <= 10) {\n mi = \"0\" + minutos;\n } else {\n mi = \"\" + minutos;\n }\n crono.setText(mi + \":\" + s + \":\" + m);\n }\n });\n }\n }\n }\n });\n tarea.start();\n }",
"@Override\n\tpublic void teleopPeriodic() {\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t\tupdateLedState();\n\t\t//SmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\t\tSmartDashboard.putNumber(\"Climber Current Motor 1\", Robot.climber.climberTalon.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Climber Current motor 2\", Robot.climber.climberTalon2.getOutputCurrent());\n\t\t//visionNetworkTable.getGearData();\n\t//\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\n\t\tif(Robot.debugging){\t\t\t\n\t\t\tSmartDashboard.putNumber(\"Shooter1RPM Setpoint\", shooter.shooter1.getSetpoint());\n\t \tSmartDashboard.putNumber(\"Intake Pivot Encoder Position\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\n\t\t\tSmartDashboard.putNumber(\"Gear Manipulator Setpoint\", gearManipulator.gearManipulatorPivot.getSetpoint());\n\t\t}\n\t\t//\tvisionNetworkTable.getGearData();\n\t\t//visionNetworkTable.getHighData();\n\t}",
"public void teleopPeriodic() {\n \tteleop.teleopPeriodic();\n }",
"public void teleopPeriodic() {\r\n //Driving\r\n if (driveChooser.getSelected().equals(\"tank\")){\r\n if (joystickChooser.getSelected().equals(\"two\")){\r\n drive.tankDrive(leftJoystick.getY(), rightJoystick.getY());\r\n } \r\n else {\r\n drive.tankDrive(manipulator.getY(), manipulator.getThrottle());\r\n }\r\n }\r\n if (driveChooser.getSelected().equals(\"arcade1\")){\r\n if (joystickChooser.getSelected().equals(\"two\")){\r\n drive.arcadeDrive(leftJoystick.getY(), leftJoystick.getX());\r\n } \r\n else {\r\n drive.arcadeDrive(manipulator.getY(), manipulator.getX());\r\n }\r\n }\r\n if (driveChooser.getSelected().equals(\"arcade2\")){\r\n if (joystickChooser.getSelected().equals(\"two\")){\r\n drive.arcadeDrive(leftJoystick.getY(), rightJoystick.getX());\r\n }\r\n else{\r\n drive.arcadeDrive(manipulator.getY(), manipulator.getTwist());\r\n }\r\n }\r\n \r\n //Shooting\r\n if (shootButton1.get()||shootButton2.get()){\r\n frontShooter.set(-1);\r\n backShooter.set(1);\r\n }\r\n else{\r\n frontShooter.set(0);\r\n backShooter.set(0); \r\n }\r\n if (transportButton1.get()||transportButton2.get()){\r\n transport.set(-1);\r\n }\r\n else{\r\n transport.set(0); \r\n }\r\n \r\n //Intake\r\n if (intakeButton1.get()||intakeButton2.get()){\r\n //intakeA.set(-1);BROKEN\r\n intakeB.set(-1);\r\n }\r\n else{\r\n intakeA.set(0);\r\n intakeB.set(0); \r\n }\r\n \r\n //Turret\r\n if (toggleTurretButton.get()){\r\n turret.set(leftJoystick.getX());\r\n }\r\n else{\r\n turret.set(manipulator.getX());\r\n }\r\n }",
"public int actualizarTiempo(int empresa_id,int idtramite, int usuario_id) throws ParseException {\r\n\t\tint update = 0;\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\tString timeNow = formateador.format(date);\r\n\t\tSimpleDateFormat formateador2 = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString fecha = formateador2.format(date);\r\n\t\tSimpleDateFormat formateador3 = new SimpleDateFormat(\"hh:mm:ss\");\r\n\t\tString hora = formateador3.format(date);\r\n\t\tSystem.out.println(timeNow +\" \"+ fecha+\" \"+hora );\r\n\t\t\r\n\t\t List<Map<String, Object>> rows = listatks(empresa_id, idtramite);\t\r\n\t\t System.out.println(rows);\r\n\t\t if(rows.size() > 0 ) {\r\n\t\t\t String timeCreate = rows.get(0).get(\"TIMECREATE_HEAD\").toString();\r\n\t\t\t System.out.println(\" timeCreate \" +timeCreate+\" timeNow: \"+ timeNow );\r\n\t\t\t Date fechaInicio = formateador.parse(timeCreate); // Date\r\n\t\t\t Date fechaFinalizo = formateador.parse(timeNow); //Date\r\n\t\t\t long horasFechas =(long)((fechaInicio.getTime()- fechaFinalizo.getTime())/3600000);\r\n\t\t\t System.out.println(\" horasFechas \"+ horasFechas);\r\n\t\t\t long diferenciaMils = fechaFinalizo.getTime() - fechaInicio.getTime();\r\n\t\t\t //obtenemos los segundos\r\n\t\t\t long segundos = diferenciaMils / 1000;\t\t\t \r\n\t\t\t //obtenemos las horas\r\n\t\t\t long horas = segundos / 3600;\t\t\t \r\n\t\t\t //restamos las horas para continuar con minutos\r\n\t\t\t segundos -= horas*3600;\t\t\t \r\n\t\t\t //igual que el paso anterior\r\n\t\t\t long minutos = segundos /60;\r\n\t\t\t segundos -= minutos*60;\t\t\t \r\n\t\t\t System.out.println(\" horas \"+ horas +\" min\"+ minutos+ \" seg \"+ segundos );\r\n\t\t\t double tiempoTotal = Double.parseDouble(horas+\".\"+minutos);\r\n\t\t\t // actualizar cabecera \r\n\t\t\t updateHeaderOut( idtramite, fecha, hora, tiempoTotal, usuario_id);\r\n\t\t\t for (Map<?, ?> row : rows) {\r\n\t\t\t\t Map<String, Object> mapa = new HashMap<String, Object>();\r\n\t\t\t\tint idd = Integer.parseInt(row.get(\"IDD\").toString());\r\n\t\t\t\tint idtramite_d = Integer.parseInt(row.get(\"IDTRAMITE\").toString());\r\n\t\t\t\tint cantidaMaletas = Integer.parseInt(row.get(\"CANTIDAD\").toString());\r\n\t\t\t\tdouble precio = Double.parseDouble(row.get(\"PRECIO\").toString());\t\t\t\t\r\n\t\t\t\tdouble subtotal = subtotal(precio, tiempoTotal, cantidaMaletas);\r\n\t\t\t\tString tipoDescuento = \"\";\r\n\t\t\t\tdouble porcDescuento = 0;\r\n\t\t\t\tdouble descuento = descuento(subtotal, porcDescuento);\r\n\t\t\t\tdouble precioNeto = precioNeto(subtotal, descuento);\r\n\t\t\t\tdouble iva = 0;\r\n\t\t\t\tdouble montoIVA = montoIVA(precioNeto, iva);\r\n\t\t\t\tdouble precioFinal = precioFinal(precioNeto, montoIVA);\r\n\t\t\t\t//actualizar detalle\r\n\t\t\t\tupdateBodyOut( idd, idtramite_d, tiempoTotal , subtotal, tipoDescuento, porcDescuento, descuento, precioNeto, iva, montoIVA, precioFinal );\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\treturn update;\r\n\t}",
"static void Jogo (String nome, String Classe)\n {\n Scanner scan = new Scanner (System.in);\n \n int pontos = 0;\n int pontuador = 0;\n int erro = 0;\n\n int [] aleatorio; // cria um vetor para pegar a resposta da função de Gerar Perguntas Aleatórias \n aleatorio = GerarAleatorio(); // Pega a Reposta da função\n \n \n long start = System.currentTimeMillis(); // inicia o Cronometro do Jogo\n \n for (int i = 0; i < aleatorio.length; i++) // Para cada cada pergunta Aleatoria do tamanho total de perguntas(7) ele chama a pergunta montada e compara as respostas do usario \n { // com a função que tem todas as perguntas certas\n \n System.out.println((i + 1) + \") \" + MostrarPergunta (aleatorio[i])); //chama a função que monta a pergunta, passando o numero da pergunta (gerado aleatoriamente) \n \n String Certa = Correta(aleatorio[i]); // pega a resposta correta de acordo com o numero com o numero da pergunta\n \n System.out.println(\"Informe sua resposta: \\n\");\n String opcao = scan.next();\n \n if (opcao.equals(Certa)) // compara a resposta do usuario com a Resposta correta guardada na função \"Correta\"\n { // marca os pontos de acordo com a Classe escolhida pelo jogador \n pontuador++;\n if (Classe.equals(\"Pontuador\")) \n {\n pontos = pontos + 100;\n \n System.out.println(\"Parabens você acertou!: \" + pontos + \"\\n\");\n\n if(pontuador == 3)\n {\n pontos = pontos + 300;\n \n System.out.println(\"Parabens você acertou, e ganhou um Bonus de 300 pontos. Seus Pontos: \" + pontos + \"\\n\");\n \n pontuador = 0;\n }\n }\n else\n {\n pontos = pontos + 100;\n System.out.println(\"Parabens você acertou. Seus pontos: \" + pontos + \"\\n\");\n } \n }\n \n else if (opcao.equals(Certa) == false) \n {\n erro++;\n \n if (Classe.equals(\"Errar\")) \n {\n if(erro == 3)\n {\n pontos = pontos + 50;\n \n System.out.println(\"Infelizmente Você errou. Mas acomulou 3 erros e recebeu um bonus de 50 pontos: \" + pontos + \"\\n\");\n \n erro = 0;\n }\n }\n else\n {\n pontuador = 0;\n \n pontos = pontos - 100; \n System.out.println(\"Que pena vc errou, Seus pontos atuais: \" + pontos + \"\\n\");\n }\n }\n }\n \n long end = System.currentTimeMillis(); //Encerra o Cronometro do jogador\n \n tempo(start, end, nome, pontos, Classe); //manda para a função Tempo, para calcular os minutos e segundos do usuario \n \n }",
"Polo(ArrayList<Integer> valoresConfig)\n {\n flagsDesastres = new ArrayList();\n for (int d = 0; d < numCatastrofes; d++) //< Modificar al añadir desastres\n {\n flagsDesastres.add(false);\n }\n dia = 1;\n animales = new ArrayList();\n extintos = new ArrayList();\n for (int i = 0; i < 6; i++) //ID 0 reservado para el krill, no son objetos, pero si objetivos de comida\n {\n animales.add(new ArrayList());\n extintos.add(false);\n }\n SerVivo.IniciaCantidad();\n int randNum = Utilidades.rand(valoresConfig.get(0), valoresConfig.get(1));\n krill = randNum;\n randNum = Utilidades.rand(valoresConfig.get(2), valoresConfig.get(3));\n for (int i = 0; i < randNum; i++) {\n animales.get(1).add(new Pez(0, dia, 0));\n }\n randNum = Utilidades.rand(valoresConfig.get(4), valoresConfig.get(5));\n for (int i = 0; i < randNum; i++) {\n animales.get(2).add(new Foca(0, dia));\n }\n randNum = Utilidades.rand(valoresConfig.get(8), valoresConfig.get(9));\n for (int i = 0; i < randNum; i++) {\n animales.get(3).add(new Oso(0, dia));\n }\n randNum = Utilidades.rand(valoresConfig.get(6), valoresConfig.get(7));\n for (int i = 0; i < randNum; i++) {\n animales.get(4).add(new Morsa(0, dia));\n }\n\n randNum = Utilidades.rand(valoresConfig.get(10), valoresConfig.get(11));\n for (int i = 0; i < randNum; i++) {\n animales.get(5).add(new Esquimal(0, dia));\n }\n temperatura = valoresConfig.get(12);\n\n for (int i = 1; i < 6; i++) {\n animales.set(i, Utilidades.RadixSortIMC(animales.get(i)));\n }\n System.out.println(krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }",
"@Override\n\tpublic void teleopPeriodic() {\n\t\t\n\t\t\n\t\t\n//\t\tSmartDashboard.putBoolean(\"Alliance_R\", alliance_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Alliance_L\", alliance_L_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Scale_R\", R_scaleState);\n//\t\tSmartDashboard.putBoolean(\"Scale_L\", L_scaleState);\n//\t\tSmartDashboard.putBoolean(\"oppisite_R\", opposite_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"opposite_L\", opposite_L_SwitchState);\n//\t\t\n//\t\tSmartDashboard.putNumber(\"right Vel\", chassis.rightMagVelocity());\n//\t\tSmartDashboard.putNumber(\"left Vel\", chassis.leftMagVelocity());\n//\t\tSmartDashboard.putNumber(\"right Pos\", chassis.rightMagPosition());\n//\t\tSmartDashboard.putNumber(\"left Pos\", chassis.leftMagPosition());\n\t\tSmartDashboard.putData(\"gyro\", chassis.navx);\n\t\tSmartDashboard.putData(\"Chassis\",chassis);\n\t\tSmartDashboard.putBoolean(\"shift is high\", chassis.shiftIsHigh);\n\t\tSmartDashboard.putNumber(\"Arm Pot Value\", Robot.arm.getArmPot());\n\t\tSmartDashboard.putNumber(\"Elevator Encoder\", elevator.getElevatorMagPosition());\n\t\t\n//\t\tSmartDashboard.putNumber(\"TurnPID\", chassis.turnSpeed.getSpeed());\n//\t\tSmartDashboard.putData(\"TurnController\", chassis.turnController);\n//\t\tSmartDashboard.putData(\"Turn\",new Turn());\t\t\n//\t\tSmartDashboard.putNumber(\"leftDistPID\", chassis.leftDistanceSpeed.getSpeed());\n//\t\tSmartDashboard.putNumber(\"rightDistPID\", chassis.rightDistanceSpeed.getSpeed());\n//\t\tSmartDashboard.putData(\"right drive controller\", chassis.rightDistanceController);\n//\t\tSmartDashboard.putData(\"left drive controller\", chassis.leftDistanceController);\t\t\t\n//\t\tSmartDashboard.putData(\"test\",new drivefrompoint());\n\t\tSmartDashboard.putData(\"Arm PID\", arm.armPID);\n\t\tSmartDashboard.putData(\"Elevator PID\", elevator.elePID);\n\t\tSmartDashboard.putData(\"Elevator Subsystem\", elevator);\n\t\tSmartDashboard.putData(\"Hold Climb Command\", new LowerElevatorManual(0.1));\n\t\t\n\t\tSmartDashboard.putNumber(\"intake lead current\", Robot.intake.intakeLeader.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"intake follow current\", Robot.intake.intakeFollower.getOutputCurrent());\n\t\t\n\t\tSmartDashboard.putNumber(\"arm current\", arm.arm.getOutputCurrent());\n\t\t//SmartDashboard.putBoolean(\"Upper Elevator Limit Switch\", elevato);\n\t\t\n\t\tScheduler.getInstance().run();\n\t\t\n\t\t\n\t\tif(!elevator.getBottomElevatorLimit()) {\n\t\t\televator.resetElevatorMag();\n\t\t}\n\t\t\n\t}",
"public Television(int precioBase, int peso){\r\n this(precioBase, peso, consumoEnergeticoConst, colorConst, pulgadasConst, false);\r\n }",
"public static void main(String[] args) {\n\t\tjava.util.Scanner input = new java.util.Scanner (System.in);\r\n\t\tlong millis = 0;\r\n\t\tboolean works = true;\r\n\t\t\r\n\t\t//petlja koja kontrolise pravilan unos broja milisekundi\r\n\t\twhile (works){\r\n\t\t\ttry{\r\n\t\t\t\tSystem.out.print(\"Unesite broj milisekundi: \");\r\n\t\t\t\tmillis = input.nextLong();\r\n\t\t\t\t\r\n\t\t\t\tif(millis <= 0){\r\n\t\t\t\t\tSystem.out.println(\"Unesite cijeli broj veci od 0!\");\t\t//nepravilan unos ponavlja petlju\r\n\t\t\t\t\tworks = true;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tworks = false;\r\n\t\t\t\t}\r\n\t\t\t}catch (InputMismatchException ex){\r\n\t\t\t\tSystem.out.println(\"Nemoguc unos. Pokusajte ponovo!\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\t //poziv metode za pretvaranje broja milisekundi u sate, minute i sekunde\r\n\t\tString time = convertMillis(millis); \r\n\t\tSystem.out.println(\"\\n\" + millis + \" milisekundi pretvoreno u format vremena hh:mm:ss je: \" + time);\r\n\t\tinput.close();\r\n\t}",
"public static void tienda(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int opcionCompra; //variables locales a utilizar\n Scanner scannerDos=new Scanner(System.in);\n //mostrando en pantalla las opciones de la tienda\n System.out.println(\"Bienvenido a la tienda, que deceas adquirir:\\n\");\n\tSystem.out.println(\"PRODUCTO \\tPRECIO \\tBENEFICIO\");\n\tSystem.out.println(\"1.Potion \\t50 oro \\tcura 25 HP\");\n\tSystem.out.println(\"2.Hi-Potion\\t100 oro \\tcura 75 HP\");\n\tSystem.out.println(\"3.M-Potion \\t75 oro \\trecupera 10 MP\");\n //ingresando numero de opcion\n System.out.println(\"\\n\\nIngrese numero de opcion:\");\n opcionCompra=scannerDos.nextInt();\n //comparando la opcion de compra\n switch(opcionCompra){\n case 1:{//condicion de oro necesario para el articulo1 \n\t\t\tif(oro>=50){\n articulo1=articulo1+1;\n System.out.println(\"compra exitosa\");\n }else {\n System.out.println(\"oro insuficiente!!!\");\n }\n break;\n }\n\t\tcase 2:{//condicion de oro necesario para el articulo2\n if(oro>=100){\n articulo2=articulo2+1;\n }else{ \n System.out.println(\"oro insuficiente!!!\");\n }\n break;\n }\n\t default:{//condicion de oro necesario para el articulo3\n if(oro>=75){\n articulo3=articulo3+1;\n }else{ \n System.out.println(\"oro insuficiente!!!\"); //poner while para ,ejora\n \t\t}\n break;\n }\n }\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n// if (oi.driveStick.getRawButton(4)) {\n// System.out.println(\"Left Encoder Distance: \" + RobotMap.leftDriveEncoder.getDistance());\n// System.out.println(\"RightEncoder Distance: \" + RobotMap.rightDriveEncoder.getDistance());\n// }\n\n }",
"public void setTime(){\r\n \r\n }",
"public void setLoSeconds(int loSeconds) {\n this.loSeconds = loSeconds;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic static void main(String[] args) {\n\n\t\tPaciente p = new Paciente();\n//\t\tString out = p.buscarHoraAps(1, new Date(\"01/01/2015 00:15:00\"), new Date(\"01/01/2015 00:30:00\"));\n//\t\tString out = p.ReservarHoraAps(2, 2);\n\t\t\n\t\tMedico m = new Medico();\n\t\tString out = m.ReservarHoraMedicaControl(new int[]{7,8}, 1);\n\n\t\tSystem.out.println(out);\n\t}",
"private void getOneToteTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"public void startAgentTime() {\n Timer timer = new Timer(SIBAConst.TIME_AGENT_CHANGE_FOR_HOUR, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n \t\n \tCalendar c = Calendar.getInstance();\n int minutos = c.get(Calendar.MINUTE);\n int hora = c.get( (Calendar.HOUR_OF_DAY)); \n hora = hora * 60;\n if (minutos >= 30 && minutos <= 59)\n {hora +=30;\t\n }\n if (hora > ctrlHours)\n {ctrlHours = hora;\n //activada bandera de modificacion de programacion\n activatedScheduleChange = true;\n }\n else\n { if (hora < ctrlHours)\n \t ctrlHours = 0;\n }\n \t\n \t\n \n }\n });\n timer.start();\n }",
"public static void main(String[] args) {\n\t\tString[] horasSesiones = {};\r\n\t\tSala sala = new Sala(\"Tiburon\", horasSesiones, 9, 5);\r\n\r\n\t\tsala.incluirSesion(\"20:00\");\r\n\r\n\t\t/*for (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);*/\r\n\t//\tsala.borrarSesion(\"15:00\"); // no hace nada\r\n\t\t//sala.borrarSesion(\"20:00\");\r\n\r\n\t\tfor (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);\r\n\r\n\t\t// necesitamos la ventanilla para mostrar el estado de la sesion\r\n\t\tVentanillaVirtualUsuario ventanilla = new VentanillaVirtualUsuario(null, true);\r\nSystem.out.println(sala.sesiones.size());\r\nSystem.out.print(sala.getEstadoSesion(1));\r\n\t\tsala.comprarEntrada(1, 2, 1);\r\n\t\tsala.comprarEntrada(1, 9, 3);\r\n\r\n\t\tint idVenta = sala.getIdEntrada(1, 9, 3);\r\n\r\n\t\tSystem.out.println(\"Id de venta es:\" + idVenta);\r\n\r\n\t\tButacasContiguas butacas = sala.recomendarButacasContiguas(1, 1);\r\n\r\n\t\tsala.comprarEntradasRecomendadas(1, butacas);\r\n\r\n\t\tint idVenta1 = sala.getIdEntrada(1, butacas.getFila(), butacas.getColumna());\r\n\r\n\t\tsala.recogerEntradas(idVenta1, 1);\r\n\r\n\t\tventanilla.mostrarEstadoSesion(sala.getEstadoSesion(1));\r\n\r\n\t\tSystem.out.println(\"No. de butacas disponibles: \" + sala.getButacasDisponiblesSesion(1));\r\n\r\n\t\tSystem.out.println(\"Tickets :\" + sala.recogerEntradas(idVenta, 1));\r\n\r\n\t\tSystem.out.println(\"Tickets recomendados:\" + sala.recogerEntradas(idVenta1, 1));\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t//sala.incluirSesion(\"10:56\");\r\n\t\t//sala.incluirSesion(\"10:57\");\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t/*{\r\n\t\t\tfor (int i = 0; i < sala.getHorasDeSesionesDeSala().length; i++) {\r\n\t\t\t\tSystem.out.println(sala.getHorasDeSesionesDeSala()[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t}*/\r\n\t\t\r\n\t}",
"public void pickUpTimer()\r\n\t{\t\t\r\n\t\tSystem.out.println(timer.get());\r\n\t\tif(timer.get() < Config.Auto.timeIntakeOpen)\r\n\t\t{\r\n\t\t\t//claw.openClaw();\r\n\t\t\tSystem.out.println(\"in second if\");\r\n\t\t}\r\n\t\t\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeElevatorStack)\r\n\t\t{\r\n\t\t\t//elevator.setLevel(elevatorLevel);\r\n\t\t\t//elevatorLevel++;\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeIntakeClose)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in first if\");\r\n\t\t\t//claw.closeClaw();\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}",
"public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}",
"public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }",
"public static void ComienzaTimer(){\n timer = System.nanoTime();\n }",
"public void setTiempo(String tiempo) {\r\n this.tiempo = tiempo;\r\n }",
"@Override\n public void teleopPeriodic()\n {\n commonPeriodic();\n }",
"public void TicTac()\n {\n if(minutos<=59)\n {\n minutos=minutos+1;\n \n }\n else\n {\n minutos=00;\n horas+=1;\n \n }\n if(horas>23)\n {\n horas=00;\n \n }\n else\n {\n minutos+=1;\n }\n }",
"int getTtiSeconds();",
"private void initSensor() {\n if ((status == PedoListener.RUNNING) || (status == PedoListener.STARTING)\n && status != PedoListener.PAUSED) {\n return;\n }\n\n Database db = Database.getInstance(getActivity());\n\n todayOffset = db.getSteps(Util.getToday());\n\n SharedPreferences prefs = getActivity().getSharedPreferences(\"pedometer\", Context.MODE_PRIVATE);\n\n goal = prefs.getInt(PedoListener.GOAL_PREF_INT, PedoListener.DEFAULT_GOAL);\n since_boot = db.getCurrentSteps();\n int pauseDifference = since_boot - prefs.getInt(\"pauseCount\", since_boot);\n\n Log.i(TAG, \"PedoListener initSensor todayOffset=\"+todayOffset+\" since_boot=\"+since_boot+\" pauseDifference=\"+pauseDifference);\n\n // register a sensor listener to live update the UI if a step is taken\n sensorManager = (SensorManager) getActivity().getSystemService(Context.SENSOR_SERVICE);\n sensor = sensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER);\n if (sensor == null) {\n new AlertDialog.Builder(getActivity()).setTitle(\"R.string.no_sensor\")\n .setMessage(\"R.string.no_sensor_explain\")\n .setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(final DialogInterface dialogInterface) {\n getActivity().finish();\n }\n }).setNeutralButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(final DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n }).create().show();\n } else {\n sensorManager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_UI, 0);\n }\n\n since_boot -= pauseDifference; \n\n total_start = db.getTotalWithoutToday();\n total_days = db.getDays();\n\n Log.i(TAG, \"PedoListener initSensor since_boot=\"+since_boot+ \" total_start=\"+total_start+\" total_days=\"+total_days);\n\t\n \tstatus = PedoListener.STARTING;\n\t\n\t db.setConfig(\"status_service\", \"start\");\n \n db.close();\n\n updateUI();\n }",
"@Override\n public void setTempo(int tempo) {\n }",
"public void periodic() {\n useOutput(lEncoder.getVelocity(), setpoint);\n SmartDashboard.putNumber(\"LauncherSpeed in RPM\", lEncoder.getVelocity());\n SmartDashboard.putNumber(\"Launcher Current\", launcher1.getOutputCurrent());\n //setSetpoint(SmartDashboard.getNumber(\"LauncherSetpoint in RPM\", setpoint));\n SmartDashboard.putNumber(\"LauncherSetpoint in RPM\", setpoint);\n /*getController().setP(SmartDashboard.getNumber(\"Kp\", getController().getP()));\n getController().setI(SmartDashboard.getNumber(\"Ki\", getController().getI()));\n getController().setD(SmartDashboard.getNumber(\"Kd\", getController().getD()));\n SmartDashboard.putNumber(\"Kp\", getController().getP());\n SmartDashboard.putNumber(\"Ki\", getController().getI());\n SmartDashboard.putNumber(\"Kd\", getController().getD());*/\n SmartDashboard.putNumber(\"Launcher get\",launcher1.get());\n }",
"public void setMiliSeconds(int nt) {\r\n\t\tthis.milis = nt;\r\n\t}",
"@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n //Scheduler.getInstance().run();\n }",
"@Override\n public void onTick(long l) {\n long seconds = (new Date().getTime() - matchDayLong) / 1000;\n // Calcular los minutos del partido\n long minutes = seconds / 60;\n //long minutes = TimeUnit.MILLISECONDS.toMinutes(uptime);\n if(minutes < 0){\n minutes = 0;\n seconds = 0;\n statusMedium.setText(\"PT\");\n }if(minutes > 45 && minutes < 60){\n minutes = 45;\n seconds = 60;\n }else if(minutes > 90){\n minutes = 90;\n seconds = 60;\n statusMedium.setText(\"ST\");\n }else if(minutes >= 60){\n minutes -= 15;\n statusMedium.setText(\"ST\");\n }else{\n statusMedium.setText(\"PT\");\n }\n\n statusTime.setText(String.format(\"%02d:%02d\", minutes, (seconds%60)));\n }",
"@Scheduled(fixedRate = 19000)\n public void tesk() {\n\t\tDateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\");\n DateFormat tf =new SimpleDateFormat(\"HH:mm\");\n\t\t// Get the date today using Calendar object.\n\t\tDate today = Calendar.getInstance().getTime(); \n\t\t// Using DateFormat format method we can create a string \n\t\t// representation of a date with the defined format.\n\t\tString reportDate = df.format(today);\n\t\tString repo = tf.format(today);\n\t\tSystem.out.println(\"Report Date: \" + reportDate);\n \n\t\t List<Tacher> tacher= tacherservice.findBydatetime(today, repo);\n\t\t\n\t\t if (tacher!=null){\t \n \t\t for(int i=0; i<tacher.size(); i++) {\n \t\t\t Tacher current = tacher.get(i);\n \t\t\t System.out.println(\"Tacher: \" + current.getId()+\" Statut=\"+current.getStatut()); \n \t\t tacherservice.metajourtacher(current.getId());\n \t\t System.out.println(\"Tacher: \" + current.getId()+\" Statut=\"+current.getStatut());\n \t\t } ///// fermeteur de for \n\t\t }//fermeteur de if\n\t}",
"public void ponerMaximoTiempo() {\n this.timeFi = Long.parseLong(\"2000000000000\");\n }",
"public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }",
"@RequiresApi(api = Build.VERSION_CODES.O)\n private String obtenerSegundos(){\n try{\n this.minutos = java.time.LocalDateTime.now().toString().substring(17,19);\n }catch (StringIndexOutOfBoundsException sioobe){\n this.segundos = \"00\";\n }\n return this.minutos;\n }",
"public void timer()\n{\n textSize(13);\n controlP5.getController(\"time\").setValue(runtimes);\n line(400, 748, 1192, 748);\n fill(255,0,0);\n for (int i =0; i<25; i++)\n {\n line(400+i*33, 743, 400+i*33, 753);\n text(i, 395 +i*33, 768);\n }\n if ((runtimes < 1 || runtimes > 28800) && s == true)\n {\n //origint = 0;\n runtimes = 1;\n //pausets = 0;\n runtimep = 0;\n } else if (runtimes > 0 && runtimes < 28800 && s == true)\n {\n runtimep = runtimes;\n runtimes = runtimes + speed;\n }\n timeh= runtimes/1200;\n timem= (runtimes%1200)/20;\n}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tSmartDashboard.putBoolean(\"Max Intake Extension: \", RobotMap.intakeLifted.get());\n\t\tSmartDashboard.putBoolean(\"Max Lift Extension:\", RobotMap.isAtTop.get());\n\t\tSmartDashboard.putBoolean(\"Min Lift Extension:\", RobotMap.isAtBottom.get());\n\t\tDriveTrain.driveWithJoystick(RobotMap.stick, RobotMap.rd); // Drive\n\t\tTeleOp.RaiseLift(RobotMap.liftTalon, RobotMap.controller); // Raise lift\n\t\tif(RobotMap.controller.getRawAxis(RobotMap.lowerLiftAxis) >= 0.2) {\n\t\tTeleOp.LowerLift(RobotMap.liftTalon, RobotMap.controller);\n\t\t}\n\t\tTeleOp.DropIntake(RobotMap.controller, RobotMap.intakeLifter);\n\t\tTeleOp.spinOut(RobotMap.intakeVictorLeft, RobotMap.controller);\n\t\t//TeleOp.spinnySpinny(RobotMap.intakeVictorLeft, RobotMap.stick);\n\t}",
"protected void setupTime() {\n this.start = System.currentTimeMillis();\n }",
"public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }",
"public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }",
"public EstacionDeTren(String nombreCiudad,int precioMaquina1,int precioMaquina2)\n {\n ciudad = nombreCiudad;\n maquina1 = new TicketMachine(precioMaquina1);\n maquina2 = new TicketMachine(precioMaquina2);\n }",
"public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}",
"public void menuprecoperiodo(String username) {\n Scanner s=new Scanner(System.in);\n LogTransportadora t=b_dados.getTrasnportadoras().get(username);\n double count=0;\n try {\n ArrayList<Historico> hist = b_dados.buscaHistoricoTransportadora(t.getCodEmpresa());\n System.out.println(\"Indique o ano:\");\n int ano=s.nextInt();\n System.out.println(\"Indique o mês\");\n int mes=s.nextInt();\n System.out.println(\"Indique o dia\");\n int dia=s.nextInt();\n for(Historico h: hist){\n LocalDateTime date=h.getDate();\n if(date.getYear()==ano && date.getMonthValue()==mes && date.getDayOfMonth()==dia){\n count+=h.getKmspercorridos()*t.getPrecokm();\n }\n }\n System.out.println(\"O total fatorado nesse dia foi de \" + count +\"€\");\n }\n catch (TransportadoraNaoExisteException e){\n System.out.println(e.getMessage());\n }\n }",
"public void setToptime(Date toptime) {\n this.toptime = toptime;\n }",
"public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }"
] | [
"0.60422885",
"0.57647",
"0.575817",
"0.57570493",
"0.5744146",
"0.5715098",
"0.5701384",
"0.5692508",
"0.56769156",
"0.56752354",
"0.56385666",
"0.5613496",
"0.559292",
"0.55902034",
"0.55581474",
"0.55498046",
"0.55394924",
"0.5538765",
"0.55378467",
"0.5532295",
"0.54983574",
"0.5493695",
"0.5493695",
"0.5493175",
"0.5475475",
"0.54693097",
"0.54617506",
"0.5459841",
"0.54483247",
"0.54403013",
"0.5435808",
"0.54326355",
"0.54284626",
"0.5411338",
"0.5384778",
"0.5383086",
"0.537872",
"0.537305",
"0.5370026",
"0.5367627",
"0.53652054",
"0.53584075",
"0.53552204",
"0.53544194",
"0.53392875",
"0.53378534",
"0.53351074",
"0.5319574",
"0.53157055",
"0.5311221",
"0.530963",
"0.527482",
"0.52741903",
"0.5270866",
"0.5268772",
"0.5266578",
"0.5259524",
"0.5258704",
"0.5257395",
"0.5251762",
"0.5251711",
"0.5250293",
"0.5243311",
"0.5241711",
"0.52409214",
"0.5239059",
"0.5230444",
"0.5224469",
"0.52039444",
"0.52017903",
"0.5191877",
"0.5191699",
"0.518927",
"0.51850784",
"0.5184184",
"0.51787776",
"0.51787126",
"0.51645577",
"0.51621306",
"0.51596665",
"0.5159414",
"0.51563215",
"0.51560384",
"0.515433",
"0.5153126",
"0.5152295",
"0.5151024",
"0.5144355",
"0.5127881",
"0.512255",
"0.51207477",
"0.512053",
"0.51202637",
"0.5112668",
"0.5111188",
"0.5108296",
"0.51057756",
"0.510488",
"0.5100046",
"0.5099641"
] | 0.68072337 | 0 |
Se para el ServicioPomodoro | private void pararServicioPomodoro(){
Intent pararServicio = new Intent(this,ServicioPomodoro.class);
pararServicio.setAction("intentParar");
startService(pararServicio);
tiempo.stop();
tiempo.setBase(SystemClock.elapsedRealtime());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void iniciarServicioPomodoro(int pomodoro, int corto, int largo){\n Intent inicioServicio = new Intent(this,ServicioPomodoro.class);\n inicioServicio.setAction(\"intentIniciar\");\n inicioServicio.putExtra(\"intervaloPomodoro\", pomodoro);\n inicioServicio.putExtra(\"intervaloDescansoCorto\", corto);\n inicioServicio.putExtra(\"intervaloDescansoLargo\", largo);\n startService(inicioServicio);\n tiempo.setBase(SystemClock.elapsedRealtime());\n tiempo.start();\n controlCronometro();\n }",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n // ros_string = workingSerialCom.read();\n // yavuz = workingSerialCom.StringConverter(ros_string, 2);\n // Inverse.Inverse(yavuz);\n\n // JoystickDrive.execute();\n\n\n\n // ros_string = workingSerialCom.read();\n // alt_yurur = workingSerialCom.StringConverter(ros_string, 1);\n // robot_kol = workingSerialCom.StringConverter(ros_string, 2);\n Full.Full(yavuz);\n \n }",
"public void teleopPeriodic() {\n joystick1X = leftStick.getAxis(Joystick.AxisType.kX);\n joystick1Y = leftStick.getAxis(Joystick.AxisType.kY);\n joystick2X = rightStick.getAxis(Joystick.AxisType.kX);\n joystick2Y = rightStick.getAxis(Joystick.AxisType.kY);\n \n mapped1Y = joystick1Y/2 + 0.5;\n mapped1X = joystick1X/2 + 0.5;\n mapped2X = joystick2X/2 + 0.5;\n mapped2Y = joystick2Y/2 + 0.5;\n \n X1testServo.set(mapped1X);\n Y1testServo.set(mapped1Y);\n X2testServo.set(mapped2X);\n Y2testServo.set(mapped2Y);\n }",
"private void IniciarCronometro() {\n ActionListener action = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n currentSegundo++;\n\n if (currentSegundo == 60) {\n currentMinuto++;\n currentSegundo = 0;\n }\n\n if (currentMinuto == 60) {\n currentHora++;\n currentMinuto = 0;\n }\n\n String hr = currentHora <= 9 ? \"0\" + currentHora : currentHora + \"\";\n String min = currentMinuto <= 9 ? \"0\" + currentMinuto : currentMinuto + \"\";\n String seg = currentSegundo <= 9 ? \"0\" + currentSegundo : currentSegundo + \"\";\n\n lbcronometro.setText(hr + \":\" + min + \":\" + seg);\n tempo = hr + \":\" + min + \":\" + seg;\n }\n };\n this.timer = new Timer(velocidade, action);\n this.timer.start();\n }",
"public void teleopPeriodic() {\r\n }",
"protected void processTimer(){\n if(timer != null){\n timer.cancel();\n timer = null;\n }\n // Verificamos si el partido esta en progreso\n if(match.status == Match.STATUS_PENDING || match.status == Match.STATUS_ENDED){\n return;\n }\n // Creamos temporizador 90 * 60 * 1000 = 5.400.000\n timer = new CountDownTimer(5400000, 1000) {\n @Override\n public void onTick(long l) {\n // Calcular los segundos que pasaron\n long seconds = (new Date().getTime() - matchDayLong) / 1000;\n // Calcular los minutos del partido\n long minutes = seconds / 60;\n //long minutes = TimeUnit.MILLISECONDS.toMinutes(uptime);\n if(minutes < 0){\n minutes = 0;\n seconds = 0;\n statusMedium.setText(\"PT\");\n }if(minutes > 45 && minutes < 60){\n minutes = 45;\n seconds = 60;\n }else if(minutes > 90){\n minutes = 90;\n seconds = 60;\n statusMedium.setText(\"ST\");\n }else if(minutes >= 60){\n minutes -= 15;\n statusMedium.setText(\"ST\");\n }else{\n statusMedium.setText(\"PT\");\n }\n\n statusTime.setText(String.format(\"%02d:%02d\", minutes, (seconds%60)));\n }\n\n @Override\n public void onFinish() {\n\n }\n }.start();\n }",
"private void iniciarHilo() {\n tarea = new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n if (encendido) { // se activa la variable encendido si se presiona el boton iniciar\n try {\n Thread.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n mili++;\n if (mili >= 999) {\n seg++;\n mili = 0;\n }\n if (seg >= 59) {\n minutos++;\n seg = 0;\n }\n h.post(new Runnable() {\n @Override\n public void run() {\n String m = \"\", s = \"\", mi = \"\";\n if (mili < 10) { //Modificar la variacion de los 0\n m = \"00\" + mili;\n } else if (mili <= 100) {\n m = \"0\" + mili;\n } else {\n m = \"\" + mili;\n }\n if (seg <= 10) {\n s = \"0\" + seg;\n } else {\n s = \"\" + seg;\n }\n if (minutos <= 10) {\n mi = \"0\" + minutos;\n } else {\n mi = \"\" + minutos;\n }\n crono.setText(mi + \":\" + s + \":\" + m);\n }\n });\n }\n }\n }\n });\n tarea.start();\n }",
"public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}",
"@Override\n public void onTick(long l) {\n long seconds = (new Date().getTime() - matchDayLong) / 1000;\n // Calcular los minutos del partido\n long minutes = seconds / 60;\n //long minutes = TimeUnit.MILLISECONDS.toMinutes(uptime);\n if(minutes < 0){\n minutes = 0;\n seconds = 0;\n statusMedium.setText(\"PT\");\n }if(minutes > 45 && minutes < 60){\n minutes = 45;\n seconds = 60;\n }else if(minutes > 90){\n minutes = 90;\n seconds = 60;\n statusMedium.setText(\"ST\");\n }else if(minutes >= 60){\n minutes -= 15;\n statusMedium.setText(\"ST\");\n }else{\n statusMedium.setText(\"PT\");\n }\n\n statusTime.setText(String.format(\"%02d:%02d\", minutes, (seconds%60)));\n }",
"public void sogutucuyuKapat(){\n\t\tif(!(durum==false)){\n\t\t\tdurum = false;\n\t\t\tnotifyObservers();\n\t\t} else {\n\t\t\tnotifyObservers();\n\t\t}\n\t\t\n\t}",
"@Override\n public void teleopPeriodic() {\n }",
"@Override\n public void teleopPeriodic() {\n }",
"public void TicTac()\n {\n if(minutos<=59)\n {\n minutos=minutos+1;\n \n }\n else\n {\n minutos=00;\n horas+=1;\n \n }\n if(horas>23)\n {\n horas=00;\n \n }\n else\n {\n minutos+=1;\n }\n }",
"public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}",
"private void ruotaNuovoStatoPaziente() {\r\n\t\tif(nuovoStatoPaziente==StatoPaziente.WAITING_WHITE)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_YELLOW;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_YELLOW)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_RED;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_RED)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_WHITE;\r\n\t\t\r\n\t}",
"private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }",
"public void teleopPeriodic() {\n \t//driveTrain.setInputSpeed(xbox.getAxisLeftY(), xbox.getAxisRightY());\n \t\n \tdriveTrain.print();\n \t\n \t// funcao PID\n \tif (xbox.getButtonX()) {\n\t\t\tbotaoapertado = true;\n\t\t} else if (xbox.getButtonY()) {\n\t\t\tbotaoapertado = false;\n\t\t\tdriveTrain.start();\n\t\t\tdriveTrain.setSetPoint(0, 0);\n\t\t}\n \tif (botaoapertado) {\n \t\tdriveTrain.setSetPoint(100, 100);\n\t\t}\n \t\n }",
"public void teleopPeriodic() {\n \tteleop.teleopPeriodic();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n rumbleInYourPants();\n turnSpindleIfNeeded();\n turnWinchIfNeeded();\n if (arcadeDrive != null) \n arcadeDrive.start();\n }",
"private void reactMain_region_digitalwatch_Display_chrono_ChoroStart() {\n\t\tif (sCIButtons.bottomRightPressed) {\n\t\t\tnextStateIndex = 2;\n\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\ttimer.setTimer(this, 4, 10, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseChronoByOne();\n\n\t\t\tnextStateIndex = 2;\n\t\t\tstateVector[2] = State.main_region_digitalwatch_Display_chrono_countingChrono;\n\t\t}\n\t}",
"public void startAgentTime() {\n Timer timer = new Timer(SIBAConst.TIME_AGENT_CHANGE_FOR_HOUR, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n \t\n \tCalendar c = Calendar.getInstance();\n int minutos = c.get(Calendar.MINUTE);\n int hora = c.get( (Calendar.HOUR_OF_DAY)); \n hora = hora * 60;\n if (minutos >= 30 && minutos <= 59)\n {hora +=30;\t\n }\n if (hora > ctrlHours)\n {ctrlHours = hora;\n //activada bandera de modificacion de programacion\n activatedScheduleChange = true;\n }\n else\n { if (hora < ctrlHours)\n \t ctrlHours = 0;\n }\n \t\n \t\n \n }\n });\n timer.start();\n }",
"@Override\n public void jornadaTrabalho(int x) {\n DateTimeFormatter formatoData = DateTimeFormatter.ofPattern(\"HH:mm\");\n \n if (x == 40) {\n // Jornada de Trabalho PADRÃO 40h\n entrada1 = LocalTime.of(8, 0);\n saida1 = LocalTime.of(12, 0);\n entrada2 = LocalTime.of(14, 0);\n saida2 = LocalTime.of(18, 0);\n cbxJornada.setSelectedIndex(1);\n jornada = 40;\n } else if (x == 44) {\n // Jornada de Trabalho PADRÃO 44h\n entrada1 = LocalTime.of(7, 0, 0);\n saida1 = LocalTime.of(12, 0, 0);\n entrada2 = LocalTime.of(14, 0, 0);\n saida2 = LocalTime.of(18, 0, 0);\n cbxJornada.setSelectedIndex(2);\n jornada = 44;\n }\n //Popula os campos de horas\n txtEntrada1.setText(entrada1.format(formatoData));\n txtSaida1.setText(saida1.format(formatoData));\n txtEntrada2.setText(entrada2.format(formatoData));\n txtSaida2.setText(saida2.format(formatoData));\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n// if (oi.driveStick.getRawButton(4)) {\n// System.out.println(\"Left Encoder Distance: \" + RobotMap.leftDriveEncoder.getDistance());\n// System.out.println(\"RightEncoder Distance: \" + RobotMap.rightDriveEncoder.getDistance());\n// }\n\n }",
"public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0) {\n incrPoids(3);\n } else if (tamagoStats.getPoids() == TamagoStats.POIDS_MAX) {\n incrPoids(-3);\n }\n\n setEtatPiece(Etat.NONE);\n tamagoStats.setEtatSante(Etat.NONE);\n\n setChanged();\n notifyObservers();\n }\n }",
"public void daiMedicina() {\n System.out.println(\"Vuoi curare \" + nome + \" per 200 Tam? S/N\");\n String temp = creaturaIn.next();\n if (temp.equals(\"s\") || temp.equals(\"S\")) {\n puntiVita += 60;\n soldiTam -= 200;\n }\n checkStato();\n }",
"public void teleopPeriodic() {\n\t\t// resetAndDisable();\n\t\tupdateDashboard();\n\t\tLogitechJoystick.controllers();\n\t\tDrivetrain.arcadeDrive();\n\t\tShooterAngleMotor.angleShooter();\n\t\tBallShooter.shootBalls();\n\t\tSonicSensor.updateSensors();\n\t\t\n\t\t//if(LogitechJoystick.rightBumper2)\n\t\t\t//{\n\t\t\t\t//LowBar.makeArmStable();\n\t\t\t//}\n\n\t}",
"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 }",
"public void onTick(){\n if(mService!=null && mService.hasAlarm(kookPlaatID)){\n vegetableState = VegetableStates.VEGETABLE_SELECTED;\n VegetableAlarm vegAlarm = mService.getTimer(kookPlaatID);\n progress.setProgress(progress.getMax() - vegAlarm.getTimeLeft());\n\n if(vegAlarm.isRunning()){\n text.setText(formatTime(vegAlarm.getTimeLeft()));\n }else if(vegAlarm.isFinished()){\n timerState = TimerStates.TIMER_FINISHED;\n updateUI();\n }else if(!vegAlarm.isRunning()){\n timerState = TimerStates.TIMER_PAUSED;\n updateUI();\n }\n }\n }",
"@RequiresApi(api = Build.VERSION_CODES.O)\n private String obtenerSegundos(){\n try{\n this.minutos = java.time.LocalDateTime.now().toString().substring(17,19);\n }catch (StringIndexOutOfBoundsException sioobe){\n this.segundos = \"00\";\n }\n return this.minutos;\n }",
"@Override\n public void run() {\n long pocetak = 0;\n long kraj = 0;\n int pauza = Integer.parseInt(SlusacAplikacije.konfig.dajPostavku(\"sleep\"));\n while (!ServerSustava.isStop()) {\n pocetak = System.currentTimeMillis();\n if (!ServerSustava.isPauza()) {\n System.out.println(\"preuzimanje meteo podataka\");\n BazaPodataka bp = new BazaPodataka();\n List<Adresa> adrese = new ArrayList<Adresa>();\n adrese = bp.dohvatiAdrese();\n String apiKey = SlusacAplikacije.konfig.dajPostavku(\"apiKey\");\n OWMKlijent owmk = new OWMKlijent(apiKey);\n if (adrese != null) {\n for (Adresa a : adrese) {\n //System.out.println(\"adr: \" + a.getAdresa());\n MeteoPodaci mp = owmk.getRealTimeWeather(a.getGeoloc().getLatitude(), a.getGeoloc().getLongitude());\n bp.spremiMeteoPodatke(a.getAdresa(), mp);\n //System.out.println(\"Status: \" + a.getStatusPreuzimanja());\n if (a.getStatusPreuzimanja() == 0) {\n // System.out.println(\"update statusa!\");\n bp.statusPreuzimanjaPodataka(a.getAdresa());\n }\n }\n }\n }\n kraj = System.currentTimeMillis();\n long trajanjeObrade = kraj - pocetak;\n try {\n long spavanje = pauza * 1000;\n if (trajanjeObrade < spavanje) {\n sleep(spavanje - trajanjeObrade);\n }\n } catch (InterruptedException ex) {\n Logger.getLogger(MeteoPodaciPreuzimanje.class.getName()).log(Level.SEVERE, null, ex);\n break;\n }\n }\n }",
"public void avvio_gioco(){\n\n punti = 3;\n //Posizione iniziale della x\n for (short i = 0; i < punti; i++) {\n x[i] = 150 - i*10;\n y[i] = 150;\n }\n posiziona_bersaglio();\n\n //Attivazione del timer\n timer = new Timer(RITARDO, this);\n timer.start();\n }",
"public void teleopPeriodic() {\n \t//getInstance().run();;\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickRight); //This line drives the robot using the values of the joystick and the motor controllers selected above\n \tScheduler.getInstance().run();\n\t\n }",
"@Override\n\tpublic void teleopPeriodic() {\n\t}",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long value = dataSnapshot.getValue(Long.class);\n // Log.d(TAG, \"Value is: \" + value);\n\n Date tiempo= new Date();\n SimpleDateFormat format = new SimpleDateFormat(\"mm:ss\");\n\n tiempo.setTime(value);\n\n if(value==0){\n extraTime=true;\n }else {\n\n if(vibrando){\n stopVibrate();\n vibrando=false;\n }\n t_contador.setText(format.format(tiempo));\n }\n }",
"public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n OI.poll();\r\n }",
"public void pauza()\n\t{\n\t\tif(!wToku)\n\t\t\treturn;\n\t\t\n\t\tif(zegar.isRunning())\n\t\t{\n\t\t\tpauza = true;\n\t\t\tzegar.stop();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tzegar.start();\n\t\t\tpauza = false;\n\t\t}\n\t\t\t\n\t}",
"public void autonomousPeriodic()\r\n {\r\n \r\n }",
"public void teleopPeriodic() {\n\n \t//NetworkCommAssembly.updateValues();\n \t\n\t\t// both buttons pressed simultaneously, time to cal to ground\n\t\tif (gamepad.getRawButton(FRONT_ARM_GROUND_CAL_BUTTON1) && gamepad.getRawButton(FRONT_ARM_GROUND_CAL_BUTTON2)) {\n\t\t\tprocessGroundCal();\n\t\t}\n\n\t\t// PID CONTROL ONLY\n\t\tdouble armDeltaPos = gamepad.getRawAxis(1);\n\t\tif (Math.abs(armDeltaPos) < ARM_DEADZONE) {\n\t\t\tarmDeltaPos = 0.0f;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tarmDeltaPos *= ARM_POS_MULTIPLIER;\n\t\t\tdouble currPos = testMotor.getPosition();\n\t\t\t\n\t\t\tif (((currPos > SOFT_ENCODER_LIMIT_MAX) && armDeltaPos > 0.0) || ((currPos < SOFT_ENCODER_LIMIT_FLOOR) && armDeltaPos < 0.0)) {\n\t\t\t\tSystem.out.println(\"SOFT ARM LIMIT HIT! Setting armDeltaPos to zero\");\n\t\t\t\tarmDeltaPos = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble newPos = currPos + armDeltaPos;\n\t\t\ttestMotor.set(newPos);\n\t\t\tSystem.out.println(\"Setting new front arm pos = \" + newPos);\t\n\t\t}\t\t\n\n \t/*\n\t\tdouble newArmPos = gamepad.getRawAxis(1);\n\t\tif(Math.abs(newArmPos) <= ARM_DEADZONE) {\n\t\t\tnewArmPos = 0.0;\n\t\t}\n\t\tdouble newMotorPos = (newArmPos * ARM_SPEED_MULTIPLIER) + testMotor.getPosition();\n\t\tpositionMoveByCount(newMotorPos);\n\t\tSystem.out.println(\"input = \" + newArmPos + \" target pos = \" + newMotorPos + \" enc pos = \" + testMotor.getPosition());\n \t*/\n \t\n\t\t// PercentVbus test ONLY!!\n \t/*\n\t\tdouble armSpeed = gamepad.getRawAxis(1);\n\t\tif (Math.abs(armSpeed) < ARM_DEADZONE) {\n\t\t\tarmSpeed = 0.0f;\n\t\t}\t\n\t\tarmSpeed *= ARM_MULTIPLIER;\n\t\t\n\t\tdouble pos= testMotor.getPosition();\n\t\tif (((pos > SOFT_ENCODER_LIMIT_1) && armSpeed < 0.0) || ((pos < SOFT_ENCODER_LIMIT_2) && armSpeed > 0.0))\n\t\t\tarmSpeed = 0.0;\n\t\ttestMotor.set(armSpeed);\n\t\t\n\t\tSystem.out.println(\"armSpeed = \" + armSpeed + \" enc pos = \" + testMotor.getPosition());\n\t\t */ \n }",
"public void autonomousPeriodic() {\n \n }",
"@Override\n\tpublic void teleopPeriodic() {\n\n\t\tif (Joy.getRawButtonPressed(1)) {\n\t\t\ttriggerValue = !triggerValue;\n\n\t\t\tif (triggerValue) {\n\t\t\t\tairCompressor.start();\n\t\t\t\tSystem.out.println(\"Compressor ON\");\n\n\t\t\t} else if (!triggerValue) {\n\t\t\t\tairCompressor.stop();\n\t\t\t\tSystem.out.println(\"Compressor OFF\");\n\t\t\t}\n\t\t}\n\n\t\tif (Joy.getRawButtonPressed(2)) {\n\t\t\ttriggerValue = !triggerValue;\n\n\t\t\tif (triggerValue) {\n\t\t\t\ts1.set(DoubleSolenoid.Value.kForward);\n\t\t\t\tTimer.delay(1);\n\t\t\t\ts2.set(DoubleSolenoid.Value.kForward);\n\t\t\t\tSystem.out.println(\"Solenoid Forward\");\n\n\t\t\t} else if (!triggerValue) {\n\t\t\t\ts1.set(DoubleSolenoid.Value.kReverse);\n\t\t\t\tTimer.delay(1);\n\t\t\t\ts2.set(DoubleSolenoid.Value.kReverse);\n\t\t\t\tSystem.out.println(\"Solenoid Reversed\");\n\n\t\t\t}\n\t\t}\n\t}",
"public void testPeriodic()\n\t{\n\t\tif (oi.getGunS() > 0.5)\t{\n\t\t\tdrive.TimerMove(0.3, 0.75);\n\t\t\tdrive.TimerMove(-0.3, 0.75);\n\t\t}\n\t\tlong milis = (long)(1.5 * 1000);\n \tlong time = System.currentTimeMillis();\n \twhile (System.currentTimeMillis() < time + milis)\n \t\tconveyor.setConveyor(1);\n\t\ttime = System.currentTimeMillis();\n\t\twhile (System.currentTimeMillis() < time + milis)\n\t\t\tconveyor.setConveyor(-1);\n\t\tconveyor.setConveyor(0);\n\t\ttime = System.currentTimeMillis();\n\t\twhile (System.currentTimeMillis() < time + milis)\n\t\t\tconveyor.setPlate(false);\n\t\ttime = System.currentTimeMillis();\n\t\twhile (System.currentTimeMillis() < time + milis)\n\t\t\tconveyor.setPlate(true);\n\t\telRaise.elCycle();\n\t\tLiveWindow.run();\n\t}",
"@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n //Scheduler.getInstance().run();\n }",
"@Override\n public void onClick(View v) {\n if(v == botonHora){\n final Calendar calendar = Calendar.getInstance();\n hora = calendar.get(Calendar.HOUR_OF_DAY);\n minutos = calendar.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n if(minute <10)\n campoHora.setText(hourOfDay+\":\"+\"0\"+minute);\n else\n campoHora.setText(hourOfDay+\":\"+minute);\n }\n },hora,minutos,false);\n timePickerDialog.show();\n }\n }",
"public void setPontosTimeMandante(int pontosTimeMandante) {\r\n this.pontosTimeMandante = pontosTimeMandante;\r\n }",
"public void teleopPeriodic() {\r\n //Driving\r\n if (driveChooser.getSelected().equals(\"tank\")){\r\n if (joystickChooser.getSelected().equals(\"two\")){\r\n drive.tankDrive(leftJoystick.getY(), rightJoystick.getY());\r\n } \r\n else {\r\n drive.tankDrive(manipulator.getY(), manipulator.getThrottle());\r\n }\r\n }\r\n if (driveChooser.getSelected().equals(\"arcade1\")){\r\n if (joystickChooser.getSelected().equals(\"two\")){\r\n drive.arcadeDrive(leftJoystick.getY(), leftJoystick.getX());\r\n } \r\n else {\r\n drive.arcadeDrive(manipulator.getY(), manipulator.getX());\r\n }\r\n }\r\n if (driveChooser.getSelected().equals(\"arcade2\")){\r\n if (joystickChooser.getSelected().equals(\"two\")){\r\n drive.arcadeDrive(leftJoystick.getY(), rightJoystick.getX());\r\n }\r\n else{\r\n drive.arcadeDrive(manipulator.getY(), manipulator.getTwist());\r\n }\r\n }\r\n \r\n //Shooting\r\n if (shootButton1.get()||shootButton2.get()){\r\n frontShooter.set(-1);\r\n backShooter.set(1);\r\n }\r\n else{\r\n frontShooter.set(0);\r\n backShooter.set(0); \r\n }\r\n if (transportButton1.get()||transportButton2.get()){\r\n transport.set(-1);\r\n }\r\n else{\r\n transport.set(0); \r\n }\r\n \r\n //Intake\r\n if (intakeButton1.get()||intakeButton2.get()){\r\n //intakeA.set(-1);BROKEN\r\n intakeB.set(-1);\r\n }\r\n else{\r\n intakeA.set(0);\r\n intakeB.set(0); \r\n }\r\n \r\n //Turret\r\n if (toggleTurretButton.get()){\r\n turret.set(leftJoystick.getX());\r\n }\r\n else{\r\n turret.set(manipulator.getX());\r\n }\r\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long value = dataSnapshot.getValue(Long.class);\n // Log.d(TAG, \"Value is: \" + value);\n\n\n\n\n Date tiempo= new Date();\n SimpleDateFormat format = new SimpleDateFormat(\"mm:ss\");\n\n tiempo.setTime(value);\n\n if(extraTime) {\n t_contador.setText(\"-\" + format.format(tiempo));\n\n if(!vibrando) {\n\n startVibrate();\n vibrando=true;\n }\n\n }\n }",
"public void controllore() {\n if (puntiVita > maxPunti) puntiVita = maxPunti;\n if (puntiFame > maxPunti) puntiFame = maxPunti;\n if (puntiFelicita > maxPunti) puntiFelicita = maxPunti;\n if (soldiTam < 1) {\n System.out.println(\"Hai finito i soldi\");\n System.exit(3);\n }\n //controlla che la creatura non sia morta, se lo è mette sonoVivo a false\n if (puntiVita <= minPunti && puntiFame <= minPunti && puntiFelicita <= minPunti) sonoVivo = false;\n }",
"public void sueldo(){\n if(horas <= 40){\n sueldo = horas * cuota;\n }else {\n if (horas <= 50) {\n sueldo = (40 * cuota) + ((horas - 40) * (cuota * 2));\n } else {\n sueldo = ((40 * cuota) + (10 * cuota * 2)) + ((horas - 50) + (cuota * 3));\n }\n }\n\n }",
"void getCurrentPeriodo();",
"@Override\n public void teleopPeriodic() {\n CommandScheduler.getInstance().run();\n OI.getInstance().getPilot().run();\n SmartDashboard.putNumber(\"gyro\", getRobotContainer().getTecbotSensors().getYaw());\n SmartDashboard.putBoolean(\"isSpeed\", getRobotContainer().getDriveTrain().getTransmissionMode() == DriveTrain.TransmissionMode.speed);\n SmartDashboard.putString(\"DT_MODE\", getRobotContainer().getDriveTrain().getCurrentDrivingMode().toString());\n SmartDashboard.putNumber(\"x_count\", getRobotContainer().getClimber().getxWhenPressedCount());\n\n }",
"public void pickUpTimer()\r\n\t{\t\t\r\n\t\tSystem.out.println(timer.get());\r\n\t\tif(timer.get() < Config.Auto.timeIntakeOpen)\r\n\t\t{\r\n\t\t\t//claw.openClaw();\r\n\t\t\tSystem.out.println(\"in second if\");\r\n\t\t}\r\n\t\t\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeElevatorStack)\r\n\t\t{\r\n\t\t\t//elevator.setLevel(elevatorLevel);\r\n\t\t\t//elevatorLevel++;\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeIntakeClose)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in first if\");\r\n\t\t\t//claw.closeClaw();\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}",
"@Override\n public void teleopPeriodic() {\n // drive.DrivePeriodic();\n controllerMap.controllerMapPeriodic();\n // intake.IntakePeriodic();\n // climb.ClimbPeriodic();\n\n }",
"public void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\t\n\t\t// Light/flash LEDs as needed\n\t\tif (timerLEDs.get() >= timerLEDsHalfPeriod) {\n\t timerLEDs.reset();\n\t timerLEDsCycleHigh = !timerLEDsCycleHigh;\n\t if (timerLEDsCycleHigh) {\n\t \tshooter.setFlywheelSpeedLight(shooter.bLEDsArmAtAngle);\n\t } else {\n\t \tshooter.setFlywheelSpeedLight(shooter.bLEDsArmAtAngle /*&& !shooter.bLEDsFlywheelAtSpeed*/);\t \t\n\t }\n\t\t}\n/*\t\t\n\t\t// Rumble as needed\n\t\tboolean ballLoaded = shooter.isBallLoaded(); \n\t\tif (ballLoaded && !prevBallLoaded) {\n\t\t\ttimerRumble.reset();\n\t\t\toi.xboxController.setRumble(RumbleType.kLeftRumble, 1);\n\t\t}\n\t\tprevBallLoaded = ballLoaded;\n\n\t\tboolean readyToShoot = shooter.bLEDsArmAtAngle && shooter.bLEDsFlywheelAtSpeed;\n\t\tif (readyToShoot && !prevReadyToShoot) {\n\t\t\ttimerRumble.reset();\n\t\t\toi.xboxController.setRumble(RumbleType.kRightRumble, 1);\n\t\t}\n\t\tprevReadyToShoot = readyToShoot;\n\n\t\tif (timerRumble.get() > 0.5) {\n\t \toi.xboxController.setRumble(RumbleType.kLeftRumble, 0);\n\t \toi.xboxController.setRumble(RumbleType.kRightRumble, 0);\n\t\t}\n*/\t\t\n\t\t// Show arm angle\n shooterArm.updateSmartDashboard();\n \n\t\t// Other printouts\n\t\tshooter.updateSmartDashboard();\n\t\tshooter.isBallLoaded();\n\t\tintake.updateSmartDashboard();\n\t\tintake.intakeIsUp();\n\t\tdriveTrain.getDegrees();\n\t\t\n\t\tvision.findGoal();\n\t\tvision.getGoalXAngleError();\n\t\tvision.getGoalArmAngle();\n\t\t\t\t\n\t\tif (smartDashboardDebug) {\n\t\t\t// Uncomment the following line to read coPanel knobs.\n//\t\t\toi.updateSmartDashboard();\n\n\t\t\t// Uncomment the following line for debugging shooter motors PIDs.\n//\t\t\tshooter.setPIDFromSmartDashboard();\n\t\t\t\n\t\t\t// Uncomment the following line for debugging the arm motor PID.\n//\t shooterArm.setPIDFromSmartDashboard();\n\t\t\t\n\t\t\t// Uncomment the following lines to see drive train data\n\t \tdriveTrain.getLeftEncoder();\n\t \tdriveTrain.getRightEncoder();\n\t\t\tdriveTrain.smartDashboardNavXAngles();\n\t\t\t\n\t\t\t//\t\tSmartDashboard.putNumber(\"Panel voltage\", panel.getVoltage());\n\t\t\t//\t\tSmartDashboard.putNumber(\"Panel arm current\", panel.getCurrent(0));\n\t\t}\n\n\t}",
"@Override\n public void onReceive(Context context, Intent intent) {\n String refresh = intent.getStringExtra(MyService.REFRESH_MONEY_PLAYER);\n Log.i(\"II/FullScreen_Juego>\", \" receiver2 > REFRESH : \"+refresh);\n\n try {\n\n //Si lo que recibimos es mayor que lo que habia entonces GANAMOS dinero\n if (Float.parseFloat(refresh) > Float.parseFloat(visorMoneyP1.getText().toString())\n ) {\n //Ejecutamos sonido\n soundGanamosDinero.start();\n //Ejecutar animacion\n visorMoneyP1.startAnimation(aumento);\n //Mostramos el Custom Toast Felicitaciones!\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setView(layout_ganamos);//setting the view of custom toast layout\n toast.show();\n\n\n //Monstramos imagview/gif confeti\n imageView_gif_confeti.setVisibility(View.VISIBLE);\n //Despues de 6 segundos ocultamos Confeti\n new CountDownTimer(6000, 1000) {\n public void onFinish() {\n // When timer is finished\n // Execute your code here\n\n imageView_gif_confeti.setVisibility(View.INVISIBLE);\n }\n\n public void onTick(long millisUntilFinished) {\n // millisUntilFinished The amount of time until finished.\n }\n }.start();\n\n\n //Si lo que recibimos es MENOR que lo que habia entonces PERDIMOS dinero\n } else if (Float.parseFloat(refresh) < Float.parseFloat(visorMoneyP1.getText().toString())\n ) {\n\n //Ejecutamos sonido\n soundPerdimosDinero.start();\n //Ejecutamos animacion\n visorMoneyP1.startAnimation(sacudir);\n\n //Mostramos el Custom Toast Perdimos :(\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setView(layout_pierde);//setting the view of custom toast layout\n toast.show();\n }\n\n\n visorMoneyP1.setText(refresh);\n\n\n }catch (Exception e){\n Log.d(\"II/\",\"Error: \"+e);\n }\n\n }",
"public Relogio()\n\t{\n \n\t\thora = 0;\n\t\tminuto = 0;\n\t\tsegundo = 0;\n //forma.format(hora);\n if((hora<0 || hora>23) || (minuto<0 || minuto>59) || (segundo<0 || segundo>59)){\n System.out.println(\"Valor de tempo invalido!\");\n }\n\t}",
"private void puntuacion(){\n timer++;\n if(timer == 10){\n contador++;\n timer = 0;\n }\n }",
"public void contartiempo() {\r\n\r\n\t\tif (activarContador) {\r\n\t\t//\tSystem.out.println(\"CONTADOR \" + activarContador);\r\n\t\t\tif (app.frameCount % 60 == 0) {\r\n\t\t\t\tcontador--;\r\n\t\t\t//\tSystem.out.println(\"EMPEZO CONTADOR\");\r\n\t\t\t//\tSystem.out.println(\"CONTADOR \" + contador);\r\n\t\t\t\tif (contador == 0) {\r\n\t\t\t\t\tcontador = 0;\r\n\t\t\t\t\tactivado = false;\r\n\t\t\t\t\tactivarContador = false;\r\n\t\t\t\t//\tSystem.out.println(\"CONTADOR \" + activarContador);\r\n\t\t\t\t//\tSystem.out.println(\"EFECTO \" + activado);\r\n\t\t\t\t\tplayer.setBoost(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"private void initSensor() {\n if ((status == PedoListener.RUNNING) || (status == PedoListener.STARTING)\n && status != PedoListener.PAUSED) {\n return;\n }\n\n Database db = Database.getInstance(getActivity());\n\n todayOffset = db.getSteps(Util.getToday());\n\n SharedPreferences prefs = getActivity().getSharedPreferences(\"pedometer\", Context.MODE_PRIVATE);\n\n goal = prefs.getInt(PedoListener.GOAL_PREF_INT, PedoListener.DEFAULT_GOAL);\n since_boot = db.getCurrentSteps();\n int pauseDifference = since_boot - prefs.getInt(\"pauseCount\", since_boot);\n\n Log.i(TAG, \"PedoListener initSensor todayOffset=\"+todayOffset+\" since_boot=\"+since_boot+\" pauseDifference=\"+pauseDifference);\n\n // register a sensor listener to live update the UI if a step is taken\n sensorManager = (SensorManager) getActivity().getSystemService(Context.SENSOR_SERVICE);\n sensor = sensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER);\n if (sensor == null) {\n new AlertDialog.Builder(getActivity()).setTitle(\"R.string.no_sensor\")\n .setMessage(\"R.string.no_sensor_explain\")\n .setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(final DialogInterface dialogInterface) {\n getActivity().finish();\n }\n }).setNeutralButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(final DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n }).create().show();\n } else {\n sensorManager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_UI, 0);\n }\n\n since_boot -= pauseDifference; \n\n total_start = db.getTotalWithoutToday();\n total_days = db.getDays();\n\n Log.i(TAG, \"PedoListener initSensor since_boot=\"+since_boot+ \" total_start=\"+total_start+\" total_days=\"+total_days);\n\t\n \tstatus = PedoListener.STARTING;\n\t\n\t db.setConfig(\"status_service\", \"start\");\n \n db.close();\n\n updateUI();\n }",
"static void Jogo (String nome, String Classe)\n {\n Scanner scan = new Scanner (System.in);\n \n int pontos = 0;\n int pontuador = 0;\n int erro = 0;\n\n int [] aleatorio; // cria um vetor para pegar a resposta da função de Gerar Perguntas Aleatórias \n aleatorio = GerarAleatorio(); // Pega a Reposta da função\n \n \n long start = System.currentTimeMillis(); // inicia o Cronometro do Jogo\n \n for (int i = 0; i < aleatorio.length; i++) // Para cada cada pergunta Aleatoria do tamanho total de perguntas(7) ele chama a pergunta montada e compara as respostas do usario \n { // com a função que tem todas as perguntas certas\n \n System.out.println((i + 1) + \") \" + MostrarPergunta (aleatorio[i])); //chama a função que monta a pergunta, passando o numero da pergunta (gerado aleatoriamente) \n \n String Certa = Correta(aleatorio[i]); // pega a resposta correta de acordo com o numero com o numero da pergunta\n \n System.out.println(\"Informe sua resposta: \\n\");\n String opcao = scan.next();\n \n if (opcao.equals(Certa)) // compara a resposta do usuario com a Resposta correta guardada na função \"Correta\"\n { // marca os pontos de acordo com a Classe escolhida pelo jogador \n pontuador++;\n if (Classe.equals(\"Pontuador\")) \n {\n pontos = pontos + 100;\n \n System.out.println(\"Parabens você acertou!: \" + pontos + \"\\n\");\n\n if(pontuador == 3)\n {\n pontos = pontos + 300;\n \n System.out.println(\"Parabens você acertou, e ganhou um Bonus de 300 pontos. Seus Pontos: \" + pontos + \"\\n\");\n \n pontuador = 0;\n }\n }\n else\n {\n pontos = pontos + 100;\n System.out.println(\"Parabens você acertou. Seus pontos: \" + pontos + \"\\n\");\n } \n }\n \n else if (opcao.equals(Certa) == false) \n {\n erro++;\n \n if (Classe.equals(\"Errar\")) \n {\n if(erro == 3)\n {\n pontos = pontos + 50;\n \n System.out.println(\"Infelizmente Você errou. Mas acomulou 3 erros e recebeu um bonus de 50 pontos: \" + pontos + \"\\n\");\n \n erro = 0;\n }\n }\n else\n {\n pontuador = 0;\n \n pontos = pontos - 100; \n System.out.println(\"Que pena vc errou, Seus pontos atuais: \" + pontos + \"\\n\");\n }\n }\n }\n \n long end = System.currentTimeMillis(); //Encerra o Cronometro do jogador\n \n tempo(start, end, nome, pontos, Classe); //manda para a função Tempo, para calcular os minutos e segundos do usuario \n \n }",
"@Override\n public void teleopPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }",
"public void autonomousPeriodic() {\n\n }",
"public void autonomousPeriodic() {\n\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n //validar hora\n plantaOut.setText(time);\n globals.getAntecedentesHormigonMuestreo().setPlantaOut(time);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"public void actionPerformed(ActionEvent evento){//este es el unico metodo que hay que implementer de la interfaz actionlistener\n\t\t\t//lo siguiente es el evento que se desencadena cada ves que se cumpla e tiempo del temporizador\n\t\t\tDate hora=new Date();//se crea un objeto de tipo date\n\t\t\t\n\t\t\tSystem.out.println(\"la hora del sistema es: \" + hora);\n\t\t\t\n\t\t\tif(sonido){//se evalua el valor de la variable booleana, no es necesario realizar comparacion en las variables booleanas\n\t\t\t\t\n\t\t\t\tToolkit.getDefaultToolkit().beep(); //esta metodo ejecuta un bip\n\t\t\t}\n\t\t}",
"@Override\n public void autonomousPeriodic() {\n \n }",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tSmartDashboard.putBoolean(\"Max Intake Extension: \", RobotMap.intakeLifted.get());\n\t\tSmartDashboard.putBoolean(\"Max Lift Extension:\", RobotMap.isAtTop.get());\n\t\tSmartDashboard.putBoolean(\"Min Lift Extension:\", RobotMap.isAtBottom.get());\n\t\tDriveTrain.driveWithJoystick(RobotMap.stick, RobotMap.rd); // Drive\n\t\tTeleOp.RaiseLift(RobotMap.liftTalon, RobotMap.controller); // Raise lift\n\t\tif(RobotMap.controller.getRawAxis(RobotMap.lowerLiftAxis) >= 0.2) {\n\t\tTeleOp.LowerLift(RobotMap.liftTalon, RobotMap.controller);\n\t\t}\n\t\tTeleOp.DropIntake(RobotMap.controller, RobotMap.intakeLifter);\n\t\tTeleOp.spinOut(RobotMap.intakeVictorLeft, RobotMap.controller);\n\t\t//TeleOp.spinnySpinny(RobotMap.intakeVictorLeft, RobotMap.stick);\n\t}",
"public static void ComienzaTimer(){\n timer = System.nanoTime();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n drive.updateTeleop();\n sensor.updateTeleop();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\r\n }",
"public void autonomousPeriodic() {\r\n }",
"@Override\n public void autonomousPeriodic() {\n\n }",
"@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}",
"public void autonomousPeriodic() {\n }",
"public void autonomousPeriodic() {\n }",
"public void sogutucuyuAc(){\n\t\tif(!(durum==true)){\n\t\t\tdurum = true;\n\t\t\tnotifyObservers();\n\t\t}\n\t\telse {\n\t\t\tnotifyObservers();\n\t\t}\n\t}",
"public void autonomousPeriodic() {\r\n \r\n }",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t\tupdateLedState();\n\t\t//SmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\t\tSmartDashboard.putNumber(\"Climber Current Motor 1\", Robot.climber.climberTalon.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Climber Current motor 2\", Robot.climber.climberTalon2.getOutputCurrent());\n\t\t//visionNetworkTable.getGearData();\n\t//\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\n\t\tif(Robot.debugging){\t\t\t\n\t\t\tSmartDashboard.putNumber(\"Shooter1RPM Setpoint\", shooter.shooter1.getSetpoint());\n\t \tSmartDashboard.putNumber(\"Intake Pivot Encoder Position\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\n\t\t\tSmartDashboard.putNumber(\"Gear Manipulator Setpoint\", gearManipulator.gearManipulatorPivot.getSetpoint());\n\t\t}\n\t\t//\tvisionNetworkTable.getGearData();\n\t\t//visionNetworkTable.getHighData();\n\t}",
"public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void startCount() {\n //meetodi k�ivitamisel nullime tunnid, minutid, sekundid:\n secondsPassed = 0;\n minutePassed = 0;\n hoursPassed = 0;\n if (task != null)\n return;\n task = new TimerTask() {\n @Override\n public void run() {//aeg l�ks!\n secondsPassed++; //loeme sekundid\n if (secondsPassed == 60) {//kui on l�binud 60 sek, nullime muutujat\n secondsPassed = 0;\n minutePassed++;//kui on l�binud 60 sek, suurendame minutid 1 v�rra\n }\n if (minutePassed == 60) {//kui on l�binud 60 min, nullime muutujat\n minutePassed = 0;\n hoursPassed++;//kui on l�binud 60 min, suurendame tunnid 1 v�rra\n }\n //kirjutame aeg �les\n String seconds = Integer.toString(secondsPassed);\n String minutes = Integer.toString(minutePassed);\n String hours = Integer.toString(hoursPassed);\n\n if (secondsPassed <= 9) {\n //kuni 10 kirjutame 0 ette\n seconds = \"0\" + Integer.toString(secondsPassed);\n }\n if (minutePassed <= 9) {\n //kuni 10 kirjutame 0 ette\n minutes = \"0\" + Integer.toString(minutePassed);\n }\n if (hoursPassed <= 9) {\n //kuni 10 kirjutame null ettte\n hours = \"0\" + Integer.toString(hoursPassed);\n }\n\n\n time = (hours + \":\" + minutes + \":\" + seconds);//aeg formaadis 00:00:00\n getTime();//edastame aeg meetodile getTime\n\n }\n\n };\n myTimer.scheduleAtFixedRate(task, 0, 1000);//timer k�ivitub kohe ja t��tab sekundite t�psusega\n\n }",
"private void getOneToteTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"public finestrabenvinguda() {\n //inciem componets misatge ,la seva localitzacio, i diem que sigui un misatge que ens apareixi de manera temporal\n initComponents();\n this.setLocationRelativeTo(null);\n ac = new ActionListener() {\n\n @Override\n /**\n * Controlem la barra de carregue la cual li diem el que socceix una vegada\n * tenim el temps establert en el qual volem carreguar el nostre projecte,es a di,\n * que fara una vegada tenim carreguada completament la carregua de la taula\n */\n public void actionPerformed(ActionEvent e) {\n x = x + 1;\n jProgressBar1.setValue(x);\n if (jProgressBar1.getValue() == 100) {\n dispose();\n t.stop();\n }\n }\n };\n // seleccionem el temps que tardara aquesta barra en carregar completament\n t = new Timer(50, ac);\n t.start();\n }",
"public void ActualizadorOro(){\n\njavax.swing.Timer ao = new javax.swing.Timer(1000*60, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n Connection conn = Conectar.conectar();\n Statement st = conn.createStatement();\n\n usuarios = new ArrayList<Usuario>();\n ResultSet rs = st.executeQuery(\"select * from usuarios\");\n while(rs.next()){\n usuarios.add(new Usuario(rs.getString(1), rs.getString(2), rs.getString(3), Integer.parseInt(rs.getString(4)), Integer.parseInt(rs.getString(5)), Integer.parseInt(rs.getString(6)), Integer.parseInt(rs.getString(7))));\n }\n\n //preparamos una consulta que nos lanzara el numero de minas por categoria que tiene cada usuario\n String consulta1 = \"select idEdificio, count(*) from regiones, edificiosregion\"+\n \" where regiones.idRegion=edificiosregion.idRegion\"+\n \" and propietario='\";\n\n String consulta2 = \"' and idEdificio in (1101,1102,1103,1104,1105)\"+\n \" group by idEdificio\";\n\n //recorremos toda la lista sumando el oro, dependiendo del numero de minas que posea\n ResultSet rs2 = null;\n for(Usuario usuario : usuarios){\n rs2 = st.executeQuery(consulta1 + usuario.getNick() + consulta2);\n int oro = 0;\n while(rs2.next()){\n System.out.println(Integer.parseInt(rs2.getString(1)));\n if(Integer.parseInt(rs2.getString(1)) == 1101){\n oro = oro + (rs2.getInt(2) * 100);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1102){\n oro = oro + (rs2.getInt(2) * 150);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1103){\n oro = oro + (rs2.getInt(2) * 300);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1104){\n oro = oro + (rs2.getInt(2) * 800);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1105){\n oro = oro + (rs2.getInt(2) * 2000);\n }\n }\n st.executeQuery(\"UPDATE usuarios SET oro = (SELECT oro+\" + oro + \" FROM usuarios WHERE nick ='\" + usuario.getNick() + \"'\"+\n \") WHERE nick = '\" + usuario.getNick() + \"'\");\n\n }\n st.close();\n rs.close();\n rs2.close();\n conn.close();\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage() + \" Fallo actualizar oro.\");\n }\n\n }\n });\n\n ao.start();\n}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if( event.values[0] < sensor.getMaximumRange() )\n {\n //// SI LA PANTALLA NO FUE TAPADA ANTERIORMENTE -> GUARDO EL MOMENTO DE INICIO DEL JUEGO\n if( !pantallaEstabaTapada )\n {\n tiempoDeInicio= SystemClock.uptimeMillis();\n pantallaEstabaTapada=true;\n getWindow().getDecorView().setBackgroundColor(Color.RED);\n }\n }\n else\n {\n //// SI LA PANTALLA ESTABA TAPADA Y AHORA NO LO ESTA --> CALCULO LOS SEGUNDOS TRANSCURRIDOS Y DESTRUYO EL LISTENER DEL SENSOR\n if( pantallaEstabaTapada )\n {\n segundosTranscurridos= pasarMilisegundoASegundo(SystemClock.uptimeMillis() - tiempoDeInicio);\n pantallaEstabaTapada=false;\n getWindow().getDecorView().setBackgroundColor(Color.WHITE);\n\n ServicePOST comunicacionApiRest = new ServicePOST(getApplicationContext());\n comunicacionApiRest.registrarEvento(String.valueOf(event.values[0]), \"SENSOR DE PROXIMIDAD\");\n\n sensorManag.unregisterListener(sensorListener);\n\n }\n }\n guardarInfoEnSharedPreference(event.values[0]);\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaPlantaTime;\n Date horaMuestroTime;\n Date horaCamionTime;\n\n try {\n if (globals.getAntecedentesHormigonMuestreo().getPlantaOut() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaPlantaTime = parser.parse(globals.getAntecedentesHormigonMuestreo().getPlantaOut());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.after(horaPlantaTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser inferior a la hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaMuestroTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.before(horaMuestroTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser mayor a la hora de toma muestra\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"public void iniciarJuego ( View view )\n {\n if( gameOn)\n {\n sensorManag.unregisterListener(sensorListener);\n Toast.makeText(this, \"Ok reiniciemos el juego.\", Toast.LENGTH_SHORT).show();\n }\n //// SE BUSCA EL SENSOR DE PROXIMIDAD\n\n sensorManag=(SensorManager)getSystemService(SENSOR_SERVICE);\n sensor= sensorManag.getDefaultSensor(Sensor.TYPE_PROXIMITY);\n /// SIN NO HAY SENSOR DE PROXIMIDAD SE LO INFORMA CON UN MENSAJE Y SE SALE\n if(sensor == null)\n {\n Toast.makeText(this, \"No se pudo encontrar un sensor de proximidad, el cual es necesario para jugar.\", Toast.LENGTH_SHORT);\n return;\n }\n //// SE INFORMA QUE ES LO QUE SE DEBE HACER CUANDO HAY CAMBIOS EN EL SENSOR DE PROXIMIDAD\n sensorListener= new SensorEventListener() {\n @Override\n public void onSensorChanged(SensorEvent event) {\n //// SI EL SENSOR PUDO DETECTAR UN OBJETO APROXIMANDOSE\n if( event.values[0] < sensor.getMaximumRange() )\n {\n //// SI LA PANTALLA NO FUE TAPADA ANTERIORMENTE -> GUARDO EL MOMENTO DE INICIO DEL JUEGO\n if( !pantallaEstabaTapada )\n {\n tiempoDeInicio= SystemClock.uptimeMillis();\n pantallaEstabaTapada=true;\n getWindow().getDecorView().setBackgroundColor(Color.RED);\n }\n }\n else\n {\n //// SI LA PANTALLA ESTABA TAPADA Y AHORA NO LO ESTA --> CALCULO LOS SEGUNDOS TRANSCURRIDOS Y DESTRUYO EL LISTENER DEL SENSOR\n if( pantallaEstabaTapada )\n {\n segundosTranscurridos= pasarMilisegundoASegundo(SystemClock.uptimeMillis() - tiempoDeInicio);\n pantallaEstabaTapada=false;\n getWindow().getDecorView().setBackgroundColor(Color.WHITE);\n\n ServicePOST comunicacionApiRest = new ServicePOST(getApplicationContext());\n comunicacionApiRest.registrarEvento(String.valueOf(event.values[0]), \"SENSOR DE PROXIMIDAD\");\n\n sensorManag.unregisterListener(sensorListener);\n\n }\n }\n guardarInfoEnSharedPreference(event.values[0]);\n }\n /// NO ES NECESARIO TOCARLO PERO LA IMPLEMENTACION ME PIDE QUE POR LO MENOS LO DECLARE\n @Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }\n };\n /// REGISTRO EL LISTENER PARA QUE EMPIESE A ESCUCHAR\n sensorManag.registerListener(sensorListener, sensor, MILISEGUNDOS_EN_SEGUNDO/6);\n //// FLAG PARA SABER QUE SE ESTA PREPARADO PARA JUGAR ///////\n gameOn=true;\n }",
"private void crearTurnos(){\n Date a = new Date();\n if((dateSeleccion.getDatoFecha()).getDay()>= a.getDay()){\n Calendar dia = Calendar.getInstance();//crear una instancia de calendario se usa para hora empieza\n Calendar aux = Calendar.getInstance();//instancia para horatermina \n dia.setTime(dateSeleccion.getDatoFecha()); //dia que seleccione en el combo\n\n dia.set(Calendar.HOUR_OF_DAY,this.cita.getMedico().getHorarioInicio().getHours());\n dia.set(Calendar.MINUTE,this.cita.getMedico().getHorarioInicio().getMinutes());\n aux.setTime(dateSeleccion.getDatoFecha()); //dia que seleccione en el combo\n aux.set(Calendar.HOUR_OF_DAY,this.cita.getMedico().getHorarioInicio().getHours());\n aux.set(Calendar.MINUTE,this.cita.getMedico().getHorarioInicio().getMinutes()+this.cita.getMedico().getTiempoTurno());\n int rango = (this.cita.getMedico().getHorarioFinal().getHours()\n -this.cita.getMedico().getHorarioInicio().getHours())*60;\n int cantTurnosDia = rango/this.cita.getMedico().getTiempoTurno();\n for (int i=1;i<=cantTurnosDia;i++){\n this.controlador.agregarTurno(this.cita.getMedico(), dia.getTime(), aux.getTime());\n aux.add(Calendar.MINUTE, this.cita.getMedico().getTiempoTurno());\n dia.add(Calendar.MINUTE, this.cita.getMedico().getTiempoTurno());\n }\n //se pueden crear duplicados\n }\n }",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}",
"@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if(key.equals(context.getResources().getString(R.string.preferences_key_actualizacion))){\n\n String actualizacion = sharedPreferences.getString(\n context.getResources().getString(R.string.preferences_key_actualizacion),\n context.getResources().getString(R.string.preferences_key_actualizacion_default));\n\n Long actualizacionLong = Long.parseLong(actualizacion);\n\n //Se cancela la anterior tarea programada\n alarmManager.cancel(pendingIntent);\n\n //Si es distinto de 0 e, periodo de actualización, se pone en marcha de nuevo la\n //tarea programada con el nuevo valor\n if (actualizacionLong != 0) {\n alarmManager.setInexactRepeating(\n AlarmManager.RTC_WAKEUP,\n 0,\n actualizacionLong * 1000,\n pendingIntent);\n }\n }\n }",
"@Override\n public void teleopPeriodic()\n {\n commonPeriodic();\n }",
"public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }",
"public static void start() { \r\n\t\ttempo_inicial = System.nanoTime(); \r\n\t\ttempo_final = 0; \r\n\t\tdiftempo = 0; \r\n\t}",
"public void setTesto(){\n \n if(sec < 10){\n this.testo = min + \":0\" + sec + \":\" + deci;\n }\n else{\n this.testo = min + \":\" + sec + \":\" + deci;\n }\n \n }",
"public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}"
] | [
"0.70545876",
"0.61619425",
"0.5987144",
"0.5879597",
"0.5868141",
"0.5844397",
"0.5837694",
"0.5826192",
"0.5815885",
"0.5771339",
"0.57557917",
"0.57557917",
"0.5746158",
"0.57410204",
"0.5725099",
"0.5715944",
"0.56864554",
"0.56791776",
"0.567853",
"0.56641674",
"0.5641293",
"0.56244266",
"0.56200683",
"0.5597098",
"0.558875",
"0.55839324",
"0.55811197",
"0.5571201",
"0.55702853",
"0.5563901",
"0.55599844",
"0.55574",
"0.5551941",
"0.5543715",
"0.55308735",
"0.55194324",
"0.5510889",
"0.5500221",
"0.54988796",
"0.5497136",
"0.5486241",
"0.5485549",
"0.54826176",
"0.5470102",
"0.54685986",
"0.54635984",
"0.5462815",
"0.5458018",
"0.5457874",
"0.54571193",
"0.54550993",
"0.5451563",
"0.5448399",
"0.54465514",
"0.54404384",
"0.5435746",
"0.5435126",
"0.5434833",
"0.54327434",
"0.54326296",
"0.5430862",
"0.5430862",
"0.542786",
"0.5421024",
"0.54202145",
"0.5419773",
"0.5416052",
"0.54154795",
"0.5414434",
"0.5414434",
"0.5414434",
"0.5414434",
"0.54140466",
"0.54140466",
"0.5409276",
"0.5404831",
"0.53995997",
"0.53995997",
"0.53960824",
"0.53957546",
"0.5394263",
"0.5390081",
"0.537766",
"0.5377651",
"0.53712255",
"0.5365172",
"0.53648406",
"0.5358212",
"0.5358212",
"0.5358212",
"0.53518176",
"0.53501266",
"0.5349535",
"0.53465194",
"0.53422123",
"0.5331864",
"0.53292984",
"0.53229153",
"0.53199226",
"0.5318038"
] | 0.63605577 | 1 |
if equals also trying to read | @Override
public boolean next(LongWritable key, BowtieAlignmentWritable value) throws IOException {
if (position > end) {
return false;
}
try {
key.set(position);
int read = lr.readLine(line);
if (read == 0) {
return false;
}
position += read;
value.parseFromLine(line, qf);
} catch (EOFException e) {
log.warn("EOFException caught instead of returning zero read bytes");
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected boolean read();",
"boolean shouldReadValue();",
"public abstract boolean read(String line);",
"boolean getRead();",
"boolean hasRead();",
"boolean getForRead();",
"private boolean setNext() throws IOException {\n final String line = mIn.readLine();\n if (line == null) {\n mCurrent = null;\n return false;\n }\n try {\n mCurrent = mParser.parseLine(line);\n if (mCurrent.getNumberOfSamples() != mNumSamples) {\n throw new VcfFormatException(\"Expected \" + mNumSamples + \" samples, but there were \" + mCurrent.getNumberOfSamples());\n }\n } catch (final VcfFormatException e) {\n throw new VcfFormatException(\"Invalid VCF record. \" + e.getMessage() + \" on line:\" + line); // Add context information\n }\n return true;\n }",
"@Test\n\tpublic void test7() throws IOException {\n\t\tboolean switch1 = false;\n\t\tHistoryStorage store = HistoryStorage.getInstance();\n\t\tstore.writeToHistory(HISTORY_TXT, LINE_1);\n\t\tstore.writeToHistory(HISTORY_TXT, LINE_2);\n\n\t\tString result = store.readFromHistory(HISTORY_TXT);\n\t\tif (result.split(\"\\n\")[1].equals(LINE_1)\n\t\t\t\t&& result.split(\"\\n\")[0].equals(LINE_2)) {\n\t\t\tswitch1 = true;\n\t\t}\n\t\tassertTrue(switch1);\n\t}",
"boolean hasForRead();",
"@Override\n public boolean isRead(int index)\n {\n if (index == 3)\n {\n return m_Unit != 0;\n }\n return super.isRead(index);\n }",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"private boolean matchInputs(InputStream stream1, InputStream stream2) throws Exception {\n try (\n BufferedReader reader1 = new BufferedReader(new InputStreamReader(stream1));\n BufferedReader reader2 = new BufferedReader(new InputStreamReader(stream2))\n ) {\n\n String line;\n while ((line = reader1.readLine()) != null) {\n String otherLine = reader2.readLine();\n if (!(line.equals(otherLine))) {\n return false;\n }\n }\n\n //Check if other reader is empty aswell\n return reader2.readLine() == null;\n }\n }",
"private Token scanAmbiguousWithEquals() {\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n buffer.add(c);\n int nextChar = in.read();\n TokenType type;\n\n // operators '>=', '<=' and ':='\n if (nextChar == '=') {\n buffer.add(nextChar);\n switch (c) {\n case '>' -> type = TokenType.GEQUALS;\n case '<' -> type = TokenType.LEQUALS;\n case ':' -> type = TokenType.ASSIGN;\n default -> type = null;\n }\n c = in.read();\n }\n // operators '>', '<', ':'\n else {\n switch (c) {\n case '>' -> type = TokenType.GREATER;\n case '<' -> type = TokenType.LESS;\n case ':' -> type = TokenType.COLON;\n default -> type = null;\n }\n c = nextChar;\n }\n Token tok = new Token(buffer.toString(), type, pos);\n buffer.flush();\n return tok;\n }",
"boolean isUsedForReading();",
"public boolean wasRead(){\n return isRead==null || isRead;\n }",
"protected boolean contentEquals( InputStream s1, InputStream s2 )\n throws IOException\n {\n try\n {\n return IOUtil.contentEquals( s1, s2 );\n }\n finally\n {\n IOUtil.close( s1 );\n IOUtil.close( s2 );\n }\n }",
"public boolean read() {\n return so;\n }",
"@Test\n\tpublic void test6() {\n\t\tboolean switch1 = false;\n\t\tHistoryStorage store = HistoryStorage.getInstance();\n\t\tstore.writeToHistory(HISTORY_TXT, EMPTY_STRING);\n\t\tstore.writeToHistory(HISTORY_TXT, LINE_2);\n\t\tString result = store.readFromHistory(HISTORY_TXT);\n\t\tif (result.split(\"\\n\")[0].equals(LINE_2)) {\n\t\t\tswitch1 = true;\n\t\t}\n\t\tassertTrue(switch1);\n\t}",
"private <X> X read(String toCompare, Function<String, X> mapper) {\n skipWhitespace(input);\n\n for (int i = 0; i < toCompare.length(); i++) {\n char read = input.read();\n if (read != toCompare.charAt(i)) {\n throw new JsonException(\n String.format(\n \"Unable to read %s. Saw %s at position %d. %s\", toCompare, read, i, input));\n }\n }\n\n return mapper.apply(toCompare);\n }",
"@Test\n\tpublic void secindForInputChecker() {\n\t\tchar charTest = 'c';\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tresult = object1.inputChecker(charTest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean ExpectedResult = true;\n\t\tassertEquals(ExpectedResult, result);\n\n\t}",
"boolean next() throws IOException;",
"@Test\n\tpublic void forInputChecker() {\n\t\tchar charTest = 'c';\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tresult = object1.inputChecker(charTest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean ExpectedResult = true;\n\t\tassertEquals(ExpectedResult, result);\n\n\t}",
"private boolean OK() {\r\n return in == saves[save-1];\r\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof ReadGrammar)) return false;\n ReadGrammar that = (ReadGrammar) o;\n return Objects.equals(filePath, that.filePath);\n }",
"public void read() {\n\t\tthis.isRead = true;\n\t}",
"private boolean readCompareResult()\t{\n\t\tFile resultFile = new File(this.dbDirectory + \"\\\\\"+ this.fileName.split(\".txt\")[0] + \"resultFile.txt\");\n\t\t\tif (resultFile.exists())\t{\n\t\t\t\tFileReader resultReader;\n\t\t\t\ttry {\n\t\t\t\t\tresultReader = new FileReader(this.dbDirectory + \"\\\\\"+ this.fileName.split(\".txt\")[0] + \"resultFile.txt\");\n\t\t\t\t\t// Save it to compareResult.\n\t\t\t\t\tthis.compareResult = resultReader.read();\n\t\t\t\t\tresultReader.close();\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t// Do nothing but get error code.\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t// Do nothing but get error code.\n\t\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"abstract void read();",
"String getEqual();",
"private static boolean nonExistReading(String surfaceReading) {\n return false;\n }",
"private static void readIsPracticeBot() {\n isPracticeBot = !practiceInput.get();\n }",
"private boolean parse(String name) {\r\n BufferedReader in;\r\n\r\n try {\r\n in = new BufferedReader(new InputStreamReader(new FileInputStream(name)));\r\n\r\n }\r\n catch (IOException e) {\r\n return false;\r\n }\r\n\r\n try {\r\n while (true) {\r\n String line = in.readLine();\r\n if (line != null) {\r\n\r\n // skip the commented lines\r\n if (!line.startsWith(\"//\") && !line.startsWith(\";\") &&\r\n !line.startsWith(\"#\")) {\r\n int i = line.indexOf('=');\r\n\r\n // we also skip lines without an equal sign\r\n if (i != -1)\r\n keyvaluepairs.put(line.substring(0, i).trim().toLowerCase(),\r\n line.substring(i + 1).trim());\r\n }\r\n\r\n }\r\n else\r\n break;\r\n }\r\n }\r\n catch (IOException e) {\r\n }\r\n\r\n return true;\r\n }",
"@Override\n public boolean read(final int position) throws IOException\n {\n /*\n A chamada para a versao desse metodo na superclasse verifica se a \n leitura em \"position\" eh valida e, nesse caso, ajusta ponteiro\n de leitura para a posicao \"position\". Entao o metodo copia os dados no\n registro do arquivo para o campos desse objeto.\n \n Se \"position\" nao for uma posicao valida o metodo retorna false.\n */\n if (super.read(position))\n {\n id = readString(TOPIC_ID_STRLENGTH);\n title = readString(TITLE_STRLENGTH);\n rank = readShort();\n return true;\n }\n return false;\n }",
"private void readObject() {\n\t\t/* default - does nothing empty block */}",
"@SmallTest\n public void testRead() {\n Settings result = null;\n if (this.entity != null) {\n result = this.adapter.getByID(this.entity.getId());\n\n SettingsUtils.equals(this.entity, result);\n }\n }",
"String read();",
"String read();",
"@Override\n\tpublic void read() {\n\n\t}",
"String byteOrBooleanRead();",
"@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private boolean getNoFallback()\n/* */ {\n/* 1091 */ return this.reader.getNoFallback();\n/* */ }",
"private void readObject() {\n /*default - does nothing empty block */\n }",
"private static boolean readLine(BufferedInputStream is, MutableString read)\n throws IOException {\n read.length(0);\n int c = is.read();\n while((c!=-1)&&c!='\\n'&&c!='\\r') {\n read.append((char)c);\n c = is.read();\n }\n if(c==-1 && read.length()==0) {\n // EOF and none read; return false\n return false;\n }\n if(c=='\\n') {\n // consume LF following CR, if present\n is.mark(1);\n if(is.read()!='\\r') {\n is.reset();\n }\n }\n // a line (possibly blank) was read\n return true;\n }",
"public boolean pop() {\r\n\t\ttry {\r\n\t\t\tcurrentString = br.readLine();\r\n\t\t\tif(currentString != null) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\t\t\r\n\t}",
"public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n String a = f.readLine();\n String b = f.readLine();\n out.println(equal(a, b) ? \"YES\" : \"NO\");\n f.close();\n out.close();\n }",
"public abstract boolean load() throws InvalidElementException;",
"private void readObject() {}",
"private void readObject() {}",
"private void readObject() {}",
"private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}",
"private boolean advanceObjects(final String name) {\r\n\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\t\t\tif (type == Type.BEGIN) {\r\n\t\t\t\tfinal String elementName = this.in.getTag().getAttributeValue(\r\n\t\t\t\t\t\t\"name\");\r\n\r\n\t\t\t\tif ((elementName != null) && elementName.equals(name)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tskipObject();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"protected abstract Object read ();",
"public String read();",
"@Override\r\n\tpublic void read() {\n\r\n\t}",
"@Test\n public void testRead() {\n // Choose a random key to read, among the available ones.\n int readKeyNumber = new Random().nextInt(RiakKVClientTest.recordsToInsert);\n // Prepare two fields to read.\n Set<String> fields = new HashSet<>();\n fields.add(RiakKVClientTest.firstField);\n fields.add(RiakKVClientTest.thirdField);\n // Prepare an expected result.\n HashMap<String, String> expectedValue = new HashMap<>();\n expectedValue.put(RiakKVClientTest.firstField, Integer.toString(readKeyNumber));\n expectedValue.put(RiakKVClientTest.thirdField, Integer.toString((readKeyNumber * readKeyNumber)));\n // Define a HashMap to store the actual result.\n HashMap<String, ByteIterator> readValue = new HashMap<>();\n // If a read transaction has been properly done, then one has to receive a Status.OK return from the read()\n // function. Moreover, the actual returned result MUST match the expected one.\n Assert.assertEquals(\"Read transaction FAILED.\", OK, RiakKVClientTest.riakClient.read(RiakKVClientTest.bucket, ((RiakKVClientTest.keyPrefix) + (Integer.toString(readKeyNumber))), fields, readValue));\n Assert.assertEquals(\"Read test FAILED. Actual read transaction value is NOT MATCHING the expected one.\", expectedValue.toString(), readValue.toString());\n }",
"public boolean readOne() throws DomainLayerException {\n try {\n int isOne = (input[actualByte] >> (7-readedBit))&0x01;\n ++readedBit;\n ++actualBit;\n if(readedBit == 8) {\n ++actualByte;\n readedBit = 0;\n }\n return isOne == 1;\n }\n catch (IndexOutOfBoundsException e) {\n throw new DomainLayerException(\"An error has occurred while decompress the image content, operation aborted.\\n\\n\" +\n \"The compressed content seems to be corrupted.\");\n }\n }",
"public boolean read(String datasetName, Object specialO) throws NoSuchVariableException, IOException, EOFException {\n if (specialO == null)\n throw new IOException(\"Null test engine\");\n testEngine te = (testEngine) specialO;\n\n setValue(te.nextURL());\n setRead(true);\n return (false);\n }",
"@Test\n\tpublic void testReadDataFromFiles2(){\n\t\tassertEquals((Integer)1 , DataLoader.data.get(\"http\"));\n\t\tassertEquals((Integer)1, DataLoader.data.get(\"search\"));\n\t}",
"private boolean fill() throws IOException {\n if (in == null)\n return false;\n if (bufEnd == buf.length) {\n Tokenizer.movePosition(buf, posOff, bufStart, pos);\n /* The last read was complete. */\n int keep = bufEnd - bufStart;\n if (keep == 0)\n\tbufEnd = 0;\n else if (keep + READSIZE <= buf.length) {\n\t/*\n\t * There is space in the buffer for at least READSIZE bytes.\n\t * Choose bufEnd so that it is the least non-negative integer\n\t * greater than or equal to <code>keep</code>, such\n\t * <code>bufLength - keep</code> is a multiple of READSIZE.\n\t */\n\tbufEnd = buf.length - (((buf.length - keep)/READSIZE) * READSIZE);\n\tfor (int i = 0; i < keep; i++)\n\t buf[bufEnd - keep + i] = buf[bufStart + i];\n }\n else {\n\tchar newBuf[] = new char[buf.length << 1];\n\tbufEnd = buf.length;\n\tSystem.arraycopy(buf, bufStart, newBuf, bufEnd - keep, keep);\n\tbuf = newBuf;\n }\n bufStart = bufEnd - keep;\n posOff = bufStart;\n }\n int nChars = in.read(buf, bufEnd, buf.length - bufEnd);\n if (nChars < 0) {\n in.close();\n in = null;\n return false;\n }\n bufEnd += nChars;\n bufEndStreamOffset += nChars;\n return true;\n }",
"@Override\n\tpublic boolean readBoolean() throws IOException {\n\t\treturn ( (_buff.get() & 0xFF) != 0 );\n\t}",
"public boolean read() {\n return this.read;\n }",
"public static boolean readFromFile()\n\t{\n\t\ttry (BufferedReader bufferedReader = new BufferedReader(new FileReader(SAVE_LOCATION)))\n\t\t{\n\t\t\t// Stores the value of the current line in the file\n\t\t\tString currentLine = null;\n\t\t\t\n\t\t\t// Stores the alias and value separated by the \":\"\n\t\t\tString[] lineSplit;\n\t\t\t\n\t\t\t// Stores the alias and value from the line into their own variable\n\t\t\tString alias, value;\n\t\t\t\n\t\t\twhile ((currentLine = bufferedReader.readLine()) != null)\n\t\t\t{\n\t\t\t\t// Ignore the line if it starts with a comment\n\t\t\t\tif (currentLine.startsWith(COMMENT)) continue;\n\t\t\t\t\n\t\t\t\t// Gets the alias and value from either side of the \":\"\n\t\t\t\tlineSplit = currentLine.split(\":\");\n\t\t\t\t\n\t\t\t\t// Ignore if line is incorrectly formatted\n\t\t\t\tif (lineSplit.length == 0) continue;\n\t\t\t\t\n\t\t\t\t// Gets the alias and value of the line to store in the property\n\t\t\t\t// Removes any unnecessary trailing spaces and converts to lower case\n\t\t\t\talias = lineSplit[0].trim().toLowerCase();\n\t\t\t\tvalue = lineSplit[1].trim().toLowerCase();\n\t\t\t\t\n\t\t\t\t// Gets the current property object\n\t\t\t\t// Associated from the alias found on the current line\n\t\t\t\tProperty property = CustomCrosshairMod.INSTANCE.getCrosshair().properties.get(alias);\n\t\t\t\t\n\t\t\t\t// Checks whether there is a property with the current alias\n\t\t\t\tif (property != null)\n\t\t\t\t{\n\t\t\t\t\t// Updates the property value with the new value from the config file\n\t\t\t\t\tCustomCrosshairMod.INSTANCE.getCrosshair().properties.set(alias, property.setValue(value));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public void ownRead();",
"public boolean esCasting() throws IOException {\n\t\t\n\t\t// Procesamos los 3 tokens\n\t\tToken token1 = this.nextToken();\n\t\ttoken1.setCatLexica(reconoceCategoria(token1.get_lexema()));\n\t\tToken token2 = this.nextToken();\n\t\ttoken2.setCatLexica(reconoceCategoria(token2.get_lexema()));\n\t\tToken token3 = this.nextToken();\n\t\ttoken3.setCatLexica(reconoceCategoria(token3.get_lexema()));\n\t\tboolean casting = false;\n\t\t// Comprobamos que se cumpla que los 3 siguientes tokens corresponden a un operador\n\t\tif (token1.getCatLexica().equals(CategoriaLexica.AbreParentesis) \n\t\t\t\t&& (token2.get_lexema().equals(\"natural\") || token2.get_lexema().equals(\"character\") \n\t\t\t\t\t|| token2.get_lexema().equals(\"integer\") || token2.get_lexema().equals(\"float\")) \n\t\t\t\t&& token3.getCatLexica().equals(CategoriaLexica.CierraParentesis)) {\n\t\t\t\t\tcasting = true;\t\t\t\t\t\n\t\t\t}\t\t\t\n\t\t\n\t\t// Volvemos a poner los tokens en el buffer\n\t\tbufferLocal.insertarEnCabeza(token3);\n\t\tbufferLocal.insertarEnCabeza(token2);\n\t\tbufferLocal.insertarEnCabeza(token1);\n\t\treturn casting;\n\t}",
"@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}",
"private boolean scanLine()\r\n\t{\r\n\t\tboolean isLine=true;\r\n\t\t\r\n\t\t//Implement Filter here.\r\n\t\t\r\n\t\treturn isLine;\r\n\t}",
"private void readObject() {/* default - does nothing empty block */\n\t}",
"private boolean isChangedOdoReading(MaintenanceRequest po){\n\t\tboolean isDiff = false;\n\t\tOdometerReading odoReading = null;\n\t\t\n\t\tif(!MALUtilities.isEmpty(po.getCurrentOdo())){\n\t\t\todoReading = odometerService.getOdometerReading(po);\t\t\t\n\t\t\tif(MALUtilities.isEmpty(odoReading)){\n\t\t\t\tisDiff = true;\n\t\t\t} else {\n\t\t\t\tif(po.getCurrentOdo() != odoReading.getReading() || !po.getActualStartDate().equals(odoReading.getReadingDate())){\n\t\t\t\t\tisDiff = true;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isDiff;\n\t}",
"private void readObject() {\n }",
"public boolean next() throws IOException;",
"Object readValue();",
"public boolean readBoolean() throws IOException {\n\n\t\tint b = read();\n\t\tif (b == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void testIO() throws FileNotFoundException, IOException {\n OutputStream output = new BufferedOutputStream(new FileOutputStream(\"testAlphabet.bin\"));\n this.write(output);\n output.close();\n InputStream input = new BufferedInputStream(new FileInputStream(\"testAlphabet.bin\"));\n Alphabet a = new Alphabet();\n a = read(input);\n input.close();\n if (this.DEBUG_compare(a)) {\n System.out.println(\"the two alphabets are the same : true\");\n } else {\n System.out.println(\"the two alphabets are the same : false\");\n }\n }",
"private void checkFileContents(String name) throws IOException {\n byte[] buff = \"some bytes\".getBytes();\n assertTrue(Arrays.equals(buff, readFile(name, buff.length)));\n }",
"boolean readBoolean();",
"public boolean readFromScanner(Scanner inputSource)\n\t{\n\t\tint aChipId=0;\n\t\tString aName=\"\";\n\t\tString aType=\"\";\n\t\tdouble aAge=0.0;\n\n\t\tif(inputSource.hasNextInt())\n\t\t{\n\t\t\taChipId=inputSource.nextInt();\n\t\t\tinputSource.nextLine();\n\n\t\t\tif(inputSource.hasNext())\n\t\t\t{\n\t\t\t\taName=inputSource.nextLine();\n\n\t\t\t\tif(inputSource.hasNext())\n\t\t\t\t{\n\t\t\t\t\taType=inputSource.nextLine();\n\n\t\t\t\t\tif(inputSource.hasNextDouble())\n\t\t\t\t\t{\n\t\t\t\t\t\taAge=inputSource.nextDouble();\n\t\t\t\t\t\t\n\t\t\t\t\t\tthis.theAge=aAge;\n\t\t\t\t\t\tthis.theName=aName;\n\t\t\t\t\t\tthis.thePetType=aType;\n\t\t\t\t\t\tthis.theChipId=aChipId;\n\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}//end of Double\n\n\t\t\t\t}// end of aType\n\n\t\t\t}//end of if input Source\n\n\t\t}// end of if next\n\n\t\treturn false;\t\n\t}",
"public void readQuestion()\n\t{\n\t\tnumLines = (int)numScan.nextDouble();\n\t\tquestion = stringScan.nextLine();\n\t}",
"private boolean equals() {\r\n return MARK(EQUALS) && CHAR('=') && gap();\r\n }",
"public boolean read(MappedByteBuffer inputBuf) throws IOException{\r\n fromstate = inputBuf.getInt();\r\n tostate = inputBuf.getInt();\r\n rate = inputBuf.getDouble();\r\n transition = inputBuf.getInt();\r\n isFromTangible = inputBuf.getChar();\r\n return true;\r\n }",
"protected final boolean didRead (boolean value) { return didRead = value;}",
"private synchronized boolean Iteration() {\n\t if (inputStream == null) {\n\t\treturn false;\n\t }\n\t int c = -1;\n\t try {\n\t\tint avail = inputStream.available();\n\t\tif (avail > 0) {\n\t\t c = inputStream.read();\n\t\t}\n\t } catch (Exception e) {\n\t\treturn false;\n\t }\n\t if (c < 0) {\n\t\treturn true;\n\t }\n\t if (c == '\\n') {\n\t\tlines.offer(buffer);\n\t\tbuffer = new String(\"\");\n\t } else {\n\t\tbuffer += (char)c;\n\t }\n\t return true;\n\t}",
"private boolean isData() {\n return \"data\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }",
"private void readObject() {/* default - does nothing empty block */\n }",
"public abstract boolean isParseCorrect();",
"public boolean readNextTag(final String name) {\r\n\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\t\t\tif (type == Type.BEGIN) {\r\n\t\t\t\tif (this.in.getTag().getName().equals(name)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tskipObject();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private String readWhoPlaysFirst () {\n String name, player1Name, player2Name;\n name = \"\";\n player1Name = player1.name();\n player2Name = player2.name();\n while (!(name.equals(player1Name.toLowerCase()) ||\n name.equals(player2Name.toLowerCase()) )) {\n System.out.print(\n \"Who plays first? (\" + player1Name +\n \" or \" + player2Name + \"): \");\n System.out.flush();\n name = in.next();\n name = name.toLowerCase();\n in.nextLine();\n }\n if (name.equals(player1Name.toLowerCase()))\n return player1Name;\n else\n return player2Name;\n }",
"private boolean readHasCorrespondingIsProperty(Method paramMethod, Class paramClass) {\n/* 294 */ return false;\n/* */ }",
"private String readLine() {\n\t\ttry {\n\t\t\treturn reader.nextLine();\t\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"private int getAnswer() throws IOException {\n String w = next();\n while (w.equals(\"\")) {\n w = next();\n }\n // System.out.println(w + \" is the answer key\");\n c = r.read();\n if (w.equals(\"b\")) {\n return 1;\n } else {\n return 0;\n }\n }",
"private boolean advanceToTag(final String tag) {\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\t\t\tif (type == Type.BEGIN) {\r\n\r\n\t\t\t\tif (this.in.getTag().getName().equals(tag)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tskipObject();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}",
"public Boolean shouldRead() {\n return this.isComplete();\n }"
] | [
"0.6802046",
"0.6348343",
"0.5935373",
"0.57740736",
"0.57513845",
"0.57307327",
"0.5585814",
"0.55830646",
"0.5546776",
"0.5545794",
"0.54878604",
"0.5486107",
"0.5399501",
"0.5390031",
"0.5386827",
"0.53864664",
"0.5364149",
"0.53459305",
"0.53319734",
"0.53297216",
"0.53154075",
"0.53036755",
"0.5301327",
"0.5278305",
"0.52752036",
"0.5264567",
"0.5260808",
"0.52604944",
"0.52566886",
"0.5256512",
"0.5246437",
"0.5244565",
"0.52411234",
"0.5240103",
"0.52099645",
"0.52099645",
"0.520589",
"0.5204673",
"0.5174636",
"0.51707333",
"0.51707333",
"0.51707333",
"0.51707333",
"0.51707333",
"0.51707333",
"0.51707333",
"0.51707333",
"0.51707333",
"0.51707333",
"0.51692504",
"0.5123304",
"0.5115759",
"0.51153386",
"0.5109603",
"0.5105316",
"0.5099546",
"0.5099546",
"0.5099546",
"0.50960493",
"0.50955373",
"0.5084844",
"0.5078116",
"0.5077328",
"0.5070518",
"0.5067611",
"0.50540143",
"0.5052272",
"0.5049036",
"0.50424904",
"0.50312245",
"0.50231135",
"0.50200945",
"0.5012105",
"0.5007236",
"0.49979702",
"0.49967372",
"0.49906394",
"0.49797654",
"0.49771467",
"0.4975356",
"0.49750775",
"0.49699333",
"0.49698222",
"0.4966515",
"0.4960871",
"0.49497676",
"0.4949067",
"0.49323848",
"0.49287507",
"0.49204046",
"0.49047965",
"0.48980483",
"0.48942202",
"0.48902285",
"0.4889727",
"0.48880097",
"0.48867488",
"0.48846582",
"0.487948",
"0.4875458",
"0.48715928"
] | 0.0 | -1 |
Connection conexion = null; | public String mensajeLogueo(String usuario, String password) throws Exception {
Statement st = null;
CallableStatement cs = null;
ResultSet rs = null;
String mensaje = "";
try{
//1 Primero, establezco la conexion
//conexion = ds.getConnection();
conexion = conn.cadena_conexion();
//2 Crear la consulta o la sentencia SQL o el procedimiento almacenado
String sql = "{call sp_logueo_usuario(?, ?, ?)}";
cs = conexion.prepareCall(sql);
//3 setear los parametros de entrada o los parametros que pide la funcion
cs.setString(1, usuario);
cs.setString(2, password);
//4 registro el parametro de salida
cs.registerOutParameter(3, Types.VARCHAR);
//5 ejecutar la consulta
cs.execute();
//6 obtener el valor que devuelve la funcion y asignarse a una variable
mensaje = cs.getString(3);
} catch(Exception e){
System.out.println("Mensaje de error: " + e.getMessage());
}
return mensaje;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConexionDB() {\n\n\t\tconn = null;\n\n\t}",
"public void desconectar(){\n\t\tconn = null;\n\t}",
"public static void fermerConnexion(Connection con)\n{\n if(con!=null)\n {\n try\n {\n con.close();\n }\n catch(Exception e)\n {\n System.out.println(\"Erreur lors de la fermeture d’une connexion dans fermerConnexion(Connection)\");\n }\n }\n}",
"public void desconectar() {\r\n conn = null;\r\n if (conn == null) {\r\n System.out.println(\"Conexion Terminada\");\r\n }\r\n }",
"public paciente()\n {\n con = new bdconexion(); //instancia la clase bdconexion\n }",
"public Connection ObtenirConnexion(){return cn;}",
"public void deconnectar() {\n connection = null;\n }",
"void getConnection() {\n }",
"private GestionBD(){\r\n\t\tlineConnection=SingleDBConnection.getConexionBD().conectarBD();\r\n\t}",
"private ConexionBD() {\n\t\testablecerConexion();\n\t}",
"public libroBean() throws SQLException\r\n {\r\n variables = new VariablesConexion();\r\n variables.iniciarConexion();\r\n conexion=variables.getConexion();\r\n \r\n }",
"public static Connection getConnection() {\n\treturn null;\n}",
"public void desconectar() {\n conn = null;//declaramos la variable conn en null para finalizar la conexion\n if (conn == null) {//para saber si se termino la conexion\n //JOptionPane.showMessageDialog(null,\"Conexion terminada..\");//genera un cuadro de dialogo con el mensaje establecido\n //System.out.println(\"Conexion terminada..\");//genera un mensaje por consola \n }\n }",
"public void desconect() {\n\t\tconn = null;\n\t\tif (conn == null) {\n\t\t\tSystem.out.println(\"La base de datos se ha desconectado\");\n\t\t} \n }",
"public Conectar() {//creamos un constructor\n conn = null;//iniciamos la variable conn en null\n try {//en caso de error creamos un try/catch\n Class.forName(driver);//carga la clase con el nombre indicado\n conn = (Connection) DriverManager.getConnection(url, user, password);//se le envian los datos\n if (conn != null) {//para saber si se realizo la coneccion\n //JOptionPane.showMessageDialog(null,\"Conexion establecida..\");//genera un cuadro de dialogo con el mensaje establecido\n //System.out.println(\"Conexion establecida..\");//genera un mensaje por consola \n }\n } catch (ClassNotFoundException | SQLException e) {//capturo los errores posibles\n JOptionPane.showMessageDialog(null, \"Error al conectar \" + e);//genera un cuadro de dialogo con el mensaje establecido\n System.out.println(\"Error al conectar \" + e);//genera un mensaje por consola \n\n }\n }",
"public void init() {\r\n \tconnection = Connect.initConnexion();\r\n \tSystem.out.println(\"connexion :\"+connection);\r\n }",
"public PujaDAO() {\n con = null;\n st = null;\n rs = null;\n }",
"public conectar(){\r\n \r\n }",
"public static Connection CrearConexion(){\n String clave=\"inacap\";\r\n String usuario=\"inacap\";\r\n String url=\"jdbc:derby://localhost:1527/aereopuerto\";\r\n \r\n //crear conexion a la Base de datos\r\n \r\n try{\r\n Connection conn=DriverManager.getConnection(url,usuario,clave);\r\n return conn;\r\n }\r\n catch(SQLException e){\r\n System.out.println(\"Excepcion de sql:\"+e);\r\n return null;\r\n }\r\n \r\n \r\n }",
"public Connector()\n\t{\n\t\tconn = null;\n\t}",
"public void desconectar() {\n\t\ttry {\n\t\t\tconexao.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tconectar();\n\t\tthis.controlelogin = new ControleLogin();\n\t\tthis.controlfuncionario = new ControlFuncionario();\n\t\tthis.cadastroReqExame = new CadastroReqExame();\n\t\tthis.pdfControl = new ControlPdf();\n\t\tthis.controlPaciente = new ControlPaciente();\n\t\tthis.controlRegistro = new ControlResultadoExame();\n\t\tthis.cadastroDisp = new CadastroDisponibilidade();\n\t\tthis.cadastroConsulta = new CadastroConsulta();\n\t\tconexao = null;\n\t}",
"public static void fermerConnexion(Statement stmt)\n{\n if(stmt!=null)\n {\n try\n {\n stmt.close();\n }\n catch(Exception e)\n {\n System.out.println(\"Erreur lors de la fermeture d’une connexion dans fermerConnexion(Statement)\");\n }\n }\n}",
"public void setConn(Connection conn) {this.conn = conn;}",
"@Override\r\n\tpublic Connection getConnection() {\n\t\treturn null;\r\n\t}",
"private void openConnection(){}",
"public static Connection getConection() {\n\n Connection conex = null;\n try {\n\n Class.forName(\"com.mysql.jdbc.Driver\");\n conex = (Connection) DriverManager.getConnection(URL, USERNAME, PASSWORD);\n JOptionPane.showMessageDialog(null, \"Conexión Exitosa!\");\n } catch (Exception ex) {\n\n System.out.println(\"Error\" + ex);\n }\n return conex;\n }",
"public Conexion() throws ClassNotFoundException, SQLException {\n Class.forName(DRIVER);//Cargamos las clases\n conn = DriverManager.getConnection(URL, \"root\", \"\");//Obtenemos la conexion\n System.out.println(\"Conectado a la base de datos\");//Confirmamos que todo salio bien\n }",
"private Connection() {\n \n }",
"private Connection () {}",
"private DBConnection() \n {\n initConnection();\n }",
"public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }",
"public Connection getMyConnection(){\n return myConnection;\n }",
"public void conectionSql(){\n conection = connectSql.connectDataBase(dataBase);\n }",
"public void getConnect() \n {\n con = new ConnectDB().getCn();\n \n }",
"public void setConnection(Connection connection) {\n //doNothing\n }",
"private void closeConnection () {\n setConnection (null);\n }",
"private static Connection connectieMaken() {\n //declaratie anders kunnen we niks returnen\n Connection connection = null;\n try {\n connection = DriverManager.getConnection(DB_URL, USER, PASS);\n } catch (SQLException ex) {\n Logger.getLogger(JDBC.class.getName()).log(Level.SEVERE, null, ex);\n }\n return connection;\n }",
"private Connection darConexion() throws SQLException {\n\t\tSystem.out.println(\"[ALOHA APP] Attempting Connection to: \" + url + \" - By User: \" + user);\n\t\treturn DriverManager.getConnection(url, user, password);\n\t}",
"private static Connection baglan() {\n Connection baglanti = null;\n try {\n baglanti = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/SogutucuKontrolCihazi\",\n \"postgres\", \"159753\");\n if (baglanti != null) //bağlantı varsa\n System.out.println(\"Veritabanına bağlandı!\");\n else\n System.out.println(\"Bağlantı girişimi başarısız!\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return baglanti;\n }",
"public Connection conectar(){//Con com.mysql.dbc\r\n try { \r\n Class.forName(\"com.mysql.jdbc.Driver\"); //Seleccionamos los packetes de la libreria que se cargo\r\n conect= DriverManager.getConnection(\"jdbc:mysql://localhost/viaje\",\"root\",\"\"); //Si en la vida real va la ip de servidor\r\n //JOptionPane.showMessageDialog(null, \"Se conectó correctamente\");\r\n } catch (Exception ex) {// Recoge todas las exepcipnes\r\n JOptionPane.showMessageDialog(null, \"Sin conexión\");\r\n }\r\n return conect;\r\n }",
"private Connection(){\n\n }",
"public void establecerConexion() {\n\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"conexion de driver no establecida\");\n\t\t}\n\n\t\ttry {\n\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:sqlite:\" + nombreBD);\n\t\t\tstmt = conexion.createStatement();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"problema con conexion\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static Connection getConexion() {\r\n Connection cn=null;\r\n try{\r\n /**\r\n * conexion a la Base de datos\r\n */\r\n \r\n cn=DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3307/stockcia\",\"root\",\"\");\r\n //cn=DriverManager.getConnection(\"jdbc:mysql://raspberry-tic41.zapto.org:3306/StockCia\", \"tic41\", \"tic41\");//conexion local \r\n }\r\n catch(Exception e){\r\n System.out.println(String.valueOf(e));}\r\n return cn;\r\n }",
"public ConnexioBD() {\n try {\n Class.forName(driver);\n connection = DriverManager.getConnection(url, user, password);\n\n\n } catch (ClassNotFoundException | SQLException e) {\n System.out.println(\"Error al connectar amb la base de dades:\" + e);\n }\n }",
"public void conectar() throws Exception\r\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n //obtenemos la conexión\r\n connection = DriverManager.getConnection(url,usuario,contraseña);\r\n \r\n if (connection==null){\r\n throw new Exception(\"Problemas con la conexión\");\r\n }\r\n }",
"public Conexion(){\n \n }",
"private void init() {\r\n\t\tif (cn == null) {\r\n\t\t\ttry {\r\n\t\t\t\tcn = new XGConnection(url,login,passwd); // Etape 2 : r�cup�ration de la connexion\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.MINUTES.sleep(1);\r\n\t\t\t\t} catch (InterruptedException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcn.close();// lib�rer ressources de la m�moire.\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private Connection darConexion() throws SQLException {\n\t\tSystem.out.println(\"[ALOHANDES APP] Attempting Connection to: \" + url + \" - By User: \" + user);\n\t\treturn DriverManager.getConnection(url, user, password);\n\t}",
"public static Connection getConnexion() throws ClassNotFoundException, SQLException{\n\t\tif(connexion == null){\n\t\t\tnew ConnexionBD() ;\n\t\t}\n\t\treturn connexion ;\n\t}",
"public static Connection obtener() \n {\n try\n {\n //sentencia de driver que se va a manejar\n Class.forName(\"com.mysql.jdbc.Driver\");\n \n String url = \"jdbc:mysql://127.0.0.1:3306/biblioteca?serverTimezone=\" + TimeZone.getDefault().getID();\n cnx = DriverManager.getConnection(url, \"root\", \"625387\");\n } \n catch (SQLException ex) {\n \n JOptionPane.showMessageDialog(null, \"Se presento error al conectar a la base de datos \"+ex.getMessage());\n } catch (ClassNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"Se presento error al conectar a la base de datos \"+ex.getMessage());\n }\n return cnx;\n }",
"private void connectDatabase(){\n }",
"@Override\r\n public void parar(Conexion conexion){\n }",
"public static void closeConnection() {\n if(connection != null) {\n try {\n connection.close();\n connection = null;\n }\n catch (Exception e) \n { \n e.printStackTrace(); \n }\n }\n }",
"public void conectar() {\r\n try {\r\n Class.forName(driver); //se carga el driver en memoria\r\n conexionDB = DriverManager.getConnection(connectString, user, password);//conexion a la base de datos\r\n System.out.println(\"SE CONECTA\");\r\n sentenciaSQL = conexionDB.createStatement();//variable que permite ejecutar las sentencias SQL \r\n System.out.println(\"SE CREA STATEMENT\");\r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"public void cerrarConexionBD(){\r\n fachada.closeConection(fachada.getConnetion());\r\n }",
"void setConnection(Connection con);",
"Connection createConnection();",
"public static Connection getConnection() {\n\t\treturn null;\r\n\t}",
"public void init(){\n\n stmt = null;\n\n try{\n\n Class.forName(\"com.mysql.jdbc.Driver\");\n myConnection=DriverManager.getConnection(DBUrl,userName,password);\n stmt=myConnection.createStatement();\n }\n catch(ClassNotFoundException | SQLException e){\n System.out.println(\"Failed to get connection\");\n }\n return;\n }",
"public Connection getConn() {return conn;}",
"public static Connection getConnection() {\n\t\treturn null;\n\t}",
"public void extConnection(){\n try {\n con.close(); // exit java_db connection \n } catch (SQLException ex) {\n Logger.getLogger(Hotel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private Connection getConnction() {\r\n\t\tConnection connection = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tString url = \"jdbc:mysql://192.168.201.120:3306/erp_purchase?zeroDateTimeBeHavior=convertToNull\";\r\n\t\t\tString user = \"xuduo\";\r\n\t\t\tString passwor = \"000000\";\r\n\t\t\tconnection = DriverManager.getConnection(url, user, passwor);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(JdbcExample.class.getName()).log(Level.SEVERE, null, e);\r\n\t\t}\r\n\t\t\r\n\t\treturn connection;\r\n\t}",
"public Connection conexion(){\n try {\r\n Class.forName(\"org.gjt.mm.mysql.Driver\");\r\n conectar=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/poo\",\"root\",\"19931017\");\r\n \r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(\"Error ┐\"+e);\r\n }\r\n return conectar; \r\n }",
"public void cerrarConexion()\n {\n bdHelper.close();\n }",
"public void setConnection(Connection conn);",
"public TermDAOImpl(){\n connexion= new Connexion();\n }",
"public Connection abrirOracle(){\r\n \r\n \r\n try{\r\n \r\n DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); //usando el JDBC de oracle\r\n con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\",\"system\",\"system\");//consiguiendo una conexion en el localhost\r\n ts=con.createStatement(rs.TYPE_SCROLL_INSENSITIVE,rs.CONCUR_UPDATABLE);\r\n System.out.println(\"La conexion se realizon con exito\");//mensaje de demostraciòn de una conexiòn existosa\r\n \r\n \r\n }catch(Exception e){\r\n System.out.println(\"error de conexion: \"+e.toString());\r\n }\r\n return con;\r\n }",
"public void cerrarConexion() throws SQLException{\n conexion.close();\n }",
"public Connection() {\n\t\t\n\t}",
"public\n Connection getConnection();",
"private Connection connect() {\n\t String url = \"jdbc:sqlite:\" + this.db;\r\n\t Connection conn = null;\r\n\t try {\r\n\t \t// Incercam conexiunea la baza de date\r\n\t conn = DriverManager.getConnection(url);\r\n\t } catch (SQLException e) {\r\n\t System.out.println(e.getMessage());\r\n\t }\r\n\t return conn; // returnam conexiunea, daca aceasta s-a facut fara erori\r\n\t }",
"private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }",
"public void connexion() {\r\n\t\ttry {\r\n\r\n\t\t\tsoapConnFactory = SOAPConnectionFactory.newInstance();\r\n\t\t\tconnection = soapConnFactory.createConnection();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public synchronized static Connection getInstance()\n\t{\n\t\tif(connect == null)\n\t\t{\n\t\t\tnew DAOconnexion();\n\t\t}\n\t\treturn connect;\n\t}",
"private static void getConnectionTest() {\n\t\ttry {\r\n\t\t\tConnection conn=CartDao.getConnection();\r\n\t\t\tif(conn==null) System.out.println(\"disconnect\");\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}\r\n\t}",
"public DaoConnection() {\n\t\t\n\t}",
"public Database() {\n\t\tconn = null;\n\t}",
"public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }",
"public Connection getConnection()\r\n {\r\n this.cn = null;\r\n \r\n try\r\n {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n this.cn = DriverManager.getConnection(\"jdbc:mysql://localhost/surtiplas\", \"root\", \"12345\");\r\n }\r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n return cn; \r\n }",
"public Connection createConnection(){\n Connection conn = null;\n registerDriver();\n createURL();\n\n try {\n conn = DriverManager.getConnection(urlDB,username,password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n System.out.println((conn != null)?\"You made it, take control your database now!\":\"Failed to make connection!\");\n\n return conn;\n}",
"public Connection OpenConnection() {\n try {\n //obtenemos el driver para SQLSERVER\n Class.forName(driver);\n //obtenemos la conexion\n con = DriverManager.getConnection(url, user, pass);\n if (con != null) {\n System.out.println(\"OK base de datos \" + bd + \" listo\");\n }\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n }\n return con;\n }",
"public Connection getConnection(){\r\n try{\r\n conn=DriverManager.getConnection(host,user,pass);\r\n //JOptionPane.showMessageDialog(null,\"connection Successive\" );\r\n return conn;\r\n }\r\n catch(SQLException ex){\r\n JOptionPane.showMessageDialog(null, \"\"+ex.getMessage());\r\n return null;\r\n }\r\n }",
"public Connection getConexao() {\t\n\t\ttry {\n\t\t\t\n\t\t\tif (this.conn!=null) {\n\t\t\t\treturn this.conn;\n\t\t\t}\n\t\t\t\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/\"+this.db,this.user,this.pass);\n\t\t\t\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn this.conn;\n\t}",
"void createConnection();",
"private DatabaseHandler(){\n createConnection();\n }",
"private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void disconnect()\r\n\t{\r\n\t\tthis.database = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tif (konekcija != null && !konekcija.isClosed())\r\n\t\t\t{\r\n\t\t\t\tConnectionClass.closeConnection();\r\n\t\t\t\tSystem.out.println(\"Konekcija zatvorena: \"+ konekcija.toString());\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public ConnectDBReservering(Connection c){\r\n\t\tcon = c;\r\n\t}",
"public TelaCliente() {\n initComponents();\n conexao=ModuloConexao.conector();\n }",
"public Connection getConnection(){\n Connection conn = null;\n System.out.println(\"connection called\");\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost/online_bidding_system\",\"root\",\"\");\n } catch(ClassNotFoundException | SQLException e){\n e.printStackTrace();\n }\n \n return conn;\n }",
"private void getConnection() {\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(driver);\r\n\t\t\tconn = DriverManager.getConnection(url, id, pw);\r\n\t\t\tSystem.out.println(\"[접속성공]\");\r\n\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"error: 드라이버 로딩 실패 -\" + e);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error:\" + e);\r\n\t\t}\r\n\r\n\t}",
"public Connection getConnection(){\n try{\n if(connection == null || connection.isClosed()){\n connection = FabricaDeConexao.getConnection();\n return connection;\n } else return connection;\n } catch (SQLException e){throw new RuntimeException(e);}\n }",
"public Descripcion() {\n cnx= new ConexionDB();\n }",
"public GudangDao(Connection con){\r\n this.conn=con;\r\n }",
"public void conexaoL() {\n try {\n System.setProperty(\"jdbc.Drivers\", driver);\n con = DriverManager.getConnection(caminho, usuario, senha);\n //JOptionPane.showMessageDialog(null, \"Conectou\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha ao se conectar com banco de Dados:\\n\" + ex);\n new ArquivoLog(\"...Erros 1\"+ex);\n }\n }",
"public void closeConnect() throws SQLException\n {\n if(this.res!=null&&!this.res.isClosed())\n try{\n this.res.close();\n this.res=null;\n }catch(SQLException e)\n {\n JOptionPane.showMessageDialog(null, \"Loi dong ket qua\");\n }\n \n if(this.sta!=null&&!this.sta.isClosed())\n try{\n this.sta.close();\n this.sta=null;\n }catch(SQLException e)\n {\n JOptionPane.showMessageDialog(null, \"Loi dong lenh thuc thi\");\n }\n \n if(this.con!=null&&!this.con.isClosed())\n try{\n this.con.close();\n this.con=null;\n }catch(SQLException e)\n {\n JOptionPane.showMessageDialog(null, \"Loi dong ket noi\");\n }\n \n }",
"private DataConnection() {\n \tperformConnection();\n }",
"public void close(){\r\n if(conn!=null){\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n System.out.println(\"Error al cerrar la base de datos: \\n\"+ex.getMessage());\r\n }\r\n }\r\n }",
"public DBConnection()\n {\n\n }",
"public void desconectar() {\n try {\r\n con.close();\r\n } catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }"
] | [
"0.7728166",
"0.7333923",
"0.7320226",
"0.71952736",
"0.7116873",
"0.7094815",
"0.7065525",
"0.7033537",
"0.70177835",
"0.70118296",
"0.70005363",
"0.69737685",
"0.69565177",
"0.6900623",
"0.6867578",
"0.68390894",
"0.6823633",
"0.6777004",
"0.6735089",
"0.67308134",
"0.671018",
"0.6694865",
"0.6684613",
"0.6672977",
"0.6670541",
"0.6657439",
"0.6657394",
"0.66433626",
"0.66164523",
"0.6612247",
"0.6603266",
"0.6593436",
"0.6590772",
"0.65898234",
"0.65809464",
"0.6576636",
"0.65610856",
"0.65539116",
"0.65530276",
"0.6550663",
"0.65494305",
"0.6532841",
"0.6529285",
"0.65279853",
"0.65192276",
"0.6512073",
"0.64945656",
"0.6490849",
"0.6488304",
"0.646611",
"0.646291",
"0.64609766",
"0.64567965",
"0.64566916",
"0.645661",
"0.6452403",
"0.6431247",
"0.6429903",
"0.6426219",
"0.6419883",
"0.6409788",
"0.640416",
"0.64022994",
"0.6394131",
"0.6382799",
"0.637709",
"0.63662887",
"0.63659877",
"0.63653064",
"0.63335526",
"0.63319707",
"0.63182193",
"0.62919873",
"0.6282063",
"0.6262112",
"0.6257116",
"0.62486225",
"0.62453645",
"0.6245334",
"0.62435997",
"0.6241724",
"0.62414265",
"0.62376267",
"0.6217804",
"0.6217646",
"0.620844",
"0.6203426",
"0.62007105",
"0.620039",
"0.61933327",
"0.61887825",
"0.6172455",
"0.6166771",
"0.6166566",
"0.6163543",
"0.6160255",
"0.6153665",
"0.6149394",
"0.6137809",
"0.61323136",
"0.6127932"
] | 0.0 | -1 |
Creating a File object for directory | public static void main(String[] args) {
File directoryPath = new File("C:\\Users\\jarek\\Downloads");
//List of all files and directories
String[] contents = directoryPath.list();
Pattern p= Pattern.compile("zip$");
Matcher m;
Vector<String> lis = new Vector<>();
for(int i = 0; i< Objects.requireNonNull(contents).length; i++){
m=p.matcher(contents[i]);
if(m.find()) lis.addElement(contents[i]);
}
System.out.println("List of files and directories in the specified directory:");
for (String content : contents) {
System.out.println(content);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public File createFile(final String path) {\n return new com.good.gd.file.File(path);\n }",
"public DirectoryFileLocator(File dir) {\r\n directory = dir;\r\n }",
"private FileUtil() {}",
"FileInfo create(FileInfo fileInfo);",
"public String open() throws Exception {\n\t\tFile d = new File(dir);\n\n\t\tif (d.mkdirs()) {\n\t\t\t// all OK, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tif (d.exists()) {\n\t\t\t// already exists, return.\n\t\t\treturn path;\n\t\t}\n\n\t\t// try and fix the path\n\t\tlogger.warn(\"Cannot create directory: \" + d.getPath());\n\t\tfixPath(d);\n\n\t\tif (d.mkdirs()) {\n\t\t\t// all OK, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tif (d.exists()) {\n\t\t\t// already exists, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tthrow new ConverterException(\"Unable to fix path: \" + d.getPath());\n\t}",
"private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}",
"public File() {\n }",
"public static File createTestFile(File directory, String name) throws IOException {\n return createTestFile(directory, name, /* length= */ 1);\n }",
"@Override\n protected void createFile(String directoryName, String fileNamePrefix) {\n }",
"public FileSupport(String defaultPath){\n\t this.defaultPath = defaultPath;\n\t \n\t File dir = new File(defaultPath);\n\t \n\t if(!dir.exists()){\n\t\t try{\n\t\t\t dir.mkdir();\n\t\t } catch(SecurityException e){\n\t\t\t \n\t\t }\n\t\t \n\t }\n }",
"public void createDir(File file) {\n if (!file.exists()) {\n file.mkdir();\n }\n }",
"public void createDir(File file){\n\t\tif (!file.exists()) {\n\t\t\tif (file.mkdir()) {\n\t\t\t\tlogger.debug(\"Directory is created!\");\n\t\t\t} else {\n\t\t\t\tlogger.debug(\"Failed to create directory!\");\n\t\t\t}\n\t\t}\n\t}",
"public FileObject() {\n\t}",
"public File getDirectoryValue();",
"private FileManager() {}",
"private File loadFile() throws IOException {\r\n File file = new File(filePath);\r\n if (!file.exists()) {\r\n File dir = new File(fileDirectory);\r\n dir.mkdir();\r\n File newFile = new File(filePath);\r\n newFile.createNewFile();\r\n return newFile;\r\n } else {\r\n return file;\r\n }\r\n }",
"public static File createTestFile(File directory, String name, long length) throws IOException {\n return createTestFile(new File(directory, name), length);\n }",
"File(String path, String type)\n {\n this.path=path;\n this.type=type;\n }",
"File a(File file) {\n if (file != null) {\n if (file.exists() || file.mkdirs()) {\n return file;\n }\n akx.h().d(\"Fabric\", \"Couldn't create file\");\n do {\n return null;\n break;\n } while (true);\n }\n akx.h().a(\"Fabric\", \"Null File\");\n return null;\n }",
"Object getDir();",
"protected File(SleuthkitCase db, long objId, long fsObjId, \n\t\t\tTSK_FS_ATTR_TYPE_ENUM attrType, short attrId, String name, long metaAddr, \n\t\t\tTSK_FS_NAME_TYPE_ENUM dirType, TSK_FS_META_TYPE_ENUM metaType, \n\t\t\tTSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags, \n\t\t\tlong size, long ctime, long crtime, long atime, long mtime, \n\t\t\tshort modes, int uid, int gid, String md5Hash, FileKnown knownState, String parentPath) {\n\t\tsuper(db, objId, fsObjId, attrType, attrId, name, metaAddr, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath);\n\t}",
"@Override\n public void createDirectory(File storageName) throws IOException {\n }",
"void setDirectory(File dir);",
"private File createEmptyDirectory() throws IOException {\n File emptyDirectory = findNonExistentDirectory();\n if (emptyDirectory.mkdir() == false) {\n throw new IOException(\"Can't create \" + emptyDirectory);\n }\n\n return emptyDirectory;\n }",
"public boolean makeDirectory( String directory, FileType type );",
"Folder createFolder();",
"File openFile();",
"int createFile(String pFileNamePath, String pContent, String pPath, String pRoot, boolean pOverride) throws RemoteException;",
"public File getFileForKey(String key) {\n\t\treturn new File(mRootDirectory, getFilenameForKey(key));\n\t}",
"public static File getFile(File workingDirectory, String value)\n {\n if (value.startsWith(\".\"))\n {\n return new File(workingDirectory, value.substring(2));\n }\n else\n {\n return new File(value);\n }\n }",
"public File generateFile()\r\n {\r\n return generateFile(null);\r\n }",
"public Directory(String nm){\r\n\t\tsuper();\r\n\t}",
"public interface IOFactory {\n\n public FileIO newFile(String path);\n\n}",
"public File createNewFolder(File paramFile) throws IOException {\n/* 803 */ if (paramFile == null) {\n/* 804 */ throw new IOException(\"Containing directory is null:\");\n/* */ }\n/* */ \n/* 807 */ File file = createFileObject(paramFile, newFolderString);\n/* */ \n/* 809 */ if (file.exists()) {\n/* 810 */ throw new IOException(\"Directory already exists:\" + file.getAbsolutePath());\n/* */ }\n/* 812 */ file.mkdirs();\n/* */ \n/* */ \n/* 815 */ return file;\n/* */ }",
"public DirectoryFileLocator() {\r\n this(System.getProperty(\"user.dir\"));\r\n }",
"private File createDirectoryIfNotExisting( String dirName ) throws HarvesterIOException\n {\n \tFile path = FileHandler.getFile( dirName );\n \tif ( !path.exists() )\n \t{\n \t log.info( String.format( \"Creating directory: %s\", dirName ) );\n \t // create path:\n \t if ( !path.mkdir() )\n \t {\n \t\tString errMsg = String.format( \"Could not create necessary directory: %s\", dirName );\n \t\tlog.error( errMsg );\n \t\tthrow new HarvesterIOException( errMsg );\n \t }\n \t}\n \t\n \treturn path;\n }",
"@Test\n public void testConstructor_Custom_Store_File() {\n\n File file = new File(\n System.getProperty(\"java.io.tmpdir\") + File.separator + \"oasis-list-testConstructor_Custom_Store_File\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n }",
"public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}",
"private void createFolder(String myFilesystemDirectory) {\n\r\n File file = new File(myFilesystemDirectory);\r\n try {\r\n if (!file.exists()) {\r\n //modified \r\n file.mkdirs();\r\n }\r\n } catch (SecurityException e) {\r\n Utilidades.escribeLog(\"Error al crear carpeta: \" + e.getMessage());\r\n }\r\n }",
"public GridFSInputFile createFile(File f) throws IOException {\n\treturn createFile(new FileInputStream(f), f.getName(), true);\n }",
"@Override\n public FSDataOutputStream create(Path f) throws IOException {\n return super.create(f);\n }",
"Path createPath();",
"public FileTest() {\n }",
"Directory(FatFileSystem fileSystem, Stream dirStream) {\n this.fileSystem = fileSystem;\n this.dirStream = dirStream;\n loadEntries();\n }",
"public static LogFile createLogFile(Path p) throws StructureException {\n if (!Files.isRegularFile(p))\n throw new StructureException(StructureException.Type.NOT_FILE);\n\n return new LogFile(p);\n }",
"abstract File getResourceDirectory();",
"protected File makeUnpackDir() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public static void init(){\n Path path = FileDirectoryUtil.getPath(\"src\", \"fileIO\", \"test.txt\");\n FileDirectoryUtil.tryCreateDirectory(path);\n\n // Try to create the file\n path = Paths.get(path.toAbsolutePath().toString(), \"test.txt\");\n FileDirectoryUtil.tryCreateFile(path);\n\n // Print out the final location of the file\n System.out.println(path.toAbsolutePath());\n\n // Try to write to the file\n IOUtil.tryWriteToFile(getContent(), path);\n\n // Try to print the content of the file\n IOUtil.tryPrintContents(path);\n\n }",
"public FileManager() {\n\t\t\n\t}",
"@TaskAction\n public void create() {\n dir.mkdirs();\n getChmod().chmod(dir, dirMode);\n }",
"public FileUtility()\n {\n }",
"public LabsManager(File directory)\n {\n this.directory = directory;\n }",
"public Directory(String name) {\n super(name);\n this.parent = null;\n }",
"public static int creat(String pathname, short mode)\n throws Exception {\n // get the full path\n String fullPath = getFullPath(pathname);\n FileSystem fileSystem = openFileSystems[ROOT_FILE_SYSTEM];\n\n StringBuffer dirname = new StringBuffer(\"/\");\n IndexNode currIndexNode = getRootIndexNode();\n IndexNode prevIndexNode = null;\n short indexNodeNumber = FileSystem.ROOT_INDEX_NODE_NUMBER;\n\n StringTokenizer st = new StringTokenizer(fullPath, \"/\");\n String name = \".\"; // start at root node\n while (st.hasMoreTokens()) {\n name = st.nextToken();\n if (!name.equals(\"\")) {\n // check to see if the current node is a directory\n if ((currIndexNode.getMode() & S_IFMT) != S_IFDIR) {\n // return (ENOTDIR) if a needed directory is not a directory\n process.errno = ENOTDIR;\n return -1;\n }\n\n // check to see if it is readable by the user\n // ??? tbd\n // return (EACCES) if a needed directory is not readable\n\n if (st.hasMoreTokens()) {\n dirname.append(name);\n dirname.append('/');\n }\n\n // get the next inode corresponding to the token\n prevIndexNode = currIndexNode;\n currIndexNode = new IndexNode();\n indexNodeNumber = findNextIndexNode(\n fileSystem, prevIndexNode, name, currIndexNode);\n }\n }\n\n // ??? we need to set some fields in the file descriptor\n int flags = O_WRONLY; // ???\n FileDescriptor fileDescriptor = null;\n\n if (indexNodeNumber < 0) {\n // file does not exist. We check to see if we can create it.\n\n // check to see if the prevIndexNode (a directory) is writeable\n // ??? tbd\n // return (EACCES) if the file does not exist and the directory\n // in which it is to be created is not writable\n\n currIndexNode.setMode(mode);\n currIndexNode.setNlink((short) 1);\n\n // allocate the next available inode from the file system\n short newInode = fileSystem.allocateIndexNode();\n if (newInode == -1)\n return -1;\n\n fileDescriptor =\n new FileDescriptor(fileSystem, currIndexNode, flags);\n // assign inode for the new file\n fileDescriptor.setIndexNodeNumber(newInode);\n\n// System.out.println( \"newInode = \" + newInode ) ;\n fileSystem.writeIndexNode(currIndexNode, newInode);\n\n // open the directory\n // ??? it would be nice if we had an \"open\" that took an inode \n // instead of a name for the dir\n// System.out.println( \"dirname = \" + dirname.toString() ) ;\n int dir = open(dirname.toString(), O_RDWR);\n if (dir < 0) {\n Kernel.perror(PROGRAM_NAME);\n System.err.println(PROGRAM_NAME +\n \": unable to open directory for writing\");\n process.errno = ENOENT;\n return -1;\n }\n\n // scan past the directory entries less than the current entry\n // and insert the new element immediately following\n int status;\n DirectoryEntry newDirectoryEntry =\n new DirectoryEntry(newInode, name);\n DirectoryEntry currentDirectoryEntry = new DirectoryEntry();\n while (true) {\n // read an entry from the directory\n status = readdir(dir, currentDirectoryEntry);\n if (status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error reading directory in creat\");\n System.exit(EXIT_FAILURE);\n } else if (status == 0) {\n // if no entry read, write the new item at the current \n // location and break\n writedir(dir, newDirectoryEntry);\n break;\n } else {\n // if current item > new item, write the new item in \n // place of the old one and break\n if (currentDirectoryEntry.getName().compareTo(\n newDirectoryEntry.getName()) > 0) {\n int seek_status =\n lseek(dir, -DirectoryEntry.DIRECTORY_ENTRY_SIZE, 1);\n if (seek_status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error during seek in creat\");\n System.exit(EXIT_FAILURE);\n }\n writedir(dir, newDirectoryEntry);\n break;\n }\n }\n }\n // copy the rest of the directory entries out to the file\n while (status > 0) {\n DirectoryEntry nextDirectoryEntry = new DirectoryEntry();\n // read next item\n status = readdir(dir, nextDirectoryEntry);\n if (status > 0) {\n // in its place\n int seek_status =\n lseek(dir, -DirectoryEntry.DIRECTORY_ENTRY_SIZE, 1);\n if (seek_status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error during seek in creat\");\n System.exit(EXIT_FAILURE);\n }\n }\n // write current item\n writedir(dir, currentDirectoryEntry);\n // current item = next item\n currentDirectoryEntry = nextDirectoryEntry;\n }\n\n // close the directory\n close(dir);\n } else {\n // file does exist ( indexNodeNumber >= 0 )\n\n // if it's a directory, we can't truncate it\n if ((currIndexNode.getMode() & S_IFMT) == S_IFDIR) {\n // return (EISDIR) if the file is a directory\n process.errno = EISDIR;\n return -1;\n }\n\n // check to see if the file is writeable by the user\n // ??? tbd\n // return (EACCES) if the file does exist and is unwritable\n\n // free any blocks currently allocated to the file\n int blockSize = fileSystem.getBlockSize();\n int blocks = (currIndexNode.getSize() + blockSize - 1) /\n blockSize;\n for (int i = 0; i < blocks; i++) {\n int address = currIndexNode.getBlockAddress(i);\n if (address != FileSystem.NOT_A_BLOCK) {\n fileSystem.freeBlock(address);\n currIndexNode.setBlockAddress(i, FileSystem.NOT_A_BLOCK);\n }\n }\n\n // update the inode to size 0\n currIndexNode.setSize(0);\n\n // write the inode to the file system.\n fileSystem.writeIndexNode(currIndexNode, indexNodeNumber);\n\n // set up the file descriptor\n fileDescriptor =\n new FileDescriptor(fileSystem, currIndexNode, flags);\n // assign inode for the new file\n fileDescriptor.setIndexNodeNumber(indexNodeNumber);\n\n }\n\n return open(fileDescriptor);\n }",
"Directory createAsDirectory() {\n return getParentAsExistingDirectory().findOrCreateChildDirectory(name);\n }",
"public void setDir(File dir) {\n this.dir = dir;\n }",
"public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}",
"private FileUtil() {\n \t\tsuper();\n \t}",
"@Test\n public void createFile(){\n try\n {\n URI uri = new URI(\"http://www.yu.edu/documents/doc390\");//given the complete uri\n String path = uri.getAuthority() + this.disectURI(uri);//get the Path which is www.yu.edu\\documents\n File file = new File(baseDir.getAbsolutePath() + File.separator + path);//make a File with the full class path and with the \"URI Path\"\n Files.createDirectories(file.toPath());//create the directories we didn't have before, ie not apart of the baseDir\n\n File theFile = new File(file.getAbsolutePath() + File.separator + \"doc390.txt\");//create a new File with the document as the last piece\n //wrap in a try because if the file is already there than we don't need to create a file\n if(!theFile.exists())Files.createFile(theFile.toPath());//create this file in the computer\n\n //write to the file -- in the real application this is the writing of the json\n FileWriter fileWriter = new FileWriter(theFile);\n fileWriter.write(\"HaYom sishi BShabbos\");\n fileWriter.flush();\n fileWriter.close();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }",
"public FileSaver(Path directory) {\n this.directory = directory;\n }",
"public FileObjectFactory() {\n }",
"private static void createDir(File f) {\n int limit = 10;\n while (!f.exists()) {\n if (!f.mkdir()) {\n createDir(f.getParentFile());\n }\n limit --;\n if(limit < 1) {\n break;\n }\n }\n if (limit == 0) {\n }\n }",
"public GridFSInputFile createFile(byte[] data) {\n\treturn createFile(new ByteArrayInputStream(data), true);\n }",
"@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }",
"public Storage(String filePath) {\n file = new File(filePath);\n try {\n file.getParentFile().mkdir();\n file.createNewFile();\n } catch (IOException e) {\n System.err.println(\"Unable to create file\");\n }\n }",
"public void setDir(File dir)\n {\n this.dir = dir;\n }",
"@Produces\n\tpublic Path produceFile() throws IOException{\n\t\tlogger.info(\"The path (generated by PathProducer) will be injected here - # Path : \"+path);\n\t\tif(Files.notExists(path)){\n\t\t\tFiles.createDirectory(path);\n\t\t\tlogger.info(\" Directory Created :: \" +path);\n\t\t}\n\t\t/*\n\t\t * currentTimeMillis will be injected by NumberPrefixProducer and has a seperate qualifier\n\t\t */\n\t\tPath file = path.resolve(\"myFile_\" + currentTimeMillis + \".txt\");\n\t\tlogger.info(\"FileName : \"+file);\n\t\tif(Files.notExists(file)){\n\t\t\tFiles.createFile(file);\n\t\t}\n\t\tlogger.info(\" File Created :: \" +file);\n\t\treturn file;\n\t}",
"public Files files();",
"FileObject getFile();",
"FileObject getFile();",
"@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }",
"public FileStorage(File path) {\n dataFolder = path;\n }",
"public static File newFile(File root, String... segments) {\r\n\t\tif (readableDir(root)) {\r\n\t\t\tif (null != segments) {\r\n\t\t\t\tfor (String segment : segments) {\r\n\t\t\t\t\tif (validSegment(segment)) {\r\n\t\t\t\t\t\troot = new File(root, segment);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn root;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"static void initContacts(){\n String directory = \"contacts\";\n String filename = \"contacts.txt\";\n Path contactsDirectory= Paths.get(directory);\n Path contactsFile = Paths.get(directory, filename);\n try {\n if (Files.notExists(contactsDirectory)) {\n Files.createDirectories((contactsDirectory));\n System.out.println(\"Created directory\");\n }\n if (!Files.exists(contactsFile)) {\n Files.createFile(contactsFile);\n System.out.println(\"Created file\");\n }\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n }",
"public DirectoryManager(String directory,String _username){\n username = _username;\n root = new File(directory);\n if(!root.exists()) //create root directory if it doesn't exists\n root.mkdir();\n PWD = new File(root,username); //set home directory(root/username) as PWD\n if (!PWD.exists()) { //create PWD directory if it doesn't exists\n PWD.mkdir();\n }\n pattern = Pattern.compile(root + osPathSeprator + username + osPathSeprator + \"(.*)\");\n }",
"Object create(File file) throws IOException, SAXException, ParserConfigurationException;",
"public File getDirectory()\n {\n return directory;\n }",
"public void newFile(int temp) {\n if(!doesExist(temp)){\n System.out.println(\"The Directory does not exist \");\n return;\n }\n\n directory nodeptr = root;\n for(int count = 0; count < temp; count++) {\n nodeptr = nodeptr.forward;\n }\n int space = nodeptr.f.createFile(nodeptr.count);\n nodeptr.count++;\n nodeptr.availableSpace = 512 - space;\n\n }",
"public File getFile();",
"public File getFile();",
"public abstract T create(T file, boolean doPersist) throws IOException;",
"abstract File getTargetDirectory();",
"public File toFile() throws WoodException\n {\n if(!exists()) {\n throw new WoodException(\"Attempt to use not existing file path |%s|.\", value);\n }\n return file;\n }",
"public static StyxFile getFileOrDirectoryOnDisk(File file) throws StyxException\n {\n if (!file.exists())\n {\n throw new StyxException(\"file \" + file.getName() + \" does not exist\");\n }\n if (file.isDirectory())\n {\n return new DirectoryOnDisk(file);\n }\n else\n {\n return new FileOnDisk(file);\n }\n }",
"public FileManager(String directory) throws InitFailedException\n {\n fileLocation = new File(directory);\n\n // check if the directory actually exits\n if (fileLocation.isDirectory())\n {\n System.out.println(\"Providing files from directory: \"\n + fileLocation.getAbsolutePath());\n }\n else\n {\n System.out.println(\"Cannot find directory: \"\n + fileLocation.getAbsolutePath());\n throw new InitFailedException();\n }\n }",
"public void setDir(File d) {\r\n this.dir = d;\r\n }",
"public void testFilesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"files\");\n assertEquals(file, new File(rootBlog.getFilesDirectory()));\n assertTrue(file.exists());\n }",
"@Override\n public File createFile(String path) throws IOException {\n String pathStr=path+fileSeparator+\"Mail.json\";\n File file = new File(pathStr);\n file.createNewFile();\n return file;\n }",
"private static File openFile(String path, FileSystem fs) {\n fs.updatePath();\n String fullFilePath;\n if (path.startsWith(\"/\")) {\n // path is abs\n fullFilePath = path;\n } else {\n // path is rel\n fullFilePath = fs.getCurrentPath() + path;\n }\n\n File targetFile = (File) fs.checkPath(fullFilePath, \"file\");\n if (targetFile == null) {\n // check for parent if it's null too\n String[] parentPathArr = fs.getParent(fullFilePath);\n if (!parentPathArr[0].startsWith(\"/\")) {\n // convert parent path to absolute\n parentPathArr[0] = toAbsPathStr(parentPathArr[0], fs);\n }\n Directory parentDir =\n (Directory) fs.checkPath(parentPathArr[0], \"directory\");\n if (parentDir == null) {\n // invalid parent path => the given path is invalid\n ErrorHandler.getErrorMessage(fullFilePath + \" is invalid path\");\n } else {\n // create file under the parentDir if name is okay\n if (fs.isValidNameForFileSystem(parentPathArr[1])) {\n targetFile = fs.createFileWithParent(parentPathArr[1], parentDir);\n } else {\n ErrorHandler.getErrorMessage(\"invalid file name\");\n }\n }\n }\n return targetFile;\n }",
"static void mkdirs(File f) {\n f.mkdirs();\n }",
"private File createImageFile() throws IOException {\n String imageFileName = new SimpleDateFormat(\"yyyyMMdd-HHmmss\", Locale.ENGLISH).format(new Date());\n String storageDir = Environment.getExternalStorageDirectory() + \"/DokuChat\";\n File dir = new File(storageDir);\n if (!dir.exists())\n dir.mkdir();\n\n image = new File(storageDir + \"/\" + imageFileName + \".jpg\");\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }",
"@Test\n public void testLsDirectoryAndFile() {\n FileTree myTree = new FileTree();\n String[] paths = {\"file\"};\n try {\n myTree.mkdir(paths);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"Could not create directory\");\n }\n String result = \"\";\n try {\n myTree.makeFile(\"file1\");\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"could not create file\");\n }\n String[] empty_path = {};\n try {\n result = myTree.ls(false, empty_path);\n } catch (InvalidPathException e1) {\n fail(\"Could not find the directories\");\n }\n\n assertEquals(result, \"Path at /: \\nfile\\nfile1\\n\");\n }",
"protected FileSystem createFileSystem()\n throws SmartFrogException, RemoteException {\n ManagedConfiguration conf = createConfiguration();\n FileSystem fileSystem = DfsUtils.createFileSystem(conf);\n return fileSystem;\n }",
"FileReference createFile(String fileName, String toolId);",
"public static FileDownloadBodyHandler create(Path directory,\n List<OpenOption> openOptions) {\n FilePermission filePermissions[] = null;\n SecurityManager sm = System.getSecurityManager();\n if (sm != null) {\n String fn = pathForSecurityCheck(directory);\n FilePermission writePermission = new FilePermission(fn, \"write\");\n String writePathPerm = fn + File.separatorChar + \"*\";\n FilePermission writeInDirPermission = new FilePermission(writePathPerm, \"write\");\n sm.checkPermission(writeInDirPermission);\n FilePermission readPermission = new FilePermission(fn, \"read\");\n sm.checkPermission(readPermission);\n\n // read permission is only needed before determine the below checks\n // only write permission is required when downloading to the file\n filePermissions = new FilePermission[] { writePermission, writeInDirPermission };\n }\n\n // existence, etc, checks must be after permission checks\n if (Files.notExists(directory))\n throw new IllegalArgumentException(\"non-existent directory: \" + directory);\n if (!Files.isDirectory(directory))\n throw new IllegalArgumentException(\"not a directory: \" + directory);\n if (!Files.isWritable(directory))\n throw new IllegalArgumentException(\"non-writable directory: \" + directory);\n\n return new FileDownloadBodyHandler(directory, openOptions, filePermissions);\n\n }",
"public static File getTestFile( String path )\r\n {\r\n return new File( getBasedir(), path );\r\n }",
"public DirectoryModel(File path) {\r\n\tsetCurrentDirectory(path);\r\n\tif (isWindowsFileSystem()) {\r\n\t overrideTypes = new FileType[2];\r\n\t overrideTypes[0] = FileType.SharedFloppyDrive;\r\n\t overrideTypes[1] = FileType.SharedHardDrive;\r\n\t}\r\n }",
"public File getDoveFile(){\n File temp = new File(drv.getAbsolutePath() + File.separator \n + folderName);\n return temp;\n }",
"public GridFSInputFile createFile(InputStream in) {\n\treturn createFile(in, null);\n }",
"public static File MakeNewFile(String hint) throws IOException {\n File file = new File(hint);\n String name = GetFileNameWithoutExt(hint);\n String ext = GetFileExtension(hint);\n int i = 0;\n while (file.exists()) {\n file = new File(name + i + \".\" + ext);\n ++i;\n }\n\n file.createNewFile();\n\n return file;\n }"
] | [
"0.6434318",
"0.6343537",
"0.63365513",
"0.6243083",
"0.6208835",
"0.61918116",
"0.6186218",
"0.6186148",
"0.61431646",
"0.61188084",
"0.61027414",
"0.6079199",
"0.6065994",
"0.6061538",
"0.6056017",
"0.6044225",
"0.6041464",
"0.60412735",
"0.6026743",
"0.6017034",
"0.6008067",
"0.6006793",
"0.5982799",
"0.59654284",
"0.595372",
"0.59458655",
"0.59409934",
"0.5940973",
"0.5899419",
"0.5881443",
"0.5876386",
"0.5868168",
"0.5865789",
"0.5840155",
"0.583328",
"0.58165216",
"0.57968116",
"0.57864463",
"0.5761818",
"0.5759357",
"0.57471365",
"0.57453436",
"0.574073",
"0.5738741",
"0.5734289",
"0.5721537",
"0.5720587",
"0.5703855",
"0.5692371",
"0.5691042",
"0.568972",
"0.568915",
"0.5677197",
"0.56764084",
"0.5674506",
"0.56715375",
"0.5670594",
"0.56624526",
"0.56570905",
"0.56547254",
"0.56532866",
"0.564917",
"0.5648356",
"0.56371975",
"0.56353694",
"0.563394",
"0.5625853",
"0.5620886",
"0.56201714",
"0.56183594",
"0.56183594",
"0.56172884",
"0.5616301",
"0.561424",
"0.5611783",
"0.5611253",
"0.5602361",
"0.5602115",
"0.5595427",
"0.5590772",
"0.5590772",
"0.55730873",
"0.55729187",
"0.5567435",
"0.55654",
"0.55632216",
"0.5561923",
"0.5558585",
"0.55551493",
"0.5552559",
"0.55497736",
"0.5545443",
"0.5538762",
"0.55307835",
"0.5524185",
"0.5516814",
"0.55095124",
"0.5507253",
"0.5500495",
"0.5499334",
"0.549401"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void run() {
this.get(set);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected Command getCreateCommand(CreateRequest request) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected Command getCloneCommand(ChangeBoundsRequest request) {
return super.getCloneCommand(request);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected Command getOrphanChildrenCommand(GroupRequest request) {
return super.getOrphanChildrenCommand(request);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Complete function & new Formula | public double calcKa() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Formulas() { }",
"private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}",
"@Override\r\n\tpublic String asFormula(){\n\t\treturn null;\r\n\t}",
"public void calculate();",
"public String getFormula() {\r\n return formula;\r\n }",
"public abstract double calcular();",
"public TypeFormula getFirstFormula ( ) ;",
"public String getFormula() {\n return formula;\n }",
"public String getFormula() {\n return formula;\n }",
"@Override\r\n\tpublic String asFormula(double step){\n\t\treturn null;\r\n\t}",
"org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideFormula xgetFmla();",
"public String getFormula() {\n\t\treturn null;\n\t}",
"public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}",
"public ArrayList<Predicate> expandInConjunctiveFormula(){\n\t\tArrayList<Predicate> formula = new ArrayList<Predicate>();\n\t\t\n\t\t// (x, (0,2)) (y,1) \n\t\t//holds positions of the vars\n\t\tHashtable<String,ArrayList<String>> pos = new Hashtable<String,ArrayList<String>>();\n\t\t//(const3, \"10\")\n\t\t//holds vars that have constants assigned\n\t\tHashtable<String,String> constants = new Hashtable<String,String>();\n\t\t\n\t\tRelationPredicate p = this.clone();\n\t\t//rename each term to a unique name\n\t\tfor(int i=0; i<p.terms.size(); i++){\n\t\t\tTerm t = p.terms.get(i);\n\t\t\tt.changeVarName(i);\n\n\t\t}\n\t\tformula.add(p);\n\n\t\tArrayList<String> attrsOld = getVarsAndConst();\n\t\tArrayList<String> attrsNew = p.getVarsAndConst();\n\n\t\t\n\t\tfor(int i=0; i<attrsOld.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tif(t instanceof ConstTerm){\n\t\t\t\t//get the constant value\n\t\t\t\tconstants.put(attrsNew.get(i),t.getVal());\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> posVals = pos.get(attrsOld.get(i));\n\t\t\tif(posVals==null){\n\t\t\t\tposVals=new ArrayList<String>();\n\t\t\t\tpos.put(attrsOld.get(i),posVals);\n\t\t\t}\n\t\t\tposVals.add(String.valueOf(i));\n\n\t\t}\n\t\t\n\t\t//System.out.println(\"Position of attrs=\" + pos + \" Constants= \" + constants);\n\t\n\t\t//deal with var equality x0=x2\n\t\tIterator<String> it = pos.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tArrayList<String> vals = pos.get(key);\n\t\t\tif(vals.size()>1){\n\t\t\t\t//add x0=x2 & x2=x9, etc\n\t\t\t\tfor(int i=1; i<vals.size(); i++){\n\t\t\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i)));\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i+1)));\n\t\t\t\t\tVarTerm v1 = new VarTerm(key);\n\t\t\t\t\tv1.changeVarName(Integer.valueOf(vals.get(i-1)).intValue());\n\t\t\t\t\tp1.addTerm(v1);\n\t\t\t\t\tVarTerm v2 = new VarTerm(key);\n\t\t\t\t\tv2.changeVarName(Integer.valueOf(vals.get(i)).intValue());\n\t\t\t\t\tp1.addTerm(v2);\n\t\t\t\t\tformula.add(p1);\n\t\t\t\t\t//i=i+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//deal with constants\n\t\tit = constants.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tString val = constants.get(key);\n\t\t\t//it's a constant\n\t\t\t//add const3=\"10\"\n\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\tp1.addTerm(new VarTerm(key));\n\t\t\tp1.addTerm(new ConstTerm(val));\n\t\t\tformula.add(p1);\n\t\t}\n\t\treturn formula;\n\t}",
"double getActiveOperand();",
"private double equation(long n) {\n\t\treturn (4d * montoCarlo(n) / n);\n\t}",
"public void setFormula(String text) {\n\t\t\n\t}",
"protected IExpressionValue expression() throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t\r\n\t\t// temp table already created by upper caller\r\n\t\t\r\n\t\tIExpressionValue temp1 = term();\r\n\t\tIExpressionValue temp2 = null;\r\n\t\t\r\n\t\tFloat temp1Value = null;\r\n\t\tFloat temp2Value = null;\r\n\t\t// LOOK FOR +/- (OPTIONAL)\r\n\t\tswitch (look) {\r\n\t\tcase '+':\r\n\t\t\tmatch('+');\r\n\t\t\ttemp2 = term();\r\n\t\t\ttry {\r\n\t\t\t\ttemp1Value = Float.parseFloat(temp1.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp1Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\ttemp2Value = Float.parseFloat(temp2.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp2Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\tif (!Float.isNaN(temp1Value) && !Float.isNaN(temp2Value)) {\r\n\t\t\t\t// TODO cut the subtree if it is a known value...\r\n\t\t\t\ttemp1 = new AddOperationProbabilityValue(\r\n\t\t\t\t\t\ttemp1.isFixedValue()?(new SimpleProbabilityValue(temp1Value)):temp1 ,\r\n\t\t\t\t\t\t\t\ttemp2.isFixedValue()?(new SimpleProbabilityValue(temp2Value)):temp2);\r\n\t\t\t}\t\t\r\n\t\t\tbreak;\r\n\t\tcase '-':\r\n\t\t\tmatch('-');\r\n\t\t\ttemp2 = term();\r\n\t\t\ttry {\r\n\t\t\t\ttemp1Value = Float.parseFloat(temp1.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp1Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\ttemp2Value = Float.parseFloat(temp2.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp2Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\tif (!Float.isNaN(temp1Value) && !Float.isNaN(temp2Value)){\r\n\t\t\t\t// TODO cut the subtree if it is known value...\r\n\t\t\t\ttemp1 = new SubtractOperationProbabilityValue(\r\n\t\t\t\t\t\ttemp1.isFixedValue()?(new SimpleProbabilityValue(temp1Value)):temp1 ,\r\n\t\t\t\t\t\t\t\ttemp2.isFixedValue()?(new SimpleProbabilityValue(temp2Value)):temp2);\r\n\t\t\t}\t\t\t\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"Expression returned \" + temp1.getProbability());\r\n\t\treturn temp1;\r\n\t}",
"private void equate()\n\t{\n\t\t\tif(Fun == Function.ADD)\n\t\t\t{\t\t\t\n\t\t\t\tresult = calc.sum ( );\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end ADD condition\n\t\t\t\n\t\t\telse if(Fun == Function.SUBTRACT)\n\t\t\t{\n\t\t\t\tresult = calc.subtract ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end SUBTRACT condition\n\t\t\t\n\t\t\telse if (Fun == Function.MULTIPLY)\n\t\t\t{\n\t\t\t\tresult = calc.multiply ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end MULTIPLY condition\n\t\t\t\n\t\t\telse if (Fun == Function.DIVIDE)\n\t\t\t{\n\t\t\t\tresult = calc.divide ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}\n\t\t\t\t\n\t}",
"private Formula (Clause c, ImList<Clause> r) {\n\t\t//System.out.println(\"Test1\"+r.toString());\n\t\t//System.out.println(\"Test1\"+c);\n\t\tclauses=r.add(c);\n\t\t//System.out.println(\"Test2\"+clauses.toString());\n\t\tcheckRep();\n\t}",
"public dFormula asFormula() {\n\t\treturn new ElementaryFormula(0, phonstringCondition);\n\t}",
"interface Formula {\n\t double calculate(int a);\n\t \n\t default double sqrt(int a) {\n\t return Math.sqrt(a);\n\t }\n\t}",
"public IComplexFormula getFormula(){\r\n\t\treturn formula;\r\n\t}",
"private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }",
"public Formula() {\t\n\t\t// TODO: implement this.\n\t\t// throw new RuntimeException(\"not yet implemented.\");\n\t\tclauses=new EmptyImList<Clause>();\n\t}",
"@Override\n\tpublic double calculate() \n\t{\t\n\t\t//return 2.45e6;\n\t\t//return (2499.64 - (2.51 * tempCelsius.value)) * 1000;\t\n\t\t//return ((2.501 - (0.002361 * tempCelsius.value)) * 1e6)*0.33;\n\t\treturn ((2.501 - (0.002361 * tempCelsius.value)) * 1e6);\n\t}",
"public abstract double calcSA();",
"private static String[] calculateAllAdditionsAndSubtractions(String[] formulaArray){\n Integer operatorPosition = getAdditionOrSubtractionPosition(formulaArray);\n while(operatorPosition!=-1){\n try {\n formulaArray = calculateAdditionOrSubtraction(formulaArray, operatorPosition);\n }catch(Exception e){\n System.err.println(e);\n }\n operatorPosition= getAdditionOrSubtractionPosition(formulaArray);\n }\n return formulaArray;\n\n }",
"String getName(Formula f);",
"public abstract void calculate();",
"public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }",
"private final void taxCalculations(){\n\r\n hraDeduction = totalHRA - 0.1*basicIncome;\r\n ltaDeduction = totalLTA - 0.7*totalLTA;\r\n\r\n //exemptions\r\n fundsExemption = fundsIncome - 150000; //upto 1.5 lakhs are exempted under IT Regulation 80C\r\n\r\n grossIncome = basicIncome + totalHRA + totalLTA + totalSpecialAl + fundsIncome ;\r\n\r\n totalDeduction = hraDeduction + ltaDeduction;\r\n\r\n totalTaxableIncome = grossIncome - (totalDeduction + fundsExemption);\r\n\r\n taxLiability = 0.05 * (totalTaxableIncome - 250000) + 0.2*(totalTaxableIncome - 500000);\r\n\r\n taxToPay = (cessPercent*taxLiability)/100 + taxLiability;\r\n }",
"protected String getIntermediateFormula() {\n if ( isGlobal() ) {\n return globalConstraint;\n } else if ( isRoleBased() ) {\n return roleMapToFormula();\n } else {\n // rls is disabled\n return EMPTY_STRING;\n }\n }",
"public Formula formulaWithInc() {\n\t\treturn formula();\n\t}",
"public double calculatePrice(Model model)\n\t{\n\t\t//sum each of the price components price value\n\t\tString finalprice = \"\";\n\t\tdouble pc_price = -1, lower_limit = -1, upper_limit = -1, function_price = -1,finalvalue=0;\n\t\tfor(PriceComponent pc : this.priceComponents)\n\t\t{\n\t\t\tpc_price = -1; lower_limit = -1; upper_limit = -1;function_price = -1;\n\t\t\t//get the variables and define their value\n\t\t\tif(pc.getPriceFunction() != null)\n\t\t\t{\n\t\t\t\tif (pc.getPriceFunction().getSPARQLFunction() != null) {\n\t\t\t\t\tcom.hp.hpl.jena.query.Query q = ARQFactory.get().createQuery(pc.getPriceFunction().getSPARQLFunction());\n\t\t\t\t\tQueryExecution qexecc = ARQFactory.get().createQueryExecution(q, model);\t\n\t\t\t\t\t\n\t\t\t\t\tResultSet rsc = qexecc.execSelect();\n//\t\t\t\t\tSystem.out.println(q.toString());\n\t\t\t\t\tfunction_price = rsc.nextSolution().getLiteral(\"result\").getDouble();// final result is store in the ?result variable of the query\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pc.getComponentCap() != null) {\n\t\t\t\tupper_limit = pc.getComponentCap().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getComponentFloor() != null) {\n\t\t\t\tlower_limit =pc.getComponentFloor().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getPrice() != null) {\n\t\t\t\tpc_price = pc.getPrice().getValue();\n\t\t\t}\n\t\t\t\n\t\t\tif(function_price >=0)\n\t\t\t{\n\t\t\t\tif(function_price > upper_limit && upper_limit >= 0)\n\t\t\t\t\tfunction_price = upper_limit;\n\t\t\t\telse if(function_price < lower_limit && lower_limit >=0)\n\t\t\t\t\tfunction_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc_price >= 0)\n\t\t\t{\n\t\t\t\tif(pc_price > upper_limit && upper_limit >=0)\n\t\t\t\t\tpc_price = upper_limit;\n\t\t\t\telse if(pc_price < lower_limit && lower_limit >= 0)\n\t\t\t\t\tpc_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc.getPrice() != null && pc.getPriceFunction() != null)\n\t\t\t\tSystem.out.println(\"Dynamic and static price? offer->\"+this.name+\",pc->\"+pc.getName() + \"price ->\"+pc_price);//throw expection?\n\t\t\t\n\t\t\t\n\t\t\tif(pc.isDeduction())\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +function_price;\n\t\t\t\t\tfinalvalue-=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +pc_price;\n\t\t\t\t\tfinalvalue-=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +function_price;\n\t\t\t\t\tfinalvalue+=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +pc_price;\n\t\t\t\t\tfinalvalue+=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//conditions to verify that the final price is inside the interval defined by the lower and upper limit, in case these exist\n\t\tif(this.getPriceCap() != null)\n\t\t{\n\t\t\tif(this.getPriceCap().getValue() >= 0 && finalvalue < this.getPriceCap().getValue())\n\t\t\t\tfinalvalue = this.getPriceCap().getValue();\n\t\t}\n\t\tif(this.getPriceFloor() != null)\n\t\t{\n\t\t\tif(this.getPriceFloor().getValue() >= 0 && finalvalue > this.getPriceFloor().getValue())\n\t\t\t\tfinalvalue = this.getPriceFloor().getValue();\n\t\t}\n\t\t\t\t\n\t\treturn finalvalue;\n\t}",
"void calculateRange() {\n //TODO: See Rules\n }",
"public void setFormula(String formula) {\r\n this.formula = formula;\r\n }",
"public abstract double calculateTax();",
"private double molarMassCalc(String formula) {\n /* Base case for if the entire formula has been checked, therefor length = 0, or\n \t\tif a bracket is found */\n if (formula.length() == 0 || formula.charAt(0) == ')') {\n return 0.0;\n }\n /* If there is a bracket find the molar mass inside of the bracket and the\n multiply it by its multiplyier */\n else if (formula.charAt(0) == '(') {\n int multiplier = findNumber(formula.substring(findBracket(formula.substring(1)) + 1));\n int indexBracket = findBracket(formula.substring(1));\n int indexString = indexBracket + String.valueOf(findNumber(formula.substring(indexBracket + 1))).length()\n + 1;\n /* Returns molar mass of inside of bracket * its multiplier and then adds what\n is outside the bracket to the molar mass */\n return molarMassCalc(formula.substring(1)) * multiplier + molarMassCalc(formula.substring(indexString));\n\n }\n // Add mm of single letter element no multiplier\n else if (formula.length() == 1 || formula.charAt(1) == ')' || formula.charAt(1) == '('\n || (formula.charAt(1) < 96 && formula.charAt(1) > 58)) {\n return findElement(formula.substring(0, 1)) + molarMassCalc(formula.substring(1));\n }\n\n // Add mm of single letter element with multiplier\n else if (formula.charAt(1) < 96 && formula.charAt(1) < 58) {\n return findElement(formula.substring(0, 1)) * findNumber(formula.substring(1))\n + molarMassCalc(formula.substring(1 + String.valueOf(findNumber(formula.substring(1))).length()));\n }\n // Add mm of double letter element no multiplier\n else if (formula.length() == 2 || formula.charAt(2) == ')' || formula.charAt(2) == '('\n || (formula.charAt(1) > 96 && formula.charAt(2) > 58)) {\n return findElement(formula.substring(0, 2)) + molarMassCalc(formula.substring(2));\n }\n\n // Add mm of double letter element with multiplier\n else if (formula.charAt(1) > 96 && formula.charAt(2) < 58) {\n return findElement(formula.substring(0, 2)) * findNumber(formula.substring(2))\n + molarMassCalc(formula.substring(2 + String.valueOf(findNumber(formula.substring(2))).length()));\n }\n /* Returns 0 as final ensurance program runs, however\n checkIfValid() ensures that the input is a valid formula */\n else {\n return 0.0;\n }\n\n }",
"@Override\n public BigDecimal evaluate(TextMap args, String variableName) {\n return null;\n\n// return first.getBonus();\n }",
"public void addFormulas() {\n countFormulas++;\n }",
"double calculatePrice();",
"private void reciprocal()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.reciprocal ( );\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}",
"@Test\n public void fieldFormula() throws Exception {\n Document doc = new Document();\n\n // Use a field builder to construct a mathematical equation,\n // then create a formula field to display the equation's result in the document.\n FieldBuilder fieldBuilder = new FieldBuilder(FieldType.FIELD_FORMULA);\n fieldBuilder.addArgument(2);\n fieldBuilder.addArgument(\"*\");\n fieldBuilder.addArgument(5);\n\n FieldFormula field = (FieldFormula) fieldBuilder.buildAndInsert(doc.getFirstSection().getBody().getFirstParagraph());\n field.update();\n\n Assert.assertEquals(field.getFieldCode(), \" = 2 * 5 \");\n Assert.assertEquals(field.getResult(), \"10\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.FORMULA.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.FORMULA.docx\");\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 * 5 \", \"10\", doc.getRange().getFields().get(0));\n }",
"public static void main(String[] args) {\n\n\n\n double numberOfgallons = 5;\n\n double gallonstolitter = numberOfgallons*3.785;\n\n\n String result = numberOfgallons + \" gallons equal to: \"+gallonstolitter+ \" liters\";\n System.out.println(result);\n\n //=============================================\n /* 2. write a java program that converts litters to gallons\n 1 gallon = 3.785 liters\n 1 litter = 1/3.785\n*/\n\n /*double litter1 = 1/3.785;\n double l =10;\n double gallon1 = l*litter1;\n\n System.out.println(gallon1);\n //======================================================\n*/\n /*\n 3. manually calculate the following code fragements:\n\t\t\t\t1. int a = 200;\n\t\t\t\t\tint b = -a++ + - --a * a-- % 2\n\t\t\t\t\tb = ?\n\n */\n\n\n double numberOfLiters = 100;\n\n double LiterstoGallons = numberOfLiters/3.785;\n\n String result2 = numberOfLiters+\" liters equal to \"+LiterstoGallons+\" galons\";\n\n System.out.println(result2);\n\n\n\n\n\n\n\n\n\n\n\n\n\n int a = 200;\n int b = -a++ + - --a * a-- % 2;\n // b = -200 + - 200* 200%2 = -200;\n\n int x = 300;\n int y = 400;\n int z = x+y-x*y+x/y;\n // z= 300+400-300*400+300/400=700-120000+0(cunki int kimi qebul edir)= -119300;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }",
"private int sum(AFormula o1){\n\t\t\t\t\n\t\t\t\treturn o1.calculate(customerType, weekdayCount, weekendCount);\n\t\t\t\t\n\t\t\t}",
"private void parseFormula()\n {\n \tpeakSumFormulaTable = new Vector<HashMap<String,Integer>>();\n \t\n \tfor (int i = 0; i < this.sumFormulas.size(); i++) {\n \t\t\n \t\tString formula = MolecularFormulaManipulator.getString(this.sumFormulas.getMolecularFormula(i));\n String[] elementArray = formula.split(\"[0-9]+\");\n String[] intArray1 = formula.split(\"[A-Z]+\");\n String[] intArray = new String[intArray1.length -1];\n \n //TODO: delete the first entry properly\n for (int j = 1; j <= intArray.length; j++) {\n\t\t\t\tintArray[j-1] = intArray1[j];\n\t\t\t}\n \n \n //use map to assign letter an integer\n HashMap<String,Integer> hm = new HashMap<String, Integer>();\n for (int j = 0; j < elementArray.length; j++) {\n \tint temp = Integer.parseInt(intArray[j]);\n \thm.put(elementArray[j], temp);\n\t\t\t} \n \n //Add Hashmap to Vector....ordered parsed sum formulas from small to large\n peakSumFormulaTable.add(hm);\n \n\t\t}\n \t\t\n }",
"private static int calculate(String expression) {\n if (expression == null || expression.isEmpty()) {\n return 0;\n }\n // 3 - Division from 0\n // Division from zero should not be possible. If a string \"5/0\" is passed, result should be -1\n if (expression.contains(\"/0\")) {\n return -1;\n }\n // 4 - Floating point numbers\n // As mentioned, floating point numbers should not be supported. If string contains not a whole number and not the allowed operations (+-x%) then it should also return -1.\n if (expression.contains(\".\") || !hasOnlyAllowedChars(expression, \"0123456789+-x/!\")) {\n return -1;\n }\n // calculate\n // find partial formulas: 5x3+2x7+1-5+4! -> [\"5x3\", \"2x7\", \"1\", \"5\", \"4!\"]\n String[] operands = findOperands(expression, \"+-\");\n // find operators: 5x3+2x7+1-5+4! -> [\"+\", \"+\", \"-\", \"+\"]\n String[] plusMinus = findOperators(expression, \"+-\");\n // calculates division, multiplication, factorial: 5x3, 2x7, 1, 5, 4!\n int result = findNumberDivMultiFactorial(operands[0]);\n for (int i = 1; i < operands.length; i++) {\n switch (plusMinus[i - 1]) {\n case \"+\":\n result = result + findNumberDivMultiFactorial(operands[i]);\n break;\n case \"-\":\n result = result - findNumberDivMultiFactorial(operands[i]);\n break;\n }\n }\n\n return result;\n }",
"String RamanujanPIFormula()\n\t{\n\n\t\tdouble mulFactor = 2.0 * Math.sqrt(2.0) / 9801.0;\n\t\t\n\t\tBigDecimal mulFactorBigDecimal = new BigDecimal( mulFactor );\n\t\t\n\t\tBigDecimal _4 = new BigDecimal(4);\n\t\tBigDecimal _1103 = new BigDecimal(1103);\n\t\tBigDecimal _26390 = new BigDecimal(26390);\n\t\tBigDecimal _396 = new BigDecimal(396);\n\n\t\tBigDecimal sum = new BigDecimal(0.0);\n\t\t\t\t\n\t\tfor(int k=0; k<100; k++)\n\t\t{\t\t\t\n\t\t\tBigDecimal numer = Factorial( 4*k ).multiply( _1103.add( _26390.multiply( new BigDecimal(k) ) ) ) ;\n\t\t\t\n\t\t\tBigDecimal denom = Factorial(k).pow(4).multiply( _396.pow( 4*k ) );\n\t\t\t\n\t\t\tsum = sum.add ( numer.divide( denom, 1000, RoundingMode.HALF_UP ) );\n\t\t}\n\t\t\n\t\tsum = sum.multiply(mulFactorBigDecimal);\n\t\t\n\t\tsum = BigDecimal.ONE.divide( sum, 1000, RoundingMode.HALF_UP );\n\t\t\n\t\treturn \"\"+sum;\n\t}",
"@Test\r\n\tpublic void testThatFormulaWorksWithManyCells () {\r\n\t\tSheet sheet = new Sheet();\r\n\t\tsheet.put(\"A1\", \"10\");\r\n\t\tsheet.put(\"A2\", \"=A1+B1\");\r\n\t\tsheet.put(\"A3\", \"=A2+B2\");\r\n\t\tsheet.put(\"A4\", \"=A3\");\r\n\t\tsheet.put(\"B1\", \"7\");\r\n\t\tsheet.put(\"B2\", \"=A2\");\r\n\t\tsheet.put(\"B3\", \"=A3-A2\");\r\n\t\tsheet.put(\"B4\", \"=A4+B3\");\r\n\r\n\t\tassertEquals(\"multiple expressions - A4\", \"34\", sheet.get(\"A4\"));\r\n\t\tassertEquals(\"multiple expressions - B4\", \"51\", sheet.get(\"B4\"));\r\n\t}",
"protected abstract SoyValue compute();",
"public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }",
"private void writeFormula(URNspec urn) throws IOException {\n\n\t\teleForMap = new HashMap<IntentionalElement, StringBuffer>();\n\t\tStringBuffer eleFormula;\n\t\tStringBuffer function;\n\t\t// initial all the symbols\n\t\twrite(\"#inital all the variable\\n\");\n\t\tfor (Iterator it = urn.getGrlspec().getIntElements().iterator(); it.hasNext();) {\n\t\t\tIntentionalElement element = (IntentionalElement) it.next();\n\t\t\tStringBuffer variable = new StringBuffer();\n\t\t\tvariable.append(modifyName(element.getName()));\n\t\t\tvariable.append(Equal);\n\t\t\tvariable.append(\"Symbol\");\n\t\t\tvariable.append(LeftBracker);\n\t\t\tvariable.append(\"'\");\n\t\t\tvariable.append(modifyName(element.getName()));\n\t\t\tvariable.append(\"'\");\n\t\t\tvariable.append(RightBracker);\n\t\t\twrite(variable.toString());\n\t\t\twrite(\"\\n\");\n\t\t}\n\t\t\n\t\t\n\t\t// iterate all the leaf element\n\t\tfor (Iterator it = urn.getGrlspec().getIntElements().iterator(); it.hasNext();) {\n\t\t\tIntentionalElement element = (IntentionalElement) it.next();\n\t\t\teleFormula = new StringBuffer();\n\t\t\tfunction = new StringBuffer();\n\t\t\tfunction.append(modifyName(element.getName()));\n\t\t\t// if the element is the leaf\n\t\t\tif (element.getLinksDest().size() == 0) {\n\t\t\t\t// System.out.println(element.getName() + \"leaf\");\n\t\t\t\tif (element.getType().getName().compareTo(\"Indicator\") == 0) {\n\t\t\t\t\tIndicator indicator = (Indicator) element;\n\t\t\t\t\tif (indicator.getWorstValue() == indicator.getTargetValue()) {\n\t\t\t\t\t\teleFormula.append(modifyName(element.getName()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tStringBuffer indicatorFor = indicatorFor(element);\n\t\t\t\t\t\teleFormula.append(indicatorFor);\n\t\t\t\t\t\tfunction.append(Equal);\n\t\t\t\t\t\tfunction.append(eleFormula);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\teleFormula.append(modifyName(element.getName()));\n\t\t\t\t}\n\t\t\t\telementSet.add(\"'\" + modifyName(element.getName()) + \"'\");\n\t\t\t\teleForMap.put(element, eleFormula);\n\t\t\t}\n\t\t}\n\t\tfor (Iterator it = urn.getGrlspec().getIntElements().iterator(); it.hasNext();) {\n\t\t\tIntentionalElement element = (IntentionalElement) it.next();\n\t\t\teleFormula = new StringBuffer();\n\t\t\tfunction = new StringBuffer();\n\t\t\tfunction.append(modifyName(element.getName()));\n\n\t\t\tif (element.getLinksDest().size() != 0) {\n\t\t\t\teleFormula.append(writeLink(element));\n\t\t\t\tfunction.append(Equal);\n\t\t\t\tfunction.append(eleFormula);\n\t\t\t\twrite(function.toString());\n\t\t\t\twrite(\"\\n\");\n\t\t\t\teleForMap.put(element, eleFormula);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"@Override\n public double calcTaxes() {\n return getCost() * 0.07;\n }",
"@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}",
"int calculate() {\n return getSum() + b1;\n }",
"@Override\n public int accion() {\n return this.alcance*2/3*3;\n }",
"public byte[] getFormulaData()\r\n/* 161: */ {\r\n/* 162:293 */ byte[] data = new byte[this.formulaBytes.length + 16];\r\n/* 163:294 */ System.arraycopy(this.formulaBytes, 0, data, 16, this.formulaBytes.length);\r\n/* 164: */ \r\n/* 165:296 */ data[6] = 16;\r\n/* 166:297 */ data[7] = 64;\r\n/* 167:298 */ data[12] = -32;\r\n/* 168:299 */ data[13] = -4; byte[] \r\n/* 169: */ \r\n/* 170:301 */ tmp54_51 = data;tmp54_51[8] = ((byte)(tmp54_51[8] | 0x2));\r\n/* 171: */ \r\n/* 172: */ \r\n/* 173:304 */ IntegerHelper.getTwoBytes(this.formulaBytes.length, data, 14);\r\n/* 174: */ \r\n/* 175:306 */ return data;\r\n/* 176: */ }",
"void drawCustomFormula(Graphics2D g2d){\r\n\t\tStaticVariableSet<Double> variables = new StaticVariableSet<Double>(); //javaluator junk\r\n\t\tArrayList<Point2D.Double> p_list= new ArrayList<Point2D.Double>();\r\n\t\tArrayList<Point3D> three_list=new ArrayList<Point3D>();\r\n\r\n\t\tfor(int i=0; i<pCanvas.iterations; i++){\r\n\r\n\t\t\tdouble theta=((double)i/1000)*2*Math.PI;\r\n\t\t\tvariables.set(\"x\", theta); //changes the variable xs value to be equal to theta\r\n\t\t\tdouble r=eval.evaluate(equation,variables); //evaluates the custom expression\r\n\t\t\tPoint3D next= new Point3D(r*Math.cos(theta), r*Math.sin(theta),0.0); //tells what point the cartesian coord is (z always zero since normally drawn on xy plane\r\n\t\t\tnext=pointRotate(next, theta); //rotates point around some axis\r\n\t\t\tthree_list.add(next);; //adds to pointlist\r\n\t\t}\r\n\t\tthree_list=CameraRotate(three_list); //rotates all points by some theta if camera is enabled\r\n\t\tutils.scalePoint3D(three_list, 100); //scales\r\n\t\tp_list=utils.convert3DPointsTo2DPoints(three_list, eye); //perspective transform\r\n\t\tdrawPointArr(g2d, p_list); //draws lines betweeen consecutive points\r\n\r\n\r\n\r\n\t}",
"protected abstract BigDecimal calculate();",
"double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }",
"public String getSelectionFormula();",
"public static String calculateStringEquation(String equation){\r\n //\"(17*(8-7/7))^2+7-3*-6*s90\"\r\n //Validity Check\r\n String numberSymbols = \"-.0123456789\";\r\n String operators = \"*/+^√sdfzcv\";\r\n \r\n //Replace alternate symbols\r\n equation = equation.replace(\",\", \".\");\r\n equation = equation.replace(\"x\", \"*\");\r\n equation = equation.replace(\"%\", \"/100\");\r\n equation = equation.replace(\"\\\\\", \"/\");\r\n \r\n //Insert + in front of -\r\n int c = 1;\r\n String newEquation = \"\" + equation.charAt(0);//Doesnt need to add + to begin\r\n while (c < equation.length()) {\r\n if (equation.charAt(c) == '-' && !operators.contains(\"\"+equation.charAt(c-1))) {\r\n newEquation += \"+\";\r\n }\r\n newEquation += equation.charAt(c);\r\n c++;\r\n }\r\n equation = newEquation;\r\n \r\n\r\n\r\n\r\n //Convert everything to double (eg 2 -> 2.0)\r\n c = 0;\r\n newEquation = \"\";\r\n boolean inNum = false;\r\n while (c < equation.length()) {\r\n if (numberSymbols.indexOf(equation.charAt(c)) != -1) {\r\n if (!inNum) {//Doesnt re read when going over more difficult numbers eg 2342\r\n newEquation += findNextNumber(equation, c-1);//opIndex is the index before next\r\n inNum = true;\r\n }\r\n }else{\r\n inNum = false;\r\n newEquation += equation.charAt(c);\r\n }\r\n c++;\r\n }\r\n equation = newEquation;\r\n //Brackets\r\n while(equation.contains(\"(\") || equation.contains(\")\")) {\r\n int openIndex = equation.indexOf(\"(\");\r\n int openBrackets = 1;\r\n int closedBrackets = 0;\r\n int closeIndex = openIndex + 1;\r\n\r\n while (openBrackets != closedBrackets) {\r\n if (equation.charAt(closeIndex) == '(') {\r\n openBrackets++;\r\n }\r\n if (equation.charAt(closeIndex) == ')') {\r\n closedBrackets++;\r\n }\r\n closeIndex++;\r\n }\r\n\r\n //Rewrite equation and sub in new value\r\n newEquation = \"\";//Reused\r\n if (openIndex != 0) {\r\n newEquation += equation.substring(0, openIndex);\r\n }\r\n newEquation += calculateStringEquation(equation.substring(openIndex+1, closeIndex-1));\r\n if (closeIndex != equation.length()-1) {\r\n newEquation += equation.substring(closeIndex);\r\n }\r\n equation = newEquation;\r\n }\r\n \r\n //Check order\r\n boolean test = checkStringFormula(equation);\r\n if (checkStringFormula(equation)) {\r\n //Trig (Typically in brackets)\r\n while (equation.contains(\"s\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"s\"));\r\n equation = equation.replace(\"s\" + num1, \"\" + (Math.sin(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"d\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"d\"));\r\n equation = equation.replace(\"d\" + num1, \"\" + (Math.cos(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"f\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"f\"));\r\n equation = equation.replace(\"f\" + num1, \"\" + (Math.tan(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"z\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"z\"));\r\n equation = equation.replace(\"z\" + num1, \"\" + Math.toDegrees(Math.asin(num1)));\r\n }\r\n while (equation.contains(\"c\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"c\"));\r\n equation = equation.replace(\"c\" + num1, \"\" + Math.toDegrees(Math.acos(num1)));\r\n }\r\n while (equation.contains(\"v\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"v\"));\r\n equation = equation.replace(\"v\" + num1, \"\" + Math.toDegrees(Math.atan(num1)));\r\n }\r\n //Exponents\r\n while (equation.contains(\"^\")) {\r\n int opIndex = equation.indexOf(\"^\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n ans = 1;\r\n }else{\r\n for (int i = 0; i < num2-1; i++) {\r\n ans*=ans;\r\n }\r\n if (num2 < 0) {\r\n ans = 1/ans;\r\n }\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Roots\r\n while (equation.contains(\"√\")) {\r\n int opIndex = equation.indexOf(\"√\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new ArithmeticException(\"Math error\");\r\n }else{\r\n ans = Math.pow(num2, 1/num1);\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Division\r\n while (equation.contains(\"/\")) {\r\n int opIndex = equation.indexOf(\"/\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new java.lang.ArithmeticException();\r\n }else{\r\n ans = num1/num2;\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Multiplication\r\n while (equation.contains(\"*\")) {\r\n int opIndex = equation.indexOf(\"*\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1*num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Addition\r\n while (equation.contains(\"+\")) {\r\n int opIndex = equation.indexOf(\"+\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1+num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n\r\n return equation;\r\n }else{\r\n throw new AssertionError(\"Incorrect Format\");\r\n }\r\n }",
"public ArrayList < TypeFormula > getAllFormulas ( ) ;",
"double defendre();",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"public abstract double calculateFee(int aWidth);",
"public abstract double calculateAppraisalPrice();",
"@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }",
"private double solution() {\n final double h = (getTextToDouble(textX1) - getTextToDouble(textX0)) / ( 2*getTextToDouble(textN)) / 3;\n double[][] mass = xInitialization();\n double answer, evenSum = 0, oddSum = 0;\n for (int i = 0; i < 2; i++) {\n for (double element : mass[i]) {\n if (i == 0)\n oddSum += getValue(element);\n else\n evenSum += getValue(element);\n }\n }\n answer = h * (getValue(getTextToDouble(textX0)) + 4 * oddSum + 2 * evenSum + getValue(getTextToDouble(textX1)));\n return answer;\n }",
"private void calculate () {\n try {\n char[] expression = expressionView.getText().toString().trim().toCharArray();\n String temp = expressionView.getText().toString().trim();\n for (int i = 0; i < expression.length; i++) {\n if (expression[i] == '\\u00D7')\n expression[i] = '*';\n if (expression[i] == '\\u00f7')\n expression[i] = '/';\n if (expression[i] == '√')\n expression[i] = '²';\n }\n if (expression.length > 0) {\n Balan balan = new Balan();\n double realResult = balan.valueMath(String.copyValueOf(expression));\n int naturalResult;\n String finalResult;\n if (realResult % 1 == 0) {\n naturalResult = (int) Math.round(realResult);\n finalResult = String.valueOf(naturalResult);\n } else\n finalResult = String.valueOf(realResult);\n String error = balan.getError();\n // check error\n if (error != null) {\n mIsError = true;\n resultView.setText(error);\n if (error == \"Error div 0\")\n resultView.setText(\"Math Error\");\n } else { // show result\n expressionView.setText(temp);\n resultView.setText(finalResult);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }",
"public void computeEquation()\n {\n // Curve equation of type : y = ax^2 + bx + c\n // OR (x*x)a + (x)b + 1c = y\n // ex : 50 = 4a + 2b + c where y = 50 and x = 2 and z = 1\n double[][] matrice = {{Math.pow(A.getKey(),2),A.getKey(),1},\n {Math.pow(B.getKey(),2),B.getKey(),1},\n {Math.pow(C.getKey(),2),C.getKey(),1}};\n\n double deter = computeSarrus(matrice);\n\n double [][] matriceA = {{A.getValue(),A.getKey(),1},\n {B.getValue(),B.getKey(),1},\n {C.getValue(),C.getKey(),1}};\n\n double [][] matriceB = {{Math.pow(A.getKey(),2),A.getValue(),1},\n {Math.pow(B.getKey(),2),B.getValue(),1},\n {Math.pow(C.getKey(),2),C.getValue(),1}};\n\n double [][] matriceC = {{Math.pow(A.getKey(),2),A.getKey(),A.getValue()},\n {Math.pow(B.getKey(),2),B.getKey(),B.getValue()},\n {Math.pow(C.getKey(),2),C.getKey(),C.getValue()}};\n\n abc[0] = computeSarrus(matriceA) / deter;\n abc[1] = computeSarrus(matriceB) / deter;\n abc[2] = computeSarrus(matriceC) / deter;\n }",
"public double calculate() {\n\t\treturn area*1800;\r\n\t}",
"public String mo81e() {\n throw new RuntimeException(\"3D references need a workbook to determine formula text\");\n }",
"@Override\n\tpublic double calculsalaire() {\n\t\treturn 1500 + nbY*20;\n\t}",
"private int getResult() {\n ArrayList<Character> operanzi = new ArrayList<Character>();\n ArrayList<Character> operatori = new ArrayList<Character>();\n for(int i = 1; i <= n; i++){\n // System.out.println(i);\n if ((expr[i] == 'T' ) || (expr[i] == 'F'))\n operanzi.add(expr[i]);\n else \n operatori.add(expr[i]);\n }\n System.out.println(operanzi.get(0));\n int n1 = operanzi.size();\n System.out.println(n1);\n long [][] T = new long[n1][n1];\n long [][] F = new long[n1][n1];\n\n for (int i = 0; i < operanzi.size(); i++) {\n \n if (operanzi.get(i) == 'T') {\n T[i][i] = 1;\n F[i][i] = 0;\n } else if (operanzi.get(i) == 'F') {\n T[i][i] = 0;\n F[i][i] = 1;\n }\n }\n long aux=0;\n for (int l=1; l<n1; ++l) \n { \n for (int i=0, j=l; j<n1; ++i, ++j) \n { \n T[i][j] = F[i][j] = 0; \n for (int g=0; g<l; g++) \n { \n int k = i + g; \n long total_i_k = evaluate(T[i][k],F[i][k],'+'); \n long total_k_j = evaluate(T[k+1][j] , F[k+1][j],'+'); \n long total = evaluate(total_i_k,total_k_j,'*');\n if (operatori.get(k) == '&') \n { \n aux = evaluate(T[i][k],T[k+1][j],'*');\n T[i][j] = evaluate(T[i][j],aux,'+'); \n \n\n F[i][j] = evaluate( F[i][j],evaluate(total,aux,'-'),'+'); \n } \n if (operatori.get(k) == '|') \n { \n aux = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate(F[i][j],aux,'+'); \n \n T[i][j] =evaluate( T[i][j],evaluate(total, aux,'-'),'+'); \n } \n if (operatori.get(k) == '^') \n { \n aux = evaluate(F[i][k],T[k+1][j],'*');\n long aux1= evaluate(T[i][k],F[k+1][j],'*');\n T[i][j] = evaluate( T[i][j],evaluate( aux , aux1,'+'),'+'); \n aux = evaluate(T[i][k],T[k+1][j],'*');\n aux1 = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate( F[i][j],evaluate(aux,aux1,'+'),'+');\n } \n } \n } \n } \n return (int)T[0][n1-1]; \n }",
"public static boolean formula(String f) {\n\n String[] parts = f.split(\"=\");\n int[] res = new int[parts.length];\n\n for (int k = 0; k < parts.length; k++) {\n\n String[] sum = parts[k].trim().replaceAll(\"-\", \"+-\").split(\"\\\\+\");\n int[] terms = new int[sum.length];\n for (int j = 0; j < sum.length; j++) {\n String[] operands = sum[j].trim().replaceAll(\"-\\\\s*\", \"-\")\n .replaceAll(\"\\\\s{2}\", \" \").split(\" \");\n Integer[] term = new Integer[operands.length];\n for (int i = 1; i < operands.length - 1; i++) {\n if (operands[i].equals(\"*\") || operands[i].equals(\"/\")) {\n int first = 0;\n int second = 0;\n try {\n first = term[i - 1] == null ? Integer.parseInt(operands[i - 1]) : term[i - 1];\n second = Integer.parseInt(operands[i + 1]);\n } catch (NumberFormatException e) {\n return false;\n }\n term[i + 1] = operands[i].equals(\"*\") ? first * second : first / second;\n }\n }\n if (term.length == 1) {\n try {\n term[0] = Integer.parseInt(operands[0]);\n } catch (NumberFormatException e) {\n return false;\n }\n }\n terms[j] = term[term.length - 1];\n }\n res[k] = Arrays.stream(terms).reduce(0, Integer::sum);\n }\n\n for (int i = 1; i < res.length; i++)\n if (res[i] != res[0]) return false;\n\n return true;\n }",
"void calculate() {\n if (price <= 1000)\n price = price - (price * 2 / 100);\n else if (price > 1000 && price <= 3000)\n price = price - (price * 10 / 100);\n else\n price = price - (price * 15 / 100);\n }",
"public float calculate(Ticket t) {\n\t}",
"boolean isUF(Formula f);",
"public static String produceAnswer(String input) {\n // TODO: Implement this function to produce the solution to the input\n \n // Parsing one line of input\n int space = input.indexOf(\" \"); // find the index of the first space\n String operandOne = input.substring(0, space); // substring of beginning to space before operator\n \n String newString1 = input.substring(space + 1, input.length());\n int space2 = newString1.indexOf(\" \"); // find the index of the second space\n String operator = newString1.substring(0, space2); // operator is between the first space and the second space\n \n String newString2 = newString1.substring(space2, newString1.length());\n String operandTwo = newString2.substring(space2, newString2.length()); // substring of space after operator to the end\n \n \n // Multiple operations\n while (operandTwo.indexOf(\" \") > 0) {\n int space3 = operandTwo.indexOf(\" \");\n String value = operandTwo.substring(0, space3);\n String new_String3 = operandTwo.substring(space3 + 1, operandTwo.length());\n int space4 = new_String3.indexOf(\" \");\n String operator2 = new_String3.substring(space4 - 1, space4);\n operandTwo = new_String3.substring(space4 + 1, new_String3.length());\n String new_equation = operandOne + \" \" + operator + \" \" + value;\n operandOne = produceAnswer(new_equation);\n operator = operator2;\n }\n \n // Parsing fractions: Operand 1\n String whole1 = operandOne; // hi_\n String num1 = \"\";\n String denom1 = \"\";\n int slash1 = operandOne.indexOf(\"/\");\n \n if (slash1 > 0) {\n int underscore1 = operandOne.indexOf(\"_\");\n if (underscore1 > 0) {\n whole1 = operandOne.substring(0, underscore1);\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n } else {\n whole1 = \"0\";\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n }\n \n } else {\n num1 = \"0\";\n denom1 = \"1\";\n }\n \n // Parsing fractions: Operand 2\n String whole2 = operandTwo;\n String num2 = \"\";\n String denom2 = \"\";\n int slash2 = operandTwo.indexOf(\"/\");\n \n if (slash2 > 0) {\n int underscore2 = operandTwo.indexOf(\"_\");\n if (underscore2 > 0) {\n whole2 = operandTwo.substring(0, underscore2);\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n } else {\n whole2 = \"0\";\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n }\n \n } else {\n num2 = \"0\";\n denom2 = \"1\";\n }\n \n \n // change strings to integers\n int intwhole1 = Integer.parseInt(whole1);\n int intnum1 = Integer.parseInt(num1);\n int intdenom1 = Integer.parseInt(denom1);\n \n int intwhole2 = Integer.parseInt(whole2);\n int intnum2 = Integer.parseInt(num2);\n int intdenom2 = Integer.parseInt(denom2);\n \n // convert to improper fraction\n intnum1 += intdenom1 * Math.abs(intwhole1);\n if (intwhole1 < 0) {\n intnum1 *= -1;\n }\n \n intnum2 += intdenom2 * Math.abs(intwhole2);\n if (intwhole2 < 0) {\n intnum2 *= -1;\n }\n \n int finalnum = 0;\n int finaldenom = 0;\n int finalwhole = 0;\n \n // if denominator equals 0, quit\n if (intdenom1 == 0 || intdenom2 == 0) {\n return \"Invalid\";\n }\n \n // if operator is incorrect, quit\n if (operator.length() > 1) {\n return \"Invalid\";\n }\n \n // addition calculation\n // multiply whole values to fraction to get a common denominator\n if (operator.equals(\"+\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 + intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // subtraction calculation\n if (operator.equals(\"-\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 - intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // multiplication calculation\n if (operator.equals(\"*\")) {\n finalnum = intnum1 * intnum2;\n finaldenom = intdenom1 * intdenom2;\n if (intnum1 == 0 || intnum2 == 0) {\n return 0 + \"\";\n }\n }\n \n // division calculation\n if (operator.equals(\"/\")) {\n finalnum = intnum1 * intdenom2;\n finaldenom = intdenom1 * intnum2;\n }\n \n // make numerator negative instead of the denominator\n if (finaldenom < 0 && finalnum > 0) {\n finaldenom *= -1;\n finalnum *= -1;\n }\n \n // convert to mixed fraction if numerator is positive\n while (finalnum / finaldenom >= 1) {\n finalnum -= finaldenom;\n finalwhole += 1;\n }\n \n // convert to mixed fraction if numerator is negative\n while (finalnum / finaldenom <= -1) {\n finalnum += finaldenom;\n finalwhole -= 1;\n }\n \n // remove signs from numerator and denominator if there is a whole number\n if (finalwhole != 0) {\n finalnum = Math.abs(finalnum);\n finaldenom = Math.abs(finaldenom);\n }\n \n // reduce fraction\n int gcd = 1;\n for (int i = 1; i <= Math.abs(finalnum) && i <= Math.abs(finaldenom); i++) {\n if (finalnum % i == 0 && finaldenom % i == 0)\n gcd = i;\n }\n finalnum /= gcd;\n finaldenom /= gcd;\n \n // final output\n if (finalwhole == 0) {\n if (finalnum == 0) {\n return \"0\";\n } else {\n return finalnum + \"/\" + finaldenom;\n }\n } else if (finalnum == 0 || finaldenom == 1) {\n return finalwhole + \"\";\n } else {\n return finalwhole + \"_\" + finalnum + \"/\" + finaldenom;\n }\n }",
"QuoteCoefficient createQuoteCoefficient();",
"@Override\n public Float calc() {\n\treturn null;\n }",
"@Override\n\tpublic void calucate(EuroMatrices Result, OFNMatchData matchData) {\n\t\t\n\t}",
"public double getResult(){\n double x;\n x= (3+Math.sqrt(9-4*3*(1-numberOfStrands)))/(2*3);\n if(x<0){\n x= (3-Math.sqrt(9-(4*3*(1-numberOfStrands))))/6;\n\n }\n numberOfLayers=(float) x;\n diameter=((2*numberOfLayers)-1)*strandDiameter;\n phaseSpacing=(float)(Math.cbrt(ab*bc*ca));\n\n netRadius=diameter/2;\n\n\n\n //SGMD calculation\n float prod=1;\n for(int rand=0;rand<spacingSub.size();rand++){\n prod*=spacingSub.get(rand);\n }\n\n //SGMD calculation\n sgmd=Math.pow((Math.pow(netRadius,subconductors)*prod*prod),1/(subconductors*subconductors));\n capacitance=((8.854e-12*2*3.14)/Math.log(phaseSpacing/sgmd));\n Log.d(\"How\",\"phase spacing:\"+phaseSpacing+\" sgmd=\"+sgmd);\n return capacitance*1000;\n\n\n }",
"double getAxon();",
"@Override\n\tpublic void calcularArea() {\n\t\t\n\t}",
"double getTotalCost();",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}",
"public String getFormula() {\n return chemicalFormula;\n }",
"public double Rule1 (double hargabaru, double kualitas){\n double alfa1 = Math.min(miuHBMahal(hargabaru), miuKualBagus(kualitas));\r\n double hasil = hasilHSMahal(alfa1);\r\n hasil = alfa1 * hasil;\r\n alfatotal = alfatotal + alfa1;\r\n System.out.println(\"Alfa1 : \"+alfa1);\r\n System.out.println(hasil);\r\n return hasil;\r\n\r\n }",
"private double calcuFcost() {\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t');\n\t}",
"static double tax( double salary ){\n\n return salary*10/100;\n\n }",
"@Test\n public void testCalculateRPNCustom() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"10\",\"2\",\"/\", \"3\", \"+\", \"*\", \"15\",\"/\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(6.4));\n }",
"private void fnMeanSale() {\n }",
"private void xSquared()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.squared ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"<T extends Formula> T typeFormula(FormulaType<T> type, Formula f);",
"public abstract void recalc();",
"protected String roleMapToFormula() {\n List<String> pieces = new ArrayList<String>();\n for ( Map.Entry<SecurityOwner, String> entry : roleBasedConstraintMap.entrySet() ) {\n SecurityOwner owner = entry.getKey();\n String formula = entry.getValue();\n\n StringBuilder formulaBuf = new StringBuilder();\n formulaBuf.append( FUNC_AND ).append( PARAM_LIST_BEGIN ).append( FUNC_IN ).append( PARAM_LIST_BEGIN ).append(\n PARAM_QUOTE ).append( owner.getOwnerName() ).append( PARAM_QUOTE ).append( PARAM_SEPARATOR ).append(\n owner.getOwnerType() == SecurityOwner.OWNER_TYPE_ROLE ? FUNC_ROLES : FUNC_USER ).append( PARAM_LIST_END )\n .append( PARAM_SEPARATOR ).append( formula ).append( PARAM_LIST_END );\n pieces.add( formulaBuf.toString() );\n\n }\n\n StringBuilder buf = new StringBuilder();\n buf.append( FUNC_OR );\n buf.append( PARAM_LIST_BEGIN );\n int index = 0;\n for ( String piece : pieces ) {\n if ( index > 0 ) {\n buf.append( PARAM_SEPARATOR );\n }\n buf.append( piece );\n index++;\n }\n buf.append( PARAM_LIST_END );\n\n logger.debug( \"singleFormula: \" + buf );\n\n return buf.toString();\n }",
"@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}"
] | [
"0.6535477",
"0.6211541",
"0.6036726",
"0.5981074",
"0.5967931",
"0.5920307",
"0.584726",
"0.58253396",
"0.58253396",
"0.5807441",
"0.5798038",
"0.5721971",
"0.57192314",
"0.57086426",
"0.5701735",
"0.56768435",
"0.56740826",
"0.56705654",
"0.5655038",
"0.5644926",
"0.56229496",
"0.561019",
"0.56087327",
"0.5576389",
"0.55414855",
"0.55356175",
"0.5532027",
"0.55169296",
"0.5515894",
"0.55133164",
"0.55026287",
"0.5497109",
"0.54902923",
"0.5487636",
"0.5483739",
"0.546825",
"0.5463891",
"0.544227",
"0.54201496",
"0.5407389",
"0.54069376",
"0.54029554",
"0.5401664",
"0.5395808",
"0.53773475",
"0.5360433",
"0.53602844",
"0.5358528",
"0.5348466",
"0.5333577",
"0.53253615",
"0.53242373",
"0.53172517",
"0.5305452",
"0.5301588",
"0.5299467",
"0.5287609",
"0.52810735",
"0.5267407",
"0.5261979",
"0.5249871",
"0.52486265",
"0.52480346",
"0.52478635",
"0.524673",
"0.5241775",
"0.5237423",
"0.52372074",
"0.5237066",
"0.52344424",
"0.5227834",
"0.52231896",
"0.5217283",
"0.5205045",
"0.5204196",
"0.5203561",
"0.5202702",
"0.5200167",
"0.51977247",
"0.51830506",
"0.51827466",
"0.5179708",
"0.5173256",
"0.51698107",
"0.5166469",
"0.5166154",
"0.5165406",
"0.51632553",
"0.51621926",
"0.5162033",
"0.51593",
"0.5154283",
"0.5154062",
"0.51518005",
"0.5143353",
"0.5140747",
"0.5139244",
"0.513902",
"0.5139001",
"0.5135616",
"0.5131248"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onConnect(BinaryLogClient client) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onCommunicationFailure(BinaryLogClient client, Exception ex) {
if (ex.getMessage()
.equals("1236 - Could not find first log file name in binary log index file")) {
// The binary log has been rotate out from the master, so we can't
// reconnect to it. Shutdown the listener, and tell the operator
// that we need to rebootstrap.
System.out.println(String.format("Binlog %s/%d is no longer available on the master. Need to re-bootstrap.",
client.getBinlogFilename(), client.getBinlogPosition()));
this.failureReason = Reason.BINLOG_NOT_AVAILABLE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onEventDeserializationFailure(BinaryLogClient client,
Exception ex) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onDisconnect(BinaryLogClient client) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Gets the "BundleCode" element | public java.lang.String getBundleCode()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUNDLECODE$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.apache.xmlbeans.XmlString xgetBundleCode()\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(BUNDLECODE$0, 0);\n return target;\n }\n }",
"public String getCode() { \n\t\treturn getCodeElement().getValue();\n\t}",
"public String getCode() {\n return (String) get(\"code\");\n }",
"java.lang.String getCode();",
"java.lang.String getCode();",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode(){\n\t\treturn code;\n\t}",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}",
"public String getCode () {\r\n\t\treturn code;\r\n\t}",
"public String getCode() {\n\t\treturn codeText.getText().toString();\n\t}",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"Code getCode();",
"public String getCode() {\n return this.code;\n }",
"public String getCode(){\n\t\treturn codeService;\n\t}",
"public String getCode() {\r\n\t\treturn code;\r\n\t}",
"public String getCode() {\r\n\t\treturn code;\r\n\t}",
"public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}",
"public String getElementCode() {\r\n\t\treturn elementCode;\r\n\t}",
"public String getElementCode() {\r\n\t\treturn elementCode;\r\n\t}",
"public String getCode()\n {\n return code;\n }",
"public String getCode() {\n return (String)getAttributeInternal(CODE);\n }",
"public CodeFragment getCode() {\n\t\treturn code;\n\t}",
"public String getCode();",
"public String getCode();",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String code() {\n return this.code;\n }",
"public String code() {\n return this.code;\n }",
"public java.lang.String getCode() {\r\n return code;\r\n }",
"String getAdditionalCode();",
"String getAdditionalCode();",
"String getAdditionalCode();",
"public String getCode() {\n return _code;\n }",
"public String getCode() {\n\t\treturn Code;\n\t}",
"public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }",
"@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}",
"@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}",
"public String getCode()\n {\n return fCode;\n }",
"public java.lang.String getSwiftCode()\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(SWIFTCODE$8, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public long getCode () {\r\n\t\treturn code;\r\n\t}",
"com.google.protobuf.ByteString\n getCodeBytes();",
"public Long getCode() {\n return code;\n }",
"public Long getCode() {\n return code;\n }",
"public long getCode() {\n return code;\n }",
"public java.lang.String getCode() {\n java.lang.Object ref = code_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n code_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"com.google.protobuf.ByteString\n getCodeBytes();",
"public java.lang.String getCode() {\n java.lang.Object ref = code_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n code_ = s;\n return s;\n }\n }",
"public String getCode(){\n\t\treturn new SmartAPIModel().getCpSourceCode(cp.getLocalName());\n\t}",
"public String getCode()\n {\n return code;\n}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }",
"public void setBundleCode(java.lang.String bundleCode)\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(BUNDLECODE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUNDLECODE$0);\n }\n target.setStringValue(bundleCode);\n }\n }",
"public String getCodeBlock() {\n return codeBlock;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }",
"public byte getCode();",
"public String getCodeId() {\r\n\t\treturn codeId;\r\n\t}",
"public int getCode() {\r\n return code;\r\n }",
"public int getCode() {\r\n return code;\r\n }",
"java.lang.String getProductCode();",
"public int getCode () {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public int getCode() {\n return code;\n }"
] | [
"0.7642744",
"0.713126",
"0.64972943",
"0.64493054",
"0.64493054",
"0.64282995",
"0.64282995",
"0.64282995",
"0.64282995",
"0.6403934",
"0.6403934",
"0.6403934",
"0.6403934",
"0.6403934",
"0.6403934",
"0.6403934",
"0.6396791",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774824",
"0.63774055",
"0.6370189",
"0.63628304",
"0.6355333",
"0.6355333",
"0.6355333",
"0.6355333",
"0.6355333",
"0.6344213",
"0.63356215",
"0.6324477",
"0.632446",
"0.632446",
"0.6319104",
"0.63128155",
"0.63128155",
"0.6308253",
"0.62985146",
"0.6297001",
"0.62953484",
"0.62953484",
"0.6293636",
"0.6293636",
"0.6293636",
"0.6293636",
"0.6293636",
"0.6293636",
"0.62935764",
"0.62935764",
"0.62720567",
"0.62588626",
"0.62588626",
"0.62588626",
"0.6255667",
"0.6242863",
"0.6210632",
"0.6205756",
"0.61993974",
"0.6150975",
"0.61150205",
"0.6089265",
"0.6087209",
"0.6034673",
"0.6034673",
"0.6020095",
"0.59819895",
"0.597251",
"0.59670615",
"0.5954734",
"0.59430325",
"0.5923978",
"0.59118354",
"0.5908601",
"0.5905331",
"0.5903069",
"0.58710194",
"0.5861183",
"0.5861183",
"0.58474696",
"0.58473194",
"0.5841661",
"0.5841661",
"0.5841661"
] | 0.8191634 | 0 |
Gets (as xml) the "BundleCode" element | public org.apache.xmlbeans.XmlString xgetBundleCode()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BUNDLECODE$0, 0);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getBundleCode()\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(BUNDLECODE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getCode() { \n\t\treturn getCodeElement().getValue();\n\t}",
"public void xsetBundleCode(org.apache.xmlbeans.XmlString bundleCode)\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(BUNDLECODE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(BUNDLECODE$0);\n }\n target.set(bundleCode);\n }\n }",
"public void setBundleCode(java.lang.String bundleCode)\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(BUNDLECODE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUNDLECODE$0);\n }\n target.setStringValue(bundleCode);\n }\n }",
"public String getElementCode() {\r\n\t\treturn elementCode;\r\n\t}",
"public String getElementCode() {\r\n\t\treturn elementCode;\r\n\t}",
"java.lang.String getCode();",
"java.lang.String getCode();",
"public org.apache.xmlbeans.XmlString xgetSwiftCode()\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(SWIFTCODE$8, 0);\n return target;\n }\n }",
"public String getCode(){\n\t\treturn codeService;\n\t}",
"String getAdditionalCode();",
"String getAdditionalCode();",
"String getAdditionalCode();",
"public String getCode() {\n return (String)getAttributeInternal(CODE);\n }",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"public String getCode(){\n\t\treturn code;\n\t}",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}",
"public String getCode () {\r\n\t\treturn code;\r\n\t}",
"public String getCode();",
"public String getCode();",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\n\t\treturn codeText.getText().toString();\n\t}",
"Code getCode();",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"com.google.protobuf.ByteString\n getCodeBytes();",
"public CodeFragment getCode() {\n\t\treturn code;\n\t}",
"public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}",
"public String getCode() {\r\n\t\treturn code;\r\n\t}",
"public String getCode() {\r\n\t\treturn code;\r\n\t}",
"public String getCode()\n {\n return code;\n }",
"public String getCode() {\n return this.code;\n }",
"public java.lang.String getSwiftCode()\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(SWIFTCODE$8, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String code() {\n return this.code;\n }",
"public String code() {\n return this.code;\n }",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public java.lang.String getCode() {\r\n return code;\r\n }",
"com.google.protobuf.ByteString\n getCodeBytes();",
"public String getCode() {\n return (String) get(\"code\");\n }",
"private String getCustCode(String xmlResponse) {\r\n\t\t\r\n\t\tString custCode = \"\"; \r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement data = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\t\r\n\t\t\t//sets the subscriber name\r\n\t\t\tElement customerInfo = DOMUtils.getElement(data, \"customer\", true);\r\n\t\t\tcustomerInfo = DOMUtils.getElement(customerInfo, \"code\", true);\r\n\t\t\r\n\t\t\tcustCode = DOMUtils.getText(customerInfo).toString();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\t\r\n\t\t\r\n\t\treturn custCode;\r\n\r\n\t}",
"@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}",
"public String getCode() {\n\t\treturn Code;\n\t}",
"public String getCode() {\n return _code;\n }",
"@Override\r\n\tpublic List getCodeType() throws Exception {\n\t\treturn codeMasterService.getCodeType();\r\n\t}",
"public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }",
"java.lang.String getCodeName();",
"java.lang.String getProductCode();",
"public String getCode()\n {\n return fCode;\n }",
"public String getCode(){\n\t\treturn new SmartAPIModel().getCpSourceCode(cp.getLocalName());\n\t}",
"public String getCode()\n {\n return code;\n}",
"public String getAppCode()\n\t{\n\t\treturn appCode;\n\t}",
"public BundleDescription getBundle() {\n \t\treturn bundle;\n \t}",
"File getBundle();",
"public java.lang.String getXml();",
"public String getBundleId() {\n return this.bundleId;\n }",
"public ST getProductServiceCodeDescription() { \r\n\t\tST retVal = this.getTypedField(9, 0);\r\n\t\treturn retVal;\r\n }",
"@Override\n\t@XmlElement\n\tpublic void setCtarCode(String ctarCode) {\n\t\t\n\t}",
"@Override\n\t@XmlElement\n\tpublic void setAutoCode(String autoCode) {\n\t\t\n\t}",
"public String getCodeset ()\r\n\t{\r\n\t\treturn codeset;\r\n\t}",
"@Override\r\n public String allCodes() {\r\n String allCodeStr = \"\";\r\n if (root == null || root.getChildrenMap().size() == 0) {\r\n return null;\r\n }\r\n List<String> answer = new ArrayList<String>();\r\n allCodesHelper(root, \"\", answer);\r\n for (String string : answer) {\r\n allCodeStr += string + \"\\n\";\r\n }\r\n return allCodeStr;\r\n }",
"public abstract String getFullCode();",
"@Override\n\tpublic String getDesignation() {\n\t\treturn code;\n\t}",
"@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}"
] | [
"0.76122385",
"0.63526446",
"0.58927745",
"0.5835657",
"0.5722841",
"0.5722841",
"0.5694685",
"0.5694685",
"0.56523305",
"0.5648416",
"0.56179434",
"0.56179434",
"0.56179434",
"0.56177133",
"0.5615425",
"0.5615425",
"0.5615425",
"0.5615425",
"0.5615425",
"0.5592488",
"0.5588936",
"0.5588936",
"0.5588936",
"0.5588936",
"0.5573672",
"0.55683637",
"0.5558351",
"0.5558351",
"0.5552941",
"0.5552941",
"0.5552941",
"0.5552941",
"0.5552941",
"0.5552941",
"0.5552941",
"0.5543149",
"0.5534228",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.55210924",
"0.5519493",
"0.55159366",
"0.5492938",
"0.54791933",
"0.54791933",
"0.5440963",
"0.5440295",
"0.5438273",
"0.5437647",
"0.5437647",
"0.54374266",
"0.54374266",
"0.54374266",
"0.54374266",
"0.54374266",
"0.54374266",
"0.54237896",
"0.54195935",
"0.5418562",
"0.5392659",
"0.53915125",
"0.5388761",
"0.53862506",
"0.53631043",
"0.53512007",
"0.53429794",
"0.5341906",
"0.5323294",
"0.53084975",
"0.52970266",
"0.52963483",
"0.52892715",
"0.5284084",
"0.5283894",
"0.52716756",
"0.526241",
"0.5245222",
"0.523856",
"0.5219265",
"0.5209279",
"0.5208049",
"0.520337",
"0.51893777"
] | 0.7534073 | 1 |
Sets the "BundleCode" element | public void setBundleCode(java.lang.String bundleCode)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BUNDLECODE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUNDLECODE$0);
}
target.setStringValue(bundleCode);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void xsetBundleCode(org.apache.xmlbeans.XmlString bundleCode)\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(BUNDLECODE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(BUNDLECODE$0);\n }\n target.set(bundleCode);\n }\n }",
"void setCode(String code);",
"public void setCode(byte[] code);",
"public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }",
"public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }",
"public void setCode(Code code) {\n this.Code = code;\n }",
"public void setCode(String code)\n {\n this.code = code;\n }",
"public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }",
"public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }",
"@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}",
"public void setCode(String code){\n\t\tthis.code = code;\n\t}",
"public void setCode(String cod){\n\t\tcodeService = cod;\n\t}",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(java.lang.String code) {\r\n this.code = code;\r\n }",
"public void setCode(String code) {\n\t\tCode = code;\n\t}",
"public Builder setCode(int value) {\n bitField0_ |= 0x00000001;\n code_ = value;\n onChanged();\n return this;\n }",
"public void setAppCode(String appCode)\n\t{\n\t\tthis.appCode = Toolbox.trim(appCode, 3);\n\t}",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public final void setCode(java.lang.String code)\n\t{\n\t\tsetCode(getContext(), code);\n\t}",
"public void setElementCode(String elementCode) {\r\n\t\tthis.elementCode = elementCode;\r\n\t}",
"public void setElementCode(String elementCode) {\r\n\t\tthis.elementCode = elementCode;\r\n\t}",
"public Builder setCode(int value) {\n\n code_ = value;\n onChanged();\n return this;\n }",
"public void setCode(String code) {\n\t\tthis.code = code;\n\t}",
"public void setCode(String code) {\n\t\tthis.code = code;\n\t}",
"public void setCode(int code) {\n this.code = code;\n }",
"public void setCode(int code) {\n this.code = code;\n }",
"public java.lang.String getBundleCode()\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(BUNDLECODE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public void setSwiftCode(java.lang.String swiftCode)\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(SWIFTCODE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SWIFTCODE$8);\n }\n target.setStringValue(swiftCode);\n }\n }",
"public void setCode(long value) {\n this.code = value;\n }",
"public abstract void setNativeCodeDescriptions(SortedSet<NativeCodeDescription> nativeCodeDescriptions) throws BundleException;",
"public int set_code(String b);",
"public void setDataCode(String dataCode);",
"public final void setCode(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String code)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Code.toString(), code);\n\t}",
"public Builder setCodeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n code_ = value;\n onChanged();\n return this;\n }",
"public void setCode(String code) {\n\t\tthis.code = code == null ? null : code.trim();\n\t}",
"public void setCodeList(CodeList codeList) {\r\n\t\tthis.codeList = codeList;\r\n\t}",
"public void setCodeBlock(String codeBlock) {\n this.codeBlock = codeBlock;\n }",
"public void setCodeset (String codeset)\r\n\t{\r\n\t\tthis.codeset = codeset;\r\n\t}",
"public void setCompCode(String value) {\n setAttributeInternal(COMPCODE, value);\n }",
"void setCode(Integer aCode);",
"public void setCode(Integer code) {\n this.code = code;\n }",
"public void setCode(Long code) {\n this.code = code;\n }",
"public void setCode(Long code) {\n this.code = code;\n }",
"public String setCode() {\n\t\treturn null;\n\t}",
"void setCodes(Code[] codes);",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"void setProductCode(java.lang.String productCode);",
"public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }",
"public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }",
"public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }",
"public Builder setCodeId(long value) {\n \n codeId_ = value;\n onChanged();\n return this;\n }",
"public Builder setCodeId(long value) {\n \n codeId_ = value;\n onChanged();\n return this;\n }",
"public Builder setCodeId(long value) {\n \n codeId_ = value;\n onChanged();\n return this;\n }",
"public void setCode (java.lang.Long code) {\r\n\t\tthis.code = code;\r\n\t}",
"public Builder setByteCode(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n byteCode_ = value;\n onChanged();\n return this;\n }",
"public void xsetSwiftCode(org.apache.xmlbeans.XmlString swiftCode)\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(SWIFTCODE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SWIFTCODE$8);\n }\n target.set(swiftCode);\n }\n }",
"@Override\n\t@XmlElement\n\tpublic void setCtarCode(String ctarCode) {\n\t\t\n\t}",
"IPayerEntry setCode(CD value);",
"protected void setCode(@Code int code) {\n\t\tthis.mCode = code;\n\t}",
"void setCode(LineLoader in) {\n code=in;\n }",
"public void setCode(BizCodeEnum code) {\n this.code = code;\n }",
"public Builder setCodeName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n codeName_ = value;\n onChanged();\n return this;\n }",
"public void setClassCode(java.lang.String classCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSCODE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CLASSCODE$30);\n }\n target.setStringValue(classCode);\n }\n }",
"public void setCodeSet(String codeset) {\n\t\tthis.codeset = codeset;\n\t}",
"public void setMainCode(Long mainCode) {\n this.mainCode = mainCode;\n }",
"public void code (String code) throws LuchthavenException\r\n\t{\r\n\t\tluchthaven.setCode(code);\r\n\t}",
"public void setCodeId(String codeId) {\r\n\t\tthis.codeId = codeId == null ? null : codeId.trim();\r\n\t}",
"public org.apache.xmlbeans.XmlString xgetBundleCode()\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(BUNDLECODE$0, 0);\n return target;\n }\n }",
"@Override\n\t@XmlElement\n\tpublic void setSextCode(String sextCode) {\n\t\t\n\t}",
"private void setCode(JsonElement element) {\n if (element instanceof JsonPrimitive) {\n setCode(element.getAsInt());\n }\n }",
"public void setBookCode(java.lang.String value);",
"@Override\n\t@XmlElement\n\tpublic void setAutoCode(String autoCode) {\n\t\t\n\t}",
"public void setCodeField(java.lang.String codeField) {\n this.codeField = codeField;\n }",
"public Builder setWasmByteCode(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n wasmByteCode_ = value;\n onChanged();\n return this;\n }",
"public Builder setCodeNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n codeName_ = value;\n onChanged();\n return this;\n }",
"void setCodeBreak(gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak codeBreak);",
"public void setCode(final int code) {\n this.code = code;\n commited = true;\n }",
"public void setCode(org.hl7.fhir.CodeableConcept code)\n {\n generatedSetterHelperImpl(code, CODE$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setStateCode(String value) {\n setAttributeInternal(STATECODE, value);\n }",
"public void setDictContentCode(String value) {\r\n setAttributeInternal(DICTCONTENTCODE, value);\r\n }",
"public void setLBR_ProtestCode (String LBR_ProtestCode);",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }"
] | [
"0.76934206",
"0.711485",
"0.69061387",
"0.67365986",
"0.6685361",
"0.6678239",
"0.64982444",
"0.6494094",
"0.6480408",
"0.64770544",
"0.64307857",
"0.64089566",
"0.6405103",
"0.6393497",
"0.6393497",
"0.6393497",
"0.6393497",
"0.6393497",
"0.6393497",
"0.6385016",
"0.6384733",
"0.6347915",
"0.63389033",
"0.62961876",
"0.62961876",
"0.62961876",
"0.6267437",
"0.6251912",
"0.6251912",
"0.6228002",
"0.6213869",
"0.6213869",
"0.62039274",
"0.62039274",
"0.61881334",
"0.61429805",
"0.6141567",
"0.6092398",
"0.6066128",
"0.6013006",
"0.60127884",
"0.6008104",
"0.60035396",
"0.5997623",
"0.5980271",
"0.597321",
"0.5972075",
"0.59676784",
"0.59270114",
"0.59255",
"0.59255",
"0.59241205",
"0.59135795",
"0.59011966",
"0.59011966",
"0.59011966",
"0.59011966",
"0.59011966",
"0.59011966",
"0.59011966",
"0.59011966",
"0.59011966",
"0.5898131",
"0.58949614",
"0.58949614",
"0.58949614",
"0.58595425",
"0.58595425",
"0.58595425",
"0.5836791",
"0.581233",
"0.57965046",
"0.5779914",
"0.577507",
"0.5774724",
"0.57746786",
"0.5767708",
"0.5756725",
"0.5731735",
"0.5723745",
"0.5719788",
"0.5709887",
"0.5690195",
"0.5682157",
"0.56813484",
"0.56779635",
"0.56755376",
"0.56199735",
"0.56036943",
"0.55975914",
"0.5597344",
"0.55889726",
"0.5567242",
"0.5565501",
"0.55482346",
"0.554763",
"0.55336624",
"0.55270493",
"0.55270493",
"0.55270493"
] | 0.7965197 | 0 |
Sets (as xml) the "BundleCode" element | public void xsetBundleCode(org.apache.xmlbeans.XmlString bundleCode)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BUNDLECODE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(BUNDLECODE$0);
}
target.set(bundleCode);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBundleCode(java.lang.String bundleCode)\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(BUNDLECODE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BUNDLECODE$0);\n }\n target.setStringValue(bundleCode);\n }\n }",
"void setCode(String code);",
"public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }",
"public void setCode(byte[] code);",
"@Override\n\t@XmlElement\n\tpublic void setAutoCode(String autoCode) {\n\t\t\n\t}",
"public java.lang.String getBundleCode()\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(BUNDLECODE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"@Override\n\t@XmlElement\n\tpublic void setCtarCode(String ctarCode) {\n\t\t\n\t}",
"@Override\n\t@XmlElement\n\tpublic void setSextCode(String sextCode) {\n\t\t\n\t}",
"public void setCode(Code code) {\n this.Code = code;\n }",
"public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }",
"public org.apache.xmlbeans.XmlString xgetBundleCode()\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(BUNDLECODE$0, 0);\n return target;\n }\n }",
"public void setElementCode(String elementCode) {\r\n\t\tthis.elementCode = elementCode;\r\n\t}",
"public void setElementCode(String elementCode) {\r\n\t\tthis.elementCode = elementCode;\r\n\t}",
"public void setCode(String cod){\n\t\tcodeService = cod;\n\t}",
"public void setCode(String code)\n {\n this.code = code;\n }",
"public void setAppCode(String appCode)\n\t{\n\t\tthis.appCode = Toolbox.trim(appCode, 3);\n\t}",
"public abstract void setNativeCodeDescriptions(SortedSet<NativeCodeDescription> nativeCodeDescriptions) throws BundleException;",
"public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}",
"@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}",
"public void setSwiftCode(java.lang.String swiftCode)\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(SWIFTCODE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SWIFTCODE$8);\n }\n target.setStringValue(swiftCode);\n }\n }",
"public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }",
"public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }",
"public void setCode(String code){\n\t\tthis.code = code;\n\t}",
"public void xsetSwiftCode(org.apache.xmlbeans.XmlString swiftCode)\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(SWIFTCODE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SWIFTCODE$8);\n }\n target.set(swiftCode);\n }\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n\t\tCode = code;\n\t}",
"public void setCode(java.lang.String code) {\r\n this.code = code;\r\n }",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public Builder setCode(int value) {\n bitField0_ |= 0x00000001;\n code_ = value;\n onChanged();\n return this;\n }",
"public void setCompCode(String value) {\n setAttributeInternal(COMPCODE, value);\n }",
"public Builder setCode(int value) {\n\n code_ = value;\n onChanged();\n return this;\n }",
"public void setCode(int code) {\n this.code = code;\n }",
"public void setCode(int code) {\n this.code = code;\n }",
"public int set_code(String b);",
"public final void setCode(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String code)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Code.toString(), code);\n\t}",
"public void setCode(String code) {\n\t\tthis.code = code;\n\t}",
"public void setCode(String code) {\n\t\tthis.code = code;\n\t}",
"public final void setCode(java.lang.String code)\n\t{\n\t\tsetCode(getContext(), code);\n\t}",
"void setProductCode(java.lang.String productCode);",
"@Override\n\t@XmlElement\n\tpublic void setExtrCode(String extrCode) {\n\t\t\n\t}",
"public void setClassCode(java.lang.String classCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSCODE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CLASSCODE$30);\n }\n target.setStringValue(classCode);\n }\n }",
"public void setCodeset (String codeset)\r\n\t{\r\n\t\tthis.codeset = codeset;\r\n\t}",
"void setCode(Integer aCode);",
"public void setDataCode(String dataCode);",
"public void setCode(long value) {\n this.code = value;\n }",
"public String setCode() {\n\t\treturn null;\n\t}",
"@Override\n\t@XmlElement\n\tpublic void setAreaCode(String areaCode) {\n\t\t\n\t}",
"@Override\n\t@XmlElement\n\tpublic void setStreetCode(String streetCode) {\n\t\t\n\t}",
"public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }",
"public void setBookCode(java.lang.String value);",
"public void setCode(Integer code) {\n this.code = code;\n }",
"public void setCode(String code) {\n\t\tthis.code = code == null ? null : code.trim();\n\t}",
"void setCodes(Code[] codes);",
"public void setCodeList(CodeList codeList) {\r\n\t\tthis.codeList = codeList;\r\n\t}",
"public Builder setCodeId(long value) {\n \n codeId_ = value;\n onChanged();\n return this;\n }",
"public Builder setCodeId(long value) {\n \n codeId_ = value;\n onChanged();\n return this;\n }",
"public Builder setCodeId(long value) {\n \n codeId_ = value;\n onChanged();\n return this;\n }",
"public Builder setCodeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n code_ = value;\n onChanged();\n return this;\n }",
"public void setCodeSet(String codeset) {\n\t\tthis.codeset = codeset;\n\t}",
"IPayerEntry setCode(CD value);",
"public void setCode(BizCodeEnum code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }",
"public void setCode(Long code) {\n this.code = code;\n }",
"public void setCode(Long code) {\n this.code = code;\n }",
"protected void setCode(@Code int code) {\n\t\tthis.mCode = code;\n\t}",
"public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }",
"public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }",
"public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }",
"public Builder setByteCode(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n byteCode_ = value;\n onChanged();\n return this;\n }",
"private void setStatusCode(int code)\n {\n if(null == m_ElementStatus)\n m_ElementStatus = PSFUDDocMerger.createChildElement(m_Element,\n IPSFUDNode.ELEM_STATUS);\n\n if(null == m_ElementStatus) //never happens\n return;\n\n String tmp = null;\n try\n {\n tmp = Integer.toString(IPSFUDNode.STATUS_CODE_NORMAL); //default value\n tmp = Integer.toString(code);\n }\n catch(NumberFormatException e)\n {\n if(null == tmp) //should never happen\n tmp = \"\";\n }\n m_ElementStatus.setAttribute(IPSFUDNode.ATTRIB_CODE, tmp);\n }",
"public void setLBR_ProtestCode (String LBR_ProtestCode);",
"public Builder setCodeName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n codeName_ = value;\n onChanged();\n return this;\n }",
"public void setBundle(boolean value) {\r\n this.bundle = value;\r\n }",
"public void setProductCode(String productCode) {\r\n/* 427 */ this._productCode = productCode;\r\n/* */ }",
"public void setlbr_Barcode2 (String lbr_Barcode2);",
"public void setShortCode(String value) {\n setAttributeInternal(SHORTCODE, value);\n }",
"public void setStateCode(String value) {\n setAttributeInternal(STATECODE, value);\n }",
"public void setCode (java.lang.Long code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setDictContentCode(String value) {\r\n setAttributeInternal(DICTCONTENTCODE, value);\r\n }",
"public void setVersionCode(final String versionCode) {\n setAttributeValue(ATTRIBUTE_VERSION_CODE, versionCode);\n }",
"public void setCodeId(String codeId) {\r\n\t\tthis.codeId = codeId == null ? null : codeId.trim();\r\n\t}",
"public void setIdCode(String idCode) {\n this.idCode = idCode == null ? null : idCode.trim();\n }",
"public void setBundleName(java.lang.String param){\n localBundleNameTracker = true;\n \n this.localBundleName=param;\n \n\n }",
"public void setBarCode(String barCode) {\n this.barCode = barCode;\n }",
"public String getCode() {\n return code;\n }"
] | [
"0.7736695",
"0.6558844",
"0.62918365",
"0.62908417",
"0.6232612",
"0.62141436",
"0.6152337",
"0.61477387",
"0.6084326",
"0.60778743",
"0.6046098",
"0.60006744",
"0.60006744",
"0.5957544",
"0.5949111",
"0.5936121",
"0.5935601",
"0.59185445",
"0.59179246",
"0.5909597",
"0.5908728",
"0.589828",
"0.5886633",
"0.585665",
"0.58345103",
"0.58345103",
"0.58345103",
"0.58345103",
"0.58345103",
"0.58345103",
"0.58164036",
"0.5788741",
"0.5748804",
"0.5748804",
"0.5748804",
"0.5720262",
"0.5689708",
"0.56827277",
"0.5681448",
"0.5681448",
"0.5670162",
"0.56672347",
"0.5662037",
"0.5662037",
"0.56568986",
"0.5654606",
"0.560296",
"0.5602241",
"0.5575488",
"0.5570989",
"0.55609727",
"0.55455875",
"0.5521676",
"0.5510155",
"0.55029833",
"0.5485103",
"0.54456",
"0.5438882",
"0.5417535",
"0.5413328",
"0.53906524",
"0.53888637",
"0.53888637",
"0.53888637",
"0.53594977",
"0.53226626",
"0.5315176",
"0.53066427",
"0.5299662",
"0.5299662",
"0.5299662",
"0.5299662",
"0.5299662",
"0.5299662",
"0.5299662",
"0.5299662",
"0.5299662",
"0.5297928",
"0.5297928",
"0.5297014",
"0.529623",
"0.529623",
"0.529623",
"0.52833617",
"0.52595955",
"0.525179",
"0.5245309",
"0.5242603",
"0.5239452",
"0.52334774",
"0.5215373",
"0.5209856",
"0.52035546",
"0.5202156",
"0.51972187",
"0.518927",
"0.51865435",
"0.51810926",
"0.51713234",
"0.5169993"
] | 0.7767111 | 0 |
Gets the "DataCustom" element | public amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom getDataCustom()
{
synchronized (monitor())
{
check_orphaned();
amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;
target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);
if (target == null)
{
return null;
}
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCustomData() {\r\n\t\treturn customData;\r\n\t}",
"public amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom getDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public abstract Object getCustomData();",
"public java.lang.String getCustom() {\r\n return custom;\r\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public String getCustomData()\n\t{\n\t\tif (mLastBundle == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\treturn mLastBundle.getString(\"u\");\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCustomInstrumentationData() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get());\n }",
"public amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom addNewDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n return target;\n }\n }",
"public Element getData()\n {\n // Ask the generic configuration's holder to export the list of specific\n // configuration's data.\n ArrayList<Element> specific_data = this._toXml_();\n\n // Build the specific configuration.\n Element generic = new Element(\"data\");\n for (int index = 0; index < specific_data.size(); index++)\n {\n generic.addContent(specific_data.get(index));\n }\n\n return generic;\n }",
"public Collection<CustomHudElement> getCustomElements();",
"public amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom addNewDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n return target;\n }\n }",
"public com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData to1411CustomData() {\n com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData custom = new com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData();\n custom.setAny(this.any);\n return custom;\n }",
"@Override\r\n\tpublic String getCustomInfo() {\n\t\treturn null;\r\n\t}",
"x0401.oecdStandardAuditFileTaxPT1.CustomsDetails getCustomsDetails();",
"public List<Element> getCustomElements() {\r\n return customElements;\r\n }",
"public Object getData() {\n\t\t\treturn null;// this.element;\n\t\t}",
"public String getAdditionalData() {\n return additionalData;\n }",
"Map<String, String> getCustomMetadata();",
"public T getElement() {\n\t return myData;\n }",
"public CustomXmlElement get(String manifestId, String periodId, String customXmlElementId) throws BitmovinException {\n try {\n return this.apiClient.get(manifestId, periodId, customXmlElementId).getData().getResult();\n } catch (Exception ex) {\n throw buildBitmovinException(ex);\n }\n }",
"public void setCustomData(final String customData) {\r\n\t\tthis.customData = customData;\r\n\t}",
"public Object getElement()\n {return data;}",
"public Element getOperationCustom(String _lookingfor) {\n Optional<Element> p = cCollection.stream()\n .filter(e -> ((NamedElement) e).getName().equals(_lookingfor))\n .findFirst();//.get();\n if (p.hashCode() != 0) {\n return p.get();\n }\n else {\n return null;\n }\n }",
"@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}",
"public String getCustomTag(String pTagName) {\n\t\tassert pTagName != null;\n\t\tpTagName = pTagName.toUpperCase();\n\t\tif (aCustomTags.containsKey(pTagName)) {\n\t\t\treturn aCustomTags.get(pTagName);\n\t\t} else {\n\t\t\tthrow new NoSuchFieldError();\n\t\t}\n\t}",
"@Override\n\tpublic Meta_data get_Meta_data() {\n\t\tMeta_data meta_data = new Meta_data_layer(elements);\n\t\treturn meta_data;\n\t}",
"public String getData() {\n\t\treturn getAttribute(DATA_TAG);\n\t}",
"public String getCustomHeader() {\n return this.customHeader;\n }",
"com.google.protobuf.StringValue getCustomValue();",
"public void setDataCustom(amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }",
"public boolean isSetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACUSTOM$2) != 0;\n }\n }",
"public boolean isSetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACUSTOM$2) != 0;\n }\n }",
"public Map<String, String> customDetails() {\n return this.innerProperties() == null ? null : this.innerProperties().customDetails();\n }",
"public java.lang.String getMpCustom() {\r\n return mpCustom;\r\n }",
"public DataXml getDataXml() {\r\n return this.dataXml;\r\n }",
"public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}",
"public String getCustomData(String key, String defaultValue){\n try{\n return customData.getString(key);\n }catch (Exception ignore){\n\n }\n\n return defaultValue;\n }",
"public SchemaCustom getSchemaCustom() {\n return m_schemaCustom;\n }",
"public void setDataCustom(amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }",
"public Map<String, String> getAdditionalData() {\n return additionalData;\n }",
"public E getElement()\n {\n return this.data;\n }",
"public String getKMLExtendedData(){\r\n String exData = \"\";\r\n for (int i = 0; i<attributes.size(); i++){\r\n String exDataRow = \"<Data name=\\\"\"+attributes.get(i).getAttName()+\"\\\"><value>\"+attributes.get(i).getAttValue()+\"</value></Data>\\n\";\r\n exData = exData+exDataRow;\r\n }\r\n return exData;\r\n }",
"public CSVCustomFormat getCustomFormatData() {\n return csvCustomFormat.getValue();\n }",
"public GenericItemType getData() {\n return this.data;\n }",
"@ApiModelProperty(example = \"\\\"\\\"\", required = true, value = \"Sets additional data to be embedded in PDF Meta.\")\n @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA_FIELD)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getAdditionalDataField() {\n return additionalDataField;\n }",
"public E getElement()\n\t{\n\t\treturn this.data;\n\t}",
"public com.google.api.CustomHttpPattern getCustom() {\n return instance.getCustom();\n }",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public Object getData(){\n\t\treturn this.data;\n\t}",
"DataElement createDataElement();",
"DeclaredCustomsValueAmountType getDeclaredCustomsValueAmount();",
"public vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemCustom getCustom() {\n return custom;\n }",
"public List<VueMetadataElement> getXMLdata() {\n // TODO: FIX\n // if (isEmpty())\n // return null;\n // else\n return dataList;\n }",
"public int getTag(String specificData) {\r\n return dataTag.get(this.getPosition(specificData));\r\n }",
"public HashMap<String, String> getCustomMessageProperties() {\n return this.customMessageProperties;\n }",
"public JSONObject getCustomParameters() {\n\n\t\treturn customParameters;\n\t}",
"com.google.protobuf.StringValueOrBuilder getCustomValueOrBuilder();",
"public String getData() {\r\n return this.data;\r\n }",
"@Override\n\tpublic String getExtraData() {\n\t\treturn null;\n\t}",
"public Object getData() {\r\n if (data != null) {\r\n return data;\r\n }\r\n ValueBinding vb = getValueBinding(\"data\");\r\n if (vb != null) {\r\n return vb.getValue(getFacesContext());\r\n } else {\r\n \r\n if(!Beans.isDesignTime()){\r\n setChartTitle(getChartTitle() + \" with default data\");\r\n }\r\n return DEFAULT_DATA;\r\n }\r\n }",
"RecordDataSchema getCollectionCustomMetadataSchema();",
"DataElement getFromCache(String dataElementName);",
"public String data() {\n return this.data;\n }",
"public String getAccountNameCustom() {\n\t\tSystem.out.println(keypad.SelectAccountNameCustom.getText());\n\t\treturn keypad.SelectAccountNameCustom.getText();\n\t}",
"public DataTypeElements getDataTypeAccess() {\n\t\treturn (pDataType != null) ? pDataType : (pDataType = new DataTypeElements());\n\t}",
"public com.ipcommerce.schemas.CWS.v2_0.Transactions.PersonalInfo getAdditionalBillingData() {\n return additionalBillingData;\n }",
"public DataItem getData() {\n return data;\n }",
"public String getData() {\n\t\treturn this.data;\n\t}",
"public String getData() {\n return coreValue();\n }",
"public Object data() {\n return this.data;\n }",
"public StructuredData getStructuredDataAttribute();",
"public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}",
"public ObservableList<MapItemData> getAdditionalData() {\n\n\t\treturn additionalData;\n\n\t}",
"public ISlideDataElement getSlideDataElement(int row, int col);",
"public com.commercetools.history.models.common.LocalizedString getCustomLineItem() {\n return this.customLineItem;\n }",
"@java.lang.Override\n public godot.wire.Wire.Value getData() {\n return data_ == null ? godot.wire.Wire.Value.getDefaultInstance() : data_;\n }",
"public Map<String, String> getOrCreateAdditionalData() {\n if (this.getAdditionalData() == null) {\n this.setAdditionalData(new HashMap<String, String>());\n }\n\n return this.getAdditionalData();\n }",
"public DataInterface getInnerData(String propertyName) {\n\t\treturn null;\r\n\t}",
"Object getData() { /* package access */\n\t\treturn data;\n\t}",
"@Override\n @XmlElement(name = \"dataset\")\n public synchronized String getDataset() {\n return dataset;\n }",
"Object getData();",
"Object getData();",
"@Nullable\n public Map<String, List<String>> getCustomFlags() {\n return mCustomFlags;\n }",
"public T getData() {\n return this.data;\n }",
"private JSONObject joinAdditionalData() {\n JSONObject additionalData = new JSONObject();\n\n try {\n if (mMessageChannel != null) {\n additionalData.put(IPC_MESSAGE_DATA_CHANNELBASEURL,\n \"ws://\" + mFlintServerIp + \":9439/channels/\"\n + mMessageChannel.getName());\n }\n\n if (mCustAdditionalData != null) {\n additionalData.put(\"customData\", mCustAdditionalData);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (additionalData.length() > 0) {\n return additionalData;\n }\n\n return null;\n }",
"public Object getData();",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}",
"public void setCustom(java.lang.String custom) {\r\n this.custom = custom;\r\n }",
"java.lang.String getData();",
"public ContentSpan getData(){\n return this.data;\n }",
"@Override\n public String getData()\n {\n return null;\n }",
"@Override\n public String getData() {\n return \"T \" + super.getData();\n }",
"DataMap getCustomAnnotations();",
"public T getData()\n\t{\n\t\treturn this.data;\n\t}",
"public E getData(){\n\t\t\treturn data;\n\t\t}",
"public DerivedWord getData() {\n \treturn this.data;\n }"
] | [
"0.765603",
"0.75295895",
"0.7047645",
"0.6696511",
"0.66214734",
"0.66214734",
"0.65965796",
"0.6351781",
"0.6349619",
"0.61088526",
"0.60590345",
"0.60310096",
"0.5882736",
"0.58313537",
"0.5831025",
"0.580874",
"0.58066815",
"0.58032566",
"0.5721989",
"0.5721418",
"0.561765",
"0.5593791",
"0.5592253",
"0.5585493",
"0.55769664",
"0.55738896",
"0.55478626",
"0.5543163",
"0.5541955",
"0.5532473",
"0.55073386",
"0.547646",
"0.547646",
"0.5444711",
"0.5420805",
"0.54118985",
"0.54104066",
"0.54003584",
"0.5394519",
"0.53775936",
"0.5330553",
"0.5320371",
"0.5279707",
"0.52485585",
"0.5201735",
"0.51903063",
"0.5187955",
"0.5184024",
"0.518172",
"0.518172",
"0.5178772",
"0.51653284",
"0.5150311",
"0.51279545",
"0.5093045",
"0.5079461",
"0.5067229",
"0.50596815",
"0.50379646",
"0.5026022",
"0.50249547",
"0.5017757",
"0.50138575",
"0.5011319",
"0.50058013",
"0.4994302",
"0.49804366",
"0.49743602",
"0.49623418",
"0.4958705",
"0.49582207",
"0.49567038",
"0.49443123",
"0.4944078",
"0.4938334",
"0.49319243",
"0.49270257",
"0.49210715",
"0.49113026",
"0.49041992",
"0.49020952",
"0.49015746",
"0.4892457",
"0.4892457",
"0.48888123",
"0.4883406",
"0.48797235",
"0.487781",
"0.48761627",
"0.48761627",
"0.48754796",
"0.48715875",
"0.4870315",
"0.4867608",
"0.48667735",
"0.48609304",
"0.48597047",
"0.48587143",
"0.4854968",
"0.48522246"
] | 0.79697543 | 0 |
True if has "DataCustom" element | public boolean isSetDataCustom()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DATACUSTOM$2) != 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasCustom();",
"boolean hasCustomValue();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"public boolean hasData();",
"@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }",
"@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }",
"boolean hasDataName();",
"public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\n }",
"boolean isSetCustomsDetails();",
"public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\n }",
"boolean hasData2();",
"boolean hasData2();",
"boolean hasData1();",
"boolean hasData1();",
"public boolean hasData() {\r\n\t\treturn page.hasContent();\r\n\t}",
"public boolean isSetCustomValues() {\n return this.customValues != null;\n }",
"public boolean isSetCustomValues() {\n return this.customValues != null;\n }",
"public boolean isSetCustomValues() {\n return this.customValues != null;\n }",
"public boolean hasData() {\n return (tags != null && tags.length() > 0);\n }",
"boolean hasCustomFeatures();",
"public boolean isData();",
"public boolean isMaybePresentData() {\n checkNotUnknown();\n if (isPolymorphic())\n return (flags & PRESENT_DATA) != 0;\n else\n return (flags & PRIMITIVE) != 0 || num != null || str != null || object_labels != null;\n }",
"public boolean isSetData() {\n return this.data != null;\n }",
"public boolean hasDataFields() {\n\t\tif (this.dataFields.size() > 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean hasCustomName() {\n return this.customName != null && !this.customName.isEmpty();\n }",
"boolean hasMetaData();",
"public boolean isContained(T aData){\r\n return this.findNodeWith(aData) != null;\r\n }",
"public boolean isSetExtraDataMap() {\n return this.extraDataMap != null;\n }",
"public boolean isSetExtraData1() {\n return this.extraData1 != null;\n }",
"@java.lang.Override\n public boolean hasDataItemPayload() {\n return dataItemPayload_ != null;\n }",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasAttributes();",
"boolean hasAttributes();",
"boolean hasMeta();",
"public abstract boolean promulgationDataDefined();",
"public boolean isData() {return true; }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean is_set_data() {\n return this.data != null;\n }",
"public boolean is_set_data() {\n return this.data != null;\n }",
"boolean hasDataPartner();",
"public boolean hasData() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"@java.lang.Override\n public boolean hasMetadata() {\n return instance.hasMetadata();\n }",
"boolean isCustom(Object custom);",
"boolean hasMetadataJson();",
"boolean hasDataset();",
"public boolean hasData() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean isSetDatas() {\n return this.datas != null;\n }",
"public boolean isSetDatas() {\n return this.datas != null;\n }",
"boolean hasMetadataFields();",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasMetadata() {\n return metadata_ != null;\n }",
"@java.lang.Override\n public boolean hasMetadata() {\n return metadata_ != null;\n }",
"@java.lang.Override\n public boolean hasMetadata() {\n return metadata_ != null;\n }",
"@java.lang.Override\n public boolean hasMetadata() {\n return metadata_ != null;\n }",
"public boolean hasCustomCodeSections() {\n\t\treturn m_customCodeSections != null && !m_customCodeSections.isEmpty();\n\t}",
"public boolean isSetExtraData2() {\n return this.extraData2 != null;\n }",
"boolean hasTagValue();",
"boolean hasCustomInterest();",
"@Override\n public boolean isDefined()\n {\n return getValue() != null || getChildrenCount() > 0\n || getAttributeCount() > 0;\n }"
] | [
"0.73135936",
"0.69700086",
"0.6965876",
"0.6965876",
"0.6965876",
"0.6965876",
"0.6965876",
"0.6965876",
"0.6965876",
"0.696216",
"0.6851535",
"0.6817955",
"0.6812834",
"0.6659328",
"0.66206235",
"0.65994895",
"0.65522516",
"0.65522516",
"0.65352666",
"0.65352666",
"0.6485921",
"0.64850175",
"0.64850175",
"0.64850175",
"0.6468805",
"0.63792616",
"0.6378303",
"0.6375209",
"0.63670975",
"0.6335198",
"0.6282737",
"0.6271658",
"0.62617505",
"0.62189317",
"0.6211108",
"0.6195886",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61936074",
"0.61754864",
"0.61754864",
"0.6168429",
"0.61668515",
"0.6156233",
"0.6108824",
"0.61086744",
"0.60968566",
"0.60968566",
"0.609552",
"0.60836697",
"0.60830605",
"0.60827726",
"0.60821205",
"0.6080767",
"0.60791796",
"0.6066502",
"0.6055595",
"0.6026693",
"0.60261935",
"0.6025628",
"0.6025628",
"0.5988495",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.59656316",
"0.5959524",
"0.5959524",
"0.5959524",
"0.59463507",
"0.5944922",
"0.5915845",
"0.5904238",
"0.59017813"
] | 0.8071359 | 1 |
Sets the "DataCustom" element | public void setDataCustom(amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom dataCustom)
{
synchronized (monitor())
{
check_orphaned();
amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;
target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);
if (target == null)
{
target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);
}
target.set(dataCustom);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setCustomData(Object data);",
"public void setCustomData(final String customData) {\r\n\t\tthis.customData = customData;\r\n\t}",
"public void setDataCustom(amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }",
"private void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"public void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"public String getCustomData() {\r\n\t\treturn customData;\r\n\t}",
"public void setCustom(java.lang.String custom) {\r\n this.custom = custom;\r\n }",
"@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}",
"public amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom addNewDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n return target;\n }\n }",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public void setData(Object data) {\r\n this.data = data;\r\n }",
"public void setData(Object data) {\n this.data = data;\n }",
"public void setData(String data) {\r\n this.data = data;\r\n }",
"public void setData(String data) {\n this.data = data;\n }",
"@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}",
"public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}",
"public void setData(Object oData) { m_oData = oData; }",
"public void setCustomTag(String pTagName, String pTagValue){\n\t\tassert pTagName != null && pTagValue != null;\n\t\taCustomTags.put(pTagName, pTagValue);\n\t}",
"public void setData(Object data) {\n\t\tthis.data = data;\n\t}",
"public void setData( E data ) {\n\t\tthis.data = data;\n\t}",
"public void setDataCode(String dataCode);",
"public void setData(Data data) {\n this.data = data;\n }",
"public void setData(String data) {\n\tthis.data = data;\n }",
"public void setData(E data) {\r\n\t\tthis.data = data;\r\n\t}",
"public void setData(String data) {\n _data = data;\n }",
"void setCustomDimension1(String customDimension1);",
"public amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom addNewDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n return target;\n }\n }",
"public boolean isSetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACUSTOM$2) != 0;\n }\n }",
"public boolean isSetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACUSTOM$2) != 0;\n }\n }",
"void setData(T data) {\n\t\tthis.data = data;\n\t}",
"public void setData(String data) {\n\t\tthis.data = data;\n\t}",
"public void setData(String data) {\n\t\tthis.data = data;\n\t}",
"public void setData(T data){\n this.data = data;\n }",
"@Override\n\tpublic void setData() {\n\n\t}",
"public void setData(E data)\n {\n this.data = data;\n }",
"public void setData(D data) {\n this.data = data;\n }",
"public void setUserData(Object data);",
"public void setData(java.lang.String data) {\r\n this.data = data;\r\n }",
"public void setData(V data){\n\t\tthis.data = data;\n\t}",
"public void setDataXml(DataXml dataXml) {\r\n this.dataXml = dataXml;\r\n }",
"abstract public void setUserData(Object data);",
"@Override\r\n\tpublic void setData(String data) {\r\n\t\tsuper.setData(data);\r\n\t\tString src = data;\r\n\t\tif (data == null) {\r\n\t\t\tsrc = \"\";\r\n\t\t}\r\n\r\n\t\tthis.image.setAttribute(\"src\", src);\r\n\t}",
"@Override\n public void setContainerData(String arg0)\n {\n \n }",
"@Override\n\tpublic void setDataCode(java.lang.String dataCode) {\n\t\t_dictData.setDataCode(dataCode);\n\t}",
"void setData(Object data);",
"public amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom getDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public void setData(GenericItemType data) {\n this.data = data;\n }",
"public abstract Object getCustomData();",
"public void setData(Object d) {\n\t\t funcData = d; \n\t}",
"public void setUserData(String key, Object data) {\n button.setUserData(key, data);\n }",
"void setData (Object data);",
"public void setData(IData data) {\n this.data = data;\n }",
"public DataResourceBuilder _customLicense_(URI _customLicense_) {\n this.dataResourceImpl.setCustomLicense(_customLicense_);\n return this;\n }",
"@Override\n\tpublic void setExtraData(String arg0) {\n\n\t}",
"public com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData to1411CustomData() {\n com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData custom = new com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData();\n custom.setAny(this.any);\n return custom;\n }",
"public void setAdditionalData(ObservableList<MapItemData> data) {\n\n\t\tthis.additionalData = data;\n\n\t}",
"public final void setDataName(String dataName) {\n this.dataName = dataName;\n }",
"public abstract void setUpElementsWithData();",
"public void addCustomElement(Document doc, Element customElement) {\r\n customElements.add(customElement);\r\n element.appendChild(customElement);\r\n }",
"public void setData(E d)\n {\n data = d;\n }",
"public void setExternalData(PDExternalDataDictionary externalData) {\n/* 365 */ getCOSObject().setItem(\"ExData\", externalData);\n/* */ }",
"private void setData() {\n\n }",
"public JSONObject addOrUpdateCustomDevice(JSONObject data);",
"public void setData(D s){\n\t\tdata = s;\n\t}",
"void setCustomDimension2(String customDimension2);",
"@Override\n public void setAdditionalData(RavenJObject additionalData) {\n this.additionalData = additionalData;\n }",
"public void setData(CellRecord[] data) {\r\n setAttribute(\"data\", data, true);\r\n }",
"void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}",
"@Override\n\tpublic void setDataLevel(int dataLevel) {\n\t\t_dictData.setDataLevel(dataLevel);\n\t}",
"@ZenCodeType.Method\n default void setAt(String name, @ZenCodeType.Nullable IData data) {\n \n put(name, data);\n }",
"public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}",
"public void setCustomName ( String name ) {\n\t\texecute ( handle -> handle.setCustomName ( name ) );\n\t}",
"public amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom getDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public void setData(int data) {\n this.data = data;\n }",
"public void setData(int data) {\n this.data = data;\n }",
"public void setCustomMetricNameBytes(ByteString value) {\n if (value != null) {\n this.bitField0_ |= 4;\n this.customMetricName_ = value.toStringUtf8();\n return;\n }\n throw new NullPointerException();\n }",
"public AddData() {\n\t\tsuper();\n\t\tfilled = false;\n\t}",
"public void setCustomHeader(String customHeader) {\n this.customHeader = customHeader;\n }",
"public void setDataLevel(int dataLevel);",
"void setCustomsDetails(x0401.oecdStandardAuditFileTaxPT1.CustomsDetails customsDetails);",
"private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }",
"public abstract void setDataToElementXY();",
"void setDatty(Datty newDatty);",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void setData(Object o){}",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void setDataObject(DataObject arg0) throws DataBindingException {\n\n\t}",
"public void setData(int data) {\n\t\tthis.data = data;\n\t}",
"private void setMobileData(XmlPullParser parser) throws XmlPullParserException, IOException {\n\n parser.require(XmlPullParser.START_TAG, null, \"mobile_data\");\n\n if (parser.getAttributeValue(null, \"enabled\") != null) {\n if (parser.getAttributeValue(null, \"enabled\").equals(\"1\")) {\n prefEdit.putString(\"mobile_data\", \"enabled\");\n Log.i(TAG, \"MobileData on.\");\n } else if (parser.getAttributeValue(null, \"enabled\").equals(\"0\")) {\n prefEdit.putString(\"mobile_data\", \"disabled\");\n Log.i(TAG, \"MobileData off.\");\n } else if (parser.getAttributeValue(null, \"enabled\").equals(\"-1\")) {\n prefEdit.putString(\"mobile_data\", \"unchanged\");\n Log.i(TAG, \"MobileData unchanged.\");\n } else {\n Log.e(TAG, \"MobileData: Invalid Argument!\");\n }\n } else {\n Log.i(TAG, \"MobileData: No change.\");\n }\n parser.nextTag();\n }",
"private void setData() {\n populateInterfaceElements();\n }",
"void setUserData(Object userData);",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}"
] | [
"0.786588",
"0.74870586",
"0.72579134",
"0.65225106",
"0.6476123",
"0.63455534",
"0.6311189",
"0.6218549",
"0.60518175",
"0.60509086",
"0.60509086",
"0.5979119",
"0.59558034",
"0.59547305",
"0.5914354",
"0.59135085",
"0.59129286",
"0.59013915",
"0.5883901",
"0.58832437",
"0.5858173",
"0.58440757",
"0.5842439",
"0.58344495",
"0.58337975",
"0.5795866",
"0.5791697",
"0.57875305",
"0.57851386",
"0.57851386",
"0.57811064",
"0.57800335",
"0.57800335",
"0.57671326",
"0.5757169",
"0.574921",
"0.5743685",
"0.57217586",
"0.5721758",
"0.57043135",
"0.5690977",
"0.5660546",
"0.56571877",
"0.56486857",
"0.55981696",
"0.5574492",
"0.55524445",
"0.5537859",
"0.55085886",
"0.5498792",
"0.5479588",
"0.5477521",
"0.5466665",
"0.5455504",
"0.545533",
"0.5454585",
"0.54437906",
"0.5400755",
"0.5392177",
"0.5333074",
"0.5329316",
"0.530683",
"0.52948624",
"0.52797943",
"0.5272818",
"0.5267103",
"0.52605486",
"0.52553755",
"0.5242135",
"0.52394456",
"0.52130437",
"0.5207834",
"0.5200205",
"0.5191583",
"0.518974",
"0.518974",
"0.5183297",
"0.51755244",
"0.51679325",
"0.5155934",
"0.5144336",
"0.51429343",
"0.5141703",
"0.51334745",
"0.5131417",
"0.51202774",
"0.5118999",
"0.5113107",
"0.5113107",
"0.50962985",
"0.5086066",
"0.5081098",
"0.50778896",
"0.5070546",
"0.50687045",
"0.50687045",
"0.50687045",
"0.50687045",
"0.50687045",
"0.50687045"
] | 0.76910895 | 1 |
Appends and returns a new empty "DataCustom" element | public amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom addNewDataCustom()
{
synchronized (monitor())
{
check_orphaned();
amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;
target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom addNewDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n return target;\n }\n }",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public void setDataCustom(amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }",
"public AddData() {\n\t\tsuper();\n\t\tfilled = false;\n\t}",
"DataElement createDataElement();",
"public void setDataCustom(amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }",
"public String getCustomData() {\r\n\t\treturn customData;\r\n\t}",
"public amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom getDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public boolean isSetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACUSTOM$2) != 0;\n }\n }",
"public boolean isSetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACUSTOM$2) != 0;\n }\n }",
"public void addEmptyData(Intent pickIntent) {\n ArrayList<AppWidgetProviderInfo> customInfo = new ArrayList<>();\n pickIntent.putParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_INFO, customInfo);\n ArrayList<Bundle> customExtras = new ArrayList<>();\n pickIntent.putParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_EXTRAS, customExtras);\n }",
"public amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom getDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public void addCustomElement(Document doc, Element customElement) {\r\n customElements.add(customElement);\r\n element.appendChild(customElement);\r\n }",
"x0401.oecdStandardAuditFileTaxPT1.CustomsDetails addNewCustomsDetails();",
"public void setCustomData(final String customData) {\r\n\t\tthis.customData = customData;\r\n\t}",
"public com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData to1411CustomData() {\n com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData custom = new com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData();\n custom.setAny(this.any);\n return custom;\n }",
"public void add(String newData) {\r\n dataTag.add(0);\r\n data.add(newData);\r\n }",
"private JSONObject joinAdditionalData() {\n JSONObject additionalData = new JSONObject();\n\n try {\n if (mMessageChannel != null) {\n additionalData.put(IPC_MESSAGE_DATA_CHANNELBASEURL,\n \"ws://\" + mFlintServerIp + \":9439/channels/\"\n + mMessageChannel.getName());\n }\n\n if (mCustAdditionalData != null) {\n additionalData.put(\"customData\", mCustAdditionalData);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (additionalData.length() > 0) {\n return additionalData;\n }\n\n return null;\n }",
"public abstract Object getCustomData();",
"public JSONObject addOrUpdateCustomDevice(JSONObject data);",
"private void appendData() {\n XYDataset tempdata = getDataset();\n\n XYSeriesCollection originaldata = (XYSeriesCollection) chartpanel.getChart().getXYPlot().getDataset();\n XYSeriesCollection newdata = (XYSeriesCollection) getDataset();\n\n addToDataSet(newdata, originaldata);\n tempdata = missingSeries(newdata, originaldata);\n\n XYSeriesCollection foo = (XYSeriesCollection) tempdata;\n int n = foo.getSeriesCount();\n for (int i = 0; i < n; i++) {\n originaldata.addSeries(foo.getSeries(i));\n }\n nullMissingPoints((XYSeriesCollection) chartpanel.getChart().getXYPlot().getDataset());\n }",
"public abstract void setCustomData(Object data);",
"public Element getData()\n {\n // Ask the generic configuration's holder to export the list of specific\n // configuration's data.\n ArrayList<Element> specific_data = this._toXml_();\n\n // Build the specific configuration.\n Element generic = new Element(\"data\");\n for (int index = 0; index < specific_data.size(); index++)\n {\n generic.addContent(specific_data.get(index));\n }\n\n return generic;\n }",
"void addData();",
"public io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder addCustomTagsBuilder() {\n return getCustomTagsFieldBuilder().addBuilder(\n io.envoyproxy.envoy.type.tracing.v3.CustomTag.getDefaultInstance());\n }",
"public void add(@Nonnull CustomElement customElement) {\n add(customElement, true);\n }",
"public Collection<CustomHudElement> getCustomElements();",
"public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements addNewReportTableDataElements()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements target = null;\n target = (org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements)get_store().add_element_user(REPORTTABLEDATAELEMENTS$0);\n return target;\n }\n }",
"public void addDefaultElements() {\n addAllCustomElements();\n }",
"void addingGlobalData() {\n\n }",
"@Override\r\n\t\tpublic BatchArgumentBuilder addData(String dataName, Document data) {\n\t\t\tthrow new UnsupportedOperationException(\"Not implemented yet.\");\r\n\t\t}",
"public Builder clearCustom() {\n copyOnWrite();\n instance.clearCustom();\n return this;\n }",
"private void addToEmptyList(T data) {\n this.first = this.last = new Node(data);\n this.nrOfElements++;\n }",
"public void addMeteoData(MeteoDataInfo aDataInfo) {\n dataInfoList.add(aDataInfo);\n currentDataInfo = aDataInfo; \n }",
"org.landxml.schema.landXML11.CrashDataDocument.CrashData addNewCrashData();",
"public String getAdditionalData() {\n return additionalData;\n }",
"public void appendAdd(EPPSecDNSExtDsData dsData) {\n\t\tif (addDsData == null) {\n\t\t\taddDsData = new ArrayList();\n\t\t}\n\t\taddDsData.add(dsData);\n }",
"public void addAllCustomElements() {\n getModel().getCustomElements().forEach(ce -> {\n try {\n add(ce);\n } catch (ElementNotPermittedInViewException e) {\n // ignore\n }\n });\n }",
"@Override\n\tpublic void addDataItem(FinanceData newdata) {\n\t\tlist_fr.add(0, newdata);\n\t}",
"public void addData(@NonNull Collection<? extends T> newData) {\n mData.addAll(newData);\n notifyItemRangeInserted(mData.size() - newData.size() + getHeaderLayoutCount(), newData.size());\n compatibilityDataSizeChanged(newData.size());\n }",
"private static void addExtendedItemNonXmlProps(Element extendedItemNode,ReportDesigner reportDesigner){\r\n\t\t//outputFormat\r\n\t\tElement propertyNode = doc.createElement(\"property\");\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"outputFormat\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"JPG\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//inheritColumns\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"inheritColumns\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"false\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//Data Set Chart\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"dataSet\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"Data Set\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//height\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"height\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"3.7916666666666665in\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//width\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"width\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"7.875in\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\textendedItemNode.appendChild(createExtendedItemListProp(reportDesigner));\r\n\t}",
"public void addData(@NonNull T data) {\n mData.add(data);\n notifyItemInserted(mData.size() + getHeaderLayoutCount());\n compatibilityDataSizeChanged(1);\n }",
"public HDict createCustomTags(BComponent comp)\r\n {\r\n return HDict.EMPTY;\r\n }",
"org.hl7.fhir.SampledData addNewValueSampledData();",
"public native void appendData(String arg) /*-{\r\n\t\tvar jso = [email protected]::getJsObj()();\r\n\t\tjso.appendData(arg);\r\n }-*/;",
"private void addOMEChild(String name, String value, OMElement parent, OMFactory factory, OMNamespace dsNs){\r\n\t\t OMElement child = factory.createOMElement(name, dsNs);\r\n\t\t child.addChild(factory.createOMText(value));\r\n\t\t parent.addChild(child);\r\n\t }",
"@Override\n public void addToEnd(T data){\n Node<T> dataNode = new Node<>();\n\n dataNode.setData(data);\n dataNode.setNext(null);\n\n Node<T> tempHead = this.head;\n while(tempHead.getNext() != null) {\n tempHead = tempHead.getNext();\n }\n\n tempHead.setNext(dataNode);\n }",
"@Override\r\n\t\tpublic BatchArgumentBuilder addData(Document data) {\n\t\t\tthrow new UnsupportedOperationException(\"Not implemented yet.\");\r\n\t\t}",
"public abstract void setUpElementsWithData();",
"public String getKMLExtendedData(){\r\n String exData = \"\";\r\n for (int i = 0; i<attributes.size(); i++){\r\n String exDataRow = \"<Data name=\\\"\"+attributes.get(i).getAttName()+\"\\\"><value>\"+attributes.get(i).getAttValue()+\"</value></Data>\\n\";\r\n exData = exData+exDataRow;\r\n }\r\n return exData;\r\n }",
"@Override\n\tpublic String getExtraData() {\n\t\treturn null;\n\t}",
"public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\[email protected]::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;",
"public Map<String, String> getOrCreateAdditionalData() {\n if (this.getAdditionalData() == null) {\n this.setAdditionalData(new HashMap<String, String>());\n }\n\n return this.getAdditionalData();\n }",
"public Builder clearCustomTags() {\n if (customTagsBuilder_ == null) {\n customTags_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n customTagsBuilder_.clear();\n }\n return this;\n }",
"public void addNew() {\n\t\t\n\t\tTag t = new Tag();\n\t\tt.setName(name);\n\t\tt.setColor(color);\n\t\t\n\t\tDAO.getInstance().addTag(t);\n\t\t\n\t\tname = null;\n\t\tcolor = null;\n\t\t\n\t}",
"public CustomXmlElement create(String manifestId, String periodId, CustomXmlElement customXmlElement) throws BitmovinException {\n try {\n return this.apiClient.create(manifestId, periodId, customXmlElement).getData().getResult();\n } catch (Exception ex) {\n throw buildBitmovinException(ex);\n }\n }",
"@ApiModelProperty(example = \"\\\"\\\"\", required = true, value = \"Sets additional data to be embedded in PDF Meta.\")\n @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA_FIELD)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getAdditionalDataField() {\n return additionalDataField;\n }",
"private void addSampleData() {\r\n }",
"public void saveFormData() throws edu.mit.coeus.exception.CoeusException {\r\n //Modified for COEUSDEV-413 : Subcontract Custom data bug - Data getting wiped out - Start\r\n// if( isDataChanged() ){\r\n\t\tif( isDataChanged() || getFunctionType() == NEW_ENTRY_SUBCONTRACT || getFunctionType() == NEW_SUBCONTRACT) { //COEUSDEV-413 : End\r\n Vector genericColumnValues = customElementsForm.getOtherColumnElementData();\r\n\t\t\tif( genericColumnValues != null && genericColumnValues.size() > 0 ){\r\n\t\t\t\tCustomElementsInfoBean genericCustElementsBean = null;\r\n\t\t\t\tint dataSize = genericColumnValues.size();\r\n\t\t\t\tfor( int indx = 0; indx < dataSize; indx++ ) {\r\n\t\t\t\t\tgenericCustElementsBean = (CustomElementsInfoBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tSubContractCustomDataBean subContractCustomDataBean\r\n\t\t\t\t\t= new SubContractCustomDataBean(genericCustElementsBean);\r\n SubContractCustomDataBean oldSubContractCustomDataBean = (SubContractCustomDataBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tif(getFunctionType() == NEW_ENTRY_SUBCONTRACT) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setAcType(\"I\");\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif( INSERT_RECORD.equals(subContractCustomDataBean.getAcType()) ) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n \r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif( genericCustElementsBean instanceof SubContractCustomDataBean ) {\r\n//\t\t\t\t\t\t\tSubContractCustomDataBean oldSubContractCustomDataBean =\r\n//\t\t\t\t\t\t\t(SubContractCustomDataBean)genericCustElementsBean;\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setAcType(genericCustElementsBean.getAcType());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(oldSubContractCustomDataBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(oldSubContractCustomDataBean.getSequenceNumber());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tString custAcType = subContractCustomDataBean.getAcType();\r\n\t\t\t\t\t\tif( UPDATE_RECORD.equals(custAcType) ){\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.update(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}else if( INSERT_RECORD.equals(custAcType)){\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.insert(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}catch ( CoeusException ce ) {\r\n\t\t\t\t\t\tce.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcustomElementsForm.setSaveRequired(false);\r\n\t\t}\r\n\t}",
"public DataInstances addDataInstances() throws JNCException {\n DataInstances dataInstances = new DataInstances();\n this.dataInstances = dataInstances;\n insertChild(dataInstances, childrenNames());\n return dataInstances;\n }",
"public void setAdditionalData(ObservableList<MapItemData> data) {\n\n\t\tthis.additionalData = data;\n\n\t}",
"private void addData() {\n Details d1 = new Details(\"Arpitha\", \"+91-9448907664\", \"25/05/1997\");\n Details d2 = new Details(\"Abhijith\", \"+91-993602342\", \"05/10/1992\");\n details.add(d1);\n details.add(d2);\n }",
"public void addData(F dataObject) {\r\n this.data = dataObject;\r\n }",
"public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;",
"public com.amx.mexico.telcel.esb.v1_2.ControlDataResponseHeaderType addNewControlData()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.amx.mexico.telcel.esb.v1_2.ControlDataResponseHeaderType target = null;\n target = (com.amx.mexico.telcel.esb.v1_2.ControlDataResponseHeaderType)get_store().add_element_user(CONTROLDATA$0);\n return target;\n }\n }",
"public void addData(@IntRange(from = 0) int position, @NonNull Collection<? extends T> newData) {\n mData.addAll(position, newData);\n notifyItemRangeInserted(position + getHeaderLayoutCount(), newData.size());\n compatibilityDataSizeChanged(newData.size());\n }",
"public void setCustom(java.lang.String custom) {\r\n this.custom = custom;\r\n }",
"public Builder addData(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDataIsMutable();\n data_.add(value);\n onChanged();\n return this;\n }",
"public Builder addData(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDataIsMutable();\n data_.add(value);\n onChanged();\n return this;\n }",
"public void addchild(T data)\n\t{\n\t\tHtmlMap<T> child = new HtmlMap<T>(data);\n\t\tchild.setParent(this);\n\t\tthis.m_children.add(child);\n\t}",
"@Override\r\n\tpublic String getCustomInfo() {\n\t\treturn null;\r\n\t}",
"@Override\n public RavenJObject getAdditionalData() {\n return additionalData;\n }",
"private void addData() {\r\n cut.setBaseUrl(\"baseUrl\");\r\n cut.setClientId(\"clientId\");\r\n cut.setClientSecret(\"clientSecret\");\r\n List<String> accounts = new LinkedList<String>() {{\r\n add(\"FI1234567901234567-EUR\");\r\n }};\r\n cut.setAccounts(accounts);\r\n cut.setApiVersion(\"V4\");\r\n cut.setDuration(1234);\r\n cut.setCountry(\"FI\");\r\n cut.setEnvironment(\"local\");\r\n cut.setEidas(\"asdkjhfapseiuf98yf9ds\");\r\n cut.setFirstAuthorizer(\"someone\");\r\n cut.setNetbankID(\"netbankId\");\r\n List<String> scopes = new LinkedList<String>() {{\r\n add(\"ACCOUNTS_BASIC\");\r\n }};\r\n cut.setScopes(scopes);\r\n }",
"@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}",
"public List<Element> getCustomElements() {\r\n return customElements;\r\n }",
"public void appendChg(EPPSecDNSExtDsData dsData) {\n\t\tif (chgDsData == null) {\n\t\t\tchgDsData = new ArrayList();\n\t\t}\n\t\tchgDsData.add(dsData);\n }",
"@Override\n\tpublic void setExtraData(String arg0) {\n\n\t}",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId addNewRegular()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId)get_store().add_element_user(REGULAR$2);\n return target;\n }\n }",
"public org.dhis2.ns.schema.dxf2.ReportTableDataElementDocument.ReportTableDataElement addNewReportTableDataElement()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.ReportTableDataElementDocument.ReportTableDataElement target = null;\n target = (org.dhis2.ns.schema.dxf2.ReportTableDataElementDocument.ReportTableDataElement)get_store().add_element_user(REPORTTABLEDATAELEMENT$0);\n return target;\n }\n }",
"public java.lang.String getCustom() {\r\n return custom;\r\n }",
"public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty addNewPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().add_element_user(PRESENT$0);\n return target;\n }\n }",
"public List<VueMetadataElement> getXMLdata() {\n // TODO: FIX\n // if (isEmpty())\n // return null;\n // else\n return dataList;\n }",
"public void addData(String dataName, Object dataItem){\r\n this.mData.put(dataName, dataItem);\r\n }",
"public Builder addCustomTags(io.envoyproxy.envoy.type.tracing.v3.CustomTag value) {\n if (customTagsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCustomTagsIsMutable();\n customTags_.add(value);\n onChanged();\n } else {\n customTagsBuilder_.addMessage(value);\n }\n return this;\n }",
"public org.apache.xmlbeans.XmlObject addNewPDMessageMetadataExtensionAbstract()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(PDMESSAGEMETADATAEXTENSIONABSTRACT$0);\n return target;\n }\n }",
"public void addAtStart(T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n newNode.next = head;\n head = newNode;\n size++;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }",
"void writeCustom(Object custom);",
"@Override\n\tpublic void cdata() {\n\t\t\n\t}",
"@Override\r\n\tpublic void initAditionalPanelElements() {\n\t\tchartDataset = new TimeSeriesCollection();\r\n\t\tfor(int i = 0; i < categoryVariableBuffers.size(); i++) \r\n\t\t\tchartDataset.addSeries(categoryVariableBuffers.get(i).getDataSerie());\r\n\t}",
"DataList createDataList();",
"public void append(final T data) {\n Node<T> newNode = new Node<>(data);\n if (head == null) {\n head = newNode;\n } else {\n Node<T> iterator = head;\n while (iterator.getNext() != null) {\n iterator = iterator.getNext();\n }\n iterator.setNext(newNode);\n }\n numElement++;\n }",
"public String getNewickExtra(ArrayList<ExtraData> data, String sfextra) //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String newick = new String();\n newick = newick + generateNewickExtra(data, sfextra);\n newick = newick + \";\";\n return newick;\n }",
"public Map<String, String> getAdditionalData() {\n return additionalData;\n }"
] | [
"0.7247038",
"0.5943462",
"0.5943462",
"0.5906065",
"0.5867379",
"0.58503556",
"0.584723",
"0.5737435",
"0.558371",
"0.55483633",
"0.55483633",
"0.554472",
"0.5530331",
"0.5497876",
"0.5483301",
"0.54590756",
"0.54249954",
"0.5403958",
"0.53757817",
"0.5368111",
"0.5347373",
"0.53114235",
"0.52379304",
"0.521454",
"0.52001244",
"0.5156406",
"0.51431096",
"0.5078725",
"0.50642526",
"0.5046521",
"0.50179636",
"0.50116056",
"0.50049067",
"0.499976",
"0.49759847",
"0.49701872",
"0.4955923",
"0.49440834",
"0.4930882",
"0.4884459",
"0.48826125",
"0.48817322",
"0.48756707",
"0.48641485",
"0.48448887",
"0.48337904",
"0.48312747",
"0.48237813",
"0.48118052",
"0.48080176",
"0.48078743",
"0.48013744",
"0.47711027",
"0.47502765",
"0.47458127",
"0.47361115",
"0.4732419",
"0.47246557",
"0.47228608",
"0.4711077",
"0.47025022",
"0.46852803",
"0.46836996",
"0.46770167",
"0.46761003",
"0.46611747",
"0.46595353",
"0.46492085",
"0.4641545",
"0.46373898",
"0.46181107",
"0.46181107",
"0.46140665",
"0.46136647",
"0.45950115",
"0.4594444",
"0.45929614",
"0.45873594",
"0.45871818",
"0.45748466",
"0.45740888",
"0.45730618",
"0.45706847",
"0.45673427",
"0.45606676",
"0.45582584",
"0.45557013",
"0.45490783",
"0.45481685",
"0.45462883",
"0.45437628",
"0.45437628",
"0.4537332",
"0.45277998",
"0.4515708",
"0.45147842",
"0.45096156",
"0.45058298",
"0.4502772",
"0.44981778"
] | 0.73689985 | 0 |
Unsets the "DataCustom" element | public void unsetDataCustom()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DATACUSTOM$2, 0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void resetCustomValues() {\n customValues = null;\n }",
"void unsetValueSampledData();",
"void unsetCustomsDetails();",
"public void clearData() {\r\n\t\tdata = null;\r\n\t}",
"public void eraseData() {\n\t\tname = \"\";\n\t\tprice = 0.0;\n\t\tquantity = 0;\n\t}",
"private void clearData() {}",
"protected void clearData() {\n getValues().clear();\n getChildIds().clear();\n getBTreeMetaData().setDirty(this);\n }",
"public void unsetDataMsng()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATAMSNG$18, 0);\n }\n }",
"@Override\n public void clearData() {\n }",
"public void resetData() {\r\n this.setName(\"\");\r\n this.setType(\"\");\r\n this.setContact(\"\");\r\n this.setAffiliatedResearchers(\"\");\r\n this.setCountry(\"\");\r\n this.setResearchKeywords(\"\");\r\n this.setResearchDescription(\"\");\r\n this.setHomePage(\"\");\r\n }",
"public void clearData()\r\n {\r\n \r\n }",
"public void setDataCustom(amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }",
"private void reset() {\n\t\tdata.clear();\n\t}",
"public Builder clearCustom() {\n copyOnWrite();\n instance.clearCustom();\n return this;\n }",
"public void setDataCustom(amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }",
"public void clearData(){\n\r\n\t}",
"void clearData();",
"protected void clearData() {\n any.type(any.type());\n }",
"public void clearCustomMetricName() {\n this.bitField0_ &= -5;\n this.customMetricName_ = getDefaultInstance().getCustomMetricName();\n }",
"public void removeData(String dataName){\r\n this.mData.remove(dataName);\r\n }",
"public void clearCustomDictionaries () {\n\t\tcustomDictionaries.clear();\n\t}",
"public Builder clearData() {\n bitField0_ = (bitField0_ & ~0x00000010);\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"void unsetValue();",
"void unsetValue();",
"public void unsetMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(METADATA$0, 0);\n }\n }",
"public Builder clearDataType() {\n \n dataType_ = 0;\n onChanged();\n return this;\n }",
"void clear() {\n data = new Data(this);\n }",
"public void clear() {\r\n\t\tdata.clear();\r\n\r\n\t}",
"public void clearData() {\n\t\tdrawnRect.clear();\n\t\tboxList.setListData(drawnRect);\n\t\tcurrRect = null;\n\t\ttextField.setText(\"\");\n\t}",
"public Builder clearData() {\n bitField0_ = (bitField0_ & ~0x00000002);\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public Builder clearData() {\n bitField0_ = (bitField0_ & ~0x00000002);\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public void unsetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(VALUE$12);\n }\n }",
"public Builder clearData() {\n bitField0_ = (bitField0_ & ~0x00000001);\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"void unsetControlType();",
"public void resetxlsxDataList() {\n this.xlsxDataList.clear();\n }",
"public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public void resetCalMileData() {\n\t\tnativeresetCalMileData();\n\t}",
"public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public void reset() {\n resetData();\n postInvalidate();\n }",
"public Builder clearData() {\n\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public Builder clearData() {\n\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public Builder clearData() {\n\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"private void reset(){\n plotValues.clear();\n xLabels.clear();\n }",
"public void removePlotData() {\n\t\tif (xySeries != null) {\n\t\t\tfor (int i = 0; i < xySeries.length; i++) {\n\t\t\t\tif (xySeries[i] != null) {\n\t\t\t\t\txySeries[i].clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tseriesCount = 0;\n\t\txySeries = new XYSeries[seriesCount + 1];\n\t}",
"public static void resetGuiData()\n\t{\n\t\tpriorityCombo.select(0);\n\t\telectrodeCombo.select(0);\n\t\tcustomerList.removeAll();\n\t\tcustomerText.setText(\"\");\n\t\tcommentText.setText(\"\");\n\t\tsensorText.setText(\"\");\n\t\tmeasureText.setText(\"\");\n\t\tmeasurTaskText.setText(\"\");\n\t\tsensorTaskText.setText(\"\");\n\n\t}",
"public void reset() {\n _valueLoaded = false;\n _value = null;\n }",
"public Builder clearData() {\n if (dataBuilder_ == null) {\n data_ = null;\n onChanged();\n } else {\n data_ = null;\n dataBuilder_ = null;\n }\n\n return this;\n }",
"private void clearTemporaryData() {\n\n numbers.stream().forEach(n -> {\n n.setPossibleValues(null);\n n.setUsedValues(null);\n });\n }",
"public void clearProperties(){\n\t\tcbDataType.setSelectedIndex(DT_INDEX_NONE);\n\t\tchkVisible.setValue(false);\n\t\tchkEnabled.setValue(false);\n\t\tchkLocked.setValue(false);\n\t\tchkRequired.setValue(false);\n\t\ttxtDefaultValue.setText(null);\n\t\ttxtHelpText.setText(null);\n\t\ttxtText.setText(null);\n\t\ttxtBinding.setText(null);\n\t\ttxtDescTemplate.setText(null);\n\t\ttxtCalculation.setText(null);\n\t\ttxtFormKey.setText(null);\n\t}",
"public void setCustomData(final String customData) {\r\n\t\tthis.customData = customData;\r\n\t}",
"public void unsetObservationDataLink()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(OBSERVATIONDATALINK$18);\r\n }\r\n }",
"public Builder clearData() {\n if (dataBuilder_ == null) {\n data_ = null;\n onChanged();\n } else {\n data_ = null;\n dataBuilder_ = null;\n }\n\n return this;\n }",
"public void clear() {\n this.data().clear();\n }",
"void unsetValueAttachment();",
"void unsetCompanyBaseData();",
"private void resetOverriddenFlag(WBData wbData) {\n\n WorkDetailList wdl = wbData.getRuleData().getWorkDetails();\n for (int i = 0, k=wdl.size() ; i < k; i++) {\n if (\"Y\".equals(wdl.getWorkDetail(i).getWrkdOverridden())) {\n wdl.getWorkDetail(i).setWrkdOverridden(null);\n }\n }\n }",
"void unsetRawOffset();",
"public void unsetRegular()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(REGULAR$2, 0);\n }\n }",
"public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }",
"public void removeDataItem(E value) {\n\t\tdata.remove(value);\n\t}",
"private void clearMetadata() { metadata_ = null;\n bitField0_ = (bitField0_ & ~0x00000002);\n }",
"public void unsetDataRetentionPeriodUnitOfMeasure()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATARETENTIONPERIODUNITOFMEASURE$28, 0);\n }\n }",
"private void clearCustom() {\n if (patternCase_ == 8) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }",
"@FXML\n private void clearReportData() {\n displayCarbonEmissionGoalField.setText(\"\");\n carbonEmissionGoalField.setText(\"\");\n displayTotalEmissionsField.setText(\"\");\n displayTotalDistanceTravelledField.setText(\"\");\n displayMostEmissionsRouteField.setText(\"\");\n displayMostEmissionsRouteField.setText(\"\");\n displayLeastEmissionsRouteField.setText(\"\");\n displayMostDistanceRouteField.setText(\"\");\n displayLeastEmissionsRouteField.setText(\"\");\n displayLeastDistanceRouteField.setText(\"\");\n displayMostVisitedSourceAirportField.setText(\"\");\n displayLeastVisitedSourceAirportField.setText(\"\");\n displayMostVisitedDestinationAirportField.setText(\"\");\n displayLeastVisitedDestinationAirportField.setText(\"\");\n displayTreeOffsetField.setText(\"\");\n displayStatusCommentField.setText(\"\");\n }",
"public Builder clearData() {\n if (dataBuilder_ == null) {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n dataBuilder_.clear();\n }\n return this;\n }",
"public abstract void setCustomData(Object data);",
"public void clear() { drawData.clear(); }",
"void resetData(ReadOnlyExpenseTracker newData) throws NoUserSelectedException;",
"public Builder clearCustomTags() {\n if (customTagsBuilder_ == null) {\n customTags_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n customTagsBuilder_.clear();\n }\n return this;\n }",
"public static void clearData() {\n cutPoints.clear();\n data.delete(0, data.length());\n }",
"void unsetValueQuantity();",
"@Override\n protected void resetDataLayout(StringRef DL) {\n tgt.resetDataLayout(DL);\n }",
"public Builder clearData() {\n if (dataBuilder_ == null) {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n dataBuilder_.clear();\n }\n return this;\n }",
"public Builder clearCustomBreak() {\n bitField0_ = (bitField0_ & ~0x00000004);\n customBreak_ = getDefaultInstance().getCustomBreak();\n onChanged();\n return this;\n }",
"public void remModify(){\n rem(MetaDMSAG.__modify);\n }",
"void unsetSchufaResponseData();",
"@FXML\n void clearData(ActionEvent event) {\n userName.clear();\n based.clear();\n experienceGained.clear();\n yearsExperience.clear();\n skills.clear();\n paragraph.clear();\n fuelsWork.clear();\n\n\n }",
"public void remove(@Nonnull CustomElement customElement) {\n removeElement(customElement);\n }",
"public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}",
"public void cleanupData() {\n\t}",
"@Override\n\tpublic void restoreDataStateFromXml(Element root) {\n\t\t//do nothing\n\t}",
"void unset() {\n size = min = pref = max = UNSET;\n }",
"@Override\n\t\tprotected void resetAttribute() {\n\t\t}",
"void unsetValueString();",
"public void unsetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEXT$18, 0);\n }\n }",
"private void clearMerchantData() {\n bitField0_ = (bitField0_ & ~0x00000020);\n merchantData_ = getDefaultInstance().getMerchantData();\n }",
"protected void typesReset() {\n\t valueList.setListData(nullValues);\n\t valueField.setEnabled(false);\n\t valueList.setEnabled(false);\t \t \n }",
"public void clearCustomLocationName() {\n if (isCustomLocationName) {\n locationName = \"\";\n }\n\n isCustomLocationName = false;\n }",
"public void clear()\n {\n Arrays.fill(data, clearColor);\n }",
"public abstract void removeExternalData(String dataID);",
"private void clearMerchantData() {\n bitField0_ = (bitField0_ & ~0x00000001);\n merchantData_ = getDefaultInstance().getMerchantData();\n }",
"private void resetFields() {\n\t\tthis.barcodeField.clear();\r\n\t\tthis.barcodeField.setDisable(false);\r\n\t\tthis.nameField.clear();\r\n\t\tthis.descriptionField.clear();\r\n\t\tthis.mrpField.clear();\r\n\t\tthis.revisedMrpField.clear();\r\n\t\tthis.stockField.clear();\r\n\t\tthis.availableStockLabelValue.setText(\"0.0\");\r\n\t\tthis.barcodeImageView.setImage(null);\r\n\t\tthis.barcodeDisplayLabel.setVisible(true);\r\n\t\tthis.barcodeNumberLabel.setVisible(false);\r\n\r\n\t}"
] | [
"0.7272247",
"0.67559236",
"0.66845214",
"0.6534391",
"0.6477712",
"0.64445984",
"0.643883",
"0.6402735",
"0.6390571",
"0.6389008",
"0.6341584",
"0.62915325",
"0.6254452",
"0.6191978",
"0.6148279",
"0.61472404",
"0.6021295",
"0.6020304",
"0.60183436",
"0.6005822",
"0.59908795",
"0.59592175",
"0.59571165",
"0.59571165",
"0.59505594",
"0.59189206",
"0.5918261",
"0.5913906",
"0.5913463",
"0.5910341",
"0.5908141",
"0.5904466",
"0.58833283",
"0.5874911",
"0.5844902",
"0.58433175",
"0.5825813",
"0.580888",
"0.580888",
"0.580476",
"0.57986134",
"0.57986134",
"0.5798419",
"0.5792744",
"0.57889026",
"0.5753112",
"0.5740992",
"0.5738151",
"0.57341367",
"0.5724001",
"0.5705397",
"0.57029706",
"0.56956047",
"0.56883645",
"0.5666041",
"0.56602967",
"0.5658128",
"0.5632538",
"0.56317735",
"0.5631466",
"0.5631466",
"0.5631466",
"0.5631466",
"0.5631466",
"0.5631466",
"0.5631466",
"0.55992866",
"0.5591806",
"0.55898887",
"0.5580091",
"0.5578481",
"0.55670094",
"0.5560031",
"0.5556041",
"0.5545555",
"0.5542583",
"0.5539756",
"0.55385256",
"0.5537259",
"0.55115455",
"0.5503977",
"0.5503663",
"0.5503212",
"0.5491669",
"0.54761106",
"0.5475966",
"0.54643464",
"0.5456113",
"0.5445043",
"0.5444838",
"0.54442304",
"0.54440856",
"0.5437159",
"0.5430361",
"0.5423322",
"0.5422907",
"0.5419358",
"0.5415535",
"0.54139864"
] | 0.8778585 | 1 |
Input: Map display Output: Map with solution and estimated difficulty | public static void println(String s) {
System.out.println(s);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int askMap();",
"private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }",
"public void drawTextualMap(){\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j] instanceof Room){\n\t\t\t\t\tif(((Room)grid[i][j]).getItems().size()>0)\n\t\t\t\t\t\tSystem.out.print(\" I \");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\" R \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" = \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println(\"rows = \"+grid.length+\" cols = \"+grid[0].length);\n\t\tSystem.out.println(\"I = Room has Item, R = Room has no Item, '=' = Is a Hallway\");\n\n\t}",
"public void printMiniMap() { }",
"public void showMap() {\n//\t\tSystem.out.print(\" \");\n//\t\tfor (int i = 0; i < maxY; i++) {\n//\t\t\tSystem.out.print(i);\n//\t\t\tSystem.out.print(' ');\n//\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 0; i < maxX; i++) {\n//\t\t\tSystem.out.print(i + \" \");\n\t\t\tfor (int j = 0; j < maxY; j++) {\n\t\t\t\tSystem.out.print(coveredMap[i][j]);\n\t\t\t\tSystem.out.print(' ');\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void printMap(GameMap map);",
"public void calculationScreen() {\n letterGradeMap.put(\"Select a Grade\", 0.001);\n letterGradeMap.put(\"O\", 10.0);\n letterGradeMap.put(\"A+\", 9.0);\n letterGradeMap.put(\"A\", 8.0);\n letterGradeMap.put(\"B+\", 7.0);\n letterGradeMap.put(\"B\", 6.0);\n letterGradeMap.put(\"RA\", 0.0);\n\n HashMap<String, Double> sem1Map = new HashMap<>(sem01Subjects.length);\n sem1Map.put(\"ENGLISH FOR PROFESSIONAL COMMUNICATION\", 3.0);\n sem1Map.put(\"MATRICES AND CALCULUS\", 4.0);\n sem1Map.put(\"PHYSICS FOR INFORMATION SCIENCE\", 3.0);\n sem1Map.put(\"CHEMISTRY FOR INFORMATION SCIENCE\", 3.0);\n sem1Map.put(\"PYTHON PROGRAMMING\", 3.0);\n sem1Map.put(\"ENGINEERING GRAPHICS\", 3.0);\n sem1Map.put(\"PHYSICS AND CHEMISTRY LABORATORY\", 2.0);\n sem1Map.put(\"PYTHON PROGRAMMING LABORATORY\", 2.0);\n perSemesterSubjectCredits.put(\"SEM01\", sem1Map);\n\n HashMap<String, Double> sem2Map = new HashMap<>(sem02Subjects.length);\n sem2Map.put(\"TECHNICAL COMMUNICATION\", 2.0);\n sem2Map.put(\"VECTOR CALCULUS AND TRANSFORMS\", 4.0);\n sem2Map.put(\"BASICS OF ELECTRICAL AND ELECTRONICS ENGINEERING\", 3.0);\n sem2Map.put(\"C PROGRAMMING\", 3.0);\n sem2Map.put(\"ELECTRICAL AND ELECTRONICS LABORATORY\", 2.0);\n sem2Map.put(\"C PROGRAMMING LABORATORY\", 2.0);\n sem2Map.put(\"COMPUTER HARDWARE AND SOFTWARE TOOLS (computer workshop)\", 2.0);\n sem2Map.put(\"FUNDAMENTALS OF COMPUTATIONAL BIOLOGY\", 0.0);\n perSemesterSubjectCredits.put(\"SEM02\", sem2Map);\n\n HashMap<String, Double> sem3Map = new HashMap<>(sem03Subjects.length);\n sem3Map.put(\"PROBABILITY AND QUEUEING THEORY\", 4.0);\n sem3Map.put(\"DIGITAL SYSTEMS\", 3.0);\n sem3Map.put(\"DATA STRUCTURES\", 3.0);\n sem3Map.put(\"SOFTWARE ENGINEERING\", 3.0);\n sem3Map.put(\"OBJECT ORIENTED PROGRAMMING SYSTEMS\", 3.0);\n sem3Map.put(\"DATA STRUCTURES LABORATORY\", 2.0);\n sem3Map.put(\"OBJECT ORIENTED PROGRAMMING SYSTEMS LABORATORY\", 2.0);\n sem3Map.put(\"COMMUNICATION AND SOFT SKILLS\", 0.0);\n perSemesterSubjectCredits.put(\"SEM03\", sem3Map);\n\n HashMap<String, Double> sem4Map = new HashMap<>(sem04Subjects.length);\n sem4Map.put(\"DISCRETE MATHEMATICS\", 4.0);\n sem4Map.put(\"DATABASE MANAGEMENT SYSTEMS\", 3.0);\n sem4Map.put(\"OPERATING SYSTEM CONCEPTS\", 3.0);\n sem4Map.put(\"DESIGN AND ANALYSIS OF ALGORITHMS\", 3.0);\n sem4Map.put(\"COMPUTER ARCHITECTURE\", 3.0);\n sem4Map.put(\"MICRO PROCESSORS AND MICRO CONTROLLERS\", 3.0);\n sem4Map.put(\"DATABASE MANAGEMENT SYSTEMS LABORATORY\", 2.0);\n sem4Map.put(\"INTERPERSONAL SKILLS-LISTENING AND SPEAKING\", 2.0);\n sem4Map.put(\"ENVIRONMENTAL SCIENCE AND ENGINEERING\", 0.0);\n perSemesterSubjectCredits.put(\"SEM04\", sem4Map);\n\n HashMap<String, Double> sem5Map = new HashMap<>(sem05Subjects.length);\n sem5Map.put(\"THEORY OF COMPUTATION\", 3.0);\n sem5Map.put(\"COMPUTER NETWORKS\", 3.0);\n sem5Map.put(\"ELECTIVE I\", 3.0);\n sem5Map.put(\"ELECTIVE II\", 3.0);\n sem5Map.put(\"OPEN ELECTIVE-I\", 3.0);\n sem5Map.put(\"SYSTEM ANALYSIS AND DESIGN LABORATORY\", 2.0);\n sem5Map.put(\"COMPUTER NETWORKS LABORATORY\", 2.0);\n sem5Map.put(\"LIFE SKILLS : APTITUDE\", 0.0);\n perSemesterSubjectCredits.put(\"SEM05\", sem5Map);\n\n HashMap<String, Double> sem6Map = new HashMap<>(sem06Subjects.length);\n sem6Map.put(\"COMPILER DESIGN\", 3.0);\n sem6Map.put(\"CRYPTOGRAPHY AND NETWORK SECURITY\", 3.0);\n sem6Map.put(\"ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING\", 3.0);\n sem6Map.put(\"ELECTIVE III\", 3.0);\n sem6Map.put(\"ELECTIVE IV\", 3.0);\n sem6Map.put(\"OPEN ELECTIVE - II\", 3.0);\n sem6Map.put(\"MOBILE APPLICATION DEVELOPMENT LABORATORY\", 2.0);\n sem6Map.put(\"MINI PROJECT\", 2.0);\n sem6Map.put(\"LIFE SKILLS : COMPETITIVE EXAMS\", 0.0);\n perSemesterSubjectCredits.put(\"SEM06\", sem6Map);\n\n HashMap<String, Double> sem7Map = new HashMap<>(sem07Subjects.length);\n sem7Map.put(\"PROFESSIONAL ETHICS FOR ENGINEERS\", 3.0);\n sem7Map.put(\"GRAPHICS AND MULTIMEDIA\", 3.0);\n sem7Map.put(\"SOFTWARE AND PROJECT MANAGEMENT\", 3.0);\n sem7Map.put(\"ELECTIVE V\", 3.0);\n sem7Map.put(\"ELECTIVE VI\", 3.0);\n sem7Map.put(\"OPEN ELECTIVE - III\", 3.0);\n sem7Map.put(\"GRAPHICS AND MULTIMEDIA LABORATORY\", 2.0);\n sem7Map.put(\"TECHNICAL SEMINAR\", 1.0);\n perSemesterSubjectCredits.put(\"SEM07\", sem7Map);\n\n HashMap<String, Double> sem8Map = new HashMap<>(sem08Subjects.length);\n sem8Map.put(\"ELECTIVE VII\", 3.0);\n sem8Map.put(\"ELECTIVE VIII\", 3.0);\n sem8Map.put(\"OPEN ELECTIVE - IV\", 3.0);\n sem8Map.put(\"PROJECT WORK\", 10.0);\n perSemesterSubjectCredits.put(\"SEM08\", sem8Map);\n\n /** Creating Buttons. */\n JButton[] calculateGPA = new JButton[8];\n JButton[] ResetGPA = new JButton[8];\n ButtonCreation calculateCGPA = new ButtonCreation(\"Calculate CGPA\");\n ButtonCreation resetAll = new ButtonCreation(\"Reset ALL\");\n for (int i = 0; i < 8; i++) {\n calculateGPA[i] = new ButtonCreation(\"Calculate GPA\", font, \"CGPA\");\n ResetGPA[i] = new ButtonCreation(\"Reset Grade Points\", font);\n }\n\n /** Creating ComboBox Arrays. */\n JComboBox[] sem01cb = new JComboBox[sem1Map.size()];\n JComboBox[] sem02cb = new JComboBox[sem2Map.size()];\n JComboBox[] sem03cb = new JComboBox[sem3Map.size()];\n JComboBox[] sem04cb = new JComboBox[sem4Map.size()];\n JComboBox[] sem05cb = new JComboBox[sem5Map.size()];\n JComboBox[] sem06cb = new JComboBox[sem6Map.size()];\n JComboBox[] sem07cb = new JComboBox[sem7Map.size()];\n JComboBox[] sem08cb = new JComboBox[sem8Map.size()];\n\n allComboBoxes.put(\"SEM01\", sem01cb);\n allComboBoxes.put(\"SEM02\", sem02cb);\n allComboBoxes.put(\"SEM03\", sem03cb);\n allComboBoxes.put(\"SEM04\", sem04cb);\n allComboBoxes.put(\"SEM05\", sem05cb);\n allComboBoxes.put(\"SEM06\", sem06cb);\n allComboBoxes.put(\"SEM07\", sem07cb);\n allComboBoxes.put(\"SEM08\", sem08cb);\n\n /** Creating Subject Label Arrays. */\n JLabel[] sem01PaperLabel = new JLabel[8];\n JLabel[] sem02PaperLabel = new JLabel[8];\n JLabel[] sem03PaperLabel = new JLabel[8];\n JLabel[] sem04PaperLabel = new JLabel[9];\n JLabel[] sem05PaperLabel = new JLabel[8];\n JLabel[] sem06PaperLabel = new JLabel[9];\n JLabel[] sem07PaperLabel = new JLabel[8];\n JLabel[] sem08PaperLabel = new JLabel[4];\n\n /** Creating Arrays to perform actions. */\n ArrayList<JComboBox[]> allComboBoxesarray = new ArrayList<>();\n allComboBoxesarray.add(sem01cb);\n allComboBoxesarray.add(sem02cb);\n allComboBoxesarray.add(sem03cb);\n allComboBoxesarray.add(sem05cb);\n allComboBoxesarray.add(sem07cb);\n allComboBoxesarray.add(sem04cb);\n allComboBoxesarray.add(sem06cb);\n allComboBoxesarray.add(sem08cb);\n\n ArrayList<JComboBox[]> allSemesters8 = new ArrayList<>();\n allSemesters8.add(sem01cb);\n allSemesters8.add(sem02cb);\n allSemesters8.add(sem03cb);\n allSemesters8.add(sem05cb);\n allSemesters8.add(sem07cb);\n ArrayList<JComboBox[]> allSemesters9 = new ArrayList<>();\n allSemesters9.add(sem04cb);\n allSemesters9.add(sem06cb);\n ArrayList<JComboBox[]> semester8 = new ArrayList<>();\n semester8.add(sem08cb);\n\n\n\n cgpaButtons.put(\"SEM01\", calculateGPA[0]);\n cgpaButtons.put(\"SEM02\", calculateGPA[1]);\n cgpaButtons.put(\"SEM03\", calculateGPA[2]);\n cgpaButtons.put(\"SEM04\", calculateGPA[3]);\n cgpaButtons.put(\"SEM05\", calculateGPA[4]);\n cgpaButtons.put(\"SEM06\", calculateGPA[5]);\n cgpaButtons.put(\"SEM07\", calculateGPA[6]);\n cgpaButtons.put(\"SEM08\", calculateGPA[7]);\n\n /** Creating ComboBox and adding those into panels along with Subject Labels. */\n for (String key : allComboBoxes.keySet()) {\n JComboBox[] entry = allComboBoxes.get(key);\n for (JComboBox boxes : entry) {\n for (int i = 0; i < entry.length; i++) {\n if ( \"SEM01\".equals( key )) {\n sem01cb[i] = new ComboBoxCreation(sem01cb[i], sem01Subjects[i]);\n sem01PaperLabel[i] = new LabelCreation(sem01PaperLabel[i], sem01Subjects[i]);\n } else {\n if ( \"SEM02\".equals( key )) {\n sem02cb[i] = new ComboBoxCreation(sem02cb[i], sem02Subjects[i]);\n sem02PaperLabel[i] = new LabelCreation(sem02PaperLabel[i], sem02Subjects[i]);\n } else {\n if ( \"SEM03\".equals( key )) {\n sem03cb[i] = new ComboBoxCreation(sem03cb[i], sem03Subjects[i]);\n sem03PaperLabel[i] = new LabelCreation(sem03PaperLabel[i], sem03Subjects[i]);\n } else {\n if ( \"SEM04\".equals( key )) {\n sem04cb[i] = new ComboBoxCreation(sem04cb[i], sem04Subjects[i]);\n sem04PaperLabel[i] = new LabelCreation(sem04PaperLabel[i], sem04Subjects[i]);\n\n } else {\n if ( \"SEM05\".equals( key )) {\n sem05cb[i] = new ComboBoxCreation(sem05cb[i], sem05Subjects[i]);\n sem05PaperLabel[i] = new LabelCreation(sem05PaperLabel[i], sem05Subjects[i]);\n } else {\n if ( \"SEM06\".equals( key )) {\n sem06cb[i] = new ComboBoxCreation(sem06cb[i], sem06Subjects[i]);\n sem06PaperLabel[i] = new LabelCreation(sem06PaperLabel[i], sem06Subjects[i]);\n\n } else {\n if ( \"SEM07\".equals( key )) {\n sem07cb[i] = new ComboBoxCreation(sem07cb[i], sem07Subjects[i]);\n sem07PaperLabel[i] = new LabelCreation(sem07PaperLabel[i], sem07Subjects[i]);\n } else {\n if ( \"SEM08\".equals( key )) {\n sem08cb[i] = new ComboBoxCreation(sem08cb[i], sem08Subjects[i]);\n sem08PaperLabel[i] = new LabelCreation(sem08PaperLabel[i], sem08Subjects[i]);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n\n\n\n // Creating All Panels\n PanelCreation sem01 = new PanelCreation(9, 3, tabNamePanelName[0]);\n PanelCreation sem02 = new PanelCreation(9, 3, tabNamePanelName[1]);\n PanelCreation sem03 = new PanelCreation(9, 3, tabNamePanelName[2]);\n PanelCreation sem04 = new PanelCreation(10, 3, tabNamePanelName[3]);\n PanelCreation sem05 = new PanelCreation(9, 3, tabNamePanelName[4]);\n PanelCreation sem06 = new PanelCreation(10, 3, tabNamePanelName[5]);\n PanelCreation sem07 = new PanelCreation(9, 3, tabNamePanelName[6]);\n PanelCreation sem08 = new PanelCreation(9, 3, tabNamePanelName[7]);\n PanelCreation CGPA = new PanelCreation(1, 1, \"CGPA\");\n\n JTabbedPane semesterPane =\n new JTabbedPane(JTabbedPane.TOP) {\n {\n addTab(tabNamePanelName[0], null, sem01, null);\n addTab(tabNamePanelName[1], null, sem02, null);\n addTab(tabNamePanelName[2], null, sem03, null);\n addTab(tabNamePanelName[3], null, sem04, null);\n addTab(tabNamePanelName[4], null, sem05, null);\n addTab(tabNamePanelName[5], null, sem06, null);\n addTab(tabNamePanelName[6], null, sem07, null);\n addTab(tabNamePanelName[7], null, sem08, null);\n addTab(tabNamePanelName[8], null, CGPA, null);\n setBounds(0, 0, 517, 291);\n setBackground(Color.YELLOW);\n }\n };\n\n for (int i = 0; i < 8; i++) {\n sem01.add(sem01PaperLabel[i]);\n sem01.add(sem01cb[i]);\n sem02.add(sem02PaperLabel[i]);\n sem02.add(sem02cb[i]);\n sem03.add(sem03PaperLabel[i]);\n sem03.add(sem03cb[i]);\n sem05.add(sem05PaperLabel[i]);\n sem05.add(sem05cb[i]);\n sem07.add(sem07PaperLabel[i]);\n sem07.add(sem07cb[i]);\n }\n for (int i = 0; i < sem4Map.size(); i++) {\n // sem04cb[i] = new ComboBoxCreation(sem04cb[i], sem04Subjects[i]);\n sem04PaperLabel[i] = new LabelCreation(sem04PaperLabel[i], sem04Subjects[i]);\n sem04.add(sem04PaperLabel[i]);\n sem04.add(sem04cb[i]);\n }\n\n for (int i = 0; i < sem6Map.size(); i++) {\n sem06PaperLabel[i] = new LabelCreation(sem06PaperLabel[i], sem06Subjects[i]);\n sem06.add(sem06PaperLabel[i]);\n sem06.add(sem06cb[i]);\n }\n\n for (int i = 0; i < sem8Map.size(); i++) {\n sem08PaperLabel[i] = new LabelCreation(sem08PaperLabel[i], sem08Subjects[i]);\n sem08.add(sem08PaperLabel[i]);\n sem08.add(sem08cb[i]);\n }\n\n sem01.add(calculateGPA[0]);\n sem01.add(ResetGPA[0]);\n sem02.add(calculateGPA[1]);\n sem02.add(ResetGPA[1]);\n sem03.add(calculateGPA[2]);\n sem03.add(ResetGPA[2]);\n sem04.add(calculateGPA[3]);\n sem04.add(ResetGPA[3]);\n sem05.add(calculateGPA[4]);\n sem05.add(ResetGPA[4]);\n sem06.add(calculateGPA[5]);\n sem06.add(ResetGPA[5]);\n sem07.add(calculateGPA[6]);\n sem07.add(ResetGPA[6]);\n sem08.add(calculateGPA[7]);\n sem08.add(ResetGPA[7]);\n sem08.add(resetAll);\n CGPA.add(calculateCGPA);\n\n // Creating an array of CGPA and GPA Buttons.\n ArrayList<JButton[]> allSemestersGPAButton = new ArrayList<>();\n allSemestersGPAButton.add(calculateGPA);\n ArrayList<JButton> allSemestersCGPAButton = new ArrayList<>();\n allSemestersCGPAButton.add(calculateCGPA);\n ArrayList<JButton[]> ResetButton = new ArrayList<>();\n ResetButton.add(ResetGPA);\n\n // Creating an Action Listener for all the pull down menus.\n for (JComboBox[] sem : allSemesters8) {\n for (int i = 0; i < 8; i++) {\n sem[i].addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent event) {\n\n JComboBox<String> combo = (JComboBox<String>) event.getSource();\n String gradeSelection = (String) combo.getSelectedItem();\n String semesterName = combo.getParent().getName();\n String subjectName = combo.getName();\n Double intGrade = letterGradeMap.get(gradeSelection);\n HashMap<String, Double> semGrades =\n resultsCGPA.getOrDefault(semesterName, new HashMap<>());\n semGrades.put(subjectName, intGrade);\n resultsCGPA.putIfAbsent(semesterName, semGrades);\n }\n });\n }\n }\n for (JComboBox[] sem : allSemesters9) {\n for (int i = 0; i < 9; i++) {\n sem[i].addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent event) {\n\n JComboBox<String> combo = (JComboBox<String>) event.getSource();\n String gradeSelection = (String) combo.getSelectedItem();\n String semesterName = combo.getParent().getName();\n String subjectName = combo.getName();\n Double intGrade = letterGradeMap.get(gradeSelection);\n HashMap<String, Double> semGrades =\n resultsCGPA.getOrDefault(semesterName, new HashMap<>());\n semGrades.put(subjectName, intGrade);\n resultsCGPA.putIfAbsent(semesterName, semGrades);\n }\n });\n }\n }\n for (JComboBox[] sem : semester8) {\n for (int i = 0; i < 4; i++) {\n sem[i].addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent event) {\n\n JComboBox<String> combo = (JComboBox<String>) event.getSource();\n String gradeSelection = (String) combo.getSelectedItem();\n String semesterName = combo.getParent().getName();\n String subjectName = combo.getName();\n Double intGrade = letterGradeMap.get(gradeSelection);\n HashMap<String, Double> semGrades =\n resultsCGPA.getOrDefault(semesterName, new HashMap<>());\n semGrades.put(subjectName, intGrade);\n resultsCGPA.putIfAbsent(semesterName, semGrades);\n }\n });\n }\n }\n\n // Creating an Action Listener for GPA Button.\n for (JButton[] cgp : allSemestersGPAButton) {\n for (int i = 0; i <= 7; i++) {\n cgp[i].addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent event) {\n JButton currentButton = (JButton) event.getSource();\n String semesterName = currentButton.getParent().getName();\n // System.out.println(semesterName);\n HashMap<String, Double> semGrades = resultsCGPA.get(semesterName);\n // semGrades.values().forEach(semesterSubjectsGradeMap.get(sem01Subjects));\n HashMap<String, Double> semGradesMax = perSemesterSubjectCredits.get(semesterName);\n Double sumOfGrades = 0d;\n for (Map.Entry<String, Double> entry : semGrades.entrySet()) {\n sumOfGrades += semGradesMax.get(entry.getKey()) * entry.getValue();\n }\n Double maxCreditsForSem = semGradesMax.values().stream().reduce(0d, Double::sum);\n Double gpa = sumOfGrades / maxCreditsForSem;\n long roundedInt = Math.round(gpa * 100);\n double result = (double) roundedInt / 100;\n currentButton.setText(\n \"(Click to Calculate again) Your GPA for this semester =\"\n + String.valueOf(result));\n }\n });\n }\n }\n\n // Creating an Action Listener for CGPA Button.\n for (JButton cgpa : allSemestersCGPAButton) {\n for (int i = 0; i <= 7; i++) {\n cgpa.addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent event) {\n JButton currentButton = (JButton) event.getSource();\n Double sumOfGradesReceived = 0d;\n Double totalCredits = 0d;\n for (String semCompleted : resultsCGPA.keySet()) {\n HashMap<String, Double> semGrades = resultsCGPA.get(semCompleted);\n HashMap<String, Double> semGradesMax =\n perSemesterSubjectCredits.get(semCompleted);\n totalCredits += semGradesMax.values().stream().reduce(0d, Double::sum);\n for (Map.Entry<String, Double> entry : semGrades.entrySet()) {\n sumOfGradesReceived += semGradesMax.get(entry.getKey()) * entry.getValue();\n }\n }\n Double cgpa = sumOfGradesReceived / totalCredits;\n long roundedInt = Math.round(cgpa * 100);\n double result = (double) roundedInt / 100;\n currentButton.setText(\n \"Your CGPA is =\" + String.valueOf(result) + \" \\n Click to Calculate again\");\n }\n });\n }\n }\n\n // Creating an Action Listener for Reset ComboBoxes Button.\n for (JButton[] reset : ResetButton) {\n for (int i = 0; i < perSemesterSubjectCredits.entrySet().size(); i++) {\n {\n reset[i].addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent event) {\n JButton currentButton = (JButton) event.getSource();\n String semesterName = currentButton.getParent().getName();\n String panelName = currentButton.getName();\n for (JComboBox semesterComboBoxes : allComboBoxes.get(semesterName)) {\n semesterComboBoxes.setSelectedIndex(0);\n resultsCGPA.get(semesterName).keySet().clear();\n cgpaButtons.get(semesterName).setText(\"Calculate GPA\");\n }\n }\n });\n }\n }\n\n resetAll.addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent event) {\n for (Map.Entry<String, JComboBox[]> entry : allComboBoxes.entrySet()) {\n for(JComboBox boxes : entry.getValue ()){\n boxes.setSelectedIndex ( 0 );\n }\n }\n resultsCGPA.clear();\n for (int i = 0; i <= perSemesterSubjectCredits.keySet().size(); i++) {\n //semesterComboBoxes[i].setSelectedIndex(0);\n resultsCGPA.clear();\n for (JButton[] cgp : allSemestersGPAButton) {\n for (int l = 0; l <= 7; l++) {\n cgp[l].setText(\"Calculate GPA\");\n }\n for (JButton ccgp : allSemestersCGPAButton) {\n for (int m = 0; m <= 7; m++) {\n ccgp.setText(\"Calculate CGPA\");\n }\n }\n }\n }\n }\n\n });\n\n // Creating a Tabbed Pane and adding all panels into it.\n getContentPane().add(semesterPane);\n setSize(1300, 500);\n setTitle(\"CGPA Calculation Screen\");\n setLocationRelativeTo(null);\n setResizable(false);\n setVisible(true);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }\n }",
"@Test\n public void TEST_FR_SELECT_DIFFICULTY_MAP() {\n Map easyMap = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n easyMap.createLanes();\n Map mediumMap = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n mediumMap.createLanes();\n Map hardMap = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n hardMap.createLanes();\n\n assertTrue((countObstacles(hardMap) >= countObstacles(mediumMap)) && (countObstacles(mediumMap) >= countObstacles(easyMap)));\n assertTrue((countPowerups(hardMap) <= countPowerups(mediumMap)) && (countPowerups(mediumMap) <= countPowerups(easyMap)));\n }",
"public void showOpponentMap(Admiral admiral) {\r\n\t\tint[] mapGrid = returnOpponent(admiral).getMapGrid();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"The map of admiral: \"\r\n\t\t\t\t+ returnOpponent(admiral).getAdmiralName());\r\n\t\tSystem.out.print(\" \");\r\n\t\tfor (int i = 0; i < Constants.COLUMNS_TITLES.length; i++) {\r\n\t\t\tSystem.out.print(\" \" + Constants.COLUMNS_TITLES[i]);\r\n\t\t}\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\tfor (int j = 0; j < Constants.ROW_LENGTH; j++) {\r\n\t\t\tif (j < 9) {\r\n\t\t\t\tSystem.out.print(j + 1 + \" \");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.print(j + 1);\r\n\t\t\t}\r\n\t\t\tfor (int k = 0; k < Constants.ROW_LENGTH; k++) {\r\n\t\t\t\tString cell = null;\r\n\t\t\t\tif (mapGrid[j * Constants.ROW_LENGTH + k] == 0\r\n\t\t\t\t\t\t|| mapGrid[j * Constants.ROW_LENGTH + k] == 1) {\r\n\t\t\t\t\tcell = \" \" + \"0\";\r\n\t\t\t\t} else if (mapGrid[j * Constants.ROW_LENGTH + k] == -1) {\r\n\t\t\t\t\tcell = \" \" + \"*\";\r\n\t\t\t\t} else if (mapGrid[j * Constants.ROW_LENGTH + k] == 2) {\r\n\t\t\t\t\tcell = \" \" + \"X\";\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(cell);\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}\r\n\t}",
"public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}",
"public void displaymap(AircraftData data);",
"private void PrintFineMap() {\n\t\tif (fineMap.isEmpty()) {\n\t\t\tviolationProcess.CalculateFinesPerCapita(populationReader.getPopulationMap());\n\t\t\tfineMap = violationProcess.getFineMap();\n\t\t}\n\t\tSystem.out.println(fineMap);\n\t}",
"public static void main(String[] args) {\n GridMap map = null;\n try {\n map = GridMap.fromFile(\"map.txt\");\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n if (map == null)\n throw new RuntimeException(\"Unable to obtain discretized map.\");\n\n // Prints map\n System.out.println(\"Map to analyze:\");\n System.out.println(map);\n\n // Executes search\n int[] rowColIni = map.getStart();\n int[] rowColFim = map.getGoal();\n Block initial = new Block(rowColIni[0], rowColIni[1], BlockType.FREE);\n Block target = new Block(rowColFim[0], rowColFim[1], BlockType.FREE);\n GreedySearch search = new GreedySearch(map, initial, target);\n RobotAction[] ans = search.solve();\n\n // Shows answer\n if (ans == null) {\n System.out.println(\"No answer found for this problem.\");\n } else {\n\n Block current = initial;\n System.out.print(\"Answer: \");\n for (RobotAction a : ans) {\n System.out.print(\", \" + a);\n Block next = map.nextBlock(current, a);\n map.setRoute(next.row, next.col);\n current = next;\n }\n\n // Shows map with the route found\n System.out.println();\n System.out.println(\"Route found:\");\n System.out.println(map);\n }\n }",
"public void showDisplaySolution(Solution<Position> solution);",
"public void mapToString() {\r\n for (Square[] x : map) {\r\n for (Square y : x) {\r\n System.out.print(y.getVisual() + \" \");\r\n }\r\n System.out.println();\r\n }\r\n }",
"public static void main(String[] args) {\n Scanner scanner=new Scanner(System.in);\n\n Mahsol<String,Integer,String,String,String> mahsol=new Mahsol<>(\"yakhchal\",\n 10,\"dogholo\",\"250kg\",\"5mil\");\n int a=200;\n int c=10;\n int n=2;\n Mahsol<String,Integer,String,String,String> mahsol2=new Mahsol<>(\"TV\",11,\"LED\",\n \"50kg\",\"1.2mil\");\n int b=125;\n int w=13;\n int r=5;\n Mahsol<String,Integer,String,String,String> mahsol3=new Mahsol<>(\"mashin lebas shoii\",12,\n \"samsung\",\"300kg\",\"3mil\");\n int s=150;\n int g=17;\n int h=7;\n System.out.println(\"code 10 is yakhchal:\");\n System.out.println(\"code 11 is TV:\");\n System.out.println(\"code 12 is mashin lebas shoii\");\n int i=scanner.nextInt();\n\n Map<Integer, String> map = new HashMap<>();\n switch (i) {\n case 10:map.put(10,mahsol.imformaion());\n mahsol.finalprice(a);\n mahsol.tedadmahsol(c,n);break;\n case 11:map.put(11,mahsol2.imformaion());\n mahsol2.finalprice(b);\n mahsol2.tedadmahsol(w,r);break;\n case 12:map.put(12,mahsol3.imformaion());\n mahsol3.finalprice(s);\n mahsol3.tedadmahsol(g,h);break;\n }\n\n }",
"public void printMap() {\n String s = \"\";\n Stack st = new Stack();\n st.addAll(map.entrySet());\n while (!st.isEmpty()) {\n s += st.pop().toString() + \"\\n\";\n }\n window.getDHTText().setText(s);\n }",
"public static void main(String[] args) {\n\t\tint[][] maps = \n\t\t\t{\n\t\t\t\t\t{1,0,1,1,1},\n\t\t\t\t\t{1,0,1,0,1},\n\t\t\t\t\t{1,0,1,1,1},\n\t\t\t\t\t{1,1,1,0,1},\n\t\t\t\t\t{0,0,0,0,1}\n\t\t\t};\n\t\tSystem.out.println(solution(maps));\n\t}",
"static void printTheSpecifiedMap(MapLM mapToPrint){\n List<List<List<Ansi>>> mapAnsi = mapLMToAnsi(mapToPrint.getMap());\n for(int mapRow = 0; mapRow < GeneralInfo.ROWS_MAP; mapRow++){\n /*mapAnsi.get(mapRow).get(0) is the first square of the current mapRow,\n assuming the other squares on the same mapRow have the same\n number of rows (in other words, the same .size())\n */\n for(int squareRow=0; squareRow < mapAnsi.get(mapRow).get(0).size() ; squareRow++){\n //for each square on the specified mapRow(mapRow is a list of squares)\n for(List<Ansi> square: mapAnsi.get(mapRow)){\n AnsiConsole.out.print(square.get(squareRow));\n /*after the last character of the second line of the last square of\n each row of the map, print the corresponding vertical coordinate\n */\n if((/*last square of the foreach*/ square.equals(mapAnsi.get(mapRow).get(mapAnsi.get(mapRow).size()-1)))\n && squareRow == 1){\n //print vertical coordinate coordinate\n System.out.print(\" \" + verticalCoordinateForUser(mapRow));\n }\n }\n /*after printing the whole specified line of the map (the specified line of all\n the squares on the specified row of squares of the map), start a new line\n */\n System.out.print(\"\\n\");\n }\n }\n //print horizontal coordinates\n System.out.print(\"\\n\");\n for(int i=0; i < GeneralInfo.COLUMNS_MAP; i++){\n System.out.print(\" \" + horizontalCoordinateForUser(i) + \" \");\n }\n }",
"public void displayData(Solution solution);",
"void toConsole(IMap map);",
"public static void main(String[] args) {\n Map<Character, Integer> myMap = new HashMap<>();\n\n createMap(myMap); // create map based on user input\n displayMap(myMap); // display map content\n }",
"public static void main(String[] args) {\n System.out.println(\"HW1\");\n Map<String, Integer> map = new HashMap<>();\n map.put(\"Ivan\",19);\n map.put(\"Dm\",20);\n map.put(\"Petr\",19);\n\n\n }",
"private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }",
"public static void main(String[] args) {\n\n Map<String, Integer> nyt;\n nyt = new HashMap<String, Integer>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt(), m = scan.nextInt();\n scan.nextLine();\n int cont = 0;\n seen = new boolean[193];\n g = new ArrayList[193];\n\n for (int i = 0; i < 193; i++) {\n g[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n String[] value = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(value[0])) {\n nyt.put(value[0], cont);\n cont++;\n }\n if (!nyt.containsKey(value[1])) {\n nyt.put(value[1], cont);\n cont++;\n }\n\n int u = nyt.get(value[0]);\n int v = nyt.get(value[1]);\n g[u].add(v);\n }\n boolean ok;\n for (int i = 0; i < m; i++) {\n ok = true;\n String[] trump = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(trump[0]) || !nyt.containsKey(trump[1])) {\n System.out.println(\"Pants on Fire\");\n } else {\n\n dfs(nyt.get(trump[0]));\n if (seen[nyt.get(trump[1])]) {\n System.out.println(\"Fact\");\n ok = false;\n }\n\n if (ok) {\n seen = new boolean[193];\n dfs(nyt.get(trump[1]));\n if (seen[nyt.get(trump[0])]) {\n System.out.println(\"Alternative Fact\");\n } else {\n System.out.println(\"Pants on Fire\");\n }\n\n }\n\n }\n seen = new boolean[193];\n\n }\n\n }",
"private void createMapOfFourthType() {\n\n this.typeOfMap=4;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.PURPLE, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n }",
"public void displaySolution() {\r\n Problem pb = new Problem(sources, destinations, costMatrix);\r\n pb.printProblem();\r\n Solution sol = new Solution(pb);\r\n sol.computeCost();\r\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"This is a 10 * 10 map, x axis and y axis start from 0 - 9.\");\n\t\tSystem.out.println(\"There are totally \"+MINE_NUMBER+\" mines, and your task is to find all the mines.\");\n\n\t\t// generate 10*10 grid\n\t\t/*\n\t\t * 0: not mine 1: mine 2: mine found 3: not mine shot\n\t\t * \n\t\t */\n\t\tint[][] map = new int[10][10];\n\t\t// repeated at least 5 times generate 5 mines\n\t\tint i = 0;\n\t\twhile (i < MINE_NUMBER) {\n\t\t\t// generate mines generally\n\t\t\tint x = (int) (Math.random() * 10); // 0-9\n\t\t\tint y = (int) (Math.random() * 10); // 0-9\n\t\t\tif (map[x][y] == 1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmap[x][y] = 1;\n\t\t\ti++;\n\t\t}\n\n\t\t// ready to accept user input\n\t\tScanner input = new Scanner(System.in);\n\t\t// how many mines been found\n\t\tint find = 0;\n\n\t\t// start to accept user input\n\t\twhile (find < MINE_NUMBER) {\n\t\t\tint clickX, clickY;\n\t\t\tSystem.out.println(\"please enter the x axis of mine\");\n\t\t\tclickX = input.nextInt();\n\t\t\tSystem.out.println(\"please enter the y axis of mine \");\n\t\t\tclickY = input.nextInt();\n\n\t\t\tif (map[clickX][clickY] == 1) {\n\t\t\t\tmap[clickX][clickY] = 2;\n\t\t\t\tfind++;\n\t\t\t\tSystem.out.println(\"You find a mine! Now you found \" + find + \" mines and \" + (MINE_NUMBER - find) + \" left!\");\n\n\t\t\t} else if (map[clickX][clickY] == 2) {\n\t\t\t\tSystem.out.println(\"You have found this target, try again!\");\n\t\t\t} else {\n\t\t\t\tmap[clickX][clickY] = 3;\n\t\t\t\tSystem.out.println(\"You miss!\");\n\t\t\t\thint(map, clickX, clickY);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"You found all the mines! You win!\");\n\t\tinput.close();\n\t}",
"private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }",
"private Map<String, String> solutionForCNSHIsFull() {\r\n Map<String, String> map = new HashMap<>();\r\n map.put(this.students[0].getName(), this.schools[1].getName());\r\n map.put(this.students[1].getName(), this.schools[1].getName());\r\n map.put(this.students[2].getName(), this.schools[1].getName());\r\n map.put(this.students[3].getName(), this.schools[2].getName());\r\n return map;\r\n }",
"void mapChosen(int map);",
"private void createMapOfThirdType(){\n\n this.typeOfMap=3;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n }",
"private void createMapOfSecondType(){\n\n this.typeOfMap=2;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n\n }",
"public static void main(String[] args) {\n String [][] map = {{\" \",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"K\"},\n {\"1 \",\"0\" ,\"*\",\"0\",\"0\" ,\"*\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"2 \",\"0\" ,\"0\",\"0\",\"0\" ,\"*\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"3 \",\"*\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"4 \",\"*\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"5 \",\"*\" ,\"0\",\"*\",\"*\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"6 \",\"*\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"*\",\"0\"},\n {\"7 \",\"0\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"*\" ,\"0\" ,\"*\",\"0\"},\n {\"8 \",\"0\" ,\"*\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"*\" ,\"0\" ,\"*\",\"0\"},\n {\"9 \",\"0\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"10\",\"*\" ,\"0\",\"*\",\"*\" ,\"*\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"}};\n for (int i=0; i<11; ++i) {\n for (int j = 0; j < 11; ++j) {\n System.out.print(map[i][j]);\n }\n System.out.println();\n }\n System.out.println();\n }",
"private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"public String display(PlayMap aPlayMap) {\r\n String tmpOutput = \"\";\r\n Field tmpField;\r\n \r\n tmpOutput = \"<div class=\\\"map\\\" id=\\\"map\\\" style=\\\"width:\" + aPlayMap.getXDimension() * 34.75 + \"px; \";\r\n tmpOutput += \"height:\" + aPlayMap.getYDimension() * 34.75 + \"px;\\\">\\n\";\r\n // loop for row\r\n for (int i = 0; i < aPlayMap.getYDimension(); i++) {\r\n // loop for column\r\n for (int j = 0; j < aPlayMap.getXDimension(); j++) {\r\n tmpField = aPlayMap.getField(j, i);\r\n tmpOutput += \"<div id=\\\"\" + j + \"/\" + i + \"\\\" \";\r\n try {\r\n tmpOutput += \"class=\\\"field \" + Ground.getGroundLabeling(tmpField.getGround()) + \"\\\" \";\r\n } catch (UnknownFieldGroundException e) {\r\n e.printStackTrace();\r\n }\r\n Placeable tmpSetter = tmpField.getSetter();\r\n String tmpColor = new String (\"#000000\");\r\n String tmpPlacable = new String (\"item\");\r\n if (tmpSetter != null) {\r\n if (tmpSetter instanceof Figure) {\r\n tmpColor = new String();\r\n switch (tmpField.getSetter().getId()) {\r\n case 'A':\r\n tmpColor = \"#ff0000\";\r\n break;\r\n case 'B':\r\n tmpColor = \"#0000ff\";\r\n break;\r\n }\r\n tmpPlacable = \"figure\";\r\n }\r\n tmpOutput += \"onClick=\\\"checkUserAction(this);\\\" \";\r\n tmpOutput += \"onMouseOver=\\\"hoverOn(this);\\\" onMouseOut=\\\"hoverOff(this);\\\" status=\\\"placed\\\" filled=\\\"\" + tmpPlacable + \"\\\" placablecolor=\\\"\" + tmpColor + \"\\\" >\";\r\n String tmpImage = tmpSetter.getImage();\r\n tmpOutput += \"<img src=\\\"resources/pictures/\" + tmpImage + \"\\\">\";\r\n } else {\r\n tmpOutput += \"onClick=\\\"checkUserAction(this);\\\" \";\r\n tmpOutput += \"onMouseOver=\\\"hoverOn(this);\\\" onMouseOut=\\\"hoverOff(this);\\\" status=\\\"empty\\\" filled=\\\"no\\\" placablecolor=\\\"#000000\\\" >\";\r\n }\r\n tmpOutput += \"</div>\\n\";\r\n }\r\n }\r\n tmpOutput += \"</div>\\n\";\r\n\r\n return tmpOutput;\r\n }",
"public void printMap(){\n\n for (Tile [] tile_row : this.layout)\n {\n for (Tile tile : tile_row)\n {\n if (tile.isShelf()){\n System.out.print(\" R \");\n }\n else if (tile.isDP()){\n System.out.print(\" D \");\n }\n\n else {\n System.out.print(\" * \");\n }\n\n }\n System.out.println();\n }\n\n }",
"public void printMap(int[][] map) {\n \tfor(int i = 7; i >= 0; i--) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tSystem.out.print(\"\"+map[i][j]+\"\\t\");\n \t\t}\n \t\tSystem.out.println();\n \t}\n }",
"public void initializeMaps() {\n\t\t//can use any map\n\n\t\t//left map\n\t int x = 0, y = 0;\n\t int Lvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyLeft.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tLvalue = Integer.parseInt(str);\n\t \t\t\tleftMap[x][y] = Lvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //right map\n\t x = 0;\n\t y = 0;\n\t int Rvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \t//change to map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyRight.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tRvalue = Integer.parseInt(str);\n\t \t\t\trightMap[x][y] = Rvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //print each map for testing\n\t for(int i = 0; i < leftMap.length; i++ )\n\t \tfor(int j = 0; j < leftMap[i].length; j++ )\n\t \t\tSystem.out.println(leftMap[i][j]);\n\t System.out.println(\"*-----------------*\");\n\t for(int i = 0; i < rightMap.length; i++ )\n\t \tfor(int j = 0; j < rightMap[i].length; j++ )\n\t \t\tSystem.out.println(rightMap[i][j]);\n\t}",
"public static void main(String[] args) throws FileNotFoundException {\n\r\n\t\tRandom random = new Random();\r\n\t\tMap<String, String[][]> mapTM = new HashMap<String, String[][]>();\r\n\t\tMap<String, List<String>> map = new HashMap<String, List<String>>();\r\n\r\n\t\tArrayList<String> list1 = new ArrayList<String>();\r\n\t\tlist1.add(\"T\");\r\n\t\tlist1.add(\"E\");\r\n\t\tlist1.add(\"M\");\r\n\t\tlist1.add(\"P\");\r\n\t\tlist1.add(\"C\");\r\n\t\tlist1.add(\"SS\");\r\n\r\n\t\tArrayList<String> list2 = new ArrayList<String>();\r\n\t\tlist2.add(\"T\");\r\n\t\tlist2.add(\"E\");\r\n\t\tlist2.add(\"M\");\r\n\t\tlist2.add(\"P\");\r\n\t\tlist2.add(\"C\");\r\n\t\tlist2.add(\"SS\");\r\n\r\n\t\tArrayList<String> list3 = new ArrayList<String>();\r\n\t\tlist3.add(\"T\");\r\n\t\tlist3.add(\"E\");\r\n\t\tlist3.add(\"M\");\r\n\t\tlist3.add(\"P\");\r\n\t\tlist3.add(\"C\");\r\n\t\tlist3.add(\"SS\");\r\n\t\t\r\n\t\tArrayList<String> list4 = new ArrayList<String>();\r\n\t\tlist4.add(\"T\");\r\n\t\tlist4.add(\"Ex\");\r\n\t\tlist4.add(\"M\");\r\n\t\tlist4.add(\"Px\");\r\n\t\tlist4.add(\"C\");\r\n\t\tlist4.add(\"ScS\");\r\n\r\n\t\tArrayList<String> list5 = new ArrayList<String>();\r\n\t\tlist5.add(\"Tf\");\r\n\t\tlist5.add(\"E\");\r\n\t\tlist5.add(\"M\");\r\n\t\tlist5.add(\"Pd\");\r\n\t\tlist5.add(\"C\");\r\n\t\tlist5.add(\"SS\");\r\n\r\n\t\tArrayList<String> list6 = new ArrayList<String>();\r\n\t\tlist6.add(\"Tf\");\r\n\t\tlist6.add(\"E\");\r\n\t\tlist6.add(\"Mf\");\r\n\t\tlist6.add(\"P\");\r\n\t\tlist6.add(\"Cd\");\r\n\t\tlist6.add(\"SS\");\r\n\r\n\t\tmap.put(\"C1\", list1);\r\n\t\tmap.put(\"C2\", list2);\r\n\t\tmap.put(\"C3\", list3);\r\n\t\tmap.put(\"C4\", list4);\r\n\t\tmap.put(\"C5\", list5);\r\n\t\tmap.put(\"C6\", list6);\r\n\t\t\r\n\t\tList<String> keys = new ArrayList<String>(map.keySet());\r\n\t\tCollections.shuffle(keys);\r\n\r\n\t\tfor (Object string : keys) {\r\n\t\t\tint row = 6;\r\n\t\t\tint column = 8;\r\n\t\t\tint i = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tboolean reset =false;\r\n\t\t\tString[][] stringArray = new String[row][column];\r\n\t\t\tList<String> temp = map.get(string);\r\n\t\t\tCollections.shuffle(temp);\r\n\t\t\tfor (int iterator = 0; iterator < column; iterator++) {\r\n\t\t\t\t\r\n\t\t\t\tif(iterator >= temp.size()){\r\n\t\t\t\t\tint randomInteger = random.nextInt(temp.size());\r\n\t\t\t\t\tstringArray[i][j] = temp.get(randomInteger);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tstringArray[i][j] = temp.get(iterator);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor(Object string01 : keys){\r\n\t\t\t\t\tif(mapTM.get(string01) != null && !string01.equals(string)){\r\n\t\t\t\t\t\tString[][] temp01 = mapTM.get(string01);\r\n\t\t\t\t\t\tif(temp01[i][j] != null && temp01[i][j].equals(stringArray[i][j])){\r\n\t\t\t\t\t\t\tj = 0;\r\n\t\t\t\t\t\t\tCollections.shuffle(temp);\r\n\t\t\t\t\t\t\titerator = -1;\r\n\t\t\t\t\t\t\treset = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(reset){\r\n\t\t\t\t\treset = false;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (j < column && j != column - 1) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t} else if (j == column - 1 && i != row - 1) {\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tj = 0;\r\n\t\t\t\t\tCollections.shuffle(temp);\r\n\t\t\t\t\titerator = -1;\r\n\t\t\t\t} else if (j == column - 1 && i == row - 1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmapTM.put((String) string, stringArray);\r\n\t\t}\r\n\t\t\r\n\t\tfor (Map.Entry<String, String[][]> entry : mapTM.entrySet()) {\r\n\t\t\tSystem.out.println(entry.getKey());\r\n\t\t\tSystem.out.println(Arrays.deepToString(entry.getValue()));\r\n\t\t}\r\n\r\n\t}",
"private static void simpleMapExamples() {\n\t\tSystem.out.println(\"simpleMapExamples Start ----\");\n\t\t\n\t\tMap<String,Integer> mapEx1 = new HashMap<>();\n\t\t\n\t\tmapEx1.put(\"Amit\", 35);\n\t\tmapEx1.put(\"Gunjan\", 45);\n\t\tmapEx1.put(\"Vidut\", 55);\n\t\t\n\t\t//Loop over Map\n\t\tfor(Entry<String, Integer> entry : mapEx1.entrySet()) {\n\t\t\t\n\t\t\tString key = entry.getKey();\n\t\t\tInteger val = entry.getValue();\n\t\t\t\n\t\t\tSystem.out.println(\"KEY : \" + key + \" : VAL : \" + val);\n\t\t\t\n\t\t}\n\t\t\n\t\t//API to get collection of values from the map\n\t\tCollection<Integer> values = mapEx1.values();\n\t\t\n\t\t//Now browse over collection values using java8 lambda\n\t\tSystem.out.println(\"Printing values ...\");\n\t\tvalues.forEach((val) -> System.out.println(val));\n\t\t\n\t\t//Replace values in the map using \n\t\t//Here we are replacing each key's value to 46\n\t\tmapEx1.replaceAll(( s, i) -> {\n\t\t\treturn 46;\n\t\t});\n\t\t\n\t\tSystem.out.println(\"Printing after firing replaceAll...\");\n\t\t//Now print the key/value pair of map using lambda\n\t\tmapEx1.forEach((k,v) -> {\n\t\t\tSystem.out.println(\"Key : \" + k + \" Val \" + v);\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"simpleMapExamples End ----\");\n\t}",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tStringTokenizer tok = new StringTokenizer(br.readLine());\r\n\t\tN= Integer.parseInt(tok.nextToken());\r\n\t\tfor(int i=0;i<N;i++) {\r\n\t\t\t tok = new StringTokenizer(br.readLine());\r\n\t\t\t for(int j=0;j<N;j++) {\r\n\t\t\t\t map[i][j]=Integer.parseInt(tok.nextToken());\r\n\t\t\t }\r\n\t\t}\r\n\t\tsolve(N,0,0);\r\n\t\tSystem.out.println(ansWhite+\"\\n\"+ansBlue);\r\n\t}",
"private static void showMap() {\n\t\tSet<Point> pointSet = map.keySet();\n\t\tfor (Point p : pointSet) {\n\t\t\tSystem.out.println(map.get(p));\n\t\t}\n\t}",
"public void testMapping() {\n\t\ttry { Thread.sleep(1000); } catch (Exception e) { }\n\t\tPuzzleView view = app.getPuzzleView();\n\t\t\n\t\tapp.setVisible(true);\n\t\t\n\t}",
"public static String[][] getMapMatrix(HashMap<String, Tile> tiles) {\n\n Iterator<String> tileList = tiles.keySet().iterator();\n String[][] matrix = new String[tiles.keySet().size() + 1][tiles.keySet().size() + 1];\n\n // Initialize matrix\n int i = 1;\n matrix[0][0] = \"\";\n\n\n while (i <= tiles.keySet().size()) {\n if (tileList.hasNext()) {\n String tileName = tileList.next();\n matrix[i][0] = tileName;\n matrix[0][i] = tileName;\n i++;\n }\n }\n\n\n for (int j = 1; j <= tiles.keySet().size(); j++) {\n\n Tile t = tiles.get(matrix[j][0]);\n\n List<String> neighbours = t.getNeighbourTile();\n\n int k = 1;\n\n while (k <= tiles.keySet().size()) {\n\n if (neighbours.contains(matrix[0][k]))\n matrix[j][k] = \"Yes\";\n else\n matrix[j][k] = \"No \";\n\n k++;\n }\n }\n\n // Print matrix\n for (int j = 0; j <= tiles.keySet().size(); j++) {\n\n for (int k = 0; k <= tiles.keySet().size(); k++) {\n\n if (matrix[j][k].length() == 2)\n matrix[j][k] = matrix[j][k] + \" \";\n\n System.out.print(matrix[j][k] + \" \");\n }\n System.out.println();\n }\n\n return matrix;\n }",
"int help(int n, int k, int[][] map) {\n if (n <= 0 || k < 0) return 0;\n if (0 == k) return 1;\n if (1 == k) return n - 1;\n if (map[n][k] > 0) return map[n][k];\n long sum = 0;\n for (int i = 1; i <= k; i ++) {\n for (int j = 0; j < n; j ++) {\n// System.out.println(\"i = \" + i + \", j = \" + j + \", j - i = \" + (j - i) + \", j + i = \" + (j + i) + \", f0 = \" + (n - j + i - 1) + \", f1 = \" + (n - j - i - 1) + \", k - i = \" + (k - i));\n int g = 0, g0 = 0, g1 = 0;\n if (j - i >= 0) {\n g += help(n - j + i - 1, k - i, map);\n sum += g;\n// System.out.println(\"g0 = \" + g0 + \", g1 = \" + g1 + \", g = \" + g + \", sum = \" + sum);\n// System.out.println(\"-\");\n }\n }\n\n }\n// System.out.println(\"sum = \" + sum + \" ----\");\n map[n][k] = (int)sum;\n return (int)sum;\n }",
"public static void main(String[] args) {\n int SIZE=4;\n double entropy=0.15;\n MSGeneratorMap map = new MSGeneratorMap(SIZE,entropy);\n String[][] p = map.getBoard();\n System.out.println(map.toString());\n\n }",
"public void updateFinalMaps() {\r\n\t\t//prints out probMap for each tag ID and makes new map with ln(frequency/denominator) for each\r\n\t\t//wordType in transMapTemp\r\n\t\tTreeMap<String, TreeMap<String, Float>> tagIDsFinal = new TreeMap<String, TreeMap<String, Float>>();\r\n\t\tfor (String key: this.transMapTemp.keySet()) {\r\n\t\t\tProbMap probMap = this.transMapTemp.get(key);\r\n\t\t\ttagIDsFinal.put(key, this.transMapTemp.get(key).map);\r\n\r\n\t\t\tfor (String key2: probMap.map.keySet()) {\r\n\t\t\t\ttagIDsFinal.get(key).put(key2, (float) Math.log(probMap.map.get(key2) / probMap.getDenominator()));\r\n\t\t\t\tSystem.out.println(key + \": \" + key2 + \" \" + tagIDsFinal.get(key).get(key2));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//makes new map with ln(frequency/denominator) for each word in emissionMapTemp\r\n\t\tTreeMap<String, TreeMap<String, Float>> emissionMapFinal = new TreeMap<String, TreeMap<String, Float>>();\r\n\t\tfor (String key: this.emissionMapTemp.keySet()) {\r\n\t\t\tProbMap probMap = this.emissionMapTemp.get(key);\r\n\t\t\temissionMapFinal.put(key, this.emissionMapTemp.get(key).map);\r\n\t\t\tfor (String key2: probMap.map.keySet()) {\r\n\r\n\t\t\t\temissionMapFinal.get(key).put(key2, (float) Math.log(probMap.map.get(key2) / probMap.getDenominator()));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.transMap = tagIDsFinal;\r\n\t\tthis.emissionMap = emissionMapFinal;\t\t\r\n\t}",
"public static void printHashMapSI(Map<String, Integer> map) throws IOException{\n\t\tPrintWriter writer = new PrintWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/allTermHash\");\n\t\tfor (Entry<String, Integer> entry : map.entrySet())\n\t {\t \t\t\n\t \t\twriter.println(entry.getKey()+\":\"+entry.getValue());\n\t }\n\t writer.close();\n\t}",
"public static void main(String[] args) throws Exception{\n DrawingPanel panel = new DrawingPanel(840, 480);\n Graphics g = panel.getGraphics();\n \n //Test Step 1 - construct mountain map data\n Scanner S = new Scanner(new File(\"Colorado_844x480.dat\"));\n int[][] grid = read(S, 480, 840);\n \n //Test Step 2 - min, max\n int min = findMinValue(grid);\n System.out.println(\"Min value in map: \"+ min);\n \n int max = findMaxValue(grid);\n System.out.println(\"Max value in map: \"+ max);\n \n \n //Test Step 3 - draw the map\n drawMap(g, grid);\n \n //Test Step 4 - draw a greedy path\n \n // 4.1 implement indexOfMinInCol\n int minRow = indexOfMinInCol(grid, 0); // find the smallest value in col 0\n System.out.println(\"Row with lowest val in col 0: \"+ minRow);\n \n // 4.2 use minRow as starting point to draw path\n g.setColor(Color.RED); //can set the color of the 'brush' before drawing, then method doesn't need to worry about it\n int totalChange = drawLowestElevPath(g, grid, minRow); //\n System.out.println(\"Lowest-Elevation-Change Path starting at row \"+minRow+\" gives total change of: \"+totalChange);\n \n //Test Step 5 - draw the best path\n g.setColor(Color.RED);\n int bestRow = indexOfLowestElevPath(g, grid);\n \n //drawMap(g, grid); //use this to get rid of all red lines\n //g.setColor(Color.GREEN); //set brush to green for drawing best path\n //totalChange = drawLowestElevPath(g, grid, bestRow);\n System.out.println(\"The Lowest-Elevation-Change Path starts at row: \"+bestRow+\" and gives a total change\\nof: \"+totalChange);\n }",
"public void printMiniMap() \n { \n /* this.miniMapFrame(); */\n }",
"public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }",
"private void fillMapsAndLists() {\n\t\ttabNames.add(\"BenchIT-GUI\");\n\t\ttabNames.add(\"Network\");\n\t\ttabNames.add(\"Tips\");\n\t\ttabNames.add(\"Console\");\n\t\ttabNames.add(\"Execute\");\n\t\ttabNames.add(\"Remote-Execute\");\n\n\t\t// do not display admin tool configuration as it's integrated into the GUI\n\t\t// tabNames.add( \"Admin-GUI\" );\n\t\t// If the tool tip starts with \"Check \" a checkbox will be shown.\n\t\t// If the tool tip starts with \"The \" it's refered to as String type.\n\t\t// If the tool tip starts with something else it's refered to as int type.\n\t\t// Comment put statements of gui options you don't want to see\n\t\t// in the option dialog!\n\t\tbenchitGUIMap.put(\"scaleShape\", \"Size of the points in plots (default is 6).\");\n\t\tbenchitGUIMap.put(\"errorInt\", \"Which value to use for invalid points (should be << 0).\");\n\t\tbenchitGUIMap.put(\"numberOfMixers\",\n\t\t\t\t\"Insert the number of mixers, you'd like to use (updated with restart).\");\n\n\t\tbenchitGUIMap.put(\"loadAndSaveSettings\",\n\t\t\t\t\"Check this if you'd like to save and load changes in result-view.\");\n\n\t\tbenchitGUIMap.put(\"editorTextSize\", \"Text size for editors.\");\n\t\tbenchitGUIMap.put(\"consoleTextSize\", \"Text size for console (needs restart).\");\n\n\t\tbenchitGUIMap.put(\"kernelSourceEdit\", \"Check this to see and edit the kernel source files.\");\n\t\tnetworkMap.put(\"serverIP\", \"The server's IP or name for database access.\");\n\t\tnetworkMap.put(\"updateServer\", \"The server directory, where the GUI can find updates.\");\n\t\tnetworkMap.put(\"updateEnabled\", \"Check to enable update-check when starting.\");\n\t\tnetworkMap.put(\"showRemoteTypeDialog\", \"Check this show \\\"enter password\\\" reminder dialog.\");\n\t\ttipsMap.put(\"showTipsOnStartUp\", \"Check this to display the daily tip on start up.\");\n\t\ttipsMap.put(\"nextTip\", \"This is the number of the next tip to show.\");\n\t\ttipsMap.put(\"tipFileBase\", \"The relative path to the tip html files.\");\n\t\ttipsMap.put(\"tipIconBase\", \"The relative path to the tip icon.\");\n\t\tconsoleMap.put(\"openConsole\",\n\t\t\t\t\"Check to open the output console on start up in external window.\");\n\t\tconsoleMap.put(\"consoleWindowXPos\", \"Console x-position of top left corner.\");\n\t\tconsoleMap.put(\"consoleWindowYPos\", \"Console x-position of top left corner.\");\n\t\tconsoleMap.put(\"consoleWindowXSize\", \"Console window width.\");\n\t\tconsoleMap.put(\"consoleWindowYSize\", \"Console window height.\");\n\t\tcompileAndRunMap.put(\"settedTargetActiveCompile\",\n\t\t\t\t\"Check to activate the target flag for compiling\");\n\t\tcompileAndRunMap.put(\"settedTargetCompile\", \"The target flag for compiling\");\n\t\tcompileAndRunMap.put(\"settedTargetActiveRun\", \"Check to activate the target flag for running\");\n\t\tcompileAndRunMap.put(\"settedTargetRun\", \"The target flag for running\");\n\t\tcompileAndRunMap.put(\"runWithoutParameter\",\n\t\t\t\t\"Check to run executables with the Parameters from Compile-time\");\n\n\t\tcompileAndRunMap.put(\"shutDownForExec\", \"Check to shutdown the GUI for local measurements.\");\n\n\t\tcompileAndRunMap\n\t\t\t\t.put(\"askForShutDownForExec\",\n\t\t\t\t\t\t\"Check to activate a dialog which asks whether to shut-down, when starting a kernel locally.\");\n\n\t\tremoteCompileAndRunMap.put(\"settedTargetActiveCompileRemote\",\n\t\t\t\t\"Check to activate the target flag for remote compiling\");\n\t\tremoteCompileAndRunMap.put(\"settedTargetCompileRemote\", \"The target flag for remote compiling\");\n\t\tremoteCompileAndRunMap.put(\"settedTargetActiveRunRemote\",\n\t\t\t\t\"Check to activate the target flag for remote running\");\n\t\tremoteCompileAndRunMap.put(\"settedTargetRunRemote\", \"The target flag for remote running\");\n\t\tremoteCompileAndRunMap.put(\"runRemoteWithoutParameter\",\n\t\t\t\t\"Check to run remote-executables with the Parameters from Compile-time\");\n\n\t}",
"public static void createMap() throws IOException {\n\n int no_of_continents;\n HashMap<String, List<String>> neighborsList = new HashMap<>();\n\n System.out.println(\"Enter the number of Continents\");\n if (sc.hasNextInt()) {\n no_of_continents = sc.nextInt();\n\n for (int i = 0; i < no_of_continents; i++) {\n\n System.out.println(\"Enter continent name\");\n String continent = sc.next();\n\n System.out.println(\"Enter no of countries in continent\");\n\n int no_of_countries = 0;\n if (sc.hasNextInt())\n no_of_countries = sc.nextInt();\n\n continents.put(continent, no_of_countries);\n }\n } else {\n System.out.println(\"Invalid input! Enter again :\");\n sc.next();\n }\n\n System.out.println(\"Enter no of countries\");\n int no_of_countries = sc.nextInt();\n List<String> neighbours = new ArrayList<>();\n\n for (int i = 0; i < no_of_countries; i++) {\n\n System.out.println(\"Enter country name\");\n String country = sc.next();\n\n System.out.println(\"Enter x and y co-ordinate\");\n int x = sc.nextInt();\n int y = sc.nextInt();\n\n System.out.println(\"Enter continent it belongs to\");\n String continent = sc.next();\n\n System.out.println(\"Enter no of adjacent countries\");\n int no_adj_c = sc.nextInt();\n while (no_adj_c != 0) {\n System.out.println(\"Enter adjacent country\");\n neighbours.add(sc.next());\n no_adj_c--;\n }\n\n board.createTile(country, x, y, continent);\n neighborsList.put(country, neighbours);\n }\n\n for (Map.Entry entry : neighborsList.entrySet()) {\n board.setNeighbourTile((List<String>) entry.getValue(), (String) entry.getKey());\n }\n\n System.out.println(\"Risk Map Loaded!\");\n System.out.println(\"Storing to file\");\n storeMap();\n\n }",
"public void updateMap(HashMap<Coordinate, MapTile> currentView) {\n\t\t\tfor (Coordinate key : currentView.keySet()) {\n\t\t\t\tif (!map.containsKey(key)) {\n\t\t\t\t\tMapTile value = currentView.get(key);\n\t\t\t\t\tmap.put(key, value);\n\t\t\t\t\tif (value.getType() == MapTile.Type.TRAP) {\n\t\t\t\t\t\tTrapTile value2 = (TrapTile) value; // downcast to find type\n\t\t\t\t\t\tif (value2.getTrap().equals(\"parcel\") && possibleTiles.contains(key)) {\n\t\t\t\t\t\t\tparcelsFound++;\n\t\t\t\t\t\t\tparcels.add(key);\n\t\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\t\tphase = \"search\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"lava\")) {\n\t\t\t\t\t\t\tlava.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"health\")) {\n\t\t\t\t\t\t\thealth.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"water\")) {\n\t\t\t\t\t\t\twater.add(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (value.getType() == MapTile.Type.FINISH) {\n\t\t\t\t\t\texitFound = true;\n\t\t\t\t\t\texit.add(key);\n\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\tphase = \"search\";\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}",
"@Test\n\tpublic void multipleSolutionsTest(){\n\t\tDjikstrasMap m = new DjikstrasMap();\t//Creates new DjikstrasMap object\n\t\t\n\t\tm.addRoad(\"Guildford\", \"Portsmouth\", 20.5, \"M3\");\t//Adds a road from Guildford to portsmouth to the map\n m.addRoad(\"Portsmouth\", \"Guildford\", 20.5, \"M3\");\n \n m.addRoad(\"Guildford\", \"Winchester\", 20.5, \"A33\");\t//Adds a road from Guildford to winchester to the map\n m.addRoad(\"Winchester\", \"Guildford\", 20.5, \"A33\");\n \n m.addRoad(\"Winchester\", \"Fareham\", 20.5, \"M27\");\t//Adds a road from winchester to fareham to the map\n m.addRoad(\"Fareham\", \"Winchester\", 20.5, \"M27\");\n\t\t\n m.addRoad(\"Portsmouth\", \"Fareham\", 20.5, \"M25\");\t//Adds a road from fareham to portsmouth to the map\n m.addRoad(\"Fareham\", \"Portsmouth\", 20.5, \"M25\");\n \n m.findShortestPath(\"Fareham\");\t//Starts the algorithm to find the shortest path\n \n List<String> temp = new ArrayList<String>();\t//Holds the route plan\n temp = m.createRoutePlan(\"Guildford\");\t//Calls methods to assign the route plan to temp\n \n assertEquals(\"1. Take the M27 to Winchester\",temp.get(0));\t//tests that the different lines in the route plan are correct and that the algorithm did indeed take the shortest route\n assertEquals(\"2. Take the A33 to Guildford\", temp.get(1));\n assertEquals(\"\", temp.get(2));\n assertEquals(\"The Journey will take 41 hours and .00 minutes long.\", temp.get(3));\n assertEquals(\"\", temp.get(4));\n \n assertEquals(5, temp.size());\t//tests to see that the route plan is 5 line large as it should be\n\t}",
"public void display(){\n\t\tfor (Entry<String, Map<String, Integer>> entry : collocationMap.entrySet()){\n\t\t for (Entry<String, Integer> subEntry : entry.getValue().entrySet()){\n\t\t\t System.out.println(entry.getKey() + \" \" + subEntry.getKey() + \": \" + subEntry.getValue());\n\t\t }\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint[][] map = new int[8][7];\n\t\tmap[3][1] = 1;\n\t\tmap[3][2] = 1;\n\t\tfor (int i = 0; i < map.length; i++) {\n\t\t\tfor (int j = 0; j < map[i].length; j++) {\n\t\t\t\tmap[0][j] = 1;\n\t\t\t\tmap[i][0] = 1;\n\t\t\t\tmap[7][j] = 1;\n\t\t\t\tmap[i][6] = 1;\n\t\t\t\tSystem.out.print(map[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsetWay(map,1,1);\n\t\tSystem.out.println(\"递归后的结果\");\n\t\tfor(int i=0;i<map.length;i++) {\n\t\t\tfor(int j=0;j<map[i].length;j++) {\n\t\t\t\tSystem.out.printf(map[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void createInfluenceMap(Map<Pickup, Boolean> pickupStates) {\n mapWidth = Constants.screenWidth / CELL_SIZE;\n mapHeight = Constants.screenHeight / CELL_SIZE;\n influenceMap = new double[mapWidth][mapHeight];\n\n lowestValue = Double.MAX_VALUE;\n highestValue = -Double.MAX_VALUE;\n\n Vector2d cellCenter = new Vector2d();\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n // get sum of all proximities to pickups here\n for (Pickup p : pickupStates.keySet()) {\n if (!pickupStates.get(p)) {\n // existing pickup\n cellCenter.set(CELL_SIZE * (x + 0.5), CELL_SIZE * (y + 0.5));\n double dist = cellCenter.dist(p.pos);\n //// use exponential dropoff instead of linear dropoff\n double value = 5 + Math.log1p(dist) * -1;\n //double value = (MAX_DIST - dist)/MAX_DIST;\n if (p.type == PickupType.MINE) value *= 0;\n\n influenceMap[x][y] += value * 50;\n }\n }\n }\n }\n\n // go through map and establish ranges\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n double value = influenceMap[x][y];\n if (value > highestValue) highestValue = value;\n if (value < lowestValue) lowestValue = value;\n }\n }\n\n }",
"public static void main(String[] args) {\n\t\tString2Int.put(\"Location1\", new Integer(0));\n\t\tString2Int.put(\"Location2\", new Integer(1));\n\t\tString2Int.put(\"Location3\", new Integer(2));\n\t\tString2Int.put(\"Location4\", new Integer(3));\n\t\t\n\t\t\n\t\t// populate it\n\t\tInt2String.put(new Integer(0), \"Location1\");\n\t\tInt2String.put(new Integer(1), \"Location2\");\n\t\tInt2String.put(new Integer(2), \"Location3\");\n\t\tInt2String.put(new Integer(3), \"Location4\");\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> NHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> NHMap = new ArrayList<Integer[]>();\n\t\tInteger[] NHMapedge1 ={String2Int.get(\"Location1\"),100,30};\n\t\tInteger[] NHMapedge2 ={String2Int.get(\"Location2\"),20,40};\n\t\tInteger[] NHMapedge3 ={String2Int.get(\"Location4\"),30,15};\n\t\tInteger[] NHMapedge4 ={String2Int.get(\"Location3\"),140,60};\n\t\t//edges.add(edge);\n\t\tNHMap.add(NHMapedge1);\n\t\tNHMap.add(NHMapedge2);\n\t\tNHMap.add(NHMapedge3);\n\t\tNHMap.add(NHMapedge4);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> EHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> EHMap = new ArrayList<Integer[]>();\n\t\tInteger[] EHMapedge1 ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10,30};\n\t\tInteger[] EHMapedge2 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20,40};\n\t\tInteger[] EHMapedge3 ={String2Int.get(\"Location4\"),String2Int.get(\"Location4\"),30,50};\n\t\tInteger[] EHMapedge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location2\"),40,60};\n\t\t//edges.add(edge);\n\t\tEHMap.add(EHMapedge1);\n\t\tEHMap.add(EHMapedge2);\n\t\tEHMap.add(EHMapedge3);\n\t\tEHMap.add(EHMapedge4);\n\t\t\n\t\tArrayList<Integer[]> edges = new ArrayList<Integer[]>();\n\t\tInteger[] edge ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10};\n\t\tInteger[] edge1 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20};\n\t\tInteger[] edge2 ={String2Int.get(\"Location1\"),String2Int.get(\"Location3\"),30};\n\t\tInteger[] edge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location4\"),40};\n\t\tInteger[] edge5 ={String2Int.get(\"Location4\"),String2Int.get(\"Location3\"),40};\n\t\t\n\t\t\n\t\tedges.add(edge);\n\t\tedges.add(edge1);\n\t\tedges.add(edge2);\n\t\tedges.add(edge4);\n\t\tedges.add(edge5);\n\t\t\n\t\t\n \n\t //int[][] adj_matrix = MapArrayList(edges1);\n int[][] adj_matrix = MapArrayList(edges);\n\t\tfor(int i=0;i<5;i++){\n\t\t\t//System.out.println(\"\");\n\t\t\tfor(int j=0;j<5;j++){\n\t\t\t\t\n\t\t\t\t//System.out.print(adj_matrix[i][j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//dijkstra(edges1);\n\t\t//System.out.print(edges2);\n\t\t//System.out.println(\"Ehtesham\");\n\t\tArrayList<ArrayList<Integer>> finalpaths = dijkstra(adj_matrix);\n\t\t for (ArrayList<Integer> item : finalpaths) { \n\t\t\t System.out.println(\"\");\n\t\t\t \tfor(Integer node: item)\n\t\t\t \t{\t\n\t\t\t \t\tSystem.out.print(Int2String.get(node)+\"->\");\n\t\t\t \t}\n\t\t\n\t\t }\n\t\t int cost = 210;\n\t\t int time = 190;\n\t\t //ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(finalp1aths1);\n\t\t ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(NHMap,EHMap,finalpaths,cost,time);\n\t\t System.out.println(\"\");\n\t\t System.out.println(\"-----------------------------Final answer-------------------------------\");\n\t\t for (ArrayList<Integer> item : finalp1aths1) { \n\t\t\t\tSystem.out.println(item);\n\t\t\t\t\n\t\t }\n\t\t\t\t \n\t}",
"public void displayMap() {\n MapMenuView mapMenu = new MapMenuView();\r\n mapMenu.display();\r\n \r\n }",
"public String mapToString() {\n\r\n\t\tString mapStr = \"b\";//Initialize the string and mark as map with \"b\"\r\n\t\tString tileStr = \"\";\r\n\r\n\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {//Loop through the tile map\r\n\r\n\t\t\t\ttileStr = \"[\";//Indicate new tile\r\n\r\n\t\t\t\t//Find the tile type and assign to string\r\n\t\t\t\tif (tileMap[i][j] instanceof GrassTile) {\r\n\t\t\t\t\ttileStr += \"0,0\";\r\n\t\t\t\t}else if (tileMap[i][j] instanceof WaterTile) {\r\n\t\t\t\t\ttileStr += \"1,0\";\r\n\t\t\t\t}else if (tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\ttileStr += \"2\";\r\n\t\t\t\t\ttileStr += \",\" + ((ForestTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof MountainTile) {\r\n\t\t\t\t\ttileStr += \"3,0\";\r\n\t\t\t\t}else if (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\ttileStr += \"4\";\r\n\t\t\t\t\ttileStr += \",\" + ((ConoreTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\ttileStr += \"5\";\r\n\t\t\t\t\ttileStr += \",\" + ((KannaiteTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\ttileStr += \"6\";\r\n\t\t\t\t\ttileStr += \",\" + ((FuelTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof OilTile) {\r\n\t\t\t\t\ttileStr += \"7\";\r\n\t\t\t\t\ttileStr += \",\" + ((OilTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof DesertTile) {\r\n\t\t\t\t\ttileStr += \"8,0\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//Check if tile is powered\r\n\t\t\t\tif (tileMap[i][j].getPowered()) {\r\n\t\t\t\t\ttileStr += \",p\";\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileStr += \",o\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmapStr += tileStr;\r\n\t\t\t\t//testCount++;\r\n\t\t\t\t//System.out.println(testCount + \": \" + tileStr);\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//mapStr += \"[\";\r\n\t\t//System.out.println(mapStr); //TEST OUTPUT\r\n\t\tmapStr += \"[1,0,o\";\r\n\t\treturn mapStr;\r\n\t}",
"Map<Long,String> getPlaces(String experiment_no,String laboratory_no) throws IOException;",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint testcase = Integer.parseInt(br.readLine());\n\t\tfor (int t = 0; t < testcase; t++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\tn = Integer.parseInt(st.nextToken());\n\t\t\tk = Integer.parseInt(st.nextToken());\n\t\t\tmap = new int[n][n];\n\t\t\tanswer = 0;\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tmap[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t\t}\n\t\t\t}\n\t\t\tstartPoint = find();\n\t\t\tstart();\n\t\t\tSystem.out.println(\"#\"+(t+1)+\" \"+answer);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tHashMap<String,Integer> hm = new HashMap<String,Integer>();\n\t\tint index = 1;\n\t\ttry {\n\t\t\t\n\t\t\tint[][] adjmatrix = new int[760][760];\n\t\t\t\n\t\t\tfor(int i=1;i<=750;i++)\n\t\t\t{\n\t\t\t\tfor(int j=1;j<=750;j++)\n\t\t\t\t{\n\t\t\t\t\tadjmatrix[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tFile file2 = new File(\"/home/swijal/Desktop/social/kavanamutual.txt\");\n\t\t\tFileReader fileReader2 = new FileReader(file2);\n\t\t\tBufferedReader bufferedReader2 = new BufferedReader(fileReader2);\n\t\t\t\n\t\t\tFile fout = new File(\"/home/swijal/Desktop/social/kavana_mapping_out.txt\");\n\t\t\tFileOutputStream fos = new FileOutputStream(fout);\n\t\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fos));\n\t\t\t\n\t\t\tFile fout1 = new File(\"/home/swijal/Desktop/social/adjmat_kavana.txt\");\n\t\t\tFileOutputStream fos1 = new FileOutputStream(fout1);\n\t\t\tBufferedWriter bw1 = new BufferedWriter(new OutputStreamWriter(fos1));\n\t\t\t\n\t\t\tFile file = new File(\"/home/swijal/Desktop/social/numbering_kavana.txt\");\n\t\t\tFileReader fileReader = new FileReader(file);\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString line;\n\t\t\tString friend1 = \"\";\n\t\t\tString friend2 = \"\";\n\n\t\t\t//numbering\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tif(!hm.containsKey(line))\n\t\t\t\t{\n\t\t\t\t\thm.put(line, index);\n\t\t\t\t\tbw.write(line+\", \"+index);\n\t\t\t\t\tbw.newLine();\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(hm.size());\n\t\t\t//adj matrix\n\t\t\twhile ((line = bufferedReader2.readLine()) != null) {\n\t\t\t\tfriend1 = \"\";\n\t\t\t\tfriend2 = \"\";\n\t\t\t\t\n\t\t\t\tString[] ar=line.split(\",\");\n\t\t\t\t\n\t\t\t\tfriend1 = ar[0];\n\t\t\t\tfriend2 = ar[1];\n\t\t\t\tSystem.out.println(friend1 +\" : \"+ friend2);\n\t\t\t\tint p=0,q=0;\n\t\t\t\t\n\t\t\t\tif(hm.containsKey(friend1))\n\t\t\t\t\tp = hm.get(friend1);\n\t\t\t\t\n\t\t\t\tif(hm.containsKey(friend2))\n\t\t\t\t\tq = hm.get(friend2);\n\t\t\t\t\n\t\t\t\tadjmatrix[p][q] = 1;\n\t\t\t\tadjmatrix[q][p] = 1;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i=1;i<=750;i++)\n\t\t\t{\n\t\t\t\tbw1.newLine();\n\t\t\t\tfor(int j=1;j<=750;j++)\n\t\t\t\t{\n\t\t\t\t\tbw1.write(adjmatrix[i][j]+\",\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/*for(int i=0;i<750;i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int j=0;j<750;j++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(adjmatrix[i][j]+ \" \");\n\t\t\t\t}\n\t\t\t}*/\n\t\t\tfileReader2.close();\n\t\t\tfileReader.close();\n\t\t\tbw.close();\n\t\t\tbw1.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void showDisplayHalfSolution(Solution<Position> solution);",
"public static String storeMap() throws IOException {\n\n FileWriter fileWriter = new FileWriter(\"Map.txt\");\n PrintWriter printWriter = new PrintWriter(fileWriter);\n\n printWriter.println(\"[Continents]\");\n for (String continent : continents.keySet()) {\n printWriter.write(continent + \"=\" + continents.get(continent));\n printWriter.println();\n }\n\n printWriter.println(\"[Territories]\");\n\n HashMap<String, Tile> map = board.getTiles();\n Iterator i = map.keySet().iterator();\n\n while (i.hasNext()) {\n\n String country = i.next().toString();\n Tile country_details = map.get(country);\n\n printWriter.write(country + \",\" + country_details.getXCoordinate() +\n \",\" + country_details.getYCoordinate() + \",\" + country_details.getContinent());\n for (int j = 0; j < board.getNeighbourTile(country).size(); j++) {\n printWriter.write(\",\" + board.getNeighbourTile(country).get(j));\n }\n printWriter.println();\n\n }\n\n fileWriter.close();\n printWriter.close();\n\n // if we make it void we can take off next flines and return statement too\n FileReader fir = new FileReader(\"Map.txt\");\n BufferedReader bir = new BufferedReader(fir);\n String toReturn = bir.readLine();\n fir.close();\n bir.close();\n return toReturn;\n }",
"public String evaluate (Map entryMap, String contents);",
"private Map<Double, List<String>> getScoreMap() {\n\t\t//dfMap = new HashMap<String, Integer>();\n\t\t\n\t\tfor (Map.Entry<String, FreqAndLists> entry: map.entrySet()) {\n\t\t\tString term = entry.getKey();\n\t\t\tif (originalTerms.contains(term)) { // expanded terms should not contain original terms\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdouble totalScore = 0;\n\t\t\tList<PositionList> postingList = entry.getValue().getPostingList();\n\t\t\tfor (PositionList positionList : postingList) {\n\t\t\t\tlong dr = positionList.getDocID();\n\t\t\t\tint rawDf = GetRawDf.getRawDf(qryId, term);\n\t\t\t\t//dfMap.put(term, rawDf);\n\t\t\t\ttotalScore += sf.getScore(term, dr, rawDf);\n\t\t\t}\n\t\t\t//System.out.println(term + \" \" + totalScore);\n\t\t\tif (scoreMap.containsKey(totalScore)) {\n\t\t\t\tscoreMap.get(totalScore).add(term);\n\t\t\t} else {\n\t\t\t\tList<String> list = new ArrayList<>();\n\t\t\t\tlist.add(term);\n\t\t\t\tscoreMap.put(totalScore, list);\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*for (Map.Entry<Double, List<String>> entry : scoreMap.entrySet()) {\n\t\t\tSystem.out.println(\"000 \" + entry.getKey());\n\t\t\tList<String> list = entry.getValue();\n\t\t\tfor (String term : list) {\n\t\t\t\tSystem.out.println(\" \" + term);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\t//writeToFile();\n\t\treturn scoreMap;\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\thash_map();\n\t\t//textread();\n\t\t\n\t\t/*\n\n\t\tFileReader fromfile = new FileReader(\"E:\\\\OnlineJob\\\\PWD.txt\");\n\t\tBufferedReader bufferReader = new BufferedReader(fromfile);\n\t\t\n\t\tString textFromfile =null;\n\t\twhile ((textFromfile = bufferReader.readLine())!= null) {\n\t\t\tSystem.out.println(textFromfile);\n\t\t}\n\t\tfromfile.close();\n\t\tbufferReader.close();\n\t}\n\t\n\tpublic static void textread() {\n\t\t\n\t\tScanner userinput = new Scanner(System.in);\n\t\tSystem.out.println(\"Learning Java from?\");\n\t\tString variable = userinput.nextLine();\n\t\tSystem.out.println(variable);\n\t\tuserinput.close();\n\t\t} */\n\tpublic static void hash_map() {\n\t\tHashMap<Integer, String> testmp = new HashMap<Integer, String>(); \n\t\ttestmp.put(1, \"Param\");\n\t\ttestmp.put(2, \"Selvi\");\n\t\ttestmp.put(3,\"\" );\n\t\ttestmp.put(4, \"Ragha\");\n\t\t//testmp.put(4, 100);\n\t\t//testmp.put(4,250);\n\t\tSystem.out.println(\"Elements of Map:\");\n\t\ttestmp.remove(6);\n\t\tSystem.out.println(testmp.containsKey(6));\n\t\tSystem.out.println(testmp);\n\t\tSystem.out.println(testmp.keySet());\n\t\tSystem.out.println(testmp.values());\n\t\tSystem.out.println(testmp.isEmpty());\n\t\t\n\t}\n\n\t\n}",
"public static void dump(Map<Character, Object[]> map) {\n\t\tif (map == null) return;\n\t\tint total = 0; int hits=0;\n\t\tfor (Character ch : map.keySet()) {\n\t\t\tObject[] val = map.get(ch);\n\t\t\tint c = (Integer) val[0];\n\t\t\ttotal += c;\n\t\t\tboolean hit =Ciphers.realHomophone(\"\"+val[1]);\n\t\t\tif (hit) hits++;\n\t\t\tint len = (\"\"+val[2]).length();\n\t\t\tSystem.out.println(ch + \": \" + len + \", \" + (float)c*2/len + \", \" + c + \", \" + val[1] + \", \" + val[2] + (hit ? \" HIT \" : \" MISS \"));\n\t\t}\n\t\tSystem.out.println(\"Total: \" + total + \", hits \" + hits + \" ratio \" + (float)hits/map.size());\n\t}",
"@Test\n public void testMap() {\n System.out.println(\"map\");\n String line = \"failed\";\n int expResult = 1;\n int result = Training.map(line);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }",
"public static void intro(){\n System.out.println(\"Welcome to Maze Runner!\");\n System.out.println(\"Here is your current position:\");\n myMap.printMap();\n\n }",
"public void printMap() {\n\t\tmap.printMap();\n\t}",
"public static void map(int location)\n\t{\n\t\tswitch(location)\n\t\t{\t\n\t\t\tcase 1:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # X # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * X # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # X # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # X # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * X # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 6:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # X # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 7:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # X * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 8:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * X # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 9:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # X * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 10:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * X # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 11:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # X # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 12:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # X # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\");\n\t\t}//end switch(location)\n\t\t\n\t}",
"public static void main(String[] args) throws Exception, IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"/Users/LeeChnagSup/Desktop/input.txt\"));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tString rct = br.readLine();\n\t\tStringTokenizer st= new StringTokenizer(rct, \" \");\n\t\tr = Integer.parseInt(st.nextToken());\n\t\tc = Integer.parseInt(st.nextToken());\n\t\tt = Integer.parseInt(st.nextToken());\n\t\tSystem.out.println(t);\n\t\tmap = new int [r+2][c+2];\n\t\tvisited = new int [r+2][c+2];\n\t\tfor(int i=0; i<r+2; i++){\n\t\t\tArrays.fill(map[i], -1);\n\t\t\tArrays.fill(visited[i], -1);\n\t\t}\n\t\tfor(int i=1; i<r+1; i++){\n\t\t\tString s = br.readLine();\n\t\t\tStringTokenizer st1 = new StringTokenizer(s, \" \");\n\t\t\tfor(int j=1; j<c+1; j++){\n\t\t\t\tmap[i][j] = Integer.parseInt(st1.nextToken());\n\t\t\t\tif(map[i][j]==-1){\n\t\t\t\t\tvisited[i][j] = -1; \n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tvisited[i][j] = 0; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/*for(int i=1; i<r+1; i++){\n\t\t\tfor(int j=1; j<c+1; j++){\n\t\t\t\tSystem.out.print(map[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}*/\n\t\tbfs();\n\t\tint sum = 2;\n\t\tfor(int i=1; i<r+1; i++){\n\t\t\tfor(int j=1; j<c+1; j++){\n\t\t\t\tsum+= map[i][j];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t\tbw.write(String.valueOf(sum));\n\t\tbw.flush();\n\n\t}",
"public void doScan() {\n\t\tSystemMapObject[] results = scan();\r\n\t\t// add to its current map.\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\tupdateMowerCords();\r\n\t\t// NorthWest\r\n\t\tif (y + 1 >= this.map.size()) {\r\n\t\t\tthis.map.add(new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(y + 1).add(0, results[7]);\r\n\t\t} else if (x - 1 <= 0) {\r\n\t\t\tthis.map.get(y + 1).add(x, results[7]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x - 1, results[7]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// West\r\n\t\tif (this.map.get(y).size() < 2) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else if (x - 1 < 0) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x - 1, results[6]);\r\n\t\t}\r\n\t\t// SouthWest\r\n\t\tupdateMowerCords();\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() < 2) {\r\n\t\t\tthis.map.get(y - 1).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() <= x - 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[5]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x - 1, results[5]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// North\r\n\t\tif (y + 1 < this.map.size() && x >= this.map.get(y + 1).size()) {\r\n\t\t\tif (x >= this.map.get(y + 1).size()) {\r\n\t\t\t\tthis.map.get(y+1).add(results[0]);\r\n\t\t\t} else {\r\n\t\t\t\tthis.map.get(y + 1).add(x, results[0]);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x, results[0]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// NorthEast\r\n\t\tif (this.map.get(y + 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y + 1).add(results[1]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x + 1, results[1]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// East\r\n\t\tif (this.map.get(y).size() <= x + 1) {\r\n\t\t\tthis.map.get(y).add(results[2]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x + 1, results[2]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\r\n\t\t// South\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(results[4]);\r\n\t\t} else if (x >= this.map.get(y - 1).size()) {\r\n\t\t\tthis.map.get(y - 1).add(results[4]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x, results[4]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// South East\r\n\t\tif (this.map.get(y - 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[3]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x + 1, results[3]);\r\n\t\t}\r\n\r\n\t\tupdateMowerCords();\r\n\t\t// System.out.println(\"This is your X:\" + this.x);\r\n\t\t// System.out.println(\"This is your Y:\" + this.y);\r\n\t\t//\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\t// System.out.println(\"-------------------------------------------------------------------------------------\");\r\n\r\n\t}",
"private void initializeMaps() {\n\tcodon1 = new HashMap<String,String>();\n\tcodon3 = new HashMap<String,String>();\n\tiupac = new HashMap<String,String>();\n\t\n\tcodon1.put(\"AAA\",\"K\");\n\tcodon1.put(\"AAC\",\"N\");\n\tcodon1.put(\"AAG\",\"K\");\n\tcodon1.put(\"AAT\",\"N\");\n\tcodon1.put(\"ACA\",\"T\");\n\tcodon1.put(\"ACC\",\"T\");\n\tcodon1.put(\"ACG\",\"T\");\n\tcodon1.put(\"ACT\",\"T\");\n\tcodon1.put(\"AGA\",\"R\");\n\tcodon1.put(\"AGC\",\"S\");\n\tcodon1.put(\"AGG\",\"R\");\n\tcodon1.put(\"AGT\",\"S\");\n\tcodon1.put(\"ATA\",\"I\");\n\tcodon1.put(\"ATC\",\"I\");\n\tcodon1.put(\"ATG\",\"M\");\n\tcodon1.put(\"ATT\",\"I\");\n\tcodon1.put(\"CAA\",\"Q\");\n\tcodon1.put(\"CAC\",\"H\");\n\tcodon1.put(\"CAG\",\"Q\");\n\tcodon1.put(\"CAT\",\"H\");\n\tcodon1.put(\"CCA\",\"P\");\n\tcodon1.put(\"CCC\",\"P\");\n\tcodon1.put(\"CCG\",\"P\");\n\tcodon1.put(\"CCT\",\"P\");\n\tcodon1.put(\"CGA\",\"R\");\n\tcodon1.put(\"CGC\",\"R\");\n\tcodon1.put(\"CGG\",\"R\");\n\tcodon1.put(\"CGT\",\"R\");\n\tcodon1.put(\"CTA\",\"L\");\n\tcodon1.put(\"CTC\",\"L\");\n\tcodon1.put(\"CTG\",\"L\");\n\tcodon1.put(\"CTT\",\"L\");\n\tcodon1.put(\"GAA\",\"E\");\n\tcodon1.put(\"GAC\",\"D\");\n\tcodon1.put(\"GAG\",\"E\");\n\tcodon1.put(\"GAT\",\"D\");\n\tcodon1.put(\"GCA\",\"A\");\n\tcodon1.put(\"GCC\",\"A\");\n\tcodon1.put(\"GCG\",\"A\");\n\tcodon1.put(\"GCT\",\"A\");\n\tcodon1.put(\"GGA\",\"G\");\n\tcodon1.put(\"GGC\",\"G\");\n\tcodon1.put(\"GGG\",\"G\");\n\tcodon1.put(\"GGT\",\"G\");\n\tcodon1.put(\"GTA\",\"V\");\n\tcodon1.put(\"GTC\",\"V\");\n\tcodon1.put(\"GTG\",\"V\");\n\tcodon1.put(\"GTT\",\"V\");\n\tcodon1.put(\"TAA\",\"*\");\n\tcodon1.put(\"TAC\",\"Y\");\n\tcodon1.put(\"TAG\",\"*\");\n\tcodon1.put(\"TAT\",\"Y\");\n\tcodon1.put(\"TCA\",\"S\");\n\tcodon1.put(\"TCC\",\"S\");\n\tcodon1.put(\"TCG\",\"S\");\n\tcodon1.put(\"TCT\",\"S\");\n\tcodon1.put(\"TGA\",\"*\");\n\tcodon1.put(\"TGC\",\"C\");\n\tcodon1.put(\"TGG\",\"W\");\n\tcodon1.put(\"TGT\",\"C\");\n\tcodon1.put(\"TTA\",\"L\");\n\tcodon1.put(\"TTC\",\"F\");\n\tcodon1.put(\"TTG\",\"L\");\n\tcodon1.put(\"TTT\",\"F\");\n\n\tcodon3.put(\"AAA\",\"Lys\");\n\tcodon3.put(\"AAC\",\"Asn\");\n\tcodon3.put(\"AAG\",\"Lys\");\n\tcodon3.put(\"AAT\",\"Asn\");\n\tcodon3.put(\"ACA\",\"Thr\");\n\tcodon3.put(\"ACC\",\"Thr\");\n\tcodon3.put(\"ACG\",\"Thr\");\n\tcodon3.put(\"ACT\",\"Thr\");\n\tcodon3.put(\"AGA\",\"Arg\");\n\tcodon3.put(\"AGC\",\"Ser\");\n\tcodon3.put(\"AGG\",\"Arg\");\n\tcodon3.put(\"AGT\",\"Ser\");\n\tcodon3.put(\"ATA\",\"Ile\");\n\tcodon3.put(\"ATC\",\"Ile\");\n\tcodon3.put(\"ATG\",\"Met\");\n\tcodon3.put(\"ATT\",\"Ile\");\n\tcodon3.put(\"CAA\",\"Gln\");\n\tcodon3.put(\"CAC\",\"His\");\n\tcodon3.put(\"CAG\",\"Gln\");\n\tcodon3.put(\"CAT\",\"His\");\n\tcodon3.put(\"CCA\",\"Pro\");\n\tcodon3.put(\"CCC\",\"Pro\");\n\tcodon3.put(\"CCG\",\"Pro\");\n\tcodon3.put(\"CCT\",\"Pro\");\n\tcodon3.put(\"CGA\",\"Arg\");\n\tcodon3.put(\"CGC\",\"Arg\");\n\tcodon3.put(\"CGG\",\"Arg\");\n\tcodon3.put(\"CGT\",\"Arg\");\n\tcodon3.put(\"CTA\",\"Leu\");\n\tcodon3.put(\"CTC\",\"Leu\");\n\tcodon3.put(\"CTG\",\"Leu\");\n\tcodon3.put(\"CTT\",\"Leu\");\n\tcodon3.put(\"GAA\",\"Glu\");\n\tcodon3.put(\"GAC\",\"Asp\");\n\tcodon3.put(\"GAG\",\"Glu\");\n\tcodon3.put(\"GAT\",\"Asp\");\n\tcodon3.put(\"GCA\",\"Ala\");\n\tcodon3.put(\"GCC\",\"Ala\");\n\tcodon3.put(\"GCG\",\"Ala\");\n\tcodon3.put(\"GCT\",\"Ala\");\n\tcodon3.put(\"GGA\",\"Gly\");\n\tcodon3.put(\"GGC\",\"Gly\");\n\tcodon3.put(\"GGG\",\"Gly\");\n\tcodon3.put(\"GGT\",\"Gly\");\n\tcodon3.put(\"GTA\",\"Val\");\n\tcodon3.put(\"GTC\",\"Val\");\n\tcodon3.put(\"GTG\",\"Val\");\n\tcodon3.put(\"GTT\",\"Val\");\n\tcodon3.put(\"TAA\",\"*\");\n\tcodon3.put(\"TAC\",\"Tyr\");\n\tcodon3.put(\"TAG\",\"*\");\n\tcodon3.put(\"TAT\",\"Tyr\");\n\tcodon3.put(\"TCA\",\"Ser\");\n\tcodon3.put(\"TCC\",\"Ser\");\n\tcodon3.put(\"TCG\",\"Ser\");\n\tcodon3.put(\"TCT\",\"Ser\");\n\tcodon3.put(\"TGA\",\"*\");\n\tcodon3.put(\"TGC\",\"Cys\");\n\tcodon3.put(\"TGG\",\"Trp\");\n\tcodon3.put(\"TGT\",\"Cys\");\n\tcodon3.put(\"TTA\",\"Leu\");\n\tcodon3.put(\"TTC\",\"Phe\");\n\tcodon3.put(\"TTG\",\"Leu\");\n\tcodon3.put(\"TTT\",\"Phe\");\n\t\n\tiupac.put(\"-\",\"-\");\n\tiupac.put(\".\",\"-\");\n\tiupac.put(\"A\",\"AA\");\n\tiupac.put(\"B\",\"CGT\");\n\tiupac.put(\"C\",\"CC\");\n\tiupac.put(\"D\",\"AGT\");\n\tiupac.put(\"G\",\"GG\");\n\tiupac.put(\"H\",\"ACT\");\n\tiupac.put(\"K\",\"GT\");\n\tiupac.put(\"M\",\"AC\");\n\tiupac.put(\"N\",\"ACGT\");\n\tiupac.put(\"R\",\"AG\");\n\tiupac.put(\"S\",\"GC\");\n\tiupac.put(\"T\",\"TT\");\n\tiupac.put(\"V\",\"ACG\");\n\tiupac.put(\"W\",\"AT\");\n\tiupac.put(\"Y\",\"CT\");\n \n }",
"public static void hint(int[][] map, int x, int y) {\n\t\t// show neighbor of this shot\n\t\tfor (int i = -1; i < 2; i++) {\n\t\t\tfor (int j = -1; j < 2; j++) {\n\n\t\t\t\tif (x + i < 0 || y + j < 0 || x + i > 9 || y + j > 9) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (map[x + i][y + j] == 0) {\n\t\t\t\t\tmap[x + i][y + j] = 3;\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"x axis is \" + (x + i) + \" and y axis is \" + (y + j) + \"\" + \", it is not the target!\");\n\t\t\t\t} else if (map[x + i][y + j] == 1) {\n\t\t\t\t\t// map[x + i][y + j] = MINE_FOUND;\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"x axis is \" + (x + i) + \" and y axis is \" + (y + j) + \"\" + \", this is a target!\");\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------\");\n\t\t// print all the previous shots.\n\t\tfor (int i = 0; i < map.length; i++) {\n\t\t\tfor (int j = 0; j < map[i].length; j++) {\n\t\t\t\tif (map[i][j] == 3) {\n\t\t\t\t\tSystem.out.println(\"x axis is \" + i + \" and y axis is \" + j + \"\" + \", it is not the target!\");\n\t\t\t\t} else if (map[i][j] == 2) {\n\t\t\t\t\tSystem.out.println(\"x axis is \" + i + \" and y axis is \" + j + \"\" + \", it is a found target!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n Map map=new Map();\n Actions actions=new Actions();\n Random rnd = new Random();\n int end = rnd.nextInt((110 - 70) + 1) + 70;\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(\"\\033[36m\"+\" You wake up on a abandoned spaceship. Try to survive.\"+\"\\033[0m\");\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(map.getMapObject(3,1).getDescriptionObject());\n while(actions.getMoves()<end&&!actions.getEscapePod()){\n if(actions.getMoves()%8==0)\n System.out.println(\"The ship is creeking!\");\n System.out.println(\"x: \"+actions.getX()+\"\\n\" +\n \"y: \"+actions.getY());\n map.printMap(actions.getX(), actions.getY());\n actions.input();\n }\n if(actions.getMoves()>20)\n {\n System.out.println(\"Game Over\");\n }\n else\n {\n System.out.println(\"Mission complete\");\n System.out.println(\"You beat the game in \"+actions.getMoves()+\" moves.\");\n }\n }",
"public static void main(String[] args) {\n\r\n\t\tHashMap<String, String> diccionario = new HashMap<String, String>();\r\n\t\t\r\n\t\tdiccionario.put(\"hola\", \"hello\");\r\n\t\tdiccionario.put(\"perro\", \"dog\");\r\n\t\tdiccionario.put(\"gato\", \"cat\");\r\n\t\tdiccionario.put(\"antes\", \"before\");\r\n\t\tdiccionario.put(\"que\", \"what\");\r\n\t\tdiccionario.put(\"pantalla\", \"screen\");\r\n\t\tdiccionario.put(\"teclado\", \"keyboard\");\r\n\t\tdiccionario.put(\"raton\", \"mouse\");\r\n\t\tdiccionario.put(\"mochila\", \"bag\");\r\n\t\tdiccionario.put(\"puerta\", \"door\");\r\n\t\tdiccionario.put(\"clase\", \"class\");\r\n\t\tdiccionario.put(\"coche\", \"car\");\r\n\t\tdiccionario.put(\"pantalones\", \"trousers\");\r\n\t\tdiccionario.put(\"sombrero\", \"hat\");\r\n\t\tdiccionario.put(\"escaleras\", \"stairs\");\r\n\t\tdiccionario.put(\"mesa\", \"table\");\r\n\t\tdiccionario.put(\"silla\", \"chair\");\r\n\t\tdiccionario.put(\"hermano\", \"brother\");\r\n\t\tdiccionario.put(\"hermana\", \"sister\");\r\n\t\tdiccionario.put(\"padre\", \"father\");\r\n\t\tdiccionario.put(\"madre\", \"mother\");\r\n\t\t\r\n\t\tint contador = 0;\r\n\t\tint correctas = 0;\r\n\t\tint incorrectas = 0;\r\n\t\tString respuesta;\r\n\t\t\r\n\t\t//para recorrer un map fijándonos en el valor de la posición ...\r\n\t\t\r\n\t\tfor(int i=0; i<5; i++) {\r\n\t\t\t\r\n\t\t\tint opcion = (int)(Math.random()*21); //21 palabras\r\n\r\n\t Iterator<String> it = diccionario.keySet().iterator();\r\n\t \r\n\t while(it.hasNext()){\r\n\t \r\n\t String obj = it.next();\r\n\t \r\n\t if(contador == opcion) {\r\n\t \tSystem.out.println(\"¿Cuál es la traducción de \"+obj+\"?\");\r\n\t \trespuesta = sc.next();\r\n\t \t\r\n\t \tif(respuesta.equalsIgnoreCase(diccionario.get(obj))) {\r\n\t \t\tSystem.out.println(\"Correcto!!\");\r\n\t \t\tcorrectas ++;\r\n\t \t\r\n\t \t}else {\r\n\t \t\tSystem.out.println(\"Ohh, incorrecto!!\");\r\n\t \t\tincorrectas ++;\r\n\t \t}\r\n\t }\r\n\t contador++;\r\n\t }\r\n\t contador = 0;\r\n\t\t}\r\n\t\t//////////////////////////////////////////////////////////////////////\r\n\t\t\r\n\t\tSystem.out.println(\"Has acertado \"+correctas+\" y has fallado \"+incorrectas);\r\n\t}",
"public void printMap()\n {\n this.mapFrame.paint();\n this.miniMapFrame.paint();\n }",
"public static void main (String [] args) {\n \n // Welcome message\n JOptionPane.showMessageDialog(null, \"Welcome to the EcoSystem Simulation!\");\n \n // Declare variables for getting user input and for the program to use\n boolean customize = false;\n String answer; // Get user input as a string\n int row, column;\n int plantSpawnRate;\n int plantHealth, sheepHealth, wolfHealth;\n int numSheepStart, numWolfStart, numPlantStart;\n int numTurns; // Keeps track of the number of turns\n int newX, newY; // Updates animal positions\n int [] keepRunning = new int [] {0, 0, 0}; // Keeping track of animal population to determine when the program should end\n \n // Get whether the user wants a custom map or not\n int customizable = JOptionPane.showConfirmDialog(null, \"Would you like to customize the map?\");\n if (customizable == 0) {\n customize = true;\n }\n \n // Get user inputs for a custom map\n if (customize == true) {\n answer = JOptionPane.showInputDialog(\"Number of rows and columns (side length, it will be a square): \");\n row = Integer.parseInt(answer);\n column = row;\n answer = JOptionPane.showInputDialog(\"Plant spawn rate (plants/turn): \");\n plantSpawnRate = Integer.parseInt(answer);\n \n answer = JOptionPane.showInputDialog(\"Sheep health: \");\n sheepHealth = Integer.parseInt(answer);\n answer = JOptionPane.showInputDialog(\"Wolf health: \");\n wolfHealth = Integer.parseInt(answer);\n answer = JOptionPane.showInputDialog(\"Plant nutrition: \");\n plantHealth = Integer.parseInt(answer);\n \n answer = JOptionPane.showInputDialog(\"Beginning number of sheep: \");\n numSheepStart = Integer.parseInt(answer);\n answer = JOptionPane.showInputDialog(\"Beginning number of wolves: \");\n numWolfStart = Integer.parseInt(answer);\n answer = JOptionPane.showInputDialog(\"Beginning number of plants: \");\n numPlantStart = Integer.parseInt(answer);\n \n // Initialise inputs for a non-custom map\n } else {\n row = 25;\n column = 25;\n plantSpawnRate = 3;\n plantHealth = 15;\n sheepHealth = 40;\n wolfHealth = 60;\n numPlantStart = 100;\n numSheepStart = 120;\n numWolfStart = 20;\n }\n \n // Initialise new map with the dimensions given \n map = new Species [row][column];\n \n // Make the initial grid\n makeGrid(map, numSheepStart, numWolfStart, numPlantStart, sheepHealth, plantHealth, wolfHealth, plantSpawnRate);\n DisplayGrid grid = new DisplayGrid(map);\n grid.refresh();\n \n // Get whether the user is ready or not to load in objects\n int ready = JOptionPane.showConfirmDialog(null, \"Are you ready?\");\n \n // While user is ready\n if (ready == 0) {\n \n numTurns = 0;\n \n // Run the simulation, updating every second\n do { \n try{ Thread.sleep(1000); }catch(Exception e) {};\n \n // Update the map each second with all actions\n EcoSystemSim.updateMap(map, plantHealth, sheepHealth, wolfHealth, plantSpawnRate); // Update grid each turn\n \n keepRunning = population(); // Check for the populations\n \n // If board is getting too full, kill off species\n if ((keepRunning[0] + keepRunning[1] + keepRunning[2]) >= ((row * column) - 5)) {\n \n // Count 5 to kill off species\n for (int j = 0; j <= 5; j++) {\n \n // Generate random coordinates\n int y = (int)(Math.random() * map[0].length);\n int x = (int)(Math.random() * map.length);\n \n // Kill species\n map[y][x] = null;\n \n }\n }\n \n numTurns += keepRunning[3]; // Updates number of turns\n \n grid.refresh(); // Refresh each turn\n \n } while ((keepRunning[0] != 0) && (keepRunning[1] != 0) && (keepRunning[2] != 0)); // Check for whether any population is extinct\n \n // Output final populations and number of turns\n JOptionPane.showMessageDialog(null, \"The number of plants left are: \" + keepRunning[0]);\n JOptionPane.showMessageDialog(null, \"The number of sheep left are: \" + keepRunning[1]);\n JOptionPane.showMessageDialog(null, \"The number of wolves left are: \" + keepRunning[2]);\n JOptionPane.showMessageDialog(null, \"The number of turns taken is: \" + numTurns);\n }\n\n }",
"private void drawMap(final Graphics2D theGraphics) {\n for (int y = 0; y < myGrid.length; y++) {\n final int topy = y * SQUARE_SIZE;\n\n for (int x = 0; x < myGrid[y].length; x++) {\n final int leftx = x * SQUARE_SIZE;\n\n switch (myGrid[y][x]) {\n case STREET:\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n drawStreetLines(theGraphics, x, y);\n break;\n\n case WALL:\n theGraphics.setPaint(Color.BLACK);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n\n case TRAIL:\n theGraphics.setPaint(Color.YELLOW.darker().darker());\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n\n case LIGHT:\n // draw a circle of appropriate color\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n theGraphics.setPaint(myLightColor);\n theGraphics.fillOval(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n \n case CROSSWALK:\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n \n drawCrossWalkLines(theGraphics, x, y);\n \n // draw a small circle of appropriate color centered in the square\n theGraphics.setPaint(myLightColor);\n theGraphics.fillOval(leftx + (int) (SQUARE_SIZE * CROSSWALK_SCALE),\n topy + (int) (SQUARE_SIZE * CROSSWALK_SCALE),\n SQUARE_SIZE / 2, SQUARE_SIZE / 2);\n break;\n\n default:\n }\n\n drawDebugInfo(theGraphics, x, y);\n }\n }\n }",
"public void figure() {\n this.isMap = false;\n System.out.println(\"Switch to figure mode\");\n }",
"@Test\n public void testMapCodeExamples() throws Exception {\n logger.info(\"Beginning testMapCodeExamples()...\");\n\n // Create an empty map\n Map<URL, Double> stocks = new Map<>();\n logger.info(\"Start with an empty map of stock prices: {}\", stocks);\n\n // Add some closing stock prices to it\n URL apple = new URL(\"http://apple.com\");\n stocks.setValue(apple, 112.40);\n URL google = new URL(\"http://google.com\");\n stocks.setValue(google, 526.98);\n URL amazon = new URL(\"http://amazon.com\");\n stocks.setValue(amazon, 306.64);\n logger.info(\"Add some closing stock prices: {}\", stocks);\n\n // Retrieve the closing price for Google\n double price = stocks.getValue(google);\n logger.info(\"Google's closing stock price is {}\", price);\n\n // Sort the stock prices by company URL\n stocks.sortElements();\n logger.info(\"The stock prices sorted by company web site: {}\", stocks);\n\n logger.info(\"Completed testMapCodeExamples().\\n\");\n }",
"public static void printMap(Map<Integer,Double> map){\n\t\tfor (Map.Entry entry : map.entrySet())\n\t\t\tSystem.out.println(\"Key : \" + entry.getKey()+ \" Value : \" + entry.getValue());\n\t}",
"public String validateMap() {\n\n String returnString = \"SUCCESS\";\n if(validator.hasSingleCountryContinent(new ArrayList<>(gameMap.getContinentHashMap().values()))) {\n return \"One of the continents have only one country or less\";\n }\n if(validator.containsLoop(new ArrayList<>(gameMap.getCountryHashMap().values()))) {\n return \"One of the country is connected to itself\";\n }\n for(GameCountry country : gameMap.getCountryHashMap().values()) {\n if(!validator.hasNeighbor(country)) {\n returnString = \"ONE OR MORE COUNTRIES HAVE NO NEIGHBOURS\";\n break;\n }\n if(!validator.hasValidNumberOfNeighbors(country)) {\n returnString = \"INVALID NUMBER OF NEIGHBOURS\";\n break;\n }\n }\n if(!validator.hasValidNumberOfContinents(new ArrayList<>(gameMap.getContinentHashMap().values()))) {\n returnString = \"NUMBER OF CONTINENTS IS NOT VALID\";\n }\n if(!validator.hasValidNumberOfCountries(new ArrayList<>(gameMap.getCountryHashMap().values()))) {\n returnString = \"INVALID NUMBER OF COUNTRIES\";\n }\n graphUtilObject = this.buildGraph();\n if(!validator.isWholeMapConnected(graphUtilObject)) {\n returnString = \"THE WHOLE MAP IS NOT CONNECTED\";\n }\n for(GameContinent continent : gameMap.getContinentHashMap().values()) {\n if(!(validator.isContinentFullyLinked(continent,graphUtilObject))) {\n returnString = \"ONE OR MORE CONTINENTS ARE NOT CONNECTED WITHIN THEMSELVES\";\n }\n }\n return returnString;\n }",
"public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder();\n\n int n=Integer.parseInt(br.readLine());\n st=new StringTokenizer(br.readLine());\n int x0=Integer.parseInt(st.nextToken()),\n y0=Integer.parseInt(st.nextToken());\n ArrayList<Map.Entry<Integer,Character>> ulist=new ArrayList<>();\n ArrayList<Map.Entry<Integer,Character>> dlist=new ArrayList<>();\n ArrayList<Map.Entry<Integer,Character>> llist=new ArrayList<>();\n ArrayList<Map.Entry<Integer,Character>> rlist=new ArrayList<>();\n ArrayList<Map.Entry<Integer,Character>> ullist=new ArrayList<>();\n ArrayList<Map.Entry<Integer,Character>> urlist=new ArrayList<>();\n ArrayList<Map.Entry<Integer,Character>> drlist=new ArrayList<>();\n ArrayList<Map.Entry<Integer,Character>> dllist=new ArrayList<>();\n Comparator asct=new Comparator<Map.Entry<Integer, Character>>() {\n @Override\n public int compare(Map.Entry<Integer, Character> e1, Map.Entry<Integer, Character> e2) {\n return e1.getKey() - e2.getKey();\n }\n };\n Comparator dsct=new Comparator<Map.Entry<Integer, Character>>() {\n @Override\n public int compare(Map.Entry<Integer, Character> e1, Map.Entry<Integer, Character> e2) {\n return e2.getKey() - e1.getKey();\n }\n };\n for (int i=0;i<n;i++){\n st=new StringTokenizer(br.readLine());\n char c=st.nextToken().charAt(0);\n int xi=Integer.parseInt(st.nextToken());\n int yi=Integer.parseInt(st.nextToken());\n if (xi==x0){\n if (yi>y0) ulist.add(new AbstractMap.SimpleEntry<>(yi,c));\n else dlist.add(new AbstractMap.SimpleEntry<>(yi,c));\n } else if (yi==y0){\n if (xi>x0) rlist.add(new AbstractMap.SimpleEntry<>(xi,c));\n else llist.add(new AbstractMap.SimpleEntry<>(xi,c));\n } else if (Math.abs(xi-x0)==Math.abs(yi-y0)){\n if (xi<x0){\n if (yi<y0) dllist.add(new AbstractMap.SimpleEntry<>(xi,c));\n else ullist.add(new AbstractMap.SimpleEntry<>(xi,c));\n } else {\n if (yi<y0) drlist.add(new AbstractMap.SimpleEntry<>(xi,c));\n else urlist.add(new AbstractMap.SimpleEntry<>(xi,c));\n }\n }\n }\n Collections.sort(ulist,asct);\n Collections.sort(dlist,dsct);\n Collections.sort(rlist,asct);\n Collections.sort(llist,dsct);\n Collections.sort(dllist,dsct);\n Collections.sort(ullist,dsct);\n Collections.sort(urlist,asct);\n Collections.sort(drlist,asct);\n //boolean uf,df,lf,rf,ulf,urf,drf,dlf;\n //uf=df=lf=rf=ulf=urf=drf=dlf=false;\n boolean check=false;\n for (int i=0;i<ulist.size();i++){\n char c=ulist.get(i).getValue();\n if (c=='B') break;\n else check=true;\n }\n for (int i=0;i<dlist.size();i++){\n char c=dlist.get(i).getValue();\n if (c=='B') break;\n else check=true;\n }\n for (int i=0;i<llist.size();i++){\n char c=llist.get(i).getValue();\n if (c=='B') break;\n else check=true;\n }\n for (int i=0;i<rlist.size();i++){\n char c=rlist.get(i).getValue();\n if (c=='B') break;\n else check=true;\n }\n for (int i=0;i<dllist.size();i++){\n char c=dllist.get(i).getValue();\n if (c=='R') break;\n else check=true;\n }\n for (int i=0;i<ullist.size();i++){\n char c=ullist.get(i).getValue();\n if (c=='R') break;\n else check=true;\n }\n for (int i=0;i<drlist.size();i++){\n char c=drlist.get(i).getValue();\n if (c=='R') break;\n else check=true;\n }\n for (int i=0;i<urlist.size();i++){\n char c=urlist.get(i).getValue();\n if (c=='R') break;\n else check=true;\n }\n if (check) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"public void testOutput(){\n\t\tString dataMatrix = \"A R N D C Q E G H I L K M F P S T W Y V\";\r\n\t\tStringTokenizer st = new StringTokenizer(dataMatrix);\t\t\r\n\t\twhile(st.hasMoreTokens()){\r\n\t\t\tCharacter stchar = st.nextToken().charAt(0);\r\n\t\t\tStringTokenizer st2 = new StringTokenizer(dataMatrix);\r\n\t\t\twhile(st2.hasMoreTokens()){\t\t\t\t\r\n\t\t\t\tCharacter st2char = st2.nextToken().charAt(0);\t\t\t\r\n\t\t\t\tJOptionPane.showMessageDialog(null,stchar + \"-\" + st2char + \": \" + getScore(stchar,st2char),\r\n\t \t\t\t\t\"Error\",JOptionPane.ERROR_MESSAGE); \r\n\t\t\t}\r\n\t\t}\t\t\r\n }",
"private void PrintMostCommonFineMap() {\n\t\tif (commonFineOutput.isEmpty()) { //if the string is empty, run the rocess to get the map\n\t\t\tProcessMostCommonFineMap processMostCommon = new ProcessMostCommonFineMap(violationProcess, populationReader, propProcessor);\n\t\t\tcommonFineOutput = processMostCommon.GetCommonFinesMap();\n\t\t}\n\t\tSystem.out.println(commonFineOutput); //print out map\n\t}",
"public static void dumpAS(Map<String, Integer[]> map) {\n\t\tif (map == null) return;\n\t\tint total = 0; int hits=0;\n\t\tfor (String key : map.keySet()) {\n\t\t\tInteger[] val = map.get(key);\n\t\t\ttotal += val[1];\n\t\t\tboolean hit =Ciphers.realHomophone(key);\n\t\t\tif (hit) hits++;\n\t\t\tSystem.out.println(val[1] + \" for \" + key + \": \" + val[0] + \", \" + (hit ? \" HIT \" : \" MISS \")); \n\t\t}\n\t\tSystem.out.println(\"Total: \" + total + \", hits \" + hits + \" ratio \" + (float)hits/total);\n\t}",
"public String toggleMap() {\r\n\t\tMap temp = sensor.getTrueMap();\r\n\t\tif (Map.compare(temp, smap.getMap())) {\r\n\t\t\tsmap.setMap(map.copy());\r\n\t\t\treturn \"robot\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsmap.setMap(temp.copy());\r\n\t\t\treturn \"simulated\";\r\n\t\t}\r\n\t}",
"public void displayPantry(){\r\n jam1.displayJam();\r\n jam2.displayJam();\r\n jam3.displayJam();\r\n \r\n }",
"private void generateMap(){\n if(currDirections != null){\n\n\t \tPoint edge = new Point(mapPanel.getWidth(), mapPanel.getHeight());\n \tmapPanel.paintImmediately(0, 0, edge.x, edge.y);\n\t \t\n\t \t\n\t \t// setup advanced graphics object\n\t Graphics2D g = (Graphics2D)mapPanel.getGraphics();\n\t g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t g.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE);\n\n\t \n\t Route rt = currDirections.getRoute();\n\t\n\t boolean singleStreet = rt.getGeoSegments().size() == 1;\n\t Route contextRoute = (!singleStreet ? rt : \n\t \t\tnew Route( virtualGPS.findFullSegment(rt.getEndingGeoSegment()) ) );\n\t \n\t // calculate the longitude and latitude bounds\n\t int[] bounds = calculateCoverage( contextRoute , edge);\n\t \n\t Collection<StreetSegment> map = virtualGPS.getContext(bounds, contextRoute);\n\t \n\t \n\t // draw every segment of the map\n\t g.setColor(Color.GRAY);\n\t for(GeoSegment gs : map){\n\t \tdrawSegment(g, bounds, edge, gs);\n\t }\n\t \n\t // draw the path over the produced map in BLUE\n\t g.setColor(Color.BLUE);\n\t for(GeoFeature gf : rt.getGeoFeatures()){\n\t for(GeoSegment gs : gf.getGeoSegments()){\n\t\t \tdrawSegment(g, bounds, edge, gs);\n\t }\n\t Point start = derivePoint(bounds, edge, gf.getStart());\n\t Point end = derivePoint(bounds, edge, gf.getEnd());\n\t \n\t int dX = (int)(Math.abs(start.x - end.x) / 2.0);\n\t int dY = (int)(Math.abs(start.y - end.y) / 2.0);\n\n if(!jCheckBoxHideStreetNames.isSelected()){\n \tg.setFont(new Font(g.getFont().getFontName(), Font.BOLD, g.getFont().getSize()));\n \tg.drawString(gf.getName(), start.x + (start.x<end.x ? dX : -dX),\n \t\t\tstart.y + (start.y<end.y ? dY : -dY));\n }\n\t }\n }\n }",
"private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }",
"public void setUp() throws IOException \n\t{\n\t\tMapSelectionView mapSelectionView = new MapSelectionView();\n\t\tplayerNumber = mapSelectionView.print(4);\t//4 max players\n\t\tmap.setPlayers(playerNumber);\n\t\tHashMap<Integer, String> possibleStrategies = new HashMap<Integer, String>();\n\t\tpossibleStrategies.put(1, \"Aggressive\");\n\t\tpossibleStrategies.put(2, \"Benevolent\");\n\t\tpossibleStrategies.put(3, \"Random\");\n\t\tpossibleStrategies.put(4, \"Cheater\");\n\t\t\n\t\tfor(Player p : map.players) {\n\t\t\tint strat = mapSelectionView.askTournamentStrategy(p.getNumber(), possibleStrategies);\n\t\t\t\n\t\t\tswitch(strat) {\n\t\t\t\tcase 1:\n\t\t\t\t\tp.setStrategy(new Aggressive());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tp.setStrategy(new Benevolent());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tp.setStrategy(new Random());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tp.setStrategy(new Cheater());\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpossibleStrategies.remove(strat);\n\t\t}\n\t\tplayers = map.players;\t//Memorizing players of the tournament\n\t\t\n\t\tint mapNumber = mapSelectionView.askMapNumber();\n\t\t\n\t\tfor(int i = 1; i <= mapNumber; i++) {\n\t\t\tString mapFilePath = mapSelectionView.selectMap();\n\t\t\tMap map = new Map();\n\t\t\tmap.setPlayers(playerNumber);\n\t\t\tmap.load(mapFilePath);\t//Check if map is correct\n\t\t\tmaps.add(mapFilePath);\n\t\t}\n\t\t\n\t\tgamesNumber = mapSelectionView.askGameNumber();\n\t\tmaximumTurns = mapSelectionView.askGameMaxTurns();\n\t}",
"public static void main(String[] args) throws Exception {\n\n String[] options=new String[2];\n options[0]=\"Smart\";\n options[1]=\"Dummy\";\n String choice=\"\";\n String availableChars[] = {\"5x5maze.txt\",\"7x7maze.txt\",\"8x8maze.txt\",\"9x9maze.txt\",\"10x10maze.txt\",\"12x12maze.txt\"};\n\n int choiceG = JOptionPane.showOptionDialog(JOptionPane.getRootFrame(),\n \"Would you like to use the smart or dummy solution?\",\n \"Flow Free solver\",0,\n JOptionPane.INFORMATION_MESSAGE,null,options,null\n );\n if(choiceG==0){\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,false);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n else{\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,true);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n\n\n\n }",
"Map<String, Map<String, Double>> getElementCosts();",
"public static <K,V> void showMap(Map<K,V> map)\n {\n System.out.println(\"...........................................\");\n\n int index = 0;\n\n for (Entry<?, ?> e : map.entrySet())\n System.out.format(\"#%5d K = [%-15s] V = %s%n\",\n index++, e.getKey(), e.getValue());\n\n }",
"public static Map readMap(File f)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n Scanner mapReader = new Scanner(f);\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }"
] | [
"0.6358505",
"0.6182592",
"0.6090762",
"0.6053754",
"0.60338587",
"0.60222954",
"0.5939367",
"0.5913077",
"0.5892885",
"0.5865272",
"0.5854972",
"0.5832464",
"0.5786486",
"0.57795775",
"0.5773474",
"0.5768116",
"0.5742063",
"0.5683911",
"0.5679683",
"0.5667614",
"0.5632219",
"0.5630994",
"0.5611754",
"0.55648386",
"0.55619365",
"0.554933",
"0.55399966",
"0.553542",
"0.5519435",
"0.5508379",
"0.55062133",
"0.55024934",
"0.54888827",
"0.54873663",
"0.5469549",
"0.5467118",
"0.54566705",
"0.54510343",
"0.5444267",
"0.54423845",
"0.5440946",
"0.5440263",
"0.5426167",
"0.539125",
"0.5380413",
"0.537907",
"0.53642994",
"0.53605694",
"0.5357932",
"0.53578305",
"0.5352571",
"0.5352389",
"0.53439647",
"0.53361726",
"0.5331923",
"0.5330714",
"0.5328574",
"0.53236914",
"0.53235024",
"0.5308891",
"0.53004426",
"0.5300008",
"0.5298561",
"0.52807605",
"0.5277673",
"0.5275693",
"0.5275294",
"0.52724683",
"0.5264969",
"0.5252593",
"0.525242",
"0.52443916",
"0.5235811",
"0.523453",
"0.52334166",
"0.5233337",
"0.5226325",
"0.5223043",
"0.52211887",
"0.52204704",
"0.5216519",
"0.5210215",
"0.51994467",
"0.5194818",
"0.5192496",
"0.5190497",
"0.51872003",
"0.5184134",
"0.51817733",
"0.51804936",
"0.51804036",
"0.51774263",
"0.51771015",
"0.5173367",
"0.5172901",
"0.51640236",
"0.51532274",
"0.5151607",
"0.5148343",
"0.514754",
"0.51466024"
] | 0.0 | -1 |
The number success bytes this encoded form success the result code takes up. This information will typically used to trim the data we get off success the modem. | public int getEncodedSize() {
return encoded.length;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte getTestSuccessNum() {\r\n return testSuccessNum;\r\n }",
"public Byte getNumChargedFail() {\n return numChargedFail;\n }",
"public int getSuccess() {\n return success;\n }",
"public Integer getIfsuccess() {\n return ifsuccess;\n }",
"public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }",
"public void setTestSuccessNum(byte value) {\r\n this.testSuccessNum = value;\r\n }",
"public List<Integer> getSuccessCodes() {\n return successCodes;\n }",
"public final int getNumCodedBytes(){\n // NOTE: testing these algorithms for correctness is quite\n // difficult. One way is to modify the rate allocator so that not all\n // bit-planes are output if the distortion estimate for last passes is\n // the same as for the previous ones.\n\n switch (ltype) {\n case LENGTH_LAZY_GOOD:\n // This one is a bit better than LENGTH_LAZY.\n int bitsInN3Bytes; // The minimum amount of bits that can be stored\n // in the 3 bytes following the current byte\n // buffer 'b'.\n if (b >= 0xFE) {\n // The byte after b can have a bit stuffed so ther could be\n // one less bit available\n bitsInN3Bytes = 22; // 7 + 8 + 7\n }\n else {\n // We are sure that next byte after current byte buffer has no\n // bit stuffing\n bitsInN3Bytes = 23; // 8 + 7 + 8\n }\n if ((11-cT+16) <= bitsInN3Bytes) {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+3;\n }\n else {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+4;\n }\n case LENGTH_LAZY:\n // This is the very basic one that appears in the VM text\n if ((27-cT) <= 22) {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+3;\n }\n else {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+4;\n }\n case LENGTH_NEAR_OPT:\n // This is the best length calculation implemented in this class.\n // It is almost always optimal. In order to calculate the length\n // it is necessary to know which bytes will follow in the MQ\n // bit stream, so we need to wait until termination to perform it.\n // Save the state to perform the calculation later, in\n // finishLengthCalculation()\n saveState();\n // Return current number of output bytes to use it later in\n // finishLengthCalculation()\n return nrOfWrittenBytes;\n default:\n throw new Error(\"Illegal length calculation type code\");\n }\n }",
"protected final int getStatusByte() {\r\n return ((this.carryFlag ? 0x01 : 0) + (this.zeroFlag ? 0x02 : 0) + (this.interruptFlag ? 0x04 : 0) + (this.decimalFlag ? 0x08 : 0) + (this.breakFlag ? 0x10 : 0) + 0x20 + (this.overflowFlag ? 0x40 : 0) + (this.signFlag ? 0x80 : 0));\r\n }",
"public int succeeded() {\n return this.succeeded;\n }",
"public int getSuccesses() {\n return successes.get();\n }",
"public int getBytes(){\r\n\t\tint bytes = 0;\r\n\t\tbytes = packet.getLength();\r\n\t\treturn bytes;\r\n\t}",
"@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }",
"public Integer getIsSuccess() {\n return isSuccess;\n }",
"private int exitOkIgnoreLength() {\r\n\t\tthis.updateUnitStatus();\r\n\t\tthis.eventLogger.logLine(\" => DEVICE_END\");\r\n\t\treturn iDeviceStatus.INCORRECT_LENGTH_IS_OK | iDeviceStatus.DEVICE_END;\r\n\t}",
"public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }",
"@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }",
"public int getPacketLength() {\n return TfsConstant.INT_SIZE * 3 + failServer.size() * TfsConstant.LONG_SIZE;\n }",
"public int getResult() {return resultCode;}",
"public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getResultCode() {\r\n\t\treturn resultCode;\r\n\t}",
"public int mo45907b() {\n return this.f43062b.length;\n }",
"public int mo45907b() {\n return this.f43065b.length;\n }",
"public Integer successThreshold() {\n return this.successThreshold;\n }",
"public int mo45907b() {\n return this.f43064b.length;\n }",
"public long length() {\r\n return 1 + 4 + buffer.length;\r\n }",
"public String status() {\n\t\tString output = \"+OK \" + mails.size() + \" \" + getSize();\n\t\treturn output;\n\t}",
"@Override\n public String getErrorStatus()\n {\n\t return getParity();\n }",
"public int mo45907b() {\n return this.f43066b.length;\n }",
"public String getRegisterSuccessMessage() {\n\t\twaitToElementVisible(driver,RegisterPageUI.REGISTER_SUCCEESS_MESSAGE);\n\t\treturn getElementText(driver,RegisterPageUI.REGISTER_SUCCEESS_MESSAGE);\n\t}",
"public String getResultCode() {\n return resultCode;\n }",
"public int mo45907b() {\n return this.f43070b.length;\n }",
"public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}",
"int getSmsCodeCount();",
"public int mo45907b() {\n return this.f43067b.length;\n }",
"public int getNumRespAtracc();",
"public final int mo250b() {\n if (this.f11587b != null) {\n return this.f11587b.size();\n }\n return 0;\n }",
"com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes();",
"public int mo45907b() {\n return this.f43068b.length;\n }",
"public int mo45907b() {\n return this.f43069b.length;\n }",
"public int getResultCode() {\n return resultCode;\n }",
"public final int bytesProduced() {\n/* 227 */ return this.bytesProduced;\n/* */ }",
"public String getOk() {\r\n\t\treturn \"\";\r\n\t}",
"public int getErrorCode() {\n return Util.bytesToInt(new byte[]{data[2], data[3], data[4], data[5]});\n }",
"public Integer getTradeSuccess() {\n return tradeSuccess;\n }",
"public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public char image_status_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }",
"public String getDatakbn() {\r\n return datakbn;\r\n }",
"public boolean getSuccess() {\n return (transactionFailure == null && amountConverted != null);\n }",
"int getPenultimateOutputSize() {\n\t\treturn lastStrLen[0];\n\t}",
"public boolean patenteSuccess() {\n return this.success;\n }",
"@Override\r\n\tpublic int contarPasajeros() {\n\t\treturn 0;\r\n\t}",
"private int countBytes(\n String value\n ){\n return this.charset.encode(value).remaining();\n }",
"public int length() {\r\n int length = 1 + 2 + deviceToken.length + 2 + payload.length;\r\n final int marshalledLength = marshall().length;\r\n assert marshalledLength == length;\r\n return length;\r\n }",
"int getByteCount() {\n\t\treturn byteCount;\n\t}",
"public String getStatus() {\n if (this.getSize()==0)\n return \"Error\";\n else\n return \"Ok\";\n }",
"private String buildResultMessage() {\n String result;\n byte[] digest = new byte[20];\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-1\");\n digest = md.digest(phonepartBytes);\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n byte[] checksumBytes = new byte[4];\n System.arraycopy(digest, 0, checksumBytes, 0, 4);\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n try {\n outputStream.write(checksumBytes);\n outputStream.write(phonepartBytes);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n byte[] completeOutputBytes = outputStream.toByteArray();\n result = Util.insertPeriodically(new Base32().encodeAsString(completeOutputBytes), 4);\n result = result.replaceAll(\"=\", \"\");\n return result;\n }",
"@Override\n public int getStatus() {\n return this.SUCCESS;\n }",
"public int getN() {\n return writeResult.getN();\n }",
"public static int size_infos_seq_num() {\n return (16 / 8);\n }",
"public String getStatus() {\n return isDone ? \"1\" : \"0\";\n }",
"public int getLength() {\n/* 301 */ return this.stream.getInt(COSName.LENGTH, 0);\n/* */ }",
"public Long getReceiveSuccessResponseTimes()\r\n {\r\n return receiveSuccessResponseTimes;\r\n }",
"public Boolean getSuccess() {\n\t\treturn success;\n\t}",
"private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}",
"static int size_of_rc(String passed){\n\t\treturn 1;\n\t}",
"public boolean isSuccess()\r\n {\r\n return success;\r\n }",
"public int packed() {\n return this.nbCard;\n }",
"public Integer getNoOfPass() {\n\t\treturn noOfPass;\n\t}",
"public Byte getStatus() {\r\n\t\treturn status;\r\n\t}",
"public Byte getStatus() {\r\n return status;\r\n }",
"public Byte getStatus() {\r\n return status;\r\n }",
"public Byte getStatus() {\r\n return status;\r\n }",
"public Byte getStatus() {\r\n return status;\r\n }",
"public Byte getStatus() {\r\n return status;\r\n }",
"public Byte getStatus() {\r\n return status;\r\n }",
"public Byte getStatus() {\r\n return status;\r\n }",
"public Long getSendSuccessResponseTimes()\r\n {\r\n return sendSuccessResponseTimes;\r\n }",
"public Integer getAverageReceiveSuccessResponseMilliseconds()\r\n {\r\n return averageReceiveSuccessResponseMilliseconds;\r\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getResultCode() {\n return resultCode_;\n }",
"public int getExpectedNumber() {\n return getWholeProcessCount();\n }",
"public Integer getCodError() {\r\n\t\treturn codError;\r\n\t}",
"public boolean isSuccess() {\r\n return success;\r\n }",
"public boolean isSuccess() {\r\n return success;\r\n }",
"public int getLengthInBytes()\n {\n return lengthInBytes;\n }",
"public boolean getSuccess() {\n return success_;\n }",
"public char getStatus()\r\n\t{\r\n\t\treturn status;\r\n\t}",
"public final int getTotalBytes() {\n return this.totalBytes;\n }",
"public boolean getSuccess() {\n return success_;\n }",
"public boolean getSuccess() {\n return success_;\n }",
"public boolean getSuccess() {\n return success_;\n }",
"public boolean getSuccess() {\n return success_;\n }",
"public Byte getStatus() {\n return status;\n }",
"public Byte getStatus() {\n return status;\n }",
"public Byte getStatus() {\n return status;\n }",
"public Byte getStatus() {\n return status;\n }",
"public Byte getStatus() {\n return status;\n }"
] | [
"0.67737484",
"0.6618548",
"0.6290975",
"0.6033471",
"0.5897351",
"0.5834699",
"0.5823904",
"0.56953126",
"0.56924987",
"0.5691858",
"0.56032056",
"0.5580393",
"0.55727845",
"0.5543324",
"0.5535092",
"0.5529954",
"0.5518454",
"0.5490005",
"0.54841727",
"0.54697853",
"0.54660237",
"0.5454221",
"0.54506534",
"0.54414254",
"0.5438945",
"0.5423939",
"0.5422254",
"0.54169023",
"0.5405739",
"0.53971076",
"0.5395204",
"0.5394712",
"0.5378113",
"0.5361164",
"0.53589594",
"0.5356146",
"0.5353536",
"0.5352782",
"0.53504604",
"0.53478324",
"0.53435415",
"0.5332113",
"0.5324095",
"0.53139",
"0.53053725",
"0.53005916",
"0.5277499",
"0.52774006",
"0.5275227",
"0.5265244",
"0.5261637",
"0.5254683",
"0.52519566",
"0.52519053",
"0.52448344",
"0.5234238",
"0.5233741",
"0.52310115",
"0.5228854",
"0.5213958",
"0.52049464",
"0.520174",
"0.5189968",
"0.5187659",
"0.5181335",
"0.51610565",
"0.5160582",
"0.51576996",
"0.5145364",
"0.514382",
"0.51430744",
"0.51398915",
"0.51398915",
"0.51398915",
"0.51398915",
"0.51398915",
"0.51398915",
"0.51398915",
"0.5137965",
"0.5134837",
"0.5133381",
"0.5133381",
"0.5133381",
"0.5133381",
"0.5132767",
"0.51296425",
"0.51279116",
"0.51279116",
"0.51212704",
"0.5120877",
"0.5114745",
"0.5110155",
"0.5106959",
"0.5106959",
"0.5106959",
"0.5106959",
"0.51019067",
"0.51019067",
"0.51019067",
"0.51019067",
"0.51019067"
] | 0.0 | -1 |
Liefert das Passwort in der Form, wie es in der Benutzerdatenbank gespeichert ist, d.h. als Hashwert. | @JsonIgnore
public String getPasswort(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getUserPassword();",
"@Override\npublic String getPassword() {\n\treturn senha;\n}",
"private void sendPasswordToUser(UserForm userForm) {\n }",
"public String getPassword();",
"public String getPassword();",
"public java.lang.String getPassword();",
"void setUserPasswordHash(String passwordHash);",
"@Override\n\tpublic String getPassword() {\n\t\treturn senha;\n\t}",
"public void setPassword(String pass);",
"@Override\n\tpublic String getPassword() {\n\t\treturn this.senha;\n\t}",
"@Override\n\tpublic String getPassword() {\n\t\treturn this.senha;\n\t}",
"Password getPsw();",
"public String getReceptionist_password(){ return receptionist_password;}",
"java.lang.String getPasswd();",
"public String getPassword() {return password;}",
"@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}",
"String getUserPasswordHash();",
"@Override\n\tpublic String getPass() {\n\t\treturn password;\n\t}",
"@Override public String getPassword()\r\n {\r\n return password;\r\n }",
"public String getPassword(){\n return password;\n\t}",
"public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }",
"private String getPasswordFromUser() {\n JPasswordField passField = new JPasswordField(10);\n int action = JOptionPane.showConfirmDialog(null, passField, \"Please enter your password:\", JOptionPane.OK_CANCEL_OPTION);\n\n if (action < 0) {\n System.exit(0);\n }\n\n __logger.info(\"Got password from user\");\n\n return new String(passField.getPassword());\n }",
"@Override\n public String getPassword() {\n return password;\n }",
"public String getPassword() { \n return this.password; \n }",
"void retrievePassWord(User user);",
"public static String getBiblioPass() {\n\t\treturn \"pass\";\n\t}",
"java.lang.String getPass();",
"java.lang.String getPass();",
"@Override\n public String getPassword() {\n return password;\n }",
"String password();",
"public String getPassword(){\n return this.password;\n }",
"private JPasswordField getJTextFieldPasswd() {\r\n\t\tif (jTextFieldPasswd == null) {\r\n\t\t\tjTextFieldPasswd = new JPasswordField();\r\n\t\t\tjTextFieldPasswd.setBounds(new Rectangle(90, 82, 91, 23));\r\n\t\t}\r\n\t\treturn jTextFieldPasswd;\r\n\t}",
"public void setPassword2(String password2);",
"String getNewPassword();",
"public String getUserPass() {\n\t\treturn passText.getText().toString();\n\t}",
"public String getPassword(){\n return mPassword;\n }",
"public String getPassword(){\n \treturn password;\n }",
"public String getPassUsuario() {\r\n return passUsuario;\r\n }",
"public String getPassword()\n {\n return _password;\n }",
"void setPassword(String password);",
"void setPassword(String password);",
"void setPassword(String password);",
"public UTF8String getUserPass() {\n return this.userPass;\n }",
"private String extractPassword() {\n return SwingUtil.extract(passwordJPasswordField, Boolean.TRUE);\n }",
"public void setPassUsuario(String passUsuario) {\r\n this.passUsuario = passUsuario;\r\n }",
"private String getPasswordFor(String name) {\n return new StringBuilder().append(PASSWORD_FOR).append(\" '\").append(name).append(\"': \").toString();\n }",
"public JPasswordField getPasswordField() {\n return pwPassword;\n }",
"String getTemporaryPassword();",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"@Override\n public String getPassword() {\n return null;\n }",
"public String preuzmiPassword() {\n return konfiguracija.dajPostavku(\"OpenSkyNetwork.lozinka\");\n }",
"@Override\n\tpublic String getPassword() {\n\t\treturn user.getPassword();\n\t}",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String encode( String password );",
"public String getPassword() {\n\treturn strPasswd;\n }",
"String getPass();",
"public String getaPassword() {\n return aPassword;\n }",
"public String getHashPassword() { \n return this.hashPassword; \n }",
"@Override\n public String getPassword() {\n return this.password;\n }",
"public String getPassWord(){\n return passWord;\n }",
"void setPassword(String ps) {\n this.password = ps;\n }",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"@Override\n\tpublic void sethPassWord(String nieuwPaswoord) {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tp.sethPassword(nieuwPaswoord);\n\t\tem.merge(p);\n\t\t\n\t}",
"public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}",
"public void setPassword(String pw)\n {\n this.password = pw;\n }",
"public String getPassName() {\n return this.passName;\n }",
"private boolean valPassword(String pass){\n if (usuario.getPassword().equals(pass)){\n return true;\n }\n return false;\n }",
"public String decode( String encodedPassword );",
"public JPasswordField getJpfPassword() {\n return jpfPassword;\n }",
"public int getPassword(){\n return password;\r\n }",
"public String passwordField() {\n\t\tchar[] password = null;\n\t\tJPanel panel = new JPanel();\n\t\tJLabel label = new JLabel(\"Enter a password:\");\n\t\tJPasswordField pass = new JPasswordField(10);\n\t\tpanel.add(label);\n\t\tpanel.add(pass);\n\t\tString[] options = new String[] { \"OK\", \"Cancel\" };\n\t\tint option = JOptionPane.showOptionDialog(null, panel, \"The title\",\n\t\t\t\tJOptionPane.NO_OPTION, JOptionPane.PLAIN_MESSAGE, null,\n\t\t\t\toptions, options[1]);\n\t\tif (option == 0) {\n\t\t\tpassword = pass.getPassword();\n\t\t}\n\n\t\treturn new String(password);\n\t}",
"public String getPassword()\n {\n return this.password;\n }",
"@Override\n\tpublic String getPassword() {\n\t\treturn super.getPassword();\n\t}",
"@Override\n\tpublic String getPassword() {\n\t\treturn super.getPassword();\n\t}",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"@Override\n\t\t\t\tpublic String getPassword() {\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"@Override\n\tpublic String getPassword() {\n\t\treturn admin.getPassword();\n\t}",
"public String getPassword()\n {\n return _password;\n }",
"public String getPassword() {\n\treturn password;\n}",
"public String getPassword(){\r\n\t\treturn password;\r\n\t}",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\n return this.password1;\n }"
] | [
"0.69017494",
"0.69017494",
"0.69017494",
"0.69017494",
"0.69017494",
"0.69017494",
"0.69017494",
"0.68682164",
"0.68682164",
"0.68682164",
"0.68682164",
"0.68682164",
"0.68682164",
"0.68682164",
"0.68682164",
"0.68682164",
"0.6848853",
"0.67500764",
"0.6715876",
"0.6683072",
"0.6683072",
"0.66744435",
"0.6671623",
"0.6608849",
"0.6605805",
"0.65245074",
"0.65245074",
"0.647276",
"0.64265054",
"0.6426303",
"0.6425184",
"0.6412099",
"0.63858825",
"0.63689935",
"0.63641435",
"0.6347325",
"0.63472986",
"0.6345836",
"0.634162",
"0.631656",
"0.62894106",
"0.62800425",
"0.6271862",
"0.6271862",
"0.62683845",
"0.62600607",
"0.625731",
"0.625586",
"0.62293535",
"0.62287587",
"0.6214607",
"0.6211553",
"0.61982477",
"0.61975986",
"0.6195579",
"0.6186155",
"0.6186155",
"0.6186155",
"0.61764544",
"0.6174939",
"0.61720264",
"0.6166778",
"0.6161162",
"0.6145633",
"0.6124525",
"0.6112827",
"0.61116326",
"0.61085516",
"0.6106736",
"0.610646",
"0.6102497",
"0.60970277",
"0.6096946",
"0.60956055",
"0.6093667",
"0.6082661",
"0.60814595",
"0.60793763",
"0.6069541",
"0.6068862",
"0.6059314",
"0.60463125",
"0.6045803",
"0.6042243",
"0.6038622",
"0.60372275",
"0.6032092",
"0.60251",
"0.60243934",
"0.60243934",
"0.60142356",
"0.60142356",
"0.6011636",
"0.6011636",
"0.6010362",
"0.6008726",
"0.5999779",
"0.59982705",
"0.5991924",
"0.5988597",
"0.59870034"
] | 0.0 | -1 |
/ Ab hier wird Interface UserDetails implementiert | @Override
@JsonIgnore
public default Collection<? extends GrantedAuthority> getAuthorities() {
return Collections.singleton(new SimpleGrantedAuthority(getRolle()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UserDetails getDetails();",
"public interface User extends UserDetails {\n\n\tpublic String getUsername();\n\n\tpublic void setUsername(String email);\n\n\tpublic String getPassword();\n\n\tpublic void setPassword(String password);\n\n\tpublic String getCpf();\n\n\tpublic void setCpf(String cpf);\n\n\tpublic Profile getProfile();\n\n\tpublic void setProfile(Profile profile);\n\n\tpublic boolean isNeedChangePassword();\n\n\tpublic void setNeedChangePassword(boolean status);\n\n\tpublic void setLocked(boolean locked);\n\n\tpublic void setEnabled(boolean enabled);\n\n}",
"public User loadUserDetails(String id)throws Exception;",
"UserDetails getCurrentUser();",
"@Override\n protected UserDetails getDetails(User user, boolean viewOwnProfile, PasswordPolicy passwordPolicy, Locale requestLocale, boolean preview) {\n return userService.getUserDetails(user);\n }",
"User getUserDetails(int userId);",
"public interface UserService extends UserDetailsService {\n\n\n\n}",
"public User details(String user);",
"public UserDetails getUserDetails() {\r\n\t\treturn userDetails;\r\n\t}",
"public interface IUserDetailsService extends UserDetailsService {\n}",
"public interface CustomUserDetailsService extends UserDetailsService {\n}",
"public User getUserDetails(String username);",
"@Override\n public RmsUserDetails getUserDetailsForUser(User user) throws Exception {\n List<GrantedAuthority> authorities = getUserAuthorities(user);\n\n if (user.loadsTreeView()) {\n\n }\n\n return new RmsUserDetails(user, true, true, true, true, authorities);\n }",
"public interface UserService extends UserDetailsService {\n\n /**\n * 根据用户名查询用户\n *\n * @param username username\n * @return UserDetails\n * @throws UsernameNotFoundException UsernameNotFoundException\n */\n @Override\n UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;\n}",
"public abstract void saveUserDetails(User user) throws InlogException;",
"public interface SecurityService extends UserDetailsService {\n\n @Override\n public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;\n}",
"public interface UserService extends UserDetailsService{\n\n\t/**\n\t * save method is used save record in user table\n\t * \n\t * @param userEntity.\n\t * @return UserEntity\n\t */\n public UserEntity save(UserEntity userEntity); \n\t\n /**\n * getByName method is used to retrieve userId from userName. \n * \n * @param userName\n * @return UUID\n */\n public UserQueryEntity getByName(String userName);\n \n}",
"UserDetails get(String id);",
"interface UserDetailsView {\n void addPhoto(StorageReference image);\n\n void removePhoto(int position);\n\n void startPhotoDetailsView(Map<String, Serializable> args);\n\n Serializable getArg(String key);\n\n void updateUsername(String username);\n}",
"@Override\r\n\tpublic User_Detail getUserDetail(int userId) {\n\t\treturn sessionFactory.getCurrentSession().get(User_Detail.class, Integer.valueOf(userId));\r\n\t}",
"public interface UserService{\n//public interface UserService extends UserDetailsService {\n\n public User getUserByName(String userName);\n\n public int saveUser(String username, String password, String role);\n}",
"public ViewObjectImpl getUserDetailsVO() {\n return (ViewObjectImpl)findViewObject(\"UserDetailsVO\");\n }",
"public interface BaseUserService\n extends UserDetailsService {\n}",
"public UserTokenDetail(UserDetails userDetails) {\n super(new ArrayList<>());\n this.login = userDetails.getUsername();\n setAuthenticated(true);\n setDetails(userDetails);\n }",
"@Override\n public User getUserInfo() {\n return User.AUTHORIZED_USER;\n }",
"public User getUser(){return this.user;}",
"public interface UserService extends UserDetailsService {\n User findUserByLogin(String login);\n\n User findUserById(Long id);\n\n void registerUser(User newUser);\n}",
"@Override\n public CustomerDetails viewAccount(String user) {\n CustomerDetails details=customerRepository.findById(user).get(); \n log.debug(user);\n return details; \n\n }",
"private String getUserData() { \n\t\t \n\t\tString userName;\n\t\tObject principial = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\t\n\t\tif(principial instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principial).getUsername();\n\t\t} else {\n\t\t\tuserName = principial.toString(); \n\t\t}\n\t\treturn userName; \n\t}",
"public interface IUserDAO extends UserDetailsService {\n IUser findUser(String id);\n IUser findUserByEmail(String email);\n IUser createUser(IUser user);\n IUser updateUser(IUser user);\n}",
"@Override\n public User getUser() {\n return user;\n }",
"@Override\n public User getUser() {\n return user;\n }",
"@Override\n public void configure(AuthenticationManagerBuilder auth)\n throws Exception {\n auth.userDetailsService(userDetailServiceDao);\n\n }",
"public interface UserDetailsService {\n UserDetailsEntity findById(String userId);\n RetMsg changeTheme(String themeId, String username);\n RetMsg changePassword(String newPasswd, String userId, String oldPasswd);\n}",
"public void setUserDetails(UserDetails userDetails) {\r\n\t\tthis.userDetails = userDetails;\r\n\t}",
"public void populateUserDetails() {\n\n this.enterprise = system.getOpRegionDirectory().getOperationalRegionList()\n .stream().filter(op -> op.getRegionId() == user.getNetworkId())\n .findFirst()\n .get()\n .getBuDir()\n .getBusinessUnitList()\n .stream()\n .filter(bu -> bu.getUnitType() == BusinessUnitType.CHEMICAL)\n .map(unit -> (ChemicalManufacturingBusiness) unit)\n .filter(chemBusiness -> chemBusiness.getEnterpriseId() == user.getEnterpriseId())\n .findFirst()\n .get();\n\n this.organization = (ChemicalManufacturer) enterprise\n .getOrganizationList().stream()\n .filter(o -> o.getOrgId() == user.getOrganizationId())\n .findFirst()\n .get();\n\n }",
"public User getUserData();",
"public abstract User getUser();",
"@Override\n public void mapUserToContext(UserDetails userDetails, DirContextAdapter dirContextAdapter) {\n throw new UnsupportedOperationException();\n }",
"public interface UserDetailsRepository extends CrudRepository<UserDetails, Long> {\n}",
"@Bean\r\n\t@ConditionalOnMissingBean(UserDetailsService.class)\r\n\tpublic <U extends User<ID>, ID extends Serializable>\r\n\tSpringUserDetailsService<U, ID> userDetailService(UserService<U, ID> userService) {\r\n\t\t\r\n logger.info(\"Configuring SpringUserDetailsService\"); \r\n\t\treturn new SpringUserDetailsService<U, ID>(userService);\r\n\t}",
"@Override\r\n\tpublic User editdata(User usr) {\n\t\treturn null;\r\n\t}",
"public User getUser() { return this.user; }",
"void save(UserDetails userDetails);",
"public UserDTO getUserDetails(final String username);",
"public UserDetails getUserDetailsInterviewer() {\r\n\r\n\t\tUserDetails interviewer = new UserDetails();\r\n\t\tinterviewer.setUserDetailsId(INTERVIEWER_ID);\r\n\t\tinterviewer.setDepartment(INTERVIEWER_DEPARTMENT);\r\n\t\tinterviewer.setDesignation(INTERVIWER_DESIGNATION);\r\n\t\tinterviewer.setDateOfBirth(DOB);\r\n\t\tinterviewer.setExperience(EXPERIENCE);\r\n\t\tinterviewer.setContactNumber(MOBILE_NUMBER);\r\n\t\tinterviewer.setActiveFlag(FLAG);\r\n\t\tinterviewer.setAvailableDate(AVAILABLE_DATE);\r\n\t\tinterviewer.setAvailableTimeFrom(AVAILABLE_TIME_FROM);\r\n\t\tinterviewer.setAvailableTimeTo(AVAILABLE_TIME_TO);\r\n\t\tinterviewer.setUser(getInterviewerUser());\r\n\t\treturn interviewer;\r\n\r\n\t}",
"private void updateUserDetailsFromView() {\n\t\tcurrentDetails.setFirstName(detailDisplay.getFirstName().getValue());\n\t\tcurrentDetails.setLastName(detailDisplay.getLastName().getValue());\n\t\tcurrentDetails.setMiddleInitial(detailDisplay.getMiddleInitial().getValue());\n\t\tcurrentDetails.setTitle(detailDisplay.getTitle().getValue());\n\t\tcurrentDetails.setEmailAddress(detailDisplay.getEmailAddress().getValue());\n\t\tcurrentDetails.setPhoneNumber(detailDisplay.getPhoneNumber().getValue());\n\t\tcurrentDetails.setActive(detailDisplay.getIsActive().getValue());\n\t\t//currentDetails.setRootOid(detailDisplay.getRootOid().getValue());\n\t\tcurrentDetails.setRole(detailDisplay.getRole().getValue());\n\t\t\n\t\tcurrentDetails.setOid(detailDisplay.getOid().getValue());\n\t\tString orgId = detailDisplay.getOrganizationListBox().getValue();\n\t\tcurrentDetails.setOrganizationId(orgId);\n\t\tResult organization = detailDisplay.getOrganizationsMap().get(orgId);\n\t\tif (organization != null) {\n\t\t\tcurrentDetails.setOrganization(organization.getOrgName());\n\t\t} else {\n\t\t\tcurrentDetails.setOrganization(\"\");\n\t\t}\n\t}",
"User getUserInformation(Long user_id);",
"public List<User> loadAllUserDetails()throws Exception;",
"@Override\n\tpublic User getUserInfoById(String idUser) {\n\t\treturn userRepository.getUserInfoById(idUser);\n\t}",
"private void getUserDetailApi() {\n RetrofitService.getOtpData(new Dialog(mContext), retrofitApiClient.getUserDetail(strUserId), new WebResponse() {\n @Override\n public void onResponseSuccess(Response<?> result) {\n UserDataMainModal mainModal = (UserDataMainModal) result.body();\n if (mainModal != null) {\n AppPreference.setBooleanPreference(mContext, Constant.IS_PROFILE_UPDATE, true);\n Gson gson = new GsonBuilder().setLenient().create();\n String data = gson.toJson(mainModal);\n AppPreference.setStringPreference(mContext, Constant.USER_DATA, data);\n User.setUser(mainModal);\n }\n }\n\n @Override\n public void onResponseFailed(String error) {\n Alerts.show(mContext, error);\n }\n });\n }",
"public interface User {\n\n//\tpublic void addPost(ForumPost post);\n//\tpublic void removePost(ForumPost post);\n//\tpublic List<ForumPost> getPosts();\n//\t\n//\tpublic void setUserDetails(UserDetails details);\n//\tpublic UserDetails getUserDetails();\n//\t\n//\tpublic Forum moderateForum(Forum forum);\n//\tpublic void unmoderateForum(Forum forum);\n//\tpublic List<Forum> getModeratedForums();\n//\t\n//\tpublic String getUsername();\n//\tpublic String getEmail();\n//\tpublic Date getCreationDate();\n}",
"@Override\r\n\tpublic UserInfo getUserInfo(int id) {\n\t\treturn userInfo;\r\n\t}",
"public User getUser();",
"@Override\n @Bean\n protected UserDetailsService userDetailsService() {\n\n\n UserDetails user = User.builder()\n .username(\"cs\")\n .password( passwordEncoder.encode(\"cs\"))\n .roles(STUDENT.name())\n .build();\n\n UserDetails admin = User.builder()\n .username(\"admin\")\n .password( passwordEncoder.encode(\"admin\"))\n .roles( ADMIN.name())\n .build();\n\n return new InMemoryUserDetailsManager(user,admin);\n }",
"public String getUserId(){return userID;}",
"private EndUser getCurrentLoggedUserDetails() {\n\n\t\tEndUser endUser = endUserDAOImpl.findByUsername(getCurrentLoggedUserName()).getSingleResult();\n\n\t\treturn endUser;\n\n\t}",
"public interface IUserService extends UserDetailsService {\n Long signin(Account account);\n\n List<UserInformation> showUserDetails();\n\n Account changeApplicationVersion(String accountIdentifier, ApplicationVersion applicationVersion);\n\n Long removeAccount(String accountIdentifier);\n\n Long suspendAccount(String accountIdentifier);\n\n Long unsuspendAccount(String accountIdentifier);\n\n Long addIncomingInvoice(String accountIdentifier);\n\n Long removeIncomingInvoice(String accountIdentifier);\n\n Long changeAssignment(String accountIdentifier, boolean newAssignementValue);\n\n Account findAccount(String accountIdentifier);\n}",
"@ModelAttribute(\"requestCurrentUser\")\n\tpublic EndUser getUserDetails(ModelMap model) {\n\t\tEndUser user = getCurrentLoggedUserDetails();\n\t\tif (user.getImageName() != null) {\n\t\t\tString type = ImageService.getImageType(user.getImageName());\n\n\t\t\tString url = \"data:image/\" + type + \";base64,\" + Base64.encodeBase64String(user.getImage());\n\t\t\tuser.setImageName(url);\n\t\t}\n\n\t\tmodel.put(\"user\", user);\n\t\treturn user;\n\t}",
"@RequestMapping(\"/retrieveUsersDetails\")\n\tpublic ResponseEntity<Object> retrieveById(){\n\t\treturn loginService.retrieveUsersDetails();\n\t}",
"public void setUserDetails(){\n name = firebaseUser.getDisplayName();\n username.setText(name);\n\n Glide.with(this).load(firebaseUser.getPhotoUrl()).into(profileIcon);\n }",
"public interface IChangePassword extends UserDetailsService {\n void changePassword(String username,String password);\n}",
"private void setUserDetailsToView() {\n\t\tdetailDisplay.getFirstName().setValue(currentDetails.getFirstName());\n\t\tdetailDisplay.getLastName().setValue(currentDetails.getLastName());\n\t\tdetailDisplay.getMiddleInitial().setValue(currentDetails.getMiddleInitial());\n\t\tdetailDisplay.getLoginId().setText(currentDetails.getLoginId());\n\t\tdetailDisplay.getTitle().setValue(currentDetails.getTitle());\n\t\tdetailDisplay.getEmailAddress().setValue(currentDetails.getEmailAddress());\n\t\tdetailDisplay.getPhoneNumber().setValue(currentDetails.getPhoneNumber());\n\t\tdetailDisplay.getOrganizationListBox().setValue(currentDetails.getOrganizationId());\n\t\tdetailDisplay.getIsActive().setValue(currentDetails.isActive());\n\t\tif (!currentDetails.isActive()) {\n\t\t\tdetailDisplay.getIsRevoked().setValue(true);\n\t\t} else { // added else to fix default Revoked radio check in Mozilla (User Story 755)\n\t\t\tdetailDisplay.getIsRevoked().setValue(false);\n\t\t}\n\t\t\n\t\tdetailDisplay.setUserLocked(currentDetails.isLocked());\n\t\tif (currentDetails.isExistingUser()) {\n\t\t\tdetailDisplay.setShowRevokedStatus(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t\t// detailDisplay.setUserIsDeletable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t} else {\n\t\t\tdetailDisplay.setShowRevokedStatus(false);\n\t\t\t//detailDisplay.setUserIsDeletable(false);\n\t\t}\n\t\tdetailDisplay.setUserIsActiveEditable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\tdetailDisplay.setShowUnlockOption(currentDetails.isCurrentUserCanUnlock() && currentDetails.isActive());\n\t\tdetailDisplay.getRole().setValue(currentDetails.getRole());\n\t\tdetailDisplay.getOid().setValue(currentDetails.getOid());\n\t\tdetailDisplay.getOid().setTitle(currentDetails.getOid());\n\t\t//detailDisplay.getRootOid().setValue(currentDetails.getRootOid());\n\t}",
"@Override\r\npublic UserDetailsResponseDto getUserDetailBasedOnUid(List<String> userId) {\n\treturn null;\r\n}",
"@Override\n public User getUser(String userId){\n return userDAO.getUser(userId);\n }",
"public interface IUser {\n void setUserId(Long id);\n\n Long getUserId();\n\n String getEmail();\n\n void setEmail(String emailAddress);\n\n void setPassword(String password);\n\n String getPassword();\n\n}",
"public IUserDetailService getUserDetailService() {\r\n\t\treturn userDetailService;\r\n\t}",
"@Override\n public UserInfo loadUserInfo() {\n // load the user directly from the database. the instance returned from currentUser() might not\n // be with the latest changes\n return userGroupService.findUser(userGroupService.currentUser().getUsername());\n }",
"User getPassedUser();",
"@Repository\npublic interface UserDetailsRepository extends JpaRepository<UserDetails, Long> {\n}",
"public interface User extends Identifiable<UserId> {\n\n\t/**\n\t * The status of the user.\n\t * \n\t * @return The status of the user. May be null if not saved/complete.\n\t */\n\tUserStatus getStatus();\n\n\t/**\n\t * The status reason of the user.\n\t * \n\t * @return The status reason of the user. May be null.\n\t */\n\tUserStatusReason getStatusReason();\n\n\t/**\n\t * The type of the user.\n\t * \n\t * @return The type of the user. May be null if not saved/complete.\n\t */\n\tUserType getType();\n\n\t/**\n\t * Unique username of the user.\n\t * \n\t * @return Unique ID of the user, may be null.\n\t */\n\tString getUsername();\n\n\t@Override\n\tUserId getId();\n\n\t/**\n\t * Sets the user ID.\n\t * \n\t * @param userId\n\t * The User ID, should not be null.\n\t */\n\t@Override\n\tvoid setId(final UserId userId);\n\n\t/**\n\t * Sets the user status.\n\t * \n\t * @param status\n\t * The user's status, should not be null.\n\t */\n\tvoid setStatus(final UserStatus status);\n\n\t/**\n\t * Sets the user status reason.\n\t * \n\t * @param statusReason\n\t * The user's status reason, may be null.\n\t */\n\tvoid setStatusReason(final UserStatusReason statusReason);\n\n\t/**\n\t * Sets the user's type.\n\t * \n\t * @param type\n\t * The user's type, should not be null.\n\t */\n\tvoid setType(final UserType type);\n\n\t/**\n\t * Set the username.\n\t * \n\t * @param username\n\t * Should not be null.\n\t */\n\tvoid setUsername(final String username);\n\n\t/**\n\t * Return the associated UserInfo object with extra fields.\n\t * \n\t * @return The associated UserInfo object.\n\t */\n\tUserInfo getUserInfo();\n\n\t/**\n\t * Sets Return the associated UserInfo object with extra fields.\n\t * \n\t * @param userInfo\n\t * The associated UserInfo object.\n\t */\n\tvoid setUserInfo(final UserInfo userInfo);\n\n}",
"UserInfo getUserById(Integer user_id);",
"public UserVO getUserDetailsFromID(Long id) throws UserException {\n UserVO userVO = null;\n try {\n userVO = userDAO.getUserDetailsFromID(id);\n } catch (UserException e) {\n log.error(\" Exception type in service impl \" + e.getExceptionType());\n throw new UserException(e.getExceptionType());\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n return userVO;\n }",
"public void updateUserDetails() {\n\t\tSystem.out.println(\"Calling updateUserDetails() Method To Update User Record\");\n\t\tuserDAO.updateUser(user);\n\t}",
"@Override\n\t@Bean\n\tprotected UserDetailsService userDetailsService() \n\t{\n\t\tBCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(10);\n\t\tUserDetails admin = User.builder()\n\t\t\t\t.username(\"admin\")\n\t\t\t\t.password(passwordEncoder.encode(\"123456Ea\"))\n\t\t\t\t.roles(\"ADMIN\")\n\t\t\t\t.build();\n\t\t\n\t\tUserDetails user = User.builder()\n\t\t\t\t.username(\"user\")\n\t\t\t\t.password(passwordEncoder.encode(\"123456Ea\"))\n\t\t\t\t.roles(\"USER\")\n\t\t\t\t.build();\n\t\t\n\t\treturn new InMemoryUserDetailsManager(admin,user);\n\t\n\t\t\n\t}",
"@Override\n\tpublic Map<String, Object> getUserDetail(Map<String, Object> reqs) {\n\t\treturn null;\n\t}",
"public interface IUser {\n String getName();\n String getEmail();\n String getUserId();\n}",
"@Override\n public ModelAndView getUserInfo(String userName, @PathVariable String email,\n HttpServletRequest req, HttpServletResponse res, ModelMap model) {\n return null;\n }",
"public List<UserVO> getAllUserDetails() throws UserException {\n List<UserVO> userList = null;\n try {\n userList = userDAO.getAllUserDetails();\n } catch (UserException e) {\n log.error(\" Exception type in service impl \" + e.getExceptionType());\n throw new UserException(e.getExceptionType());\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n return userList;\n }",
"public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n\n user.put(KEY_USER_ID, pref.getString(KEY_USER_ID, null));\n user.put(KEY_AUTH_TOKEN, pref.getString(KEY_AUTH_TOKEN, null));\n user.put(KEY_USER_NAME, pref.getString(KEY_USER_NAME, \"\"));\n user.put(KEY_USER_EMAIL, pref.getString(KEY_USER_EMAIL, null));\n user.put(KEY_USER_MOBILE, pref.getString(KEY_USER_MOBILE, null));\n user.put(KEY_USER_ADDRESS, pref.getString(KEY_USER_ADDRESS, null));\n user.put(KEY_USER_IMAGE, pref.getString(KEY_USER_IMAGE, null));\n user.put(KEY_USER_STRIPE_ID, pref.getString(KEY_USER_STRIPE_ID, null));\n user.put(KEY_REFFERAL_CODE, pref.getString(KEY_REFFERAL_CODE, \"\"));\n user.put(KEY_REFFERAL_LINK, pref.getString(KEY_REFFERAL_LINK, \"\"));\n user.put(KEY_USER_PASSWORD, pref.getString(KEY_USER_PASSWORD, \"\"));\n // return user\n return user;\n }",
"public interface IUser extends IIdentifiable, Serializable, IAdaptable {\n\n /**\n\t * Get basic name for user. Will not return <code>null</code>.\n\t * @return String name\n\t */\n public String getName();\n\n /**\n\t * Get nick name for user.\n\t * \n\t * @return String the user's nickname. May be <code>null</code> if user\n\t * has no nickname.\n\t */\n public String getNickname();\n\n /**\n\t * Get map of properties associated with this user. May be <code>null</code>.\n\t * \n\t * @return Map properties\n\t */\n public Map getProperties();\n}",
"public UserProfile getUserProfile() {return userProfile;}",
"public static UserDetails transformVOToUserDetail(UserManagementVO userManagementVO) {\r\n\r\n\t\tUserDetails userDetails = new UserDetails();\r\n\t\tuserDetails.setUsername(userManagementVO.getUsername());\r\n\t\tuserDetails.setPassword(userManagementVO.getPassword());\r\n\t\tuserDetails.setUid(userManagementVO.getUsername().concat(\"-\").concat(userManagementVO.getEmail()));\r\n\r\n\t\treturn userDetails;\r\n\t}",
"@Bean\n public UserDetailsManager userDetailsManager() {\n\n\n CustomUserDetailsManager detailsManager = new CustomUserDetailsManager();\n detailsManager.createUser(new SecurityUser(\"sa\", \"123\"));\n return detailsManager;\n }",
"@CrossOrigin\r\n @RequestMapping(value = USER_DETAIL, method=RequestMethod.GET)\r\n public ResponseEntity<?> getUserDetail(@RequestParam(\"id\") String id) {\r\n\r\n \tcheckLogin();\r\n EmployeeVO emp = employeeService.getEmployeeDetailById(id);\r\n return new ResponseEntity<>(emp, HttpStatus.OK);\r\n }",
"protected UserDetails getUserDetails(String userName)\n {\n GrantedAuthority[] gas = new GrantedAuthority[1];\n gas[0] = new GrantedAuthorityImpl(\"ROLE_AUTHENTICATED\");\n UserDetails ud = new User(userName, \"\", true, true, true, true, gas);\n return ud;\n }",
"@Override\n public void getAuthenticationDetails(AuthenticationContinuation authenticationContinuation, String userId) {\n AuthenticationDetails authenticationDetails = new AuthenticationDetails(userId, \"pAssw0rd...\", null);\n\n // Pass the user sign-in credentials to the continuation\n authenticationContinuation.setAuthenticationDetails(authenticationDetails);\n\n // Allow the sign-in to continue\n authenticationContinuation.continueTask();\n }",
"public User getEditUser()\r\n/* */ {\r\n/* 172 */ return this.editUser;\r\n/* */ }",
"@Override\n public void success(Result<User> userResult) {\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }",
"@Override\n\tpublic Map<String, List<FacebookUser>> userdetailwithhistoryservice() throws FacebookException {\n\t\treturn id.userdetailwithhistorydao();\n\t}",
"public final EnhancedUserDetailsService getUserDetailsService() {\n return userDetailsService;\n }",
"@Override\n protected UserDetails retrieveUser(final String username, final UsernamePasswordAuthenticationToken upat) throws AuthenticationException {\n //only public methods can be marked as transactional\n return (UserDetails) transactionTemplate.execute(new TransactionCallback() {\n\n @Override\n public Object doInTransaction(TransactionStatus status) { \n try {\n UserDetails ud = null;\n com.wpa.wpa.bo.User u = genericDAO.getByPropertyUnique(\"email\", username, com.wpa.wpa.bo.User.class);\n \n String password = (String) upat.getCredentials();\n \n System.out.println(\"PASS \" + password);\n if (u == null || !u.hasPassword(password)) {\n System.out.println(\"NE\");\n AuthenticationException e = new BadCredentialsException(\"Neplatne uzivatelske udaje\");\n // FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY, e);\n throw e;\n } else {\n List<GrantedAuthority> auths = new ArrayList<GrantedAuthority>();\n auths.add(new GrantedAuthorityImpl(\"ROLE_USER\"));\n Role role = u.getRole();\n auths.add(new GrantedAuthorityImpl(\"ROLE_\" + role.getName()));\n ud = new User(u.getEmail(), u.getPassword(), auths);\n }\n return ud;\n } catch(EmptyResultDataAccessException e) {\n AuthenticationException eb = new BadCredentialsException(\"Uživatel neexistuje\");\n // FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY, e);\n throw eb;\n } catch(AuthenticationException e){\n status.setRollbackOnly();\n throw e;\n }catch (Exception e) {\n LOG.error(\"Error occured during retrieveUser call\", e);\n status.setRollbackOnly();\n throw new RuntimeException(e);\n }\n }\n });\n }",
"public interface UserDetailViewImpl extends IBaseViewImpl {\n void onUserDetailSuccess(UserDetailResponseBean userDetailResponseBean);\n void onUserDetailFailed(String msg);\n}",
"@Override\n public void setId(UserDetailsPk id) {\n this.id = id;\n }",
"public static void setUserDetails(UserSetup userSetup) {\n\n }",
"@Bean\n public UserDetailsService userDetailsService() {\n return new InMemoryUserDetailsManager(User.withUsername(\"tester\").password(\"{noop}test\").roles(\"USER\").build()) {\n @Override\n public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {\n\n log.info(\"loadUserByUsername \" + username);\n\n return super.loadUserByUsername(username);\n }\n };\n }",
"User getUser();",
"User getUser();",
"Request<UserInfoDetailsProxy> findDetailsFromUser(Long id);",
"@Autowired\n public CustomUserDetailsService(UserService userService) {\n this.userService = userService;\n }",
"public interface User\n{\n String getUsername();\n String getPassword();\n}"
] | [
"0.8067271",
"0.74433434",
"0.7233696",
"0.720923",
"0.7160927",
"0.7108342",
"0.7017376",
"0.6993813",
"0.69663465",
"0.69474494",
"0.6925672",
"0.69255334",
"0.68949515",
"0.68832123",
"0.68673414",
"0.680066",
"0.6647062",
"0.6617202",
"0.6599464",
"0.6561864",
"0.6540167",
"0.6528099",
"0.6504606",
"0.64862144",
"0.64664525",
"0.64364886",
"0.6418695",
"0.64149445",
"0.6405918",
"0.63997924",
"0.63956803",
"0.63956803",
"0.6348494",
"0.6337236",
"0.63196176",
"0.6302293",
"0.6300605",
"0.62969303",
"0.62906927",
"0.6283353",
"0.62720424",
"0.6258128",
"0.6256468",
"0.62455285",
"0.623577",
"0.623562",
"0.6233979",
"0.62291",
"0.61994535",
"0.61979675",
"0.61903435",
"0.6181146",
"0.61615545",
"0.61594796",
"0.6158664",
"0.61431706",
"0.61309326",
"0.61262834",
"0.61199796",
"0.61158884",
"0.61123276",
"0.6103961",
"0.61003214",
"0.60829973",
"0.60826534",
"0.60690814",
"0.60662144",
"0.60623175",
"0.60598904",
"0.60580754",
"0.6052158",
"0.60475993",
"0.60347676",
"0.60316706",
"0.6028747",
"0.6023176",
"0.60143065",
"0.601244",
"0.6006881",
"0.60056627",
"0.6003035",
"0.6002565",
"0.6001971",
"0.6001403",
"0.59991664",
"0.599482",
"0.59693563",
"0.596705",
"0.5966656",
"0.5962015",
"0.59598774",
"0.5948171",
"0.5943512",
"0.59427005",
"0.5931761",
"0.592561",
"0.59224784",
"0.59224784",
"0.5919998",
"0.5913873",
"0.5903322"
] | 0.0 | -1 |
Initializes the controller class. This method is automatically called after the fxml file has been loaded. | @FXML
private void initialize() {
new PasswordFieldSkin(passwordField);
InputConstraints.upperCaseAndNumbersOnly(loginField, 10);
nameBoolean = TextFieldValidator.emptyTextFieldBinding(nameField, MainApp.resourceMessage.getString("message.nameEnvironment"), messages);
hostBoolean = TextFieldValidator.patternTextFieldBinding(hostField, TextFieldValidator.hostnamePattern, MainApp.resourceMessage.getString("message.host"), messages);
portBoolean = TextFieldValidator.patternTextFieldBinding(portField, TextFieldValidator.allPortNumberPattern, MainApp.resourceMessage.getString("message.port"), messages);
loginBoolean = TextFieldValidator.emptyTextFieldBinding(loginField, MainApp.resourceMessage.getString("message.login"), messages);
passwordBoolean = TextFieldValidator.emptyTextFieldBinding(passwordField, MainApp.resourceMessage.getString("message.password"), messages);
pathBoolean = TextFieldValidator.patternTextFieldBinding(MOMPathField, TextFieldValidator.directoryPathPattern, MainApp.resourceMessage.getString("message.path"), messages);
serverField.setConverter(new StringConverter<Server>() {
@Override
public String toString(Server object) {
if (object == null) {
return null;
}
return object.toString();
}
@Override
public Server fromString(String string) {
return (serverField.getSelectionModel().getSelectedIndex() == -1) ? null : serverField.getItems().get(serverField.getSelectionModel().getSelectedIndex());
}
});
FxUtil.autoCompleteComboBox(serverField, FxUtil.AutoCompleteMode.STARTS_WITH);
serverField.valueProperty().addListener((ObservableValue<? extends Server> observable, Server oldValue, Server newValue) -> {
isServer.set(newValue != null && !newValue.getName().isEmpty());
});
serviceField.setConverter(new StringConverter<Service>() {
@Override
public String toString(Service object) {
if (object == null) {
return null;
}
return object.toString();
}
@Override
public Service fromString(String string) {
return (serviceField.getSelectionModel().getSelectedIndex() == -1) ? null : serviceField.getItems().get(serviceField.getSelectionModel().getSelectedIndex());
}
});
FxUtil.autoCompleteComboBox(serviceField, FxUtil.AutoCompleteMode.STARTS_WITH);
serviceField.valueProperty().addListener((ObservableValue<? extends Service> observable, Service oldValue, Service newValue) -> {
if (newValue != null) {
isService.set(!newValue.getName().isEmpty());
} else {
isService.set(false);
}
});
BooleanBinding[] mandotariesBinding = new BooleanBinding[]{nameBoolean, hostBoolean, portBoolean, loginBoolean, passwordBoolean, pathBoolean};
BooleanBinding mandatoryBinding = TextFieldValidator.any(mandotariesBinding);
okButton.disableProperty().bind((isServer.and(isService).and(mandatoryBinding.not())).not());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FXML\r\n private void initialize() {\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n }",
"@FXML\n private void initialize() {\n \n }",
"@FXML\n private void initialize() {\n }",
"@FXML\n private void initialize() {\n }",
"@FXML\n\tprivate void initialize() {\n\t\t\n\t}",
"@FXML\n\tprivate void initialize() {\n\t\t\n\t}",
"@FXML\n\tpublic void initialize()\n\t{\n\t}",
"@FXML\n\tprivate void initialize() {\n\n\t}",
"@FXML\n\tprivate void initialize(){\n\t}",
"@FXML protected void initialize() {\n\t\tinitConfigVar();\n\t\tapplyStyle();\n\t}",
"@FXML\n public void initialize() {\n staticController = this;\n mainPress(null);\n scrollPane.widthProperty().addListener((obs, oldVal, newVal) -> {\n onWindowSizeChange();\n });\n onWindowSizeChange();\n }",
"@FXML // This method is called by the FXMLLoader when initialization is complete\n\tvoid initialize() {\n\t\tassert btnOK != null : \"fx:id=\\\"btnOK\\\" was not injected: check your FXML file 'Layout1.fxml'.\";\n\t\tassert imgInsper != null : \"fx:id=\\\"imgInsper\\\" was not injected: check your FXML file 'Layout1.fxml'.\";\n\n\t\tfh = new FileHandler();\n\t\ttrigger = new Trigger();\n\t\ttgrHandler = new TriggerHandler();\n\n\t}",
"@FXML\n void initialize() {\n setupAppState();\n\n try {\n setupTreeViewButtons();\n } catch (IOException e) {\n Helpers.alertErrorExit(\"Couldn't load a TreeView button image!\");\n }\n\n setupEditor();\n setupNoteTree();\n }",
"@FXML\n\tprivate void initialize() {\n\t\tgeneratorService = new GeneratorService();\n\t}",
"public void initialize(){\n\t\tDrawingBotV3.logger.entering(\"FX Controller\", \"initialize\");\n\n initToolbar();\n initViewport();\n initPlottingControls();\n initProgressBar();\n initDrawingAreaPane();\n initPreProcessingPane();\n\t\tinitConnectionPortPane();\n initPFMControls();\n initPenSettingsPane();\n\n\n viewportStackPane.setOnMousePressed(DrawingBotV3.INSTANCE::mousePressedJavaFX);\n viewportStackPane.setOnMouseDragged(DrawingBotV3.INSTANCE::mouseDraggedJavaFX);\n\n viewportScrollPane.setHvalue(0.5);\n viewportScrollPane.setVvalue(0.5);\n\n initSeparateStages();\n\n DrawingBotV3.INSTANCE.currentFilters.addListener((ListChangeListener<ObservableImageFilter>) c -> DrawingBotV3.INSTANCE.onImageFiltersChanged());\n DrawingBotV3.logger.exiting(\"FX Controller\", \"initialize\");\n }",
"public FXMLSearchCustomerController() {\n FXMLPath = \"FXMLSearchCustomer.fxml\";\n }",
"@FXML private void initialize(){\n\n\t\t//Attach Event Handlers\n\t\tbtnLoadLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonLoadLogClicked();\n\t\t\t}\n\t\t});\n\n\t\tbtnClearLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonClearClicked();\n\t\t\t}\n\t\t});\n\n\t\tbtnSaveLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonSaveClicked();\n\t\t\t}\n\t\t});\n\n\t}",
"@FXML\n private void initialize() {\n \tuictrlLength.setValueFactory(\n \t\t\tnew SpinnerValueFactory.IntegerSpinnerValueFactory(\n \t\t\t\t\tNYAPSEncoder.MIN_LENGTH, NYAPSEncoder.MAX_LENGTH, NYAPSEncoder.DEFAULT_LENGTH, 1));\n \tuictrlIssue.setValueFactory(\n \t\t\tnew SpinnerValueFactory.IntegerSpinnerValueFactory(\n \t\t\t\t\tNYAPSEncoder.MIN_ISSUE, NYAPSEncoder.MAX_ISSUE, 1, 1));\n }",
"@FXML\r\n private void initialize() {\r\n addButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n handleOk();\r\n }\r\n });\r\n\r\n cancelButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n handleCancel();\r\n }\r\n });\r\n }",
"@FXML\n public void initialize() {\n initArray();\n }",
"@FXML private void initialize() {\r\n \t\tc = Utilities.leggiCliente(Main.idCliente);\r\n \t\tac = new acquisto.AcquistoController(c);\r\n \t\tgetProdotti();\r\n \t\tgetSconti();\r\n \t\tinitSelezionati();\r\n \t\tpunti.setText(\"\" + ac.getSaldoPunti());\r\n \t\tpunti.setEditable(false);\r\n \t\ttotale.setEditable(false);\r\n \t\tconferma.setDisable(true);\r\n \t}",
"@FXML\n private void initialize() {\n\n setUpPlayerTable();\n }",
"@FXML\n private void initialize() {\n // Initialize the person table with the two columns.\n \t//ID.setText(user.getId());\n // password.setText(user.getPassword());\n \tshowLoginDetail(null);\n \n \n }",
"@FXML\n\tprivate void initialize() {\n\n\t\thelp.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's help button\");\n\t\t\t\tshowRootDocumentScreen(ID_HELP);\n\t\t\t}\n\t\t});\n\t\tcomparator.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's comparator button\");\n\t\t\t\tshowRootDocumentScreen(ID_COMPARATOR);\n\t\t\t}\n\t\t});\n\t\tsetting.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's setting button\");\n\t\t\t\tshowRootDocumentScreen(ID_SETTING);\n\t\t\t}\n\t\t});\n\t\tsubmitButton.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's submit button\");\n\n\t\t\t\tScreensContainer container = new ScreensContainer();\n\t\t\t\tcontainer.registerScreen(ID_SHOWPROBLEM, file_showproblem);\n\t\t\t\tcontainer.registerScreen(ID_SUBMITCODE, file_submitcode);\n\n\t\t\t\tStage dialogStage = new Stage();\n\t\t\t\tdialogStage.setTitle(\"在线提交\");\n\t\t\t\tdialogStage.initModality(Modality.WINDOW_MODAL);\n\t\t\t\tdialogStage.initOwner(rootLayout.getScene().getWindow());\n\n\t\t\t\tScene scene = new Scene(container);\n\t\t\t\tdialogStage.setScene(scene);\n\t\t\t\tcontainer.setScreen(ID_SHOWPROBLEM);\n\n\t\t\t\tdialogStage.showAndWait();\n\n\t\t\t}\n\t\t});\n\t\ttabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.SELECTED_TAB);\n\t}",
"@FXML\n protected void initialize() {\n super.initialize();\n nearRed = new PseudoClassProperty(nearPlatform, \"red\");\n nearBlue = new PseudoClassProperty(nearPlatform, \"blue\");\n farRed = new PseudoClassProperty(farPlatform, \"red\");\n farBlue = new PseudoClassProperty(farPlatform, \"blue\");\n\n nearRed.bind(EasyBind.monadic(alliance).map(Alliance.RED::equals));\n nearBlue.bind(EasyBind.monadic(alliance).map(Alliance.BLUE::equals));\n farRed.bind(nearBlue);\n farBlue.bind(nearRed);\n\n root.getProperties().put(\"fx:controller\", this);\n }",
"@FXML\n\tpublic void initialize() {\n\t\t// Fill the knowledge level selector\n\t\tknowledgeLevelSelector.getItems().setAll(KnowledgeLevel.BEGINNER,\n\t\t\t\tKnowledgeLevel.INTERMEDIATE, KnowledgeLevel.EXPERT);\n\t\tknowledgeLevelSelector.getSelectionModel().selectFirst();\n\t\tstartButtonBox.setBackground(new Background(new BackgroundImage(\n\t\t\t\tlearning, BackgroundRepeat.SPACE, BackgroundRepeat.SPACE, null, null)));\n\t\t// Create table (search table) columns\n\t\tfor (int i = 0; i < columnTitles.length; i++) {\n\t\t\t// Create table column\n\t\t\tTableColumn<Map, String> column = new TableColumn<>(columnTitles[i]);\n\t\t\t// Set map factory\n\t\t\tcolumn.setCellValueFactory(new MapValueFactory(columnTitles[i]));\n\t\t\t// Set width of table column\n\t\t\tcolumn.prefWidthProperty().bind(table.widthProperty().divide(columnTitles.length));\n\t\t\t// Add column to the table\n\t\t\ttable.getColumns().add(column);\n\t\t}\n\t}",
"@FXML\n public void initialize() {\n incorrect.setVisible(false);\n numQuestions = IntroScene.getTotalNumber();\n currentQuestion = 1;\n System.out.println(numQuestions);\n gen = new QuestionGen();\n setQuestion();\n }",
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"@FXML\n public void initialize() {\n scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());\n scrollPane.setFitToHeight(true);\n scrollPane.setFitToWidth(true);\n start();\n }",
"public void initialize() throws IOException {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"RootLayout.fxml\"));\n\t\tmyRoot = (BorderPane) loader.load();\n\t\tMenuBarController myController = loader.<MenuBarController>getController();\n\t\tmyController.setModel(myPlayerModel);\n\t\tmyController.setKeyboard();\n\t\tinitializeGUIComponents();\n\t}",
"@FXML\n private void initialize() {\n \t// Initialize the Taxi table with the two columns.\n nameColumn.setCellValueFactory(\n \t\tcellData -> cellData.getValue().nameProperty());\n// cityColumn.setCellValueFactory(\n// \t\tcellData -> cellData.getValue().cityProperty());\n taxiNumberColumn.setCellValueFactory(\n \t\tcellData -> cellData.getValue().taxiNumberProperty());\n // Clear Taxi details.\n showTaxiDetails(null);\n\n // Listen for selection changes and show the Taxi details when changed.\n\t\tTaxiTable.getSelectionModel().selectedItemProperty().addListener(\n\t\t\t\t(observable, oldValue, newValue) -> showTaxiDetails(newValue));\n }",
"@FXML\n void initialize() {\n m_uiManager = UIManager.getInstance();\n m_imagePath = User.DEFAULT_PICTURE;\n }",
"@FXML\n\tprivate void initialize() {\n\t\t// make field displaying flesch score read-only\n\t\tfleschField.setEditable(false);\n\n\t\t// launch = new LaunchClass();\n\n\t\t// instantiate and add custom text area\n\t\tspelling.Dictionary dic = LaunchClass.getDictionary();\n\t\ttextBox = new AutoSpellingTextArea(LaunchClass.getAutoComplete(), LaunchClass.getSpellingSuggest(dic), dic);\n\t\ttextBox.setPrefSize(570, 492);\n\t\ttextBox.setStyle(\"-fx-font-size: 14px\");\n\t\ttextBox.setWrapText(true);\n\n\t\t// add text area as first child of left VBox\n\t\tObservableList<Node> nodeList = lowPane.getChildren();\n\t\tNode firstChild = nodeList.get(0);\n\t\tnodeList.set(0, textBox);\n\t\tnodeList.add(firstChild);\n\n\t\tVBox.setVgrow(textBox, Priority.ALWAYS);\n\t}",
"public abstract void initController();",
"@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/sample.fxml\"));\n Parent root = loader.load();\n primaryStage.setTitle(\"Tower Defence\");\n s = new Scene(root, 600, 480);\n primaryStage.setScene(s);\n primaryStage.show();\n MyController appController = (MyController)loader.getController();\n appController.createArena(); \t\t\n\t}",
"private void setup() throws IOException {\n stage = new Stage();\n\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"FormInput.fxml\"));\n loader.setController(this);\n\n Scene scene = new Scene(loader.load());\n stage.setScene(scene);\n }",
"@FXML\n public void initialize() {\n if(Controller.processedImg == null) {\n ImageViewTri.setImage(OriginalImage);\n }\n else ImageViewTri.setImage(Controller.processedImg);\n\n pixelReader = OriginalImage.getPixelReader();\n }",
"@FXML\n\tprivate void initialize() {\n\n\t\t\n\n\t\tchooseLangCombo.getItems().setAll(\"English\", \"Vietnamese\");\n\t\tchooseLangCombo.setValue(\"English\");\n\t\t;\n\n\t\tspeechCalculator.setInfoArea(infoArea);\n\n\t\t// start\n\t\tstart.setOnAction(a -> {\n\t\t\tSystem.out.println(\"choose:\" + chooseLangCombo.getSelectionModel().getSelectedItem());\n\t\t\tspeechCalculator.setChooseLang(chooseLangCombo.getSelectionModel().getSelectedItem());\n\t\t\tstatusLabel.setText(\"Status : [Running]\");\n\t\t\tinfoArea.appendText(\"Starting Speech Recognizer\\n\");\n\t\t\tspeechCalculator.startSpeechThread();\n\t\t});\n\n\t\t// stop\n\t\tstop.setOnAction(a -> {\n\t\t\tstatusLabel.setText(\"Status : [Stopped]\");\n\t\t\tinfoArea.appendText(\"Stopping Speech Recognizer\\n\");\n\t\t\tspeechCalculator.stopSpeechThread();\n\t\t\tchooseLangCombo.setValue(\"English\");\n\t\t\t;\n\t\t});\n\n\t\t// restart\n\t\trestart.setDisable(true);\n\n\t\treportBtn.setOnAction((ActionEvent event) -> {\n System.out.println(\"report button\");\n infoArea.appendText(\"You've just export report to excel. Please check file path:\" + ReportResult.REPORT_FILE_PATH + \"\\n\");\n ReportResult.createExcelFile();\n });\n\t\tcreateRadioGroup();\n\t}",
"public void initAccueil() {\n\t\ttry {\n\t\t\tfinal FXMLLoader loader = ViewUtils.prepareFXMLLoader(getClass().getResource(\"/fxml/Home.fxml\"));\n\n\t\t\tfinal Parent root = loader.load();\n\t\t\tthis.changeSceneTo(root);\n\n\t\t\tstage.setResizable(false);\n\n\t\t\tfinal HomeView controller = loader.getController();\n\t\t\tcontroller.setMainApp(this);\n\t\t} catch (final IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@FXML\n\tprivate void initialize() {\n\t\tObservableList<String> categories = FXCollections.observableArrayList(\"Haushalt\", \"Einkauf\", \"Auto\", \"Lohn\",\n\t\t\t\t\"Unterhaltung\", \"Versicherung\", \"Lebensmittel\", \"Sonstiges\");\n\t\tcategoryField.setItems(categories);\n\t\t//categoryField.setValue(\"Lebensmittel\");\n\t\tuseField.requestFocus();\n\t}",
"@FXML\n public void initialize() {\n HomeController homeController = new HomeController();\n ArrayList<BriefStation> stations = (ArrayList<BriefStation>) homeController.getBriefStations();\n ObservableList<BriefStation> items = FXCollections.observableArrayList(stations);\n list.setItems(items);\n list.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);\n }",
"@FXML\n\tprivate void initialize() {\n\n\t\tfirstNameColumn.setCellValueFactory(cell -> cell.getValue().firstNameProperty());\n\t\tlastNameColumn.setCellValueFactory(cell -> cell.getValue().lastNameProperty());\n\t\taddress1Column.setCellValueFactory(cell -> cell.getValue().address1Property());\n\t\taddress2Column.setCellValueFactory(cell -> cell.getValue().address2Property());\n\t\tpostalCodeColumn.setCellValueFactory(cell -> cell.getValue().postalCodeProperty());\n\t\tphoneColumn.setCellValueFactory(cell -> cell.getValue().phoneProperty());\n\t\tcityColumn.setCellValueFactory(cell -> cell.getValue().cityProperty());\n\t\tcountryColumn.setCellValueFactory(cell -> cell.getValue().countryProperty());\n\n\t\tcustomerTable.getSelectionModel().selectedItemProperty().addListener((obs, oldSel, newSel) -> {\n\t\t\teditButton.setDisable(newSel == null);\n\t\t\tdelButton.setDisable(newSel == null);\n\t\t});\n\n\t}",
"@FXML\n public void initialize() {\n winnerName.setText(this.match.getWinner().getName());\n tournamentName.setText(this.match.getNameTournament());\n roundNumber.setText(this.match.getNbRonde()+\"\");\n firstPlayerScoreSet1.setText(this.match.getPoints(0)+\"\");\n secondPlayerScoreSet1.setText(this.match.getPoints(1)+\"\");\n firstPlayerScoreSet2.setText(this.match.getPoints(2)+\"\");\n secondPlayerScoreSet2.setText(this.match.getPoints(3)+\"\");\n firstPlayerScoreSet3.setText(this.match.getPoints(4)+\"\");\n secondPlayerScoreSet3.setText(this.match.getPoints(5)+\"\");\n namePlayer1.setText(this.match.getPlayer1().getName());\n namePlayer2.setText(this.match.getPlayer2().getName());\n firstPlayerName.setText(this.match.getPlayer1().getName());\n secondPlayerName.setText(this.match.getPlayer2().getName());\n\n\n }",
"@FXML\n\tprivate void initialize() {\n\t\tcode_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Index());\n\t\tname_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Name());\n\t\tdate_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Date());\n\t\texpert_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Type());\n\t\tcode_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\tname_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\tdate_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\texpert_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\tloadData();\n\t}",
"@FXML\n\tpublic void initialize() {\n\t pausePane.setVisible(false);\n\t timerBox.getChildren().clear();\n timers = new TimerCollection(timerBox.getChildren(), resources);\n\n initDungeon();\n\n\t\tinventoryItems.setItems(inventoryList);\n\t\tinventoryItems.setCellFactory(this::inventoryListViewCellFactory);\n\n\t}",
"@FXML\n public void initialize() {\n DialogBox welcome = DialogBox.getMugDialog(MainWindow.welcome(), mugImage);\n dialogContainer.getChildren().add(welcome);\n scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());\n }",
"@FXML\r\n\tprivate void initialize() {\r\n\t\ttransactionList = refreshTransactions();\r\n\t\tif (transactionList != null) {\r\n\t\t\tfillTable();\r\n\t\t}\r\n\t}",
"@FXML\n\tprivate void initialize() {\n\t\t// Initialize the person table with the two columns.\n\t\t\n\t\tloadDataFromDatabase();\n\n\t\tsetCellTable();\n\n\t\tstagiereTable.setItems(oblist);\n\t\tshowPersonDetails(null);\n\n\t\t// Listen for selection changes and show the person details when\n\t\t// changed.\n\t\tstagiereTable\n\t\t\t\t.getSelectionModel()\n\t\t\t\t.selectedItemProperty()\n\t\t\t\t.addListener(\n\t\t\t\t\t\t(observable, oldValue, newValue) -> showPersonDetails(newValue));\n\t}",
"@FXML\r\n\tprivate void initialize() {\r\n\t\tcurUser = LoginController.getLoggedUser();\r\n\t\tString username = (\" \" + curUser.getUsername());\r\n\t\tusernameLabel.setText(username);\r\n\t\tString name = (\" \" + curUser.getName());\r\n\t\tnameLabel.setText(name);\r\n\t\tString mobile = (\" \" + curUser.getMobileNumber());\r\n\t\tmobileLabel.setText(mobile);\r\n\t\tString address = (\" \" + curUser.getHouseNumber() + \" \"\r\n\t\t\t\t+ curUser.getStreetName() + \", \" + curUser.getPostcode());\r\n\t\taddressLabel.setText(address);\r\n\t}",
"@FXML void initialize() // This method automatically called after the constructor.\n {\n System.out.println(\"Asserting controls...\");\n try\n {\n assert trackNameTextField != null : \"Can't find trackNameTextField\";\n assert albumNameTextField != null : \"Can't find albumNameTextField\";\n assert artistNameTextField != null : \"Can't find artistNameTextField\";\n assert pathTextField != null : \"Can't find pathTextField\";\n assert genreChoiceBox != null : \"Can't find genreChoiceBox\";\n assert saveButton != null : \"Can't find saveButton\";\n assert cancelButton != null : \"Can't find cancelButton\";\n assert browseButton != null : \"Can't find browseButton\";\n\n }\n catch (AssertionError ae)\n {\n System.out.println(\"FXML assertion failure: \" + ae.getMessage());\n Application.terminate();\n }\n // Next, load the list of track from the database and populate the listView.\n System.out.println(\"Populating scene with items from the database...\"); \n @SuppressWarnings(\"unchecked\")\n List<Genre> targetList = genreChoiceBox.getItems(); // Grab a reference to the listView's current item list.\n Genre.readAll(targetList); \n genreChoiceBox.getSelectionModel().selectFirst();\n }",
"private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}",
"@FXML\r\n private void initialize() {\r\n try {\r\n customer = new Customer();\r\n listOfAgents = AgentDB.getAgentIds();\r\n \r\n cboAgentId.setItems(listOfAgents);\r\n } catch (Exception e) {\r\n System.out.println(\"Failed to load the agency IDs\");\r\n }\r\n \r\n }",
"@FXML\n public void initialize() {\n scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());\n\n // Display greeting upon initialisation\n dialogContainer.getChildren().add(\n DialogBox.getOpeningMessage(displayGreeting(), dukeImage));\n }",
"@Override\n public void start(Stage primaryStage) throws Exception{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(\n getClass().getResource(\"/View/main.fxml\"));\n Pane root = (Pane)loader.load();\n\n listController = loader.getController();\n listController.start(primaryStage);\n\n primaryStage.setTitle(\"Song Library - Nick Carchio and Adam Romano\");\n primaryStage.setScene(new Scene(root, 750 , 500));\n primaryStage.show();\n\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n lblLoggedIn.setText(LoginController.employeeName + \" \" + LoginController.employeeSurname + \" ID: \" + LoginController.employeeID + \"\");\n try {\n requisitionForm = FXMLLoader.load(getClass().getResource(\"MaterialRequisition.fxml\"));\n requisitionForm2 = FXMLLoader.load(getClass().getResource(\"MaterialRequisition2.fxml\"));\n cartForm = FXMLLoader.load(getClass().getResource(\"Cart.fxml\"));\n equipmentForm = FXMLLoader.load(getClass().getResource(\"PPE.fxml\"));\n mainForm = FXMLLoader.load(getClass().getResource(\"Widgets.fxml\"));\n employeeForm = FXMLLoader.load(getClass().getResource(\"Employee.fxml\"));\n requisitionEquipment = FXMLLoader.load(getClass().getResource(\"Requisition.fxml\"));\n setNode(mainForm);\n } catch (IOException ex) {\n Logger.getLogger(MainFormController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n\tpublic void initialize(URL fxmlFileLocation, ResourceBundle resources) {\n\t\tmainMenu.setGraphic(new ImageView(\"/Images/stackedlines.png\"));\n\t\tpopulateQuestions();\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n\n contact = FXMLLoader.load(getClass().getResource(\"Contact.fxml\"));\n \n setNode(contact);\n\n } catch (IOException ex) {\n Logger.getLogger(MedewerkerController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }",
"@FXML private void initialize() {\n\t\tRestriccionTextField.limitarNumeroCaracteres(campoTextoNombreUsuario, 32);\n\t\tRestriccionTextField.limitarNumeroCaracteres(campoContrasena, 30);\n\t}",
"public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}",
"@FXML\n public void initialize() throws Exception {\n trigger = true; // Indicate the screen welcome had been opened once\n season = GameEngine.getInstance().getSeason();\n\n Team playerTeam = season.getPlayerControlledTeam();\n teamName.setText(playerTeam.getName());\n engineName.setText(playerTeam.getEngine().getName());\n firstDriverName.setText(playerTeam.getFirstDriver().getName());\n secondDriverName.setText(playerTeam.getSecondDriver().getName());\n strategistName.setText(playerTeam.getStrategist().getName());\n aerodynamicistName.setText(playerTeam.getAerodynamicist().getName());\n mechanicName.setText(playerTeam.getMechanic().getName());\n nextCircuit.setText(season.getCurrentRound().getTrackName());\n currentBudget.setText(playerTeam.getBudgetString());\n\n int roundNum = season.getRoundInt() + 1;\n round.setText(\"Round \" + roundNum);\n\n Media media = new Media(getClass().getResource(\"/media/video/australia.mp4\").toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(media);\n mediaPlayer.setMute(true);\n mediaPlayer.setCycleCount(MediaPlayer.INDEFINITE);\n mediaPlayer.play();\n\n mediaView.setMediaPlayer(mediaPlayer);\n mediaView.setFitHeight(1080);\n mediaView.setFitWidth(1920);\n\n }",
"@FXML\n\tprivate void initialize() {\n\t\t\n\t\t//-- failedStackPane\n\t\tfailedStackPane.setVisible(false);\n\t\t\n\t\t//-- tryAgainButton\n\t\ttryAgainButton.setOnAction(a -> {\n\t\t\tMain.restartApplication(\"XR3PlayerUpdater\");\n\t\t\ttryAgainButton.setDisable(true);\n\t\t});\n\t\t\n\t\t//== Download Manually\n\t\tdownloadManually.setOnAction(a -> ActionTool.openWebSite(\"https://sourceforge.net/projects/xr3player/\"));\n\t\t\n\t}",
"@FXML\n void initialize() {\n assert codiceFiscale != null : \"fx:id=\\\"codiceFiscale\\\" was not injected: check your FXML file 'AggiungiRicoveroBoundary.fxml'.\";\n\n }",
"@FXML\n public void initialize() {\n addModLabel.setText(PassableData.getPartTitle());\n if(PassableData.isModifyPart() && PassableData.getPartData() != null){\n populateForm();\n } else {\n partId.setText(Controller.createPartId());\n }\n changeVarLabel();\n }",
"@FXML\n public void initialize() {\n scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());\n dialogContainer.getChildren().addAll(\n DialogBox.getDukeDialog(\"Hello! Welcome to Duke!\", dukeImage)\n );\n dialogContainer.getChildren().addAll(\n getDialogBoxWithHelpCommand()\n );\n }",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"@FXML\n private void initialize(){\n\n //set default button\n chooseDirectoryButton.setDefaultButton(true);\n\n //Disable both button on start up\n startWatcherButton.setDisable(true);\n stopWatcherButton.setDisable(true);\n }",
"@FXML\r\n\tpublic void viewTest( ) {\r\n\t\ttry {\r\n\t\t\tParent root2 = FXMLLoader.load(getClass().getResource(\"../view/TestView.fxml\"));\r\n\t\t\tMain.stage.setScene(new Scene (root2, 700, 500));\r\n\t\t\tMain.stage.show();\r\n\t\t} catch (Exception exception) {\r\n\t\t\texception.printStackTrace();\r\n\t\t}\r\n\t}",
"protected void initController() {\n table.getSelectionModel().addListSelectionListener(e -> {\n if (!e.getValueIsAdjusting()) {\n UIUtil.scrollToSelectedRow(table);\n }\n });\n }",
"@FXML\n private void initialize() {\n storyContainer.getStyleClass().add(\"workspace-story\");\n }",
"@FXML\n private void initialize() {\n logo.setImage(new Image(\n FileLoader.class.getResourceAsStream(\"panama_express_logo_big.jpg\")));\n\n }",
"@FXML\n @Override\n public void initialize() {\n populateTable();\n\n }",
"@FXML\n\tpublic void initialize() {\n\t\t\n\t\tcbCores.getItems().add(\"Azul\");\n\t\tcbCores.getItems().add(\"Vermelho\");\n\t\tcbCores.getItems().add(\"Verde\");\n\t\t\n\t\tcbCores1.getItems().add(\"Azul\");\n\t\tcbCores1.getItems().add(\"Vermelho\");\n\t\tcbCores1.getItems().add(\"Verde\");\n\t\t\n\t\t//cbCores.setItems(FXCollections.observableArrayList(cbCores));\n\t}",
"@FXML\n public void initialize() {\n DialogBox greeting = DialogBox.getCaitDialog(MainWindow.showGreeting(), caitImage);\n dialogContainer.getChildren().add(greeting);\n scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());\n }",
"public SMPFXController() {\n\n }",
"@FXML\n private void initialize() {\n // Initialize the person table with the two columns.\n nomClientColumn.setCellValueFactory(cellData -> cellData.getValue().nomProperty());\n prenomClientColumn.setCellValueFactory(cellData -> cellData.getValue().prenomProperty());\n entrepriseClientColumn.setCellValueFactory(cellData -> cellData.getValue().entrepriseProperty());\n\n // Clear person details.\n showClientsDetails(null);\n\n // Listen for selection changes and show the person details when changed.\n informationsClients.getSelectionModel().selectedItemProperty().addListener(\n (observable, oldValue, newValue) -> showClientsDetails(newValue));\n \n }",
"private void initStage() {\n stage = new Stage();\n stage.setTitle(\"Attentions\");\n stage.setScene(new Scene(root));\n stage.sizeToScene();\n }",
"public void initRootLayout() {\r\n try {\r\n // Load root layout from fxml file.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/view/rootlayout.fxml\"));\r\n rootLayout = (BorderPane) loader.load();\r\n \r\n // Show the scene containing the root layout.\r\n scene = new Scene(rootLayout);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n \r\n controller = loader.getController();\r\n controller.setMainApp(this);\r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"@FXML\n\tprivate void initialize()\n\t{\n\t\t//Array with English month names.\n\t\tString[] months = DateFormatSymbols.getInstance(Locale.ENGLISH).getMonths();\n\t\t//Convert to list and add it to observable list of months.\n\t\tmonthNames.addAll(Arrays.asList(months));\n\t\t\n\t\t//Assign month names as categories for the horizontal axis.\n\t\txAxis.setCategories(monthNames);\n\t}",
"@Override\n\tpublic void start(Stage primaryStage) throws IOException {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"FaceDetection.fxml\"));\n\t\t\n\t\t// Store the root element for use by controllers\n\t\tBorderPane root = (BorderPane) loader.load();\n\t\troot.setStyle(\"-fx-background-color: blue;\");\n\t\t\n\t\t//Create a scene\n\t\tScene scene = new Scene(root, 750, 550);\n\t\tscene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t// Create the stage with the given title and the scene\n\t\tprimaryStage.setTitle(\"Face Tracking\");\n\t\tprimaryStage.setScene(scene);\n\t\t\n\t\t// Show the GUI\n\t\tprimaryStage.show();\n\t\t\n\t\t// Handle application closing properly\n\t\tFaceDetectionController controller = loader.getController();\n\t\tcontroller.init();\n\t\tprimaryStage.setOnCloseRequest((new EventHandler<WindowEvent>() {\n\t\t\tpublic void handle(WindowEvent window) {\n\t\t\t\tcontroller.setClosed();\n\t\t\t}\n\t\t}));\n\t}",
"public void initMainLayout() {\n\t\ttry {\n\t\t\t// Load root layout from fxml file.\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(MainApp.class.getResource(\"view/MainLayout.fxml\"));\n\t\t\trootLayout = (BorderPane) loader.load();\n\n\t\t\t// Show the scene containing the root layout.\n\t\t\tScene scene = new Scene(rootLayout);\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\n\t\t\tMainLayoutController mainLayoutController = loader.getController();\n\t\t\tmainLayoutController.setMainApp(this);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t\n\t\t}\n\t}",
"public void initialize() {\n\t\n\t//Pagamento predefinito\n\t\tfinal ToggleGroup group = new ToggleGroup();\n\t\tradioConsegna.setToggleGroup(group);\n\t\tradioCarta.setToggleGroup(group);\n\t\tradioPayPal.setToggleGroup(group);\n\t\tradioConsegna.setSelected(true);\n\t\tpaneConsegna.setVisible(radioConsegna.isSelected());\n\t\tpaneCarta.setVisible(radioCarta.isSelected());\n\t\tpanePayPal.setVisible(radioPayPal.isSelected());\n\t\t\n\t//Informazioni generali\n\t\tfieldEmail.setText(Globals.currentUser.getEmail());\n\t\tfieldPassword.setText(Globals.currentUser.getPassword());\n\t\tfieldName.setText(Globals.currentUser.getAnagrafica().getName());\n\t\tfieldSurname.setText(Globals.currentUser.getAnagrafica().getFamilyName());\n\t\tfieldAddress.setText(Globals.currentUser.getAnagrafica().getAddress());\n\t\tfieldCAP.setText((Globals.currentUser.getAnagrafica().getCAP()) + \"\");\n\t\tfieldCity.setText((Globals.currentUser.getAnagrafica().getCity()));\n\t\tfieldNumber.setText((Globals.currentUser.getAnagrafica().getMobileNumber()));\n\n\t//Se questo è un user, allora dobbiamo mostrare anche lo storico e il metodo di pagamento.\n\t\tif(Globals.currentUser instanceof User) {\n\t\t\tSystem.out.println(Globals.storico);\n\t\t\t\n\t\t\t//pannello degli ordini\n\t\t\tFlowPane flower = new FlowPane();\n\t\t\tAnchorPane pane=null;\n\t\t\tif(Globals.storico.size()!=0) {\n\t\t\t\t new Controller();\n\t\t\t\tfor(Order o : Globals.storico) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(o.getUser().getUserID() == ((User)Globals.currentUser).getUserID()) {\n\t\t\t\t\t\t\tCartReviewController.initializeOrder(o);\n\t\t\t\t\t\t\tpane=(FXMLLoader.load(getClass().getResource(\"/application/CartReview.fxml\")));\n\t\t\t\t\t\t\t//System.out.println(pane);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(\"[x] Errore a caricare UI interna\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(pane!=null)\n\t\t\t\t\t\tflower.getChildren().add(pane);\n\t\t\t\t}\n\n\t\t\t\tAnchorPane.setTopAnchor(flower, 0.0);\n\t\t\t\tAnchorPane.setBottomAnchor(flower, 0.0);\n\t\t\t\tAnchorPane.setLeftAnchor(flower, 0.0);\n\t\t\t\tAnchorPane.setRightAnchor(flower, 0.0);\n\n\t\t\t\tscrollPaneOrders.setContent(flower);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t\n\t}",
"@FXML // This method is called by the FXMLLoader when initialization is complete\r\n void initialize() {\r\n assert lblWeek != null : \"fx:id=\\\"lblWeek\\\" was not injected: check your FXML file 'MainPrayerView.fxml'.\";\r\n assert tcDate != null : \"fx:id=\\\"tcDate\\\" was not injected: check your FXML file 'MainPrayerView.fxml'.\";\r\n assert tvPrayers != null : \"fx:id=\\\"tvPrayers\\\" was not injected: check your FXML file 'MainPrayerView.fxml'.\";\r\n assert tcPerson != null : \"fx:id=\\\"tcPerson\\\" was not injected: check your FXML file 'MainPrayerView.fxml'.\";\r\n assert tcTopic != null : \"fx:id=\\\"tcTopic\\\" was not injected: check your FXML file 'MainPrayerView.fxml'.\";\r\n assert tcDescription != null : \"fx:id=\\\"tcDescription\\\" was not injected: check your FXML file 'MainPrayerView.fxml'.\";\r\n\r\n tcTopic.setCellValueFactory(cellData -> cellData.getValue().getTopic());\r\n tcDescription.setCellValueFactory(cellData -> cellData.getValue().getPrayerDescription());\r\n tcPerson.setCellValueFactory(cellData -> cellData.getValue().getPersons());\r\n }",
"public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }",
"private void initController() {\n frame.addWindowListener( new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n model.closeConnection();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }\n });\n }",
"@FXML\n private void initialize() {\n \t// Initialize the person table with the two columns.\n \tnameColumn.setCellValueFactory(cellData -> cellData.getValue().nameProperty());\n \timdbColumn.setCellValueFactory(cellData -> cellData.getValue().imdbProperty());\n \t\n \t// Clear film details.\n showFilmDetails(null);\n\n // Listen for selection changes and show the film details when changed.\n filmTable.getSelectionModel().selectedItemProperty().addListener(\n (observable, oldValue, newValue) -> showFilmDetails(newValue));\n \n // Listen for text changes in the filter text field\n filterField.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable,\n String oldValue, String newValue) {\n updateFilteredData();\n }\n });\n\n }",
"@Override\n public void start(Stage primaryStage) throws Exception {\n\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/view/mainForm.fxml\"));\n Scene sceneOne = new Scene(root);\n primaryStage.setScene(sceneOne);\n primaryStage.show();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}",
"@FXML\n private void initialize() {\n group = new ToggleGroup();\n // choices.setCellFactory(listview -> new RadioListCell());\n }",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"private void setUpVC() {\n\t\tinitializePackageModel();\n\t\tinitializeRootLayout();\n\t\tinitializeStepCountView();\n\t\tinitializeButtonToScanForBluetoothDevices();\n\t\tinitializeButtonToSendCommands();\n\t\taddAllViewsToRootLayout();\n\t\tinitializeUARTControlFragmentInterface();\n\t\tsetListenerOnLaunchScanForBluetoothDevices();\n\t\tsetListenerOnButtonToSendCommands();\n\t}",
"@FXML\n public void initialize() {\n mapView.addMapInializedListener(this);\n latField.setText(String.format(\"%f\", 34.0));\n longField.setText(String.format(\"%f\", -88.0));\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n VBox box = FXMLLoader.load(getClass().getResource(\"Homepanel.fxml\"));\n drawer.setSidePane(box);\n } catch (IOException ex) {\n Logger.getLogger(HomeController.class.getName()).log(Level.SEVERE, null, ex);\n }\n //Hamburger\n \n HamburgerBackArrowBasicTransition burgerTask = new HamburgerBackArrowBasicTransition(Hamburger);\n burgerTask.setRate(-1);\n \n Hamburger.addEventHandler(MouseEvent.MOUSE_PRESSED, e ->\n {\n burgerTask.setRate(burgerTask.getRate() * -1);\n burgerTask.play();\n \n if(drawer.isShown()) drawer.close();\n else drawer.open();\n });\n \n \n }",
"public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n URL url = TwitterFX.class.getClassLoader().getResource(\"twitterfx.fxml\");\n loader.setLocation(url);\n rootLayout = (AnchorPane) loader.load();\n buildLayout();\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout, 600,400);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }",
"public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }",
"public FileManagerController() {\n fileSystemView = FileSystemView.getFileSystemView();\n desktop = Desktop.getDesktop();\n previewFactory = new PreviewFactory();\n initView();\n }",
"@FXML\n private void loadRegisterView() throws Exception{\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"registerCar.fxml\"));\n Scene scene = new Scene(root);\n getPrimaryStage().setTitle(\"Welcome\");\n getPrimaryStage().setScene(scene);\n }",
"public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}",
"public void initAccueil2() {\n\t\ttry {\n\t\t\tfinal FXMLLoader loader = ViewUtils.prepareFXMLLoader(getClass().getResource(\"/fxml/Home2.fxml\"));\n\n\t\t\tfinal Parent root = loader.load();\n\t\t\tthis.changeSceneTo(root);\n\n\t\t\tstage.setResizable(true);\n\t\t\tstage.setMaxWidth(700d);\n\t\t\tstage.setMaxHeight(600d);\n\t\t\tstage.setMinWidth(500d);\n\t\t\tstage.setMinHeight(530d);\n\n\t\t\tfinal HomeView2 controller = loader.getController();\n\t\t\tcontroller.setMainApp(this);\n\n\t\t} catch (final IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void initView() {\n\t\t view.initView(model);\t \n\t }",
"public void initRootLayout(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n Scene scene = new Scene(rootLayout);\n \n primaryStage.setScene(scene);\n \n RootLayoutController controller = loader.getController();\n controller.setGame(this);\n \n primaryStage.show(); \n showCreateNewPlayer();\n }catch(IOException e){\n }\n }"
] | [
"0.80004525",
"0.79552126",
"0.79490566",
"0.79490566",
"0.78624773",
"0.78624773",
"0.7816249",
"0.78124815",
"0.77701324",
"0.7485071",
"0.7479151",
"0.74000937",
"0.72479016",
"0.7196183",
"0.71849716",
"0.713991",
"0.7115091",
"0.6998003",
"0.69705707",
"0.696626",
"0.6963089",
"0.6954047",
"0.6885438",
"0.68065375",
"0.6801317",
"0.6790925",
"0.67792565",
"0.67715275",
"0.67624295",
"0.67481375",
"0.67180616",
"0.67048526",
"0.6687496",
"0.6656179",
"0.66352",
"0.6630404",
"0.6625705",
"0.6607693",
"0.6558699",
"0.65532947",
"0.6552063",
"0.65335214",
"0.65296185",
"0.65285987",
"0.6524655",
"0.65092146",
"0.6507544",
"0.6492601",
"0.6484152",
"0.64658076",
"0.6456067",
"0.6445673",
"0.6436865",
"0.6422766",
"0.6392858",
"0.63913846",
"0.63870883",
"0.63868266",
"0.638277",
"0.63745445",
"0.6369009",
"0.636802",
"0.636511",
"0.63526833",
"0.63427573",
"0.6332075",
"0.6322193",
"0.6314863",
"0.6312785",
"0.6310448",
"0.63053286",
"0.63030523",
"0.6298904",
"0.6298207",
"0.62878823",
"0.62805986",
"0.62463313",
"0.6234864",
"0.6234299",
"0.6233389",
"0.623149",
"0.6228659",
"0.62267405",
"0.6222181",
"0.62167394",
"0.6207944",
"0.62063885",
"0.6204971",
"0.6198426",
"0.6191282",
"0.6188902",
"0.618819",
"0.6188177",
"0.61790985",
"0.6163168",
"0.6159191",
"0.6150613",
"0.61489296",
"0.61462545",
"0.61419296",
"0.6137924"
] | 0.0 | -1 |
Sets the stage of this dialog. a | public void setDialogStage(Stage dialogStage) {
this.dialogStage = dialogStage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStage(int stage) {\r\n\t\tthis.stage = stage;\r\n\t}",
"public void setStage(Stage stage) {\r\n this.stage = stage;\r\n }",
"public void setStage(Stage stage) {\n this.stage = stage;\n }",
"public void setStage(Stage stage) {\n this.stage = stage;\n }",
"public void setStage(Stage stage) {\n\t\tthis.stage = stage;\n\t}",
"@Override\r\n\tpublic void setStage(int stage) {\n\r\n\t}",
"public void setStage(Stage ventana) {\n\t\t\n\t}",
"public void setEditingStage(int stage) {\n\t\tif (amountOfStages < stage) {\n\t\t\tthrow new IllegalArgumentException(\"Attempting to switch to stage which does not exist\");\n\t\t}\n\n\t\tthis.stage = stage;\n\t}",
"private void setStage() {\n\t\tstage = new Stage();\n\t\tstage.setScene(myScene);\n\t\tstage.setTitle(title);\n\t\tstage.show();\n\t\tstage.setResizable(false);\n//\t\tstage.setOnCloseRequest(e -> {\n//\t\t\te.consume();\n//\t\t});\n\t}",
"public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n stage = 2;\n if(id >= 6 && id < 9)\n stage = 3;\n if(id >= 9)\n stage = 4;\n }",
"@Override\n\tpublic void setStage(java.lang.String stage) {\n\t\t_scienceApp.setStage(stage);\n\t}",
"public void rename_stage() {\r\n\t\tSelectStageDialog s = new SelectStageDialog(this,false);\r\n\t\ts.setAlwaysOnTop(true);\r\n\t\ts.setLocationRelativeTo(null);\r\n\t\ts.setVisible(true);\r\n\t}",
"public static void setStage(Stage stage) {\n PageSwitcher.stage = stage;\n }",
"public void setStage(GameStage stage) {\n\t\tif (stage == GameStage.DEAL) {\n\t\t\thands.clear();\n\t\t\tHand hand = new Hand();\n\t\t\tthis.addHand(hand);\n\t\t\tthis.activeHand = null;\n\t\t}\n\t\tfor (Hand hand : hands) {\n\t\t\tGameStage handStage = hand.getStage();\n\t\t\tif (handStage != GameStage.UNACTIVE && handStage.compareTo(stage) < 0) {\n\t\t\t\thand.setStage(stage);\n\t\t\t}\n\t\t}\n\t\tthis.stage = stage;\n\t}",
"public void setCurrentStage(int s) {\n if (s < getMaxNumOfStages()) {\n currentStage = s;\n } else {\n currentStage = getMaxNumOfStages();\n }\n }",
"public void setStage(Stage currentStage)\n\t{\n\t\tthis.thisStage = currentStage;\n\t\tthisStage.setOnCloseRequest(new EventHandler<WindowEvent>() {\n\t\t\tpublic void handle(WindowEvent t) {\n\t\t\t\t//Platform.exit();\n\t\t\t}\n\t\t});\n\t}",
"public Builder setStageValue(int value) {\n stage_ = value;\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }",
"private void setPrimaryStage(Stage pStage) {\n GUI.pStage = pStage;\n }",
"public void setPrimaryStage(Stage s) {\n primaryStage = s;\n }",
"public void setStageProgression(float stageProgression)\n\t{\n\t\tthis.stageProgression = stageProgression;\n\t}",
"public void setStage(Stage currStage) \n\t{\n\t\t// We do not create a new stage because we want to reference of the stage being passed in\n\t\tcurrentStage = currStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\t\t\tthis.dialogStage = dialogStage;\n\t\t\t}",
"public void setDialogStage(Stage dialogStage){\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t\t}",
"public void setDialogStage(Stage dialogStage) {\n _dialogStage = dialogStage;\n }",
"public void setDialogStage(Stage dialogStage) {\n _dialogStage = dialogStage;\n }",
"public void setDialogStage(Stage dialogStage) {\r\n\t\tthis.dialogStage = dialogStage;\r\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n this.dialogStage = dialogStage;\n }",
"public void setDialogStage(Stage dialogStage) {\n this.dialogStage = dialogStage;\n }",
"public void setDialogStage(Stage dialogStage) {\n this.dialogStage = dialogStage;\n }",
"@Override\r\n\tpublic void setStageController(StageController stageController) {\n\t\tmyController = stageController;\r\n\t}",
"public void delete_stage() {\r\n\t\tSelectStageDialog s = new SelectStageDialog(this,true);\r\n\t\ts.setAlwaysOnTop(true);\r\n\t\ts.setLocationRelativeTo(null);\r\n\t\ts.setVisible(true);\r\n\t}",
"public void setStagePrincipal(Stage stagePrincipal) {\n this.stagePrincipal = stagePrincipal;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"final void setLocalStage(final Stage newStage) {\n\t\t// almacenamos la nueva etapa\n\t\tthis.localStage = newStage;\n\t\t// mostramos un mensaje\n\t\tthis.getLogger().debug(\"Changing Local Stage to: \" + this.getLocalStage());\n\t}",
"public Game(Stage s){\n\t\tmyStage = s;\n\t}",
"public void start(Stage stage) {\r\n // Setting our primaryStage variable to the stage given to us by init()\r\n primaryStage = stage;\r\n // Retrieving the primary scene (the first thing we want the user to see)\r\n Scene primaryScene = getPrimaryScene();\r\n // Setting the title of the stage, basically what the window says on the top left\r\n primaryStage.setTitle(\"SeinfeldMemeCycler\");\r\n // Setting the scene\r\n primaryStage.setScene(primaryScene);\r\n // Displaying the stage\r\n primaryStage.show();\r\n }",
"@Override \n public void start(Stage stage) throws Exception {\n \tBeanContext.getStage(\"a\").show();\n }",
"public void setStageNumber(Integer stageNumber) {\n this.stageNumber = stageNumber;\n }",
"public void setClienteStage(Stage clienteStage) {\n\t\tthis.clienteStage = clienteStage;\n\t}",
"public void setStagePrincipal(Stage ventana) {\n\t\tthis.ventana = ventana;\r\n\t}",
"public void nextStage() {\n\t\tcurrentStage.setActive(false);\n\t\tcurrentStageNumber++;\n\t\tchildren.add(currentStage = new Stage(this, StageLocations.mesta2, currentStageNumber));\n\t}",
"private void initStage() {\n stage = new Stage();\n stage.setTitle(\"Attentions\");\n stage.setScene(new Scene(root));\n stage.sizeToScene();\n }",
"public Builder newStage() {\n closeStage();\n currentStage = ImmutableSet.builder();\n return this;\n }",
"public void setProdutoStage(Stage produtoStage) {\n\t\tthis.produtoStage = produtoStage;\n\t}",
"public Builder clearStage() {\n bitField0_ = (bitField0_ & ~0x00000010);\n stage_ = 0;\n onChanged();\n return this;\n }",
"@Override\n public void start(Stage stage){\n // set the stage\n this.stage = stage;\n\n // set the scenes\n mainScene();\n inputScene();\n\n // set the stage attributes\n stage.setTitle(\"Maze solver\");\n stage.setWidth(VisualMaze.DISPLAY_WIDTH);\n stage.setHeight(VisualMaze.DISPLAY_HEIGHT + 200);\n stage.setScene(main);\n\n // display the app\n stage.show();\n }",
"public void Stage(ActionEvent actionEvent) {\n this.stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n this.Scene();\n }",
"public void setStageName(String stageName) {\n this.stageName = stageName;\n }",
"public void setSTAGE(BigDecimal STAGE) {\r\n this.STAGE = STAGE;\r\n }",
"String getStage();",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }",
"public void setCurrStage(Vector4f currStage)\n\t{\n\t\tthis.currStage = currStage;\n\t}",
"public DraftKit_GUI(Stage initPrimaryStage) {\n primaryStage = initPrimaryStage;\n }",
"private void StageAdjustment() {\n addFoodPane.getChildren().addAll(fiberLabel, caloriesLabel, fatLabel, carbohydrateLabel,\n proteinLabel, name, nameLabel, fiber, calories, fat, carbohydrate, protein, confirm, cancel,\n id, idLabel);\n // create a new scene with the size 300x350 based on addFoodPane\n this.addFoodScene = new Scene(addFoodPane, 300, 350);\n this.setScene(addFoodScene);\n this.setTitle(\"Add Food\");// set the title of the stage\n this.setResizable(false);// fix the size of the stage\n // protects user from accidentally click other session\n this.initModality(Modality.APPLICATION_MODAL);\n }",
"private void start (final Stage stage) throws IOException{\n Parent pa = FXMLLoader.load(getClass().getResource(\"/toeicapp/EditQuestion.fxml\"));\n Scene scene = new Scene(pa);\n scene.setFill(Color.TRANSPARENT);\n stage.setTitle(\"Cập nhật Câu hỏi\"); \n stage.setScene(scene);\n stage.show();\n }",
"private void moveToStage() {\n\n switch (host.getUnlockedStages()) {\n case 5:\n if (stage5Point.getTouch()) {\n host.setCurrentStage(5);\n removeOtherPointActors(stage5Point);\n moveAndZoomAction(stage5Point);\n break;\n }\n case 4:\n if (stage4Point.getTouch()) {\n host.setCurrentStage(4);\n removeOtherPointActors(stage4Point);\n moveAndZoomAction(stage4Point);\n break;\n }\n case 3:\n if (stage3Point.getTouch()) {\n host.setCurrentStage(3);\n removeOtherPointActors(stage3Point);\n moveAndZoomAction(stage3Point);\n break;\n }\n case 2:\n if (stage2Point.getTouch()) {\n host.setCurrentStage(2);\n removeOtherPointActors(stage2Point);\n moveAndZoomAction(stage2Point);\n break;\n }\n case 1:\n if (stage1Point.getTouch()) {\n host.setCurrentStage(1);\n removeOtherPointActors(stage1Point);\n moveAndZoomAction(stage1Point);\n break;\n }\n }}",
"@Override\n public void start(final Stage stage) {\n\tLabel label = new Label(\" The key to making programs fast\\n\" +\n\t\t\t\" is to make them do practically nothing.\\n\" +\n\t\t\t\" -- Mike Haertel\");\t\n\tCircle circle = new Circle(160, 120, 30);\n\tPolygon polygon = new Polygon(160, 120, 200, 220, 120, 220);\n\tGroup group = new Group(label, circle, polygon);\n Scene scene = new Scene(group,320,240);\n stage.setScene(scene);\n\tstage.setTitle(\"CS 400: The Key\");\n stage.show();\n }",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"public void add_stage() {\r\n\t\tif (this.controller.getSelectedCatagory() == null)\r\n\t\t\treturn;\r\n\t\tString name = JOptionPane.showInputDialog(this,\r\n\t \t\"Choose a name for the stage\",\r\n\t \"Name Stage\", 1);\r\n\t if (name == null) {\r\n\t \treturn;\r\n\t }\r\n\t // If the stage cannot be added, inform the user\r\n\t\tif (!controller.addStage(name)) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A Stage with that name already exists\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tMain.stg = stage;\n\t\tParent root = FXMLLoader.load(getClass().getResource(\"/stylesheets/MainMenu.fxml\"));\n\t\tstage.setTitle(BowmanConstants.GAME_TITLE);\n\t\tstage.setScene(new Scene(root, BowmanConstants.MENU_WIDTH, BowmanConstants.MENU_HEIGHT));\n\t\tstage.show();\n\t\tinit_settings();\n\t}",
"@Override\n public void start (Stage stage) throws IOException {\n init.start(stage);\n myScene = view.makeScene(50,50);\n stage.setScene(myScene);\n stage.show();\n }",
"public void nextStage(){\n\t\tif (this.stage >= MAX_STAGES){\n\t\t\treturn;\n\t\t}\n\t\tthis.stage++;\n\t\trepaint(); // Update stage.\n\t}",
"public int getCurrentStage() {\n return currentStage;\n }",
"@Test\n public void testSetDialogStage() {\n }",
"@Override\n\tpublic void show() {\n\t\tGdx.input.setInputProcessor( stage );\n\t}",
"@Override\n public final void start(final Stage primaryStage) {\n Scene scene = new Scene(getPane(), PANE_WIDTH, PANE_HEIGHT);\n primaryStage.setTitle(\"Tic-Tak-Toe\"); // Set the stage title.\n primaryStage.setScene(scene); // Place the scene in the stage.\n primaryStage.show(); // Display the stage.\n }",
"public void trigger() {\n triggered = true;\n\n // Get events from the user\n stage = new Stage(new ScreenViewport());\n show();\n }",
"@Override\n public void start(Stage primaryStage) {\n try {\n stage = primaryStage;\n stage.setTitle(\"Indie Airways\");\n stage.setMinWidth(WINDOW_WIDTH);\n stage.setMinHeight(WINDOW_HEIGHT);\n gotoLogin();\n //gotoMenu();\n primaryStage.show(); \n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }",
"public Integer getStageNumber() {\n return stageNumber;\n }",
"@Override\n\tpublic void start( Stage stage ) throws Exception {\n\t\tpstage= stage;\n\t\tif( _SysConfig.maxWindowOnStart() ){\n\t\t\tstage.setMaximized( true );\n\t\t}else{\n\t\t\tstage.setWidth( currentBoard.getDim().getX() );\n\t\t\tstage.setHeight( currentBoard.getDim().getY() );\n\t\t}\n\t\t//\n\t\tstage.setScene( currentBoard.refreshRoot() );\n\t\tswitchWallPaperMode();\n\t\tstage.show();\n\t\tcurrentBoard.setWindowSizeChange();\n\t\t//\n\t\tstage.getIcons().add( new Image( \"file:\" + _SysConfig.getSysFolderName() +\n\t\t\t\tFile.separatorChar + \"icon.png\" ) );\n\t\tstage.setOnCloseRequest( new EventHandler <WindowEvent>() {\n\t\t\tpublic void handle( WindowEvent we ) {\n\t\t\t\tp.p( \"System closing\" );\n\t\t\t\tcloseApp();\n\t\t\t\tSystem.exit( 0 );\n\t\t\t}\n\t\t} );\n\t\t//\n\t\tstage.widthProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tcurrentBoard.setWindowSizeChange();\n\t\t} );\n\t\tstage.heightProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tcurrentBoard.setWindowSizeChange();\n\t\t} );\n\t\tstage.xProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tif( wallpaperMode )\n\t\t\t\tstage.setX( 0.0 );\n\t\t} );\n\t\tstage.yProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tif( wallpaperMode )\n\t\t\t\tstage.setY( 0.0 );\n\t\t} );\n\t\tstage.setFullScreenExitHint( \"\" );\n\t}",
"public void start(Stage stage) {\n\t\tLabel chooseADifficulty = new Label(\"Please choose your difficulty preference\");\n\t\tchooseADifficulty.setMinWidth(300);\n\t\tchooseADifficulty.setAlignment(Pos.CENTER);\n\t\t\n\t\t//A combobox containing Strings, which acts as a drop down menu for the player to use. Easy, Medium\n\t\t//and Hard are the options available. getSelectionModel().selectFirst() automatically selects the\n\t\t//first option on the drop down menu, preventing Null Pointer Exceptions for if the player tried to\n\t\t//continue without selecting a difficulty.\n\t\tComboBox<String> difficultyChoices = new ComboBox<String>();\n\t\tdifficultyChoices.getItems().add(\"Easy\");\n\t\tdifficultyChoices.getItems().add(\"Medium\");\n\t\tdifficultyChoices.getItems().add(\"Hard\");\n\t\tdifficultyChoices.getSelectionModel().selectFirst();\n\t\t\n\t\t//A confirmation button that the player can use to progress from this screen.\n\t\tButton difficultyConfirm = new Button(\"Confirm\");\n\t\t\n\t\t//VBox places the nodes within itself one atop the other\n\t\tVBox difficultyVBox = new VBox(20,chooseADifficulty, difficultyChoices, difficultyConfirm);\n\t\tdifficultyVBox.setAlignment(Pos.CENTER);\n\t\t\n\t\t//The Group object is now set to use the VBox\n\t\tgroup = new Group(difficultyVBox);\n\t\t\n\t\t//The group is now prepared on the scene, with a window size of 300 by 300, with a background colour\n\t\t//of light grey. The scene is placed on the stage. The window cannot be resized and the title is set \n\t\t//to Hangman. It is then displayed to the player.\n\t\tscene = new Scene(group, 300,300, Color.LIGHTGREY);\n\t\tstage.setScene(scene);\n\t\tstage.setResizable(false);\n\t\tstage.setTitle(\"Hangman\");\n\t\tstage.show();\n\t\t\n\t\t//The drawnPieces double variable is set to 0.0, the statusMessageLabel variable has its value \n\t\t//removed and the finished boolean is set back to false, acting as a reset for each time the \n\t\t//player is returned to this part of the code, such as when they wish to start a new game.\n\t\tdrawnPieces = 0.0;\n\t\tstatusMessageLabel = new Label();\n\t\tfinished = false;\n\n\t\t//An eventHandler is created for the confirmation button created earlier\n\t\tdifficultyConfirm.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>(){\n\t\t\t@Override\n\t\t\tpublic void handle(MouseEvent e){\n\t\t\t\t//Clicking the button causes an Alert window to appear on the screen. It is stylised to\n\t\t\t\t//appear as a confirmation screen, as opposed to a warning or error screen. It uses the\n\t\t\t\t//selected option of the drop down menu to determine the message that is displayed to\n\t\t\t\t//the player.\n\t\t\t\tAlert confirmation = new Alert(AlertType.CONFIRMATION);\n\t\t\t\tconfirmation.setTitle(\"Start game?\");\n\t\t\t\tconfirmation.setHeaderText(\"Do you wish to start the game on \" + difficultyChoices.getValue() + \" difficulty?\");\n\n\t\t\t\t//The Alert window has two buttons, an OK button and a cancel button. This variable is\n\t\t\t\t//created to store which button was clicked on by the player.\n\t\t\t\tOptional<ButtonType> result = confirmation.showAndWait();\n\t\t\t\t\n\t\t\t\t//If the player clicked on the OK button, this if statement is used.\n\t\t\t\tif(result.get() == ButtonType.OK) {\n\n\t\t\t\t\t//A switch statement checks the choice selected from the drop down menu\n\t\t\t\t\tswitch(difficultyChoices.getValue()) {\n\t\t\t\t\t//Depending on which difficulty was chosen, the difficultyGuesses int variable is\n\t\t\t\t\t//set to the maximum amount of guesses that the player is allowed, and debug messages\n\t\t\t\t\t//are displayed on the console. If the player was somehow able to reach this point\n\t\t\t\t\t//without selecting one of the options, the program closes, to prevent any issues later.\n\t\t\t\t\tcase \"Easy\" : difficultyGuesses = 7;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Easy mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Medium\" : difficultyGuesses = 5;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Medium mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Hard\" : difficultyGuesses = 3;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Hard mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault \t : System.out.println(\"For some reason, we didn't get a difficulty setting.\");\n\t\t\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Using the PrintWriter, a message is sent to the server. StartUpGame acts like a \n\t\t\t\t\t//keyword so that the server can access the right area of the code to use the \n\t\t\t\t\t//second parameter correctly.\n\t\t\t\t\tout.println(\"StartUpGame \" + difficultyGuesses);\n\t\t\t\t\t\n\t\t\t\t\t//A boolean is created and set to false. It is used as a crude way of waiting for a\n\t\t\t\t\t//response from the server. The while loop afterwards continues for as long as the\n\t\t\t\t\t//boolean remains false. When the correct message is received from the server, it\n\t\t\t\t\t//will set the boolean to true, which will end the while loop and continue with the\n\t\t\t\t\t//code afterwards. \n\t\t\t\t\tboolean connectionCheck = false;\n\t\t\t\t\twhile(!connectionCheck) {\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconnectionCheck = Boolean.parseBoolean(in.readLine());\n\t\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t\t\t//If nothing is received, do nothing. The loop will continue as the boolean\n\t\t\t\t\t\t\t//remains false. May need to be refined in some way to determine whether no\n\t\t\t\t\t\t\t//message was received because the server's message hasn't arrived yet, or\n\t\t\t\t\t\t\t//because the connection has been completely lost and act accordingly.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//The Alert window can now be closed\n\t\t\t\t\tconfirmation.close();\n\t\t\t\t\t\n\t\t\t\t\t//Call the game method, passing over the stage so that it can be redesigned\n\t\t\t\t\tgame(stage);\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}",
"void start(Stage primaryStage);",
"public void setStageDescription(String stageDescription) {\n this.stageDescription = stageDescription;\n }",
"@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tStackPane pane = new StackPane();\n\t\tScene scene = new Scene(pane);\n\t\tfirstLevel();\n\t\tpane.getChildren().add(mRoot);\n\t\tstage.setScene(scene);\n\t\t\n\t\t\n\t}",
"public void goToStageActivity(View view)\n {\n Stage thisStage = stageHandler.getStage(1);\n if (thisStage != null)\n {\n Intent intent = new Intent(MainActivity.this, StageActivity.class);\n startActivity(intent);\n }\n else\n {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(MainActivity.this);\n alertDialog.setMessage(getString(R.string.noStages)).create().show();\n }\n }",
"public StagePosition makeStagePosition();",
"@Override\r\n\tpublic void start(Stage stage) throws Exception {\r\n\t\t\r\n\t\tthis.stage = stage;\r\n\t\t\r\n\t\tstage.setTitle(windowName);\r\n\r\n\t\tPlatform.setImplicitExit(false);\r\n\r\n\t\tFXMLLoader loader = new FXMLLoader();\r\n\r\n\t\tloader.setClassLoader(this.getClass().getClassLoader());\r\n\t\t\r\n\t\tParent box = loader.load(new ByteArrayInputStream(fxml.getBytes()));\r\n\t\t\r\n\t\tcontroller = loader.getController();\r\n\t\t\r\n\t\tcontroller.setGUI(this);\r\n\r\n\t\tscene = new Scene(box);\r\n\t\t\r\n\t\tscene.setFill(Color.TRANSPARENT);\r\n\r\n\t\tif (this.customTitleBar)\r\n\t\t\tstage.initStyle(StageStyle.UNDECORATED);\r\n\t\t\r\n\t\tif (this.css != null)\r\n\t\t\tscene.getStylesheets().add(this.css.toExternalForm());\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\tstage.setResizable(false);\r\n\r\n\t\tstage.setOnCloseRequest(new EventHandler<WindowEvent>() {\r\n\r\n\t @Override\r\n\t public void handle(WindowEvent event) {\r\n\t Platform.runLater(new Runnable() {\r\n\r\n\t @Override\r\n\t public void run() {\r\n\t endScript();\r\n\t }\r\n\t });\r\n\t }\r\n\t });\r\n\t\t\r\n\t}",
"public void setSelected(boolean b){\n\t\ttry{\n\t\t\tframe.setSelected(b);\n\t\t}catch(PropertyVetoException pve){}\n\t}",
"@Override\r\n public void start(Stage primaryStage) throws Exception{\n primaryStage.setTitle(\"Color switch\");\r\n Gameplay obj1 = new Gameplay();\r\n obj1.mainmenu(primaryStage);\r\n// pane.getChildren().add(new Polygon(10,20,30,10,20,30));\r\n\r\n }",
"@Override\n public void show() {\n Gdx.input.setInputProcessor(stage);\n }",
"@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tnew VoogaChooser(primaryStage);\n\t}",
"public ProcessingStage getStage();",
"public void openSaveSelection() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/SaveSelectionView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tSaveSelectionController ssc = fxmlLoader.getController();\n\t\t\tssc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"sSHeaderLabel\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void start(Stage stage) {\n game = new Game();\n\n Scene gameScene = new Scene(game.getVisual().getRoot(), MainGUI.WIDTH, MainGUI.HEIGHT);\n gameScene.setOnKeyPressed(new PressHandler());\n gameScene.setOnKeyReleased(new ReleaseHandler());\n\n createMenu(stage, gameScene);\n Scene menuScene = new Scene(root, MainGUI.WIDTH, MainGUI.HEIGHT);\n stage.setScene(menuScene);\n\n }",
"public StageScreen() {\n initComponents();\n hp_1.setValue(0);\n hp_2.setValue(0);\n \n // new animationAndRepainting().setVisible(true);\n }",
"@Override\n public void start( Stage primaryStage ) throws Exception {\n primaryStage.setTitle(\"Battleship\");\n primaryStage.setScene(createScene());\n primaryStage.show();\n }"
] | [
"0.7449811",
"0.7396484",
"0.73459566",
"0.73459566",
"0.7315216",
"0.72134304",
"0.69363546",
"0.6828969",
"0.6812532",
"0.67405605",
"0.67379713",
"0.66852605",
"0.66715294",
"0.6616445",
"0.65948534",
"0.65793514",
"0.65158635",
"0.64792085",
"0.6394419",
"0.6360866",
"0.635927",
"0.6295553",
"0.62774867",
"0.6260291",
"0.6242182",
"0.6242182",
"0.6228111",
"0.6204563",
"0.6204563",
"0.6204563",
"0.6204563",
"0.6204563",
"0.6204563",
"0.6183395",
"0.6183395",
"0.6183395",
"0.61296165",
"0.60709274",
"0.607067",
"0.606595",
"0.6045667",
"0.6045667",
"0.6045667",
"0.59874433",
"0.5921824",
"0.5908686",
"0.58542526",
"0.58498055",
"0.5839324",
"0.58041054",
"0.57597727",
"0.5717604",
"0.57164747",
"0.57140756",
"0.5680968",
"0.567886",
"0.5651731",
"0.5641483",
"0.5631297",
"0.5631067",
"0.5623245",
"0.56060785",
"0.55970806",
"0.5569522",
"0.5563171",
"0.5541336",
"0.5524869",
"0.5520794",
"0.5502853",
"0.54814804",
"0.5477214",
"0.54102135",
"0.5407065",
"0.5376354",
"0.53639376",
"0.53525174",
"0.53406525",
"0.53390133",
"0.5326493",
"0.5319529",
"0.5308548",
"0.5288728",
"0.5286618",
"0.5279696",
"0.5277813",
"0.5265481",
"0.52606183",
"0.52580243",
"0.5250483",
"0.52494264",
"0.5235132",
"0.52250654",
"0.52029705",
"0.5196913",
"0.519407",
"0.5185012",
"0.5177988"
] | 0.61885625 | 36 |
Sets the environment to be edited in the dialog. | public void setEnvironment(Environment environment) {
this.environment = environment;
changeServerListener = (ChangeListener<Worker.State>) (ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) -> {
switch (newValue) {
case FAILED:
System.err.println(windowsService.getException());
break;
case CANCELLED:
break;
case RUNNING:
serviceField.setDisable(true);
progressService.setVisible(true);
break;
case SUCCEEDED:
this.environment.getServer().getListService().addAll(windowsService.getValue());
serviceField.setItems(windowsService.getValue());
serviceField.setDisable(false);
progressService.setVisible(false);
break;
}
};
windowsService = new ListWindowsService(this.environment.getServer());
windowsService.stateProperty().addListener(changeServerListener);
nameField.setText(this.environment.getName());
hostField.setText(this.environment.getIP());
portField.setText(Integer.toString(this.environment.getPort()));
loginField.setText(this.environment.getLogin());
passwordField.setText(this.environment.getPassword());
MOMPathField.setText(this.environment.getPathMOM());
serverField.setValue(this.environment.getServer());
serverField.valueProperty().addListener((ObservableValue<? extends Server> observable, Server oldValue, Server newValue) -> {
if (newValue != null) {
environment.setServer(newValue);
}
});
serverField.valueProperty().addListener((ObservableValue<? extends Server> observable, Server oldValue, Server newValue) -> {
if (newValue != null) {
windowsService = new ListWindowsService(newValue);
windowsService.stateProperty().addListener(changeServerListener);
windowsService.restart();
}
});
serviceField.setItems(this.environment.getServer().getListService());
serviceField.setValue(this.environment.getService());
if (this.environment.getServer().getName() == null) {
serviceField.setDisable(true);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEnvironment(Environment oldEnvironment) {\n this.oldEnvironment = oldEnvironment;\n\n //set the old values\n editTxtName.setText(oldEnvironment.getName());\n editTxtDesc.setText(oldEnvironment.getDesc());\n editClrColor.setValue(oldEnvironment.getColor());\n }",
"public void setEnvironment(PanelEnvironment aEnvironment) \r\n\t{\r\n\t\tthis.panelEnvironment = aEnvironment;\r\n\t\tif( this.panelEnvironment == null ) {\r\n\t\t\tthis.panelEnvironment = new NullPanelEnvironment();\r\n\t\t}\r\n\t}",
"public void setEnvironment(Object environment) {\n this.environment = environment;\n }",
"@Override\n\tpublic void setEnvironment(Environment environment) {\n\t\tSystem.out.println(\"call setEnvironment()...\");\n\t\tenv = environment;\n\t}",
"void setEnvironment(Environment environment) {\n this.environment = environment;\n }",
"public void setCurrentEnvironment(String environment) {\n currentEnvironment = environment;\n }",
"@FXML\n void handleEdit(ActionEvent event) {\n if (checkFields()) {\n\n try {\n //create a pseudo new environment with the changes but same id\n Environment newEnvironment = new Environment(oldEnvironment.getId(), editTxtName.getText(), editTxtDesc.getText(), editClrColor.getValue());\n\n //edit the oldenvironment\n Environment.edit(oldEnvironment, newEnvironment);\n } catch (SQLException exception) {\n //failed to save a environment, IO with database failed\n Manager.alertException(\n resources.getString(\"error\"),\n resources.getString(\"error.10\"),\n this.dialogStage,\n exception\n );\n }\n //close the stage\n dialogStage.close();\n } else {\n //fields are not filled valid\n Manager.alertWarning(\n resources.getString(\"add.invalid\"),\n resources.getString(\"add.invalid\"),\n resources.getString(\"add.invalid.content\"),\n this.dialogStage);\n }\n Bookmark.refreshBookmarksResultsProperty();\n }",
"public void setEnvironment(Map<String, String> environment);",
"public void setGameEnvironment(GameEnvironment gameEnvironment) {\r\n this.gameE = gameEnvironment;\r\n }",
"public void setEnvironmentFrame(final EnvironmentFrame frame) {\n\t\tmyEnvFrame = frame;\n\t}",
"void setEnvironmentFile(File environmentFile);",
"@Override\n\tpublic void setEnvironmentVars(String environmentVars) {\n\t\tmodel.setEnvironmentVars(environmentVars);\n\t}",
"public void setEnvironment(String environment1) {\n this.environment = environment1;\n }",
"private void setupEnvironment(Execute exe) {\r\n String[] environment = env.getVariables();\r\n if (environment != null) {\r\n for (int i = 0; i < environment.length; i++) {\r\n log(\"Setting environment variable: \" + environment[i], Project.MSG_VERBOSE);\r\n }\r\n }\r\n exe.setNewenvironment(newEnvironment);\r\n exe.setEnvironment(environment);\r\n }",
"protected void setEnvironment(Map<String, String> env) {\n\t\tthis.environment = env;\n\t}",
"void setTipoEnvio(TipoEnvio tipoEnvio);",
"public void setGameEnvironment(GameEnvironment ge) {\n this.gameEnvironment = ge;\n }",
"private void editTextEditorButton(){\n TextEditorTextfield.setText(textEditorPref);\n TextEditorDialog.setVisible(true);\n }",
"private void editArguments() {\n\t\tDialog d = new EditArgumentsDialog(creator.modpack.minecraft.arguments, frame, true);\n\t\td.setVisible(true);\n\t}",
"private void loadEnvironment () {\r\n Factory forceFactory = new ForceFactory(mySimulation);\r\n int response = INPUT_CHOOSER.showDialog(null, \"Environment file\");\r\n if (response == JFileChooser.APPROVE_OPTION) {\r\n forceFactory.loadFile(INPUT_CHOOSER.getSelectedFile());\r\n }\r\n }",
"protected static IOutputEnvView setTheEnv(IOutputEnvView outEnvView ){\n\t\t\treturn outEnvView;\n\t\t}",
"void setEnvironment(Properties properties);",
"private void selectPRODUCTIONEnv() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", false);\n editor.apply();\n }",
"public void setEnvironment(Configuration config) {\n _environment = config;\n }",
"private void setTextEditor() throws FileNotFoundException, IOException{\n String newTextEditor = TextEditorTextfield.getText(); \n \n //TODO: Include validation check to see it the file editor is proper program \n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"textEditor\", newTextEditor);\n\n textEditorPref = newTextEditor;\n \n TextEditorDialog.setVisible(false);\n }",
"public synchronized void setEnvironment(TestEnvironment environment) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n for (TestEnvironment.Element elem : environment.elementsUsed()) {\n // this is stunningly inefficient and should be fixed\n env = PropertyArray.put(env, elem.getKey(), elem.getValue());\n }\n }",
"public void setNewenvironment(boolean newenv) {\r\n newEnvironment = newenv;\r\n }",
"public void editSimulationParameters() {\r\n \t\tdialogFactory.getDialog(new SimulationPanel(model, model, model, this), \"Define Simulation Parameters\");\r\n \t}",
"public EditDialog(Context context, MSDialog dialog)\n {\n super(context);\n \n this.ecu = ApplicationSettings.INSTANCE.getEcuDefinition();\n this.dialog = dialog;\n }",
"public void setEditor(Editor editor) {\n this.currentEditor = editor;\n refreshView();\n }",
"public void setEditorDialog(EditorDialog editorDialog) {\n assert editorDialog != null;\n mEditorDialog = editorDialog;\n mContext = mEditorDialog.getContext();\n }",
"private void selectProdEnv() {\n\n new Handler(getMainLooper()).postDelayed(new Runnable() {\n @Override\n public void run() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", true);\n editor.apply();\n }\n }, AppPreference.MENU_DELAY);\n }",
"public void setupEditMode(MainGame game){\n GLFW.glfwSetKeyCallback(DisplayManager.getWindow(), (handle, key, scancode, action, mods) -> {\n if (key == GLFW_KEY_1) {\n objectType = 1;\n MouseHandler.disable();\n } else if (key == GLFW_KEY_2){\n objectType = 2;\n MouseHandler.disable();\n } else if (key == GLFW_KEY_ESCAPE){\n objectType = -1;\n MouseHandler.enable();\n } else if (key == GLFW_KEY_F5){\n entities.removeAll(trees);\n trees.clear();\n GameLoader.loadGameFile(\"./res/courses/terrainSaveFile.txt\", game);\n entities.addAll(trees);\n terrain.updateTerrain(loader);\n } else if (key == GLFW_KEY_F10){\n GameSaver.saveGameFile(\"saveGame\", game);\n }\n });\n }",
"public void setEdit(boolean bool){\r\n edit = bool;\r\n }",
"public void setEscenarioEditar(Stage escenarioEditar) {\n\t\tthis.escenarioEditar = escenarioEditar;\n\t}",
"public void edit() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"editButton\").click();\n\t}",
"public void setEnvironmentName(String environmentName) {\n this.environmentName = environmentName;\n }",
"public void changeEnvironmentTypeToGlobal() {\n this.setEnvironmentType(EnvironmentTypesList.getGlobalEnvironmentType());\n\n }",
"public void setEnvironmentParams(String[] environmentParams)\r\n\t{\r\n\t\tthis.environmentParams = environmentParams;\r\n\t}",
"@FXML\n public void editSet(MouseEvent e) {\n AnchorPane root = null;\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/learn_update.fxml\"));\n try {\n root = loader.load();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n LearnUpdateController controller = loader.getController();\n controller.initData(txtTitle.getText(), rootController, learnController, apnLearn);\n rootController.setActivity(root);\n root.requestFocus();\n }",
"public void setMode(WhichVariables mode)\n\t{\n\t\tif (!mode.equals(m_mode))\n\t\t{\n\t\t\tm_mode = mode;\n\t\t\tm_viewer.refresh();\n\t\t}\n\t}",
"@Autowired\n public void setEnvironment(Environment environment) {\n this.environment = environment;\n }",
"public void setEditButton(Button editButton) {\n\t\tthis.editButton = editButton;\n\t}",
"private void setToEdit(String input){\n ToEdit = input;\n }",
"public Builder setEnv(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEnvIsMutable();\n env_.set(index, value);\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setVisible(boolean value) {\n\t\tif(this.getTabCount() <= 0) {\n\t\t\treturn; // no editor actually exists\n\t\t}\n\t\t\n\t\tif (dialog != null) {\n\t\t\tdialog.setVisible(value);\n\t\t\tsuper.setVisible(value);\n\t\t} else {\n\t\t\tsuper.setVisible(value);\n\t\t}\n\t\t\n\t\tif (value) {\n\t\t\t\n\t\t\tUIBuilder.playSound(\"sounds/fordps3_boop.wav\");\n\t\t\tString selectedTitle = JEntityEditor.this.getTitleAt(JEntityEditor.this.getSelectedIndex());\n\t\t\tentity.getWorld().getSandbox().fireEvent(\"ENTITY_EDITOR_OPENED\", LuaValue.valueOf(selectedTitle), entity.getLuaValue());\n\t\t}\n\t}",
"public void setEditCalSuiteName(final String val) {\n editCalSuiteName = val;\n }",
"public void set(Object requestor, String field, JDialog comp);",
"void setVisualApp(T visualApp);",
"public void setWindow(Window window) {\n this.window = window;\n window.setInput(input);\n }",
"void onEnvironmentChange(EnvironmentChangeEvent event);",
"public void setEditor(Editor editor)\n {\n this.editor = editor;\n }",
"void setEditorController(EditorViewController gameEditorViewController);",
"public void setEnvironmentName(String environmentName) {\n this.environmentName = environmentName;\n }",
"void setEditore(String editore);",
"@FXML\r\n public void handleOnEditButtonClick ()\r\n {\r\n mainApp.showCountryEditDialog(country);\r\n }",
"public void setScope(JexlEngine.Scope theScope) {\r\n this.scope = theScope;\r\n }",
"public void setEditor(String value) {\n setAttributeInternal(EDITOR, value);\n }",
"public void setEditor(String value) {\n setAttributeInternal(EDITOR, value);\n }",
"public void setVars() {\n\t\tif (jEdit.getPlugin(\"console.ConsolePlugin\") != null) {\n\t\t\tconsole.ConsolePlugin.setSystemShellVariableValue(\"LUAJ\", getLuaJ());\n\t\t}\n\t}",
"public void popEditEntity()throws IOException {\n final Stage dialog = new Stage();\n dialog.setTitle(\"Editar entidad\");\n \n Parent root = FXMLLoader.load(getClass().getResource(\"/view/PopEditEntity.fxml\"));\n \n Scene xscene = new Scene(root);\n \n dialog.setResizable(false);\n dialog.initModality(Modality.APPLICATION_MODAL);\n dialog.initOwner((Stage) root.getScene().getWindow());\n \n dialog.setScene(xscene);\n dialog.showAndWait();\n dialog.resizableProperty().setValue(Boolean.FALSE);\n dialog.setResizable(false);\n dialog.close();\n\n }",
"public void setEditingStage(int stage) {\n\t\tif (amountOfStages < stage) {\n\t\t\tthrow new IllegalArgumentException(\"Attempting to switch to stage which does not exist\");\n\t\t}\n\n\t\tthis.stage = stage;\n\t}",
"public void changeEnvironmentTypeToTown() {\n this.setEnvironmentType(EnvironmentTypesList.getTownEnvironmentType());\n\n }",
"public void setExperiment(Experiment exp) {\n \n m_Exp = exp;\n m_StartBut.setEnabled(m_RunThread == null);\n m_StopBut.setEnabled(m_RunThread != null);\n }",
"public void switchToEdit() {\n if (isReadOnly || deckPanel.getVisibleWidget() == TEXTAREA_INDEX) {\n return;\n }\n\n textArea.setText(getValue());\n deckPanel.showWidget(TEXTAREA_INDEX);\n textArea.setFocus(true);\n }",
"private void editMode() {\n\t\t// Set the boolean to true to indicate in edit mode\n\t\teditableEditTexts();\n\t\thideEditDelete();\n\t\thideEmail();\n\t\tshowSaveAndAdd();\n\t\tshowThatEditable();\n\t}",
"public void setEditable(boolean editable) {\n GtkEditable.setEditable(this, editable);\n }",
"private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }",
"public void setDireccionPersonaEnvia(String direccionPersonaEnvia) {\r\n\t\tthis.direccionPersonaEnvia = direccionPersonaEnvia;\r\n\t}",
"public void setEnvironmentPropertyName(String environmentPropertyName) {\n \n this.environmentPropertyName = environmentPropertyName;\n }",
"public final void setEnvironmentDescription(java.lang.String environmentdescription)\r\n\t{\r\n\t\tsetEnvironmentDescription(getContext(), environmentdescription);\r\n\t}",
"private void editKnowledge(EditView editView) {\n\n if (!checkIfKnowledgeBaseLoaded()) {\n return;\n }\n\n try {\n URL editUrl = getClass().getResource(\"/fxml/Edit.fxml\");\n Context.getInstance().setCurrentEditView(editView);\n\n AnchorPane editViewPane = FXMLLoader.load(editUrl);\n BorderPane border = MainFrame.getRoot();\n\n border.setCenter(editViewPane);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void popEditElement()throws IOException {\n final Stage dialog = new Stage();\n dialog.setTitle(\"Editar nombre\");\n \n Parent root = FXMLLoader.load(getClass().getResource(\"/view/PopEditAttribute.fxml\"));\n \n Scene xscene = new Scene(root);\n \n dialog.setResizable(false);\n dialog.initModality(Modality.APPLICATION_MODAL);\n dialog.initOwner((Stage) root.getScene().getWindow());\n \n dialog.setScene(xscene);\n dialog.showAndWait();\n dialog.resizableProperty().setValue(Boolean.FALSE);\n dialog.setResizable(false);\n dialog.close();\n\n }",
"public static void setEnvironmentProvider(EnvironmentDetector environmentDetector)\n {\n getIntern().setEnvironmentProvider(environmentDetector);\n }",
"@Override\n\tpublic void setEditorType(java.lang.String editorType) {\n\t\t_scienceApp.setEditorType(editorType);\n\t}",
"public void editEmployee(ActionRequest request, ActionResponse response) throws PortalException, SystemException {\n\t\tString strKey = request.getParameter(\"editKey\");\n\t\tlong empId = Long.valueOf(strKey);\n\t\tEmployee emp = EmployeeLocalServiceUtil.getEmployee(empId);\n\t\trequest.setAttribute(\"editKey\", emp);\n\t\tresponse.setRenderParameter(\"mvcPath\", \"/html/employee/edit.jsp\");\n\t}",
"public final void setEnvironmentCode(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String environmentcode)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.EnvironmentCode.toString(), environmentcode);\r\n\t}",
"public void onEntry(TraversableContext dataContext) {\n IDEController.getInstance().ensureProjectWithoutParsing();\r\n\r\n final ProjectConfiguration editableConf =\r\n ProjectConfiguration.getProjectConfiguration(dataContext);\r\n\r\n if (editableConf == null) {\r\n return;\r\n }\r\n \r\n options.loadChoicesToPropertyEditors(editableConf);\r\n }",
"private void edit() {\n\n\t}",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareUpdatePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if some change has not been saved\n if ( getEnvironmentWindow().isUpdated() )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.notsaved\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // display confirm window\n KalumetConsoleApplication.getApplication().getDefaultWindow().getContent().add(\n new ConfirmWindow( new ActionListener()\n {\n public void actionPerformed( ActionEvent event )\n {\n // add a message into the log pane and the journal\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" update in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" update requested.\" );\n // start the update thread\n final UpdateThread updateThread = new UpdateThread();\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" updated.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }\n } ) );\n }",
"public void callSetupDialog(JDialog jParent, MainWindow oMain) {\n AllometryParameterEdit oWindow = new AllometryParameterEdit(jParent, m_oManager, oMain, this);\n oWindow.pack();\n oWindow.setLocationRelativeTo(null);\n oWindow.setVisible(true);\n }",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareUpdatePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if some change has not yet been saved\n if ( getEnvironmentWindow().isUpdated() )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.notsaved\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // get the location name\n final String locationName = event.getActionCommand();\n // display confirm window\n KalumetConsoleApplication.getApplication().getDefaultWindow().getContent().add(\n new ConfirmWindow( new ActionListener()\n {\n public void actionPerformed( ActionEvent event )\n {\n // add a message into the log pane and the journal\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" location \" + locationName + \" update in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" location \" + locationName + \" update requested.\" );\n // start the update thread\n final UpdateLocationThread updateThread = new UpdateLocationThread();\n updateThread.locationName = locationName;\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" location \" + locationName + \" updated.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" location \" + locationName + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }\n } ) );\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tEnvironmentVariables.setWidth(Float.parseFloat(width.getText()));\r\n\t\t\t\tEnvironmentVariables.setHeight(Float.parseFloat(height.getText()));\r\n\t\t\t\tEnvironmentVariables.setTitle(title.getText());\r\n\t\t\t\tupdateGameWorld();\r\n\t\t\t\t//go to save function\r\n\t\t\t\tsaveGame();\r\n\t\t\t\t\r\n\t\t\t\tWindow.getFrame().setVisible(false);\r\n\t\t\t\tWindow.getFrame().dispose();\r\n\t\t\t\t\r\n\t\t\t\tHomePage.buildHomePage();\r\n\t\t\t}",
"private void setDialog()\n {\n //this.setSize(350,500);\n this.setTitle(Constant.getTextBundle(\"ปฏิกิริยาต่อกัน\"));\n Toolkit thekit = this.getToolkit(); \n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation((screenSize.width-this.getSize().width)/2, (screenSize.height-this.getSize().height)/2);\n }",
"public final void setEnvironmentCode(java.lang.String environmentcode)\r\n\t{\r\n\t\tsetEnvironmentCode(getContext(), environmentcode);\r\n\t}",
"public final void setSamenv(java.lang.String samenv)\n\t{\n\t\tsetSamenv(getContext(), samenv);\n\t}",
"public void setEditDate(Date editDate) {\n this.editDate = editDate;\n }",
"public static void goToEditSongWindow()\n {\n EditSongWindow editSongWindow = new EditSongWindow();\n editSongWindow.setVisible(true);\n editSongWindow.setFatherWindow(actualWindow, false);\n }",
"void setEnvironment(CudaEnvironment environment);",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // get the fields value\n String nameFieldValue = nameField.getText();\n int activeFieldIndex = activeField.getSelectedIndex();\n int blockerFieldIndex = blockerField.getSelectedIndex();\n int beforeJeeFieldIndex = beforeJeeField.getSelectedIndex();\n String uriFieldValue = uriField.getText();\n // check fields\n if ( nameFieldValue == null || nameFieldValue.trim().length() < 1 )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"software.mandatory\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // if the user change the software name, check if the name\n // doesnt't already exist\n if ( name == null || ( name != null && !name.equals( nameFieldValue ) ) )\n {\n if ( parent.getEnvironmentWindow().getEnvironment().getSoftware( nameFieldValue ) != null )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"software.exists\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n }\n // update the software object\n software.setName( nameFieldValue );\n if ( activeFieldIndex == 0 )\n {\n software.setActive( true );\n }\n else\n {\n software.setActive( false );\n }\n if ( blockerFieldIndex == 0 )\n {\n software.setBlocker( true );\n }\n else\n {\n software.setBlocker( false );\n }\n if ( beforeJeeFieldIndex == 0 )\n {\n software.setBeforejee( true );\n }\n else\n {\n software.setBeforejee( false );\n }\n software.setUri( uriFieldValue );\n // add the software object if needed\n if ( name == null )\n {\n try\n {\n parent.getEnvironmentWindow().getEnvironment().addSoftware( software );\n }\n catch ( Exception e )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"software.exists\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n }\n // update the window definition\n setTitle( Messages.getString( \"software\" ) + \" \" + software.getName() );\n setId( \"softwarewindow_\" + parent.getEnvironmentWindow().getEnvironmentName() + \"_\" + software.getName() );\n name = software.getName();\n // change the updated flag\n parent.getEnvironmentWindow().setUpdated( true );\n // update the journal log tab pane\n parent.getEnvironmentWindow().updateJournalPane();\n // update the whole environment window\n parent.getEnvironmentWindow().update();\n // update the window\n update();\n }",
"private void showThatEditable() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"You may now edit this recipe!\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Edit Mode\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}",
"public void update(@NotNull AnActionEvent event) {\n project = event.getData(PlatformDataKeys.PROJECT);\n editor = event.getData(PlatformDataKeys.EDITOR);\n\n boolean enabled = project != null && editor != null && canEnable();\n event.getPresentation().setEnabled(enabled);\n }",
"public void setProjectExternallyEdited(boolean projectExternallyEdited)\r\n {\r\n m_projectExternallyEdited = projectExternallyEdited;\r\n }",
"@FXML\n private void editSelected() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"Edit DonorReceiver\");\n } else {\n EditPaneController.setAccount(selectedAccount);\n PageNav.loadNewPage(PageNav.EDIT);\n }\n }",
"public void popEditHeritage()throws IOException {\n final Stage dialog = new Stage();\n dialog.setTitle(\"Editar herencia\");\n \n Parent root = FXMLLoader.load(getClass().getResource(\"/view/PopEditHeritage.fxml\"));\n \n Scene xscene = new Scene(root);\n \n dialog.setResizable(false);\n dialog.initModality(Modality.APPLICATION_MODAL);\n dialog.initOwner((Stage) root.getScene().getWindow());\n \n dialog.setScene(xscene);\n dialog.showAndWait();\n dialog.resizableProperty().setValue(Boolean.FALSE);\n dialog.setResizable(false);\n dialog.close();\n\n }",
"public void showEditAgentScene(Agent agent) throws IOException {\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(MainApp.class.getResource(\"view/agents/AgentEditDialog.fxml\"));\r\n AnchorPane page = (AnchorPane) loader.load();\r\n\r\n mainLayout.setCenter(page);\r\n // Set the agent into the controller\r\n AgentEditDialogController controller = loader.getController();\r\n controller.setMainApp(this);\r\n controller.setAgent(agent);\r\n controller.setOldAgent(null);\r\n }",
"protected void setupPerspectiveSettings() {\n if (m_settings.getSettings(m_ownerApp.getApplicationID()) != null\n && m_settings.getSettings(m_ownerApp.getApplicationID()).size() > 1) {\n Map<Settings.SettingKey, Object> appSettings =\n m_settings.getSettings(m_ownerApp.getApplicationID());\n SingleSettingsEditor appEditor = new SingleSettingsEditor(appSettings);\n m_settingsTabs.addTab(\"General\", appEditor);\n m_perspectiveEditors.add(appEditor);\n }\n\n // main perspective\n Perspective mainPers = m_ownerApp.getMainPerspective();\n String mainTitle = mainPers.getPerspectiveTitle();\n String mainID = mainPers.getPerspectiveID();\n SingleSettingsEditor mainEditor =\n new SingleSettingsEditor(m_settings.getSettings(mainID));\n m_settingsTabs.addTab(mainTitle, mainEditor);\n m_perspectiveEditors.add(mainEditor);\n\n List<Perspective> availablePerspectives =\n m_ownerApp.getPerspectiveManager().getLoadedPerspectives();\n List<String> availablePerspectivesIDs = new ArrayList<String>();\n List<String> availablePerspectiveTitles = new ArrayList<String>();\n for (int i = 0; i < availablePerspectives.size(); i++) {\n Perspective p = availablePerspectives.get(i);\n availablePerspectivesIDs.add(p.getPerspectiveID());\n availablePerspectiveTitles.add(p.getPerspectiveTitle());\n }\n\n Set<String> settingsIDs = m_settings.getSettingsIDs();\n for (String settingID : settingsIDs) {\n if (availablePerspectivesIDs.contains(settingID)) {\n int indexOfP = availablePerspectivesIDs.indexOf(settingID);\n\n // make a tab for this one\n Map<Settings.SettingKey, Object> settingsForID =\n m_settings.getSettings(settingID);\n if (settingsForID != null && settingsForID.size() > 0) {\n SingleSettingsEditor perpEditor =\n new SingleSettingsEditor(settingsForID);\n m_settingsTabs.addTab(availablePerspectiveTitles.get(indexOfP),\n perpEditor);\n m_perspectiveEditors.add(perpEditor);\n }\n }\n }\n }",
"public TabsEditDialog openEditDialog(String dataPath) {\n Commons.openEditableToolbar(dataPath);\n $(Selectors.SELECTOR_CONFIG_BUTTON).click();\n Helpers.waitForElementAnimationFinished($(Selectors.SELECTOR_CONFIG_DIALOG));\n return new TabsEditDialog();\n }",
"public void switchToEditor() {\r\n\t\teditPane.addEditTabs(editTabs);\r\n\t\tlayout.show(this, \"editPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}",
"@Override\n\tpublic void setStage(java.lang.String stage) {\n\t\t_scienceApp.setStage(stage);\n\t}"
] | [
"0.66590106",
"0.6238055",
"0.621015",
"0.609229",
"0.6065123",
"0.60614777",
"0.6060224",
"0.602818",
"0.6023654",
"0.59657127",
"0.5718072",
"0.5694946",
"0.5618696",
"0.55685097",
"0.5555805",
"0.5514847",
"0.54803514",
"0.543466",
"0.54227495",
"0.54206616",
"0.54048425",
"0.53898853",
"0.5276794",
"0.524551",
"0.52266276",
"0.522128",
"0.52094924",
"0.5183602",
"0.5158452",
"0.5150973",
"0.5124997",
"0.51179487",
"0.51169336",
"0.51086324",
"0.50810707",
"0.507765",
"0.50622785",
"0.5061205",
"0.505285",
"0.5037728",
"0.5031586",
"0.50303215",
"0.5018493",
"0.49897176",
"0.49705213",
"0.49652594",
"0.49553296",
"0.49541783",
"0.49481204",
"0.49446034",
"0.4940136",
"0.49398637",
"0.49382332",
"0.49349147",
"0.49319243",
"0.49255455",
"0.4922563",
"0.49179652",
"0.49179652",
"0.48949116",
"0.48801503",
"0.48681083",
"0.4867998",
"0.48677346",
"0.48646683",
"0.48609504",
"0.48335382",
"0.48316368",
"0.48237997",
"0.48201686",
"0.48189402",
"0.48176467",
"0.48170084",
"0.4809263",
"0.48009807",
"0.47887263",
"0.478601",
"0.4784875",
"0.47830728",
"0.4780748",
"0.4780141",
"0.4779078",
"0.47759536",
"0.47753903",
"0.47748828",
"0.47622404",
"0.47589058",
"0.47519955",
"0.47450784",
"0.47446254",
"0.47441477",
"0.47311395",
"0.47284582",
"0.4727999",
"0.47277954",
"0.4721475",
"0.4721116",
"0.4715853",
"0.47145644",
"0.4714252"
] | 0.5971398 | 9 |
Returns true if the user clicked OK, false otherwise. | public boolean isOkClicked() {
return okClicked;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}",
"public boolean isOkClicked() {\n return okClicked;\n }",
"public boolean isOkClicked() {\n return okClicked;\n }",
"public boolean getOK() {\n return userAction.equals(OK);\n }",
"protected abstract boolean onOkClicked();",
"void okButtonClicked();",
"public boolean onOkClicked() {\n try {\n if (form.isValid()) {\n String userName = form.getFieldValue(SysUser.USER_NAME_PROPERTY);\n String userAccount = form.getFieldValue(SysUser.USER_ACCOUNT_PROPERTY);\n String passWord = form.getFieldValue(SysUser.USER_PASSWORD_PROPERTY);\n String cPassWord = form.getFieldValue(\"cPassWord\");\n if (!passWord.equals(cPassWord)) {\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setValue(\"\");\n form.getField(\"cPassWord\").setValue(\"\");\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setFocus(true);\n addModel(\"msg\", \"密码不一致\");\n } else if (SysUserDao.getInstance().canCreate(getSysUser().getObjectContext(), userAccount)) {\n if (SysUserDao.getInstance().createSysUser(getSysUser().getObjectContext(), userName, userAccount, passWord)) {\n setRedirect(UserListPage.class);\n } else {\n addModel(\"msg\", \"失败\");\n }\n } else {\n form.getField(SysUser.USER_ACCOUNT_PROPERTY).setFocus(true);\n addModel(\"msg\", \"账号已存在\");\n }\n }\n } catch (Exception e) {\n logger.error(e.getLocalizedMessage(), e);\n }\n return true;\n }",
"public boolean onConfirmClicked(DialogActivity dialog)\n {\n return mApplyButton.performClick();\n }",
"@Override\n\tpublic boolean performOk() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\t// Set the values from the fields\n\t\tpreferenceStore.setValue(DEFAULT_PASSWORD_LENGTH, spiLength.getSelection());\n\t\tpreferenceStore.setValue(USE_LOWERCASE_LETTERS, btnUseLowercase.getSelection());\n\t\tpreferenceStore.setValue(USE_UPPERCASE_LETTERS, btnUserUppercase.getSelection());\n\t\tpreferenceStore.setValue(USE_DIGITS, btnUseDigits.getSelection());\n\t\tpreferenceStore.setValue(USE_SYMBOLS, btnUseSymbols.getSelection());\n\t\tpreferenceStore.setValue(USE_EASY_TO_READ, btnUseEaseToRead.getSelection());\n\t\tpreferenceStore.setValue(USE_HEX_ONLY, btnUseHexOnly.getSelection());\n\n\t\t// Return true to allow dialog to close\n\t\treturn true;\n\t}",
"public boolean performOk() {\r\n\t\treturn super.performOk();\r\n\t}",
"public void cmdOk() {\n\n\t\tif (!m_actionscombo.isValueInModel()) {\n\t\t\tString msg = I18N.getLocalizedMessage(\"Invalid Action Name\");\n\t\t\tString title = I18N.getLocalizedMessage(\"Error\");\n\t\t\tJOptionPane.showMessageDialog(null, msg, title, JOptionPane.ERROR_MESSAGE);\n\t\t} else\n\t\t\tsuper.cmdOk();\n\t}",
"private boolean areYouSure(String text) {\n return JOptionPane.showConfirmDialog(null, text, \"Are you sure?\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;\n }",
"public boolean getUserConfirmation() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation Box\");\n alert.setHeaderText(\"Are you sure you want to delete?\");\n alert.setResizable(false);\n Optional<ButtonType> result = alert.showAndWait();\n ButtonType button = result.orElse(ButtonType.CANCEL);\n\n if (button == ButtonType.OK) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean isOkay() {\n return okay;\n }",
"public void OnOkClick()\r\n {\r\n\r\n }",
"public boolean wasOkay();",
"protected boolean hasPositiveButton() {\n return false;\n }",
"void onOkButtonPressed();",
"protected boolean promptToSave() {\n if (!boxChanged) {\n return true;\n }\n switch (JOptionPane.showConfirmDialog(this,\n bundle.getString(\"Do_you_want_to_save_the_changes_to_\")\n + (boxFile == null ? bundle.getString(\"Untitled\") : boxFile.getName()) + \"?\",\n APP_NAME, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE)) {\n case JOptionPane.YES_OPTION:\n return saveAction();\n case JOptionPane.NO_OPTION:\n return true;\n default:\n return false;\n }\n }",
"public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}",
"@Test\n\tpublic void testClickOnOkayButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getOkayButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputApplied();\n\t}",
"protected abstract void pressedOKButton( );",
"public boolean promptUserWantsShutdown() {\r\n boolean result = true;\r\n\r\n if (isGUI()) {\r\n String msg = Messages.MainModel_4.toString();\r\n String title = Messages.MainModel_5.toString();\r\n int ans = JOptionPane.showConfirmDialog(null, msg, title,\r\n JOptionPane.OK_CANCEL_OPTION);\r\n\r\n if (ans == JOptionPane.CANCEL_OPTION) {\r\n result = false;\r\n }\r\n }\r\n\r\n return result;\r\n\r\n }",
"public abstract boolean confirm();",
"public static boolean showConfirmDialog(String action) {\n\tint reply = JOptionPane.showConfirmDialog(null, \"Are you sure you wish to \" + action + \"?\", \"Confirmation\",\n\t\tJOptionPane.YES_NO_OPTION);\n\t\n\treturn reply == JOptionPane.YES_OPTION;\n }",
"private boolean promptToSave() throws IOException {\n applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION).show(\"Save work?\", \n \"Would you like to save your current work?\");\n return ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.YES) \n || ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.NO);\n }",
"public void clickedOk(View view) {\n \t\n \t// validate the data set\n \tif (!getData()) return;\n \t\n \t// confirm values that are in range, but possibly wrong\n \tif (!confirmData(0)) return;\n \t\n \t// success\n \t\treturnResult(Activity.RESULT_OK);\n }",
"private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}",
"protected boolean confirm (String title, String message)\n {\n return JOptionPane.OK_OPTION == JOptionPane.showConfirmDialog(\n this, message, title, JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\n }",
"public boolean isOk() {\n\t\treturn ok;\n\t}",
"private boolean askSave() {\n if (isNeedSaving()) {\n int option = JOptionPane.showConfirmDialog(form,\n \"Do you want to save the change?\", \"Save\", JOptionPane.YES_NO_CANCEL_OPTION);\n //direct code base on user choice\n switch (option) {\n case JOptionPane.YES_OPTION:\n //check if file is null\n if (file == null) {\n //check if user cancel save option\n if (!saveAs()) {\n return false;\n }\n } else {\n //check if user cancel save option\n if (!save()) {\n return false;\n }\n }\n break;\n case JOptionPane.CANCEL_OPTION:\n return false;\n }\n }\n return true;\n }",
"public boolean saidYes(boolean onQuit) {\r\n\r\n System.out.print(\" (Y/N) \");\r\n \r\n\t\tchar responce = Keyboard.readChar();\r\n responce = Character.toLowerCase(responce);\r\n\r\n\t\tswitch (responce) {\r\n case 'y':\r\n return true;\r\n\r\n case 'q':\r\n case 'e':\r\n\r\n // Is the user is being asked to quit?\r\n if (onQuit) {\r\n return true;\r\n\t\t\t\t}\r\n\r\n endGameSwitch = true;\r\n return false;\r\n\r\n default:\r\n return false;\r\n }\r\n\t}",
"protected Button getOkButton()\r\n\t{\r\n\t\treturn okButton;\r\n\t}",
"public static boolean isOK() {return isOK;}",
"private void onOK() {\n isOkClicked = true;\n dispose();\n }",
"public boolean promptToSave()\r\n {\r\n // PROMPT THE USER TO SAVE UNSAVED WORK\r\n AnimatedSpriteEditorGUI gui = AnimatedSpriteEditor.getEditor().getGUI();\r\n int selection =JOptionPane.showOptionDialog(gui, \r\n PROMPT_TO_SAVE_TEXT, PROMPT_TO_SAVE_TITLE_TEXT, \r\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, \r\n null, null, null);\r\n \r\n // IF THE USER SAID YES, THEN SAVE BEFORE MOVING ON\r\n if (selection == JOptionPane.YES_OPTION)\r\n {\r\n poseIO.savePose(currentFile, false);\r\n poseIO.savePoseImage(currentPoseName, poseID);\r\n saved = true;\r\n }\r\n \r\n // IF THE USER SAID CANCEL, THEN WE'LL TELL WHOEVER\r\n // CALLED THIS THAT THE USER IS NOT INTERESTED ANYMORE\r\n else if (selection == JOptionPane.CANCEL_OPTION)\r\n {\r\n return false;\r\n }\r\n\r\n // IF THE USER SAID NO, WE JUST GO ON WITHOUT SAVING\r\n // BUT FOR BOTH YES AND NO WE DO WHATEVER THE USER\r\n // HAD IN MIND IN THE FIRST PLACE\r\n return true;\r\n }",
"private boolean confirmAlert(String title, String message) {\n\t\tStage window = new Stage();\n\t\twindow.initModality(Modality.APPLICATION_MODAL);\n\t\twindow.setTitle(title);\n\t\twindow.setHeight(100);\n\n\t\tLabel errorMessage = new Label(message);\n\t\terrorMessage.setPrefWidth(150 + message.length() * 5);\n\t\terrorMessage.setAlignment(Pos.CENTER);\n\t\twindow.setWidth(errorMessage.getPrefWidth());\n\n\t\tButton yes = new Button(\"yes\");\n\t\tButton no = new Button(\"no\");\n\n\t\tyes.setOnAction(event -> {\n\t\t\twindow.close();\n\t\t\tanswer = true;\n\t\t});\n\t\tno.setOnAction(event -> {\n\t\t\twindow.close();\n\t\t\tanswer = false;\n\t\t});\n\n\n\t\tHBox answers = new HBox(yes, no);\n\t\tanswers.setSpacing(15);\n\t\tanswers.setAlignment(Pos.CENTER);\n\t\tVBox layout = new VBox();\n\t\tlayout.getChildren().addAll(errorMessage, answers);\n\t\tlayout.setAlignment(Pos.CENTER);\n\t\tlayout.setSpacing(15);\n\n\t\tScene scene = new Scene(layout);\n\t\twindow.setScene(scene);\n\t\twindow.showAndWait();\n\n\t\treturn answer;\n\t}",
"private void mIesireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mIesireActionPerformed\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa parasiti aplicatia?\", \"Confirmare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }",
"public final boolean isOk() {\n return ok;\n }",
"protected boolean okData() {\n \t\tString name2 = name.getText().trim();\n \t\tString phone2 = phone.getText().trim();\n \t\tString adress2 = adress.getText().trim();\n \t\tboolean enterpriseButton = enterpriseCustomer.isSelected();\n \t\tboolean privateButton = privateCustomer.isSelected();\n \t if (name2.equals(\"\") || phone2.equals(\"\") || adress2.equals(\"\") || (!enterpriseButton && !privateButton)) {\n \t \tif (name2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input a customer name!\");\n \t \t\tname.requestFocusInWindow();\n \t \t} else if(phone2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input a phone number!\");\n \t \t\tphone.requestFocusInWindow();\n \t \t} else if(adress2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input an adress!\");\n \t \t\tadress.requestFocusInWindow();\n \t \t} else if(!enterpriseButton && !privateButton) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to choose a customer type!\");\n \t \t\tprivateCustomer.requestFocusInWindow();\n \t \t}\n \t \treturn false;\n \t } else {\n \t \treturn true;\n \t }\n \t}",
"boolean getIsOk();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}",
"public boolean isOK() {\n\t\treturn adaptee.isOK();\n\t}",
"void setOk();",
"public boolean isUserChoice() {\n return ACTION_UserChoice.equals(getAction());\n }",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n actualizarEntidad(this.entidad);\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"private boolean OK() {\r\n return in == saves[save-1];\r\n }",
"@Action\n public void acOk() {\n if (checkFormattedTextFieldNullNoSupposed(jftfCoord1, -1e5, 1e5)) {\n return;\n }\n if (checkFormattedTextFieldNullNoSupposed(jftfCoord2, -1e5, 1e5)) {\n return;\n }\n if (checkTextField(jtfName)) {\n return;\n }\n getTempObj().setType(jcbType.getSelectedIndex());\n getTempObj().setCoord1(getDoubleFromFormattedTextField(jftfCoord1));\n getTempObj().setCoord2(getDoubleFromFormattedTextField(jftfCoord2));\n getTempObj().setName(jtfName.getText());\n setChangeObj(true);\n }",
"public boolean confirmLoginClicked() {\n return confirmLogin;\n }",
"@FXML public void handleOk() {\n\t\tSystem.out.println(\"OK clicked!\");\n\t\t\n\t\tif (checkParameters().equals(ErrorCode.BatchSize)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Batch Size]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.ConfidenceFactor)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Confidence Factor]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.MinNumObj)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Min Num Obj]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumDecimalPlaces)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Decimal Places]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumFolds)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Folds]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Seed)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Seed]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Fine)) {\n\t\t\tsaveParameters();\n\t\t\tClassifiersWindowsManager.stage.close();\n\t\t}\n\t}",
"public boolean isOk() {\n return _type == Type.OK;\n }",
"private boolean askSaveGame()\n {\n \tObject options[] = {\"Save\", \"Discard\", \"Cancel\"};\n \tint n = JOptionPane.showOptionDialog(this,\n \t\t\t\t\t \"Game has changed. Save changes?\",\n \t\t\t\t\t \"Save Game?\",\n \t\t\t\t\t JOptionPane.YES_NO_CANCEL_OPTION,\n \t\t\t\t\t JOptionPane.QUESTION_MESSAGE,\n \t\t\t\t\t null,\n \t\t\t\t\t options,\n \t\t\t\t\t options[0]);\n \tif (n == 0) {\n \t if (cmdSaveGame()) \n \t\treturn true;\n \t return false;\n \t} else if (n == 1) {\n \t return true;\n \t}\n \treturn false;\n }",
"@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}",
"public boolean pregunta(){\n int d = JOptionPane.showConfirmDialog(null, \"¿Desea escribir otra palabra?\", \"¿Escribir?\", JOptionPane.YES_NO_OPTION);\n if (d == 0) {\n return true;\n }else if (d == 1) {\n return false;\n }\n return false;\n }",
"@Override\r\n\t\tpublic boolean promptYesNo(String message) {\n\t\t\treturn true;\r\n\t\t}",
"public boolean verifyMentorRequestContinue(){\n\t\treturn mentorConnectRequestObjects.almostDoneText.isDisplayed();\n\t}",
"private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOkActionPerformed\n \n }",
"public void actionPerformed(ActionEvent arg0)\n {\n userAlert = chkAlert.getState();\n }",
"private int askUserForSaveFile()\n {\n final JOptionPane optionPane = new JOptionPane(this.dialogExitMessage,\n JOptionPane.CLOSED_OPTION, JOptionPane.YES_NO_CANCEL_OPTION, this.dialogExitIcon);\n dialogFactory.showDialog(optionPane, this.dialogExitTitle, true);\n final int decision = getOptionFromPane(optionPane);\n return decision;\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(ok.getText());\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this\");\n }",
"public synchronized void sendOk() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_YES);\r\n\t\tendMessage();\r\n\t}",
"private boolean showConfirmationMessage(String title, String body)\r\n {\r\n MyLogger.log(Level.INFO, \"Info message initiated. Info Title: {0}\", title);\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n Stage currentStage = (Stage) viewCoinAnchorPane.getScene().getWindow();\r\n alert.initOwner(currentStage);\r\n alert.setTitle(title);\r\n alert.setHeaderText(null);\r\n alert.setContentText(body);\r\n ButtonType buttonTypeCancel = new ButtonType(\"Cancel\", ButtonData.CANCEL_CLOSE);\r\n ButtonType buttonTypeOK = new ButtonType(\"OK\", ButtonData.OK_DONE);\r\n alert.getButtonTypes().setAll(buttonTypeCancel, buttonTypeOK);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == buttonTypeOK)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"User confirmed coin action\");\r\n return true;\r\n } else if (result.isPresent() && result.get() == buttonTypeCancel)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"User canceled coin Action\");\r\n return false;\r\n }\r\n return false;\r\n\r\n }",
"public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }",
"void CloseOkDialog();",
"protected void okPressed() {\n\t\tconfig.setExportThreadCount(txtThreadCount.getSelection());\n\t\tconfig.setImportThreadCount(txtMaxImportThreadCountPerTable.getSelection());\n\t\tconfig.setCommitCount(txtCommitCount.getSelection());\n\t\tif (txtPageCount != null) {\n\t\t\tconfig.setPageFetchCount(txtPageCount.getSelection());\n\t\t}\n\t\tif (txtFileMaxSize != null) {\n\t\t\tconfig.setMaxCountPerFile(txtFileMaxSize.getSelection());\n\t\t}\n\t\tconfig.setImplicitEstimate(btnImplicitEstimate.getSelection());\n\t\tsuper.okPressed();\n\t}",
"abstract public boolean onPositiveClicked(String userInput);",
"@Override\n\tpublic void okPressed() {\n\t\t_text = _noteTextField.getText();\n\t\tsetReturnCode(OK);\n\t\tclose();\n\t}",
"public boolean ButtonStatusToRoundTrip(){\n\n wait.until(ExpectedConditions.elementSelectionStateToBe(roundTripButton,false));\n roundTripButton.click();\n System.out.println(\"Round Trip button is clicked\");\n do {\n return true;\n }\n while (roundTripButton.isSelected());\n\n\n }",
"private boolean askToLeave(){\n\t\tint ask_leave_prompt = JOptionPane.YES_NO_OPTION;\n\t\tint ask_leave_result = JOptionPane.showConfirmDialog(this, \"Would you like to return to main menu?\\nYou will lose all progress\", \"Return To Main Menu\", ask_leave_prompt);\n\t\tif (ask_leave_result == JOptionPane.YES_OPTION){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean okReveiced () {\n\t\t\treturn resultDetected[RESULT_INDEX_OK];\n\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t \t \t\tcheckCorrect();\n\t \t}",
"public boolean isOk() {\n return this.state == null || this.state.code == 0;\n }",
"public void ok() {\n btOK().push();\n }",
"protected boolean requestClose()\n\t{\n\t\t\n\t\tif (!dirty.get())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tString filename = getFile() == null ? \"Untitled\" : getFile().getName();\n\t\tString filepath = getFile() == null ? \"\" : getFile().getAbsolutePath();\n\t\t\n\t\tAlertWrapper alert = new AlertWrapper(AlertType.CONFIRMATION)\n\t\t\t\t.setTitle(filename + \" has changes\")\n\t\t\t\t.setHeaderText(\"There are unsaved changes. Do you want to save them?\")\n\t\t\t\t.setContentText(filepath + \"\\nAll unsaved changes will be lost.\");\n\t\talert.getButtonTypes().setAll(ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n\t\t\n\t\talert.showAndWait();\n\t\t\n\t\tif (alert.getResult() == ButtonType.YES)\n\t\t{\n\t\t\tboolean success = save();\n\t\t\t\n\t\t\tif (!success)\n\t\t\t{\n\t\t\t\tAlertWrapper errorAlert = new AlertWrapper(AlertType.ERROR)\n\t\t\t\t\t\t.setTitle(\"Couldn't save file!\")\n\t\t\t\t\t\t.setHeaderText(\"There was an error while saving!\")\n\t\t\t\t\t\t.setContentText(\"The file was not closed.\");\n\t\t\t\t\n\t\t\t\terrorAlert.showAndWait();\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (alert.getResult() == ButtonType.CANCEL)\n\t\t\treturn false; // A false return value is used to consume the closing event.\n\t\t\n\t\t\n\t\treturn true;\n\t}",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n if (askUserYesNo(\"Do you really want to quit?\")) {\n if(askUserYesNo(\"Do you want to save game?\")){\n game.saveGame();\n }\n System.exit(0);\n }\n }",
"public void handleActionOk() {\n\t\tsuper.handleActionOk();\n\t\tnewModeOkApply();\n\t\tthis.getDocumentView().close();\n\t}",
"private void okEvent() {\n\t\tYAETMMainView.PRIVILEGE = (String)loginBox.getSelectedItem();\n\t\tshowMain();\n\t\tcloseDialog();\n\t}",
"public boolean isConfirmKey() {\n switch (this) {\n case DPAD_CENTER:\n case ENTER:\n case SPACE:\n case NUMPAD_ENTER:\n return true;\n default:\n return false;\n }\n }",
"void isOK()\r\n\t{\n\t\tboolean[] array = new boolean[table.getRowCount()];\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = (Boolean) table.getValueAt(i, 2);\r\n\r\n\t\tint active = 0;\r\n\t\tfor (boolean b: array)\r\n\t\t\tif (b) active++;\r\n\r\n\t\t// Copy ONLY the selected traits into a new array\r\n\t\tint[] traits = new int[active];\r\n\t\tfor (int i = 0, j = 0; i < array.length; i++)\r\n\t\t\tif (array[i])\r\n\t\t\t\ttraits[j++] = i;\r\n\r\n\t\tPrefs.guiTruncateTraits = checkTruncate.isSelected();\r\n\r\n\t\t// Assign the selected traits back to the view\r\n\t\tif (mode == SelectTraitsDialog.HEATMAP_TRAITS)\r\n\t\t\tviewSet.setTraits(traits);\r\n\t\telse\r\n\t\t\tviewSet.setTxtTraits(traits);\r\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }",
"public boolean validateAnswer()\r\n\t{\r\n\t\treturn (group.getSelection() != null);\r\n\t}",
"public boolean checkToProceed(){\n return getGame().getCurrentPlayer().getRemainingActions() > 0;\n }",
"boolean remoteOfficeOk() throws UnavailableMethodException, IOException {\r\n\r\n\t\tif (isChanged) {\r\n\t\t\tlogTrace(this.getClass().getName(), \"loadremoteOfficecomponents()\", \"Ok button action is going to start\");\r\n\t\t\tif (objRemoteOfficeEnableJCheckBox.isSelected()) {\r\n\t\t\t\tString phoneNumber = objRemoteOfficeJTextField.getText();\r\n\t\t\t\tif ((phoneNumber.equalsIgnoreCase(\"\"))) {\r\n\r\n\t\t\t\t\tshowInfoDialog(getremoteOfficeNumberError());\r\n\r\n\t\t\t\t\tsuccess = false;\r\n\t\t\t\t\treturn success;\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getreRemoteOffice().setActive(true);\r\n\t\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getreRemoteOffice().setPhoneNumber(phoneNumber);\r\n\r\n\t\t\t\t\tisChanged = false;\r\n\t\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getObjBWXSIAction().setRemoteoffice(true, phoneNumber);\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tString phoneNumber = objRemoteOfficeJTextField.getText();\r\n\r\n\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getreRemoteOffice().setActive(false);\r\n\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getreRemoteOffice().setPhoneNumber(phoneNumber);\r\n\t\t\t\tisChanged = false;\r\n\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getObjBWXSIAction().setRemoteoffice(false, phoneNumber);\r\n\t\t\t}\r\n\t\t\tlogTrace(this.getClass().getName(), \"remoteOfficeOk()\", \"Ok button action completed successfully\");\r\n\t\t}\r\n\r\n\t\treturn success;\r\n\r\n\t}",
"protected abstract boolean isConfirmEnabled();",
"@Override\n public boolean canBeTerminatedNow() {\n logger.debug(\"OifitsExplorerGui.finish() handler called.\");\n\n // Can't exit if a job is running\n if (IRModelManager.getInstance().getIRModel().isRunning()) {\n MessagePane.showMessage(\"A job is running... Please wait for its completion or cancel it before quitting.\");\n return false;\n }\n\n // Ask the user if he wants to save modifications\n //@TODO replace by code when save will be available.\n MessagePane.ConfirmSaveChanges result = MessagePane.ConfirmSaveChanges.Ignore;\n //MessagePane.ConfirmSaveChanges result = MessagePane.showConfirmSaveChangesBeforeClosing();\n\n // Handle user choice\n switch (result) {\n // If the user clicked the \"Save\" button, save and exit\n case Save:\n /*\n if (this.saveAction != null) {\n return this.saveAction.save();\n }\n */\n break;\n\n // If the user clicked the \"Don't Save\" button, exit\n case Ignore:\n break;\n\n // If the user clicked the \"Cancel\" button or pressed 'esc' key, don't exit\n case Cancel:\n default: // Any other case\n return false;\n }\n\n return true;\n }",
"private JButton getJButtonOk() {\n\t\tif (jButtonOk == null) {\n\t\t\tjButtonOk = new JButton();\n\t\t\tjButtonOk.setText(\"I agree\");\n\t\t\tjButtonOk.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonOk;\n\t}",
"@Override\n\tprotected boolean isCanFinish() {\n\t\tIntent intent = new Intent();\n\t\tintent.setAction(et.getText().toString().trim());\n\t\tsetResult(RESULT_OK, intent);\n\t\treturn true;\n\t}"
] | [
"0.81853604",
"0.8181349",
"0.8181349",
"0.8181349",
"0.8181349",
"0.8181349",
"0.8172315",
"0.81009877",
"0.81009877",
"0.795286",
"0.7811338",
"0.7159338",
"0.7021386",
"0.69590104",
"0.68873745",
"0.68372655",
"0.67989665",
"0.6742531",
"0.67311287",
"0.66724986",
"0.66686743",
"0.65929055",
"0.6584779",
"0.65696275",
"0.6555902",
"0.6555867",
"0.6554782",
"0.64984834",
"0.6472831",
"0.64666516",
"0.64616317",
"0.64379805",
"0.64174664",
"0.6404085",
"0.64038956",
"0.6390477",
"0.6371929",
"0.63575083",
"0.6350491",
"0.63504666",
"0.63445896",
"0.6339849",
"0.6331441",
"0.63244134",
"0.63149047",
"0.63120085",
"0.62942636",
"0.6290551",
"0.6287719",
"0.6280235",
"0.627384",
"0.62722266",
"0.6258127",
"0.62461525",
"0.62379175",
"0.6202565",
"0.62015456",
"0.61700684",
"0.61693174",
"0.6168984",
"0.61668104",
"0.61560506",
"0.61493874",
"0.6148717",
"0.61302286",
"0.61296856",
"0.6120298",
"0.61044323",
"0.6096839",
"0.6095071",
"0.60835946",
"0.6080079",
"0.6072584",
"0.6071903",
"0.60524327",
"0.6032419",
"0.6024068",
"0.6023909",
"0.6023715",
"0.6010519",
"0.6005289",
"0.6005202",
"0.60048115",
"0.60033405",
"0.60033226",
"0.5996973",
"0.5994496",
"0.598688",
"0.5974071",
"0.5964477",
"0.5962965",
"0.59521896",
"0.5940316",
"0.59399635",
"0.59392375",
"0.59364927",
"0.59353286"
] | 0.81193846 | 10 |
Called when the user clicks ok. | @FXML
private void handleOk() {
if (isInputValid()) {
environment.setName(nameField.getText());
environment.setIP(hostField.getText());
environment.setPort(Integer.parseInt(portField.getText()));
environment.setLogin(loginField.getText());
environment.setPassword(passwordField.getText());
environment.setPathMOM(MOMPathField.getText());
environment.setServer(serverField.getValue());
environment.setService(serviceField.getValue());
okClicked = true;
dialogStage.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void okButtonClicked();",
"protected abstract boolean onOkClicked();",
"private void onOK() {\n isOkClicked = true;\n dispose();\n }",
"public void OnOkClick()\r\n {\r\n\r\n }",
"@Override\n\tpublic void okPressed() {\n\t\t_text = _noteTextField.getText();\n\t\tsetReturnCode(OK);\n\t\tclose();\n\t}",
"protected void okPressed() {\n\t\tconfig.setExportThreadCount(txtThreadCount.getSelection());\n\t\tconfig.setImportThreadCount(txtMaxImportThreadCountPerTable.getSelection());\n\t\tconfig.setCommitCount(txtCommitCount.getSelection());\n\t\tif (txtPageCount != null) {\n\t\t\tconfig.setPageFetchCount(txtPageCount.getSelection());\n\t\t}\n\t\tif (txtFileMaxSize != null) {\n\t\t\tconfig.setMaxCountPerFile(txtFileMaxSize.getSelection());\n\t\t}\n\t\tconfig.setImplicitEstimate(btnImplicitEstimate.getSelection());\n\t\tsuper.okPressed();\n\t}",
"void onOkButtonPressed();",
"@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}",
"@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}",
"private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n actualizarEntidad(this.entidad);\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"void CloseOkDialog();",
"private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}",
"public void handleActionOk() {\n\t\tsuper.handleActionOk();\n\t\tnewModeOkApply();\n\t\tthis.getDocumentView().close();\n\t}",
"private void okEvent() {\n\t\tYAETMMainView.PRIVILEGE = (String)loginBox.getSelectedItem();\n\t\tshowMain();\n\t\tcloseDialog();\n\t}",
"protected void okPressed()\n\t{\n\t\t((NewProjectComposite) this.getDialogArea()).updateProject(project);\n\t\tsuper.okPressed();\n\t}",
"protected abstract void pressedOKButton( );",
"@FXML\n\tprivate void handleOk() {\n\t\tif (isValidInput()) {\n\t\t\tsaveCurrentAcknowledgment();\n\t\t\t\n\t\t\tif (isNew) {\n\t\t\t\tmain.getDbHelper().insertAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\n\t\t\t} else {\n\t\t\t\tmain.getDbHelper().updateAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\t\n\t\t\t}\n\t\t\t\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}",
"public void clickedOk(View view) {\n \t\n \t// validate the data set\n \tif (!getData()) return;\n \t\n \t// confirm values that are in range, but possibly wrong\n \tif (!confirmData(0)) return;\n \t\n \t// success\n \t\treturnResult(Activity.RESULT_OK);\n }",
"public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}",
"@FXML public void handleOk() {\n\t\tSystem.out.println(\"OK clicked!\");\n\t\t\n\t\tif (checkParameters().equals(ErrorCode.BatchSize)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Batch Size]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.ConfidenceFactor)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Confidence Factor]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.MinNumObj)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Min Num Obj]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumDecimalPlaces)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Decimal Places]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumFolds)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Folds]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Seed)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Seed]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Fine)) {\n\t\t\tsaveParameters();\n\t\t\tClassifiersWindowsManager.stage.close();\n\t\t}\n\t}",
"void okButton_actionPerformed(ActionEvent e) {\n setItskey(keyTextField.getText());\n setItsvalue(valueTextField.getText());\n setUserAction(OK);\n setVisible(false);\n }",
"@FXML\n\tprivate void handleOk() {\n\t\ttry {\n\t\t\ttypeDAO.supprimerType(new Type(listIdType.get(comboboxtype.getSelectionModel().getSelectedIndex()),\"\",\"\"));\n\t\t\tnew Popup(\"Type \"+comboboxtype.getValue()+\" supprimer !\");\n\t\t} catch (ConnexionBDException e) {\n\t\t\tnew Popup(e.getMessage());\n\t\t}\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\t}",
"public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}",
"void okButton_actionPerformed(ActionEvent e)\n\t{\n\t\tpropertiesEditPanel.saveChanges();\n\t\tcloseDlg();\n\t\tokPressed = true;\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(ok.getText());\n\t\t\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public void submitText() {\r\n \t\tthis.dialog.clickOK();\r\n \t}",
"public void okPressed() {\r\n\t\t\r\n\t\tif (albumname.getText().trim().toString().equals(\"\")) {\r\n\t\t\t\r\n\t\t\tAlert alert = new Alert(AlertType.WARNING);\r\n\t\t\talert.setTitle(\"ALERT\");\r\n\t\t\talert.setHeaderText(\"Error\");\r\n\t\t\talert.setContentText(\"Must enter an album name.\");\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tString albumName = albumname.getText().trim().toString();\r\n\t\t\r\n\t\tif (checkForDuplicateAlbumNames(albumName)==true) {\r\n\t\t\tAlert alert = new Alert(AlertType.WARNING);\r\n\t\t\talert.setTitle(\"ALERT\");\r\n\t\t\talert.setHeaderText(\"Duplicate Names\");\r\n\t\t\talert.setContentText(\"An album already has that name. \\n Enter a new name.\");\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tAlbum newalbum = new Album(albumName);\r\n\t\tAlbumsController.getCurrentUser().addAlbumToUser(newalbum);\r\n\t\tLoginController.saveData(LoginController.users);\r\n\t\t\r\n\t\t\r\n\t\t//go to albums controller and load corresponding fxml\r\n\t\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"Albums.fxml\"));\r\n\t\t\t\ttry{\r\n\t\t\t\t\tParent parent = (Parent) loader.load();\r\n\t\t\t\t\tAlbumsController controller = loader.<AlbumsController>getController();\r\n\t\t\t\t\tScene scene = new Scene(parent);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// ok is the button pressed action event\r\n\t\t\t\t\tStage stage = (Stage) ((Node) ok).getScene().getWindow();\r\n\t\t\t\t\tcontroller.start(stage,AlbumsController.getCurrentUser());\r\n\t\t\t\t\tstage.setScene(scene);\r\n\t\t\t\t\tstage.centerOnScreen();\r\n\t\t\t\t\tstage.show();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception exception) {\r\n\t\t\t\t\texception.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"@FXML\n\tprivate void handleOk() {\n\t\tif (isInputValid()) {\n\t\t\titem.setDate(DateUtil.parse(dateField.getText()));\n\t\t\titem.setCategory(categoryField.getSelectionModel().getSelectedItem());\n\t\t\titem.setUse(useField.getText());\n\t\t\t\n\t\t\tString textBefore = amountField.getText();\n\t\t\tString textAfter = null;\n\t\t\tif(textBefore.contains(\",\")) {\n\t\t\t\ttextAfter = textBefore.replace(\",\", \".\");\n\t\t\t} else {\n\t\t\t\ttextAfter = textBefore;\n\t\t\t}\n\t\t\titem.setAmount(Double.parseDouble(textAfter));\n\t\t\titem.setDistributionKind(distributionKindField.getText());\n\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}",
"@FXML\n private void handleOk() {\n if (isInputValid()) {\n gem.setGemName(gemNameField.getText());\n gem.setGemValue(Integer.parseInt(gemValueField.getText()));\n gem.setDescription(gemDescripField.getText());\n\n okClicked = true;\n dialogStage.close();\n }\n }",
"public void cmdOk() {\n\n\t\tif (!m_actionscombo.isValueInModel()) {\n\t\t\tString msg = I18N.getLocalizedMessage(\"Invalid Action Name\");\n\t\t\tString title = I18N.getLocalizedMessage(\"Error\");\n\t\t\tJOptionPane.showMessageDialog(null, msg, title, JOptionPane.ERROR_MESSAGE);\n\t\t} else\n\t\t\tsuper.cmdOk();\n\t}",
"@Override\n public void onClick(View v) {\n if (v == okButton)\n dismiss();\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n return okClicked;\n }",
"public boolean isOkClicked() {\n return okClicked;\n }",
"protected void closeDialogOk() {\n dispose();\n }",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n video.setName(nameField.getText());\r\n video.setUrl(urlField.getText());\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOkActionPerformed\n \n }",
"protected Button getOkButton()\r\n\t{\r\n\t\treturn okButton;\r\n\t}",
"@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tupdateOkState();\r\n\t\t\t}",
"public void onClick(View v) {\r\n \t if (v == okButton)\r\n \t dismiss();\r\n \t }",
"void ShowOkDialog(String title, String message, OnClickListener listener);",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }",
"@Override\n public void onClick(View v) {\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_save)\n .setTitle(\"End Evidence Collection\")\n .setMessage(\"Are you sure you want to end collecting evidence?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n submit();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n this.dispose();\n }",
"private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n\n dispose();\n \n }",
"public void actionPerformed(ActionEvent oEvent) {\n if (oEvent.getActionCommand().equals(\"OK\")) {\n try {\n addFinishedData();\n } catch (ModelException e) {\n ErrorGUI oHandler = new ErrorGUI(this);\n oHandler.writeErrorMessage(e);\n return;\n }\n\n //Close this window\n this.setVisible(false);\n this.dispose();\n }\n else if (oEvent.getActionCommand().equals(\"Cancel\")) {\n //Close this window\n this.setVisible(false);\n this.dispose();\n } \n }",
"public void actionPerformed(ActionEvent e) {\n\t\toptionPane.setValue(okString);\n\t}",
"public void actionPerformed(ActionEvent e) {\n if(e.getSource() == confirmButton) {\n setVisible(false); // causes all the add text \n }\n else if(e.getSource() == exitButton) {\n System.exit(0);\n }\n }",
"private void okAction()\r\n\t{\r\n\t\tString navn = txfInput[0].getText().trim();\r\n\r\n\t\tint telefonNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttelefonNr = Integer.parseInt(txfInput[1].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString vej = txfInput[2].getText().trim();\r\n\r\n\t\tint nr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tnr = Integer.parseInt(txfInput[3].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString etage = txfInput[4].getText().trim();\r\n\r\n\t\tint postNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpostNr = Integer.parseInt(txfInput[5].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString by = txfInput[6].getText().trim();\r\n\t\tString land = txfInput[7].getText().trim();\r\n\r\n\t\tif (navn.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Navn er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (telefonNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Telefon nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (vej.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Vej er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (nr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (postNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Post Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (by.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"By er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (land.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Land er tom\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tFirma firma = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfirma = lvwFirmaer.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\r\n\t\tLedsager ledsager = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tledsager = lvwLedsagere.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif (deltager != null)\r\n\t\t{\r\n\t\t\tService.updateDeltager(deltager, firma, ledsager, navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t} else\r\n\t\t{\r\n\t\t\tService.createDeltager(navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t}\r\n\r\n\t\tthis.hide();\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n if (askUserYesNo(\"Do you really want to quit?\")) {\n if(askUserYesNo(\"Do you want to save game?\")){\n game.saveGame();\n }\n System.exit(0);\n }\n }",
"public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }",
"@Test\n\tpublic void testClickOnOkayButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getOkayButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputApplied();\n\t}",
"public void ok() {\n btOK().push();\n }",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n \temployee.setId(Integer.parseInt(idLabel.getText()));\r\n \temployee.setFirstName(firstNameField.getText());\r\n \temployee.setLastName(lastNameField.getText());\r\n \temployee.setIndustry(industryField.getText());\r\n \temployee.setWorkType(workTypeField.getText());\r\n \temployee.setAddress(addressField.getText());\r\n \t\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tsetResult(0x26, null);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this\");\n }",
"@FXML\n private void handleOKPressed() {\n\n if (Authenticator.validatePassword(accountId.getText(), password.getText())) {\n application.accountLogging(accountId.getText());\n confirmLogin = true;\n dialogStage.close();\n } else {\n errorMessage.setVisible(true);\n }\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"public static void okButtonAction(ActionContext actionContext){\n World world = World.getInstance();\n Thing form = actionContext.getObject(\"form\");\n Shell shell = actionContext.getObject(\"shell\");\n \n Thing dataObject = world.getThing(\"xworker.app.test.dataObject.thing.Sex\");\n form.doAction(\"setDataObject\", actionContext, \"dataObject\", dataObject);\n shell.pack();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickOK();\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}",
"@Override\n\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\tthis.finish();\n\t}",
"@Action\n public void acOk() {\n if (checkFormattedTextFieldNullNoSupposed(jftfCoord1, -1e5, 1e5)) {\n return;\n }\n if (checkFormattedTextFieldNullNoSupposed(jftfCoord2, -1e5, 1e5)) {\n return;\n }\n if (checkTextField(jtfName)) {\n return;\n }\n getTempObj().setType(jcbType.getSelectedIndex());\n getTempObj().setCoord1(getDoubleFromFormattedTextField(jftfCoord1));\n getTempObj().setCoord2(getDoubleFromFormattedTextField(jftfCoord2));\n getTempObj().setName(jtfName.getText());\n setChangeObj(true);\n }",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"public void itemOkay() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tint reply = JOptionPane.showConfirmDialog(null, \"Are you sure you want to leave us behind, my liege?\", \"Close?\", JOptionPane.YES_NO_OPTION);\n\t\tif (reply == JOptionPane.YES_OPTION)\n\t\t{\n\t\t System.exit(0);\n\t\t}\n\t}",
"@FXML\r\n\tprivate void handleOk() {\r\n\tif (isDateInputValid()) {\r\n\t\t\tLocalDate date = startdate.getValue();\r\n\t\t\tLocalDate findate = enddate.getValue();\r\n\t\t\tleavedata.setStartdate(date);\r\n\t\t\tleavedata.setEnddate(findate);\r\n\r\n\t\t\tEmployee employee = namefield.getSelectionModel().getSelectedItem();\r\n\t\t\tleavedata.setEmployee(employee);\r\n\t\t\t\r\n\t\t\tokClicked = true;\r\n\t\t\trosterService.addLeaveData(leavedata);\r\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\t\talert.setTitle(\"Information Dialog\");\r\n\t\t\talert.setHeaderText(null);\r\n\t\t\talert.setContentText(\"Update Succesfull\");\r\n\t\t\talert.showAndWait();\r\n\t\t\tdialogStage.close();\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n if (button.getText().toString().equals(\"OK\")) {\n this.dispose();\n }\n\n else {\n ip = null;\n this.dispose();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"protected void okPressed() {\r\n \t\tArrayList resources= new ArrayList(10);\r\n \t\tfindCheckedResources(resources, (IContainer)fTree.getInput());\r\n \t\tif (fWorkingSet == null)\r\n \t\t\tfWorkingSet= new WorkingSet(getText().getText(), resources.toArray());\r\n \t\telse if (fWorkingSet instanceof WorkingSet) {\r\n \t\t\t// Add not accessible resources\r\n \t\t\tIResource[] oldResources= fWorkingSet.getResources();\r\n \t\t\tfor (int i= 0; i < oldResources.length; i++)\r\n \t\t\t\tif (!oldResources[i].isAccessible())\r\n \t\t\t\t\tresources.add(oldResources[i]);\r\n \r\n \t\t\t((WorkingSet)fWorkingSet).setName(getText().getText());\r\n \t\t\t((WorkingSet)fWorkingSet).setResources(resources.toArray());\r\n \t\t}\r\n \t\tsuper.okPressed();\r\n \t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogExit();\r\n\t\t\t}",
"public void actionPerformed(ActionEvent event)\n\t\t\t\t{\n\t\t\t\t\tend = JOptionPane.showConfirmDialog(null, \"Are you sure you want to exit?\");\n\n\t\t\t\t\tif (end == JOptionPane.YES_OPTION) \n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.exit(0);\t\t\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void buttonOkJDialogActionPerformed(ActionEvent e) {\n IdFail.dispose();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(JOptionPane.showConfirmDialog(f4, \"Confrom if you want to exit\",\"Library Management System\",\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION)==JOptionPane.YES_NO_OPTION) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public boolean onOkClicked() {\n try {\n if (form.isValid()) {\n String userName = form.getFieldValue(SysUser.USER_NAME_PROPERTY);\n String userAccount = form.getFieldValue(SysUser.USER_ACCOUNT_PROPERTY);\n String passWord = form.getFieldValue(SysUser.USER_PASSWORD_PROPERTY);\n String cPassWord = form.getFieldValue(\"cPassWord\");\n if (!passWord.equals(cPassWord)) {\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setValue(\"\");\n form.getField(\"cPassWord\").setValue(\"\");\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setFocus(true);\n addModel(\"msg\", \"密码不一致\");\n } else if (SysUserDao.getInstance().canCreate(getSysUser().getObjectContext(), userAccount)) {\n if (SysUserDao.getInstance().createSysUser(getSysUser().getObjectContext(), userName, userAccount, passWord)) {\n setRedirect(UserListPage.class);\n } else {\n addModel(\"msg\", \"失败\");\n }\n } else {\n form.getField(SysUser.USER_ACCOUNT_PROPERTY).setFocus(true);\n addModel(\"msg\", \"账号已存在\");\n }\n }\n } catch (Exception e) {\n logger.error(e.getLocalizedMessage(), e);\n }\n return true;\n }",
"void onOKPressed(Non_Negative_Integer_Counts_Trial nnicTrial);",
"public void onOK() {\n\t\t\t\t\t\t\tlogout();\n\t\t\t\t\t\t}",
"private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n \n if(checkRange()) {\n //save changes to channel object before disposing GUI\n updateChannelObject();\n this.dispose();\n }\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tfinish();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tfinish();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\n\t\t\t\tfinish();\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic boolean performOk() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\t// Set the values from the fields\n\t\tpreferenceStore.setValue(DEFAULT_PASSWORD_LENGTH, spiLength.getSelection());\n\t\tpreferenceStore.setValue(USE_LOWERCASE_LETTERS, btnUseLowercase.getSelection());\n\t\tpreferenceStore.setValue(USE_UPPERCASE_LETTERS, btnUserUppercase.getSelection());\n\t\tpreferenceStore.setValue(USE_DIGITS, btnUseDigits.getSelection());\n\t\tpreferenceStore.setValue(USE_SYMBOLS, btnUseSymbols.getSelection());\n\t\tpreferenceStore.setValue(USE_EASY_TO_READ, btnUseEaseToRead.getSelection());\n\t\tpreferenceStore.setValue(USE_HEX_ONLY, btnUseHexOnly.getSelection());\n\n\t\t// Return true to allow dialog to close\n\t\treturn true;\n\t}"
] | [
"0.8307049",
"0.7862865",
"0.78229517",
"0.76363987",
"0.7626738",
"0.75984275",
"0.75922555",
"0.75595546",
"0.74235195",
"0.7413194",
"0.73691547",
"0.73557943",
"0.7340405",
"0.7309897",
"0.72704285",
"0.7262852",
"0.72272813",
"0.7214385",
"0.7211819",
"0.72077715",
"0.7176707",
"0.7151053",
"0.7103986",
"0.7044935",
"0.70387685",
"0.69951594",
"0.69778305",
"0.69778305",
"0.69778305",
"0.69778305",
"0.69778305",
"0.6966441",
"0.69464254",
"0.69331396",
"0.6917295",
"0.68863034",
"0.6886284",
"0.6883622",
"0.6883622",
"0.6883622",
"0.6883622",
"0.6853567",
"0.68430746",
"0.68430746",
"0.6808785",
"0.6798841",
"0.67973953",
"0.67896366",
"0.67827594",
"0.6757154",
"0.675151",
"0.67487454",
"0.67243916",
"0.6709412",
"0.67075974",
"0.66536033",
"0.66504294",
"0.66263676",
"0.66242266",
"0.65923727",
"0.6587622",
"0.65815747",
"0.656159",
"0.65594774",
"0.65450495",
"0.6539507",
"0.6527362",
"0.65203184",
"0.6492177",
"0.64872074",
"0.6483523",
"0.6477609",
"0.6462799",
"0.6460469",
"0.6458705",
"0.64519477",
"0.6437525",
"0.64186966",
"0.64097375",
"0.6404637",
"0.6401023",
"0.6387408",
"0.6378889",
"0.63780355",
"0.6374929",
"0.63680524",
"0.6364414",
"0.63619083",
"0.63614273",
"0.63614273",
"0.63614273",
"0.63543624",
"0.6351552",
"0.63416976",
"0.63364756",
"0.63360447",
"0.6331669",
"0.6329255",
"0.63198304",
"0.63184226",
"0.63111913"
] | 0.0 | -1 |
Called when the user clicks cancel. | @FXML
private void handleCancel() {
dialogStage.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onCancelClicked();",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}",
"public void onCancelClicked() {\n close();\n }",
"public void onCancel();",
"public void onCancelClick()\r\n {\r\n\r\n }",
"@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}",
"public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n public void onCancel() {\n }",
"@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}",
"@Override\n\tpublic void cancel() {\n\t\t\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\r\n\t\tpublic void onCancel() {\n\t\t}",
"public void onCancel() {\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"protected abstract void onCancel();",
"@Override\n public void cancel() {\n }",
"@Override\n\t\tpublic void onCancel() {\n \n \t}",
"void onCancel();",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"public void cancel()\n\t{\n\t}",
"@Override\n protected void onCancel() {\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n public void cancel() {\n }",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void onCancelButtonClick() {\n close();\n }",
"public void cancel() {\n\t}",
"private void onCancel()\n\t{\n\t\tdispose();\n\t}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"void onCancelButtonPressed();",
"public synchronized void cancel() {\n }",
"@Override\n public void onCancel() {\n\n }",
"@Override\n public void onCancel() {\n\n }",
"@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }",
"public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}",
"public void onCancel() {\n }",
"@Override\n public void OnCancelButtonPressed() {\n }",
"private void onCancel() {\n\t\tdispose();\n\t}",
"@Override\n public void OnCancelButtonPressed() {\n }",
"@Override\n public void onCancel() {\n }",
"protected abstract void handleCancel();",
"public void cancel() {\n btCancel().push();\n }",
"void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }",
"private void cancelButtonActionPerformed(ActionEvent e) {\n }",
"public void cancel(){\n cancelled = true;\n }",
"@Override\n public void onCancel() {\n\n }",
"@Override\n public void onCancel() {\n\n }",
"public void handleCancelButton(ActionEvent e) {\n\t\tclose();\n\t}",
"public void cancelButtonPressed(View view) {\r\n\t\tthis.finish();\r\n\t}",
"protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }",
"public void onCancel() {\n\n }",
"public void cancel() {\n\t\tcancel(false);\n\t}",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}",
"private void onCancel()\r\n {\n dispose();\r\n }",
"public void cancel() {\n\t\tcancelled = true;\n\t}",
"public void cancelButtonPressed(ActionEvent event) throws IOException {\n returnToMainScreen(event);\n }",
"@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"@Override\n public void onCancel(DialogInterface arg0) {\n\n }",
"@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}",
"@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}",
"public boolean cancel();",
"@Override\r\n public void onCancel(String callerTag) {\n }",
"@Override\n public void onCancel() {\n\n }",
"private void onCancel() {\n dispose();\r\n }",
"@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}",
"void onCancel(int key);",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}",
"private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}",
"private void cancel() {\n\t\tfinish();\n\t}",
"private void cancelPressed() {\n\t\tVideoPlayer.mediaPlayer.stop();\n\t\tl.clear();\n\t\tpaths.clear();\n\t\tsizes.clear();\n\t\tcancelPlayingList.setEnabled(false);\n\t\tplayTheList.setEnabled(true);\n\t}",
"@Override\n public void onCancel() {\n Log.w(tag, \"post cancel\" + this.getRequestURI());\n cancelmDialog();\n super.onCancel();\n }",
"public void onCancelPressed(View view) {\n finish();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"private void onCancel() {\n dispose();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}"
] | [
"0.84977645",
"0.8309903",
"0.83008",
"0.8264909",
"0.82641274",
"0.8224306",
"0.82070595",
"0.8203367",
"0.8200517",
"0.8195384",
"0.8187711",
"0.8187711",
"0.8187711",
"0.81828934",
"0.81808203",
"0.8174981",
"0.81650347",
"0.81616485",
"0.8157643",
"0.81485677",
"0.8146566",
"0.81161004",
"0.81161004",
"0.81161004",
"0.8108083",
"0.8067394",
"0.80612993",
"0.80408037",
"0.8035297",
"0.80351865",
"0.8013502",
"0.8013502",
"0.8013502",
"0.8013502",
"0.8013502",
"0.8013502",
"0.8006325",
"0.8002923",
"0.7994916",
"0.79908407",
"0.7982988",
"0.79748535",
"0.7969744",
"0.7969744",
"0.795961",
"0.79546446",
"0.7953607",
"0.7951947",
"0.79377717",
"0.79287094",
"0.7906051",
"0.79050213",
"0.78983974",
"0.78889066",
"0.78787166",
"0.7821753",
"0.78128904",
"0.7810976",
"0.78080964",
"0.7801723",
"0.778281",
"0.7781806",
"0.7779425",
"0.77689624",
"0.77689624",
"0.7764623",
"0.7761696",
"0.77582854",
"0.7745808",
"0.7745479",
"0.7736174",
"0.77351487",
"0.77322406",
"0.77242815",
"0.7718283",
"0.7703737",
"0.77007216",
"0.76969314",
"0.76855576",
"0.76830184",
"0.7682752",
"0.7675754",
"0.76717395",
"0.7658057",
"0.76553833",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.7648275",
"0.76380485"
] | 0.0 | -1 |
Validates the user input in the text fields. | private boolean isInputValid() {
String errorMessage = "";
if (errorMessage.length() == 0) {
return true;
} else {
// Show the error message.
Dialogs.create()
.title("Invalid Fields")
.masthead("Please correct invalid fields")
.message(errorMessage)
.showError();
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void validateInput()\r\n\t{\r\n\t\tString errorMessage = null;\r\n\t\tif ( validator != null ) {\r\n\t\t\terrorMessage = validator.isValid(text.getText());\r\n\t\t}\r\n\t\t// Bug 16256: important not to treat \"\" (blank error) the same as null\r\n\t\t// (no error)\r\n\t\tsetErrorMessage(errorMessage);\r\n\t}",
"private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }",
"private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }",
"private void InputTextValidator () {\n isNotNull = !txtCategoryNo.getText().equals(\"\") && !txtCategoryName.getText().equals(\"\");\n }",
"private boolean validateInputs() {\n return !proID.getText().isEmpty() || \n !proName.getText().isEmpty() ||\n !proPrice.getText().isEmpty();\n }",
"public boolean checkInput(){\n if(spelerIDField.getText().equals(\"\") || typeField.getText().equals(\"\") || codeField.getText().equals(\"\") || heeftBetaaldField.getText().equals(\"\")){\n return true;\n } else { return false; }\n }",
"private boolean validEditInput() throws SQLException {\n // Checks if any of the fields is empty\n if(teamNameEditField.getText().equals(\"\") || abbrevationEditField.getText().equals(\"\")\n || chooseCityBox.getValue() == null || chooseLeagueBox.getValue() == null\n || chooseLeagueTeamBox.getValue() == null) {\n displayMessage(messagePane,\"Please fill all the fields\",true);\n return false;\n }\n // Checks the abbrevation length\n else if(abbrevationEditField.getText().length() > 3)\n {\n displayMessage(messagePane,\"Abbrevations must be at most 3 characters\",true);\n return false;\n }\n // Checks team name length\n else if (teamNameEditField.getText().length() > 30){\n displayMessage(messagePane,\"Team Names must be smaller than 30 characters\",true);\n return false;\n }\n return true;\n }",
"private void verifyInput(){\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n\n mNameFieldsFilled = !TextUtils.isEmpty(firstName) && !TextUtils.isEmpty(lastName);\n\n }",
"public boolean validateInputFields(){\n if(titleText.getText().isEmpty() || descriptionText.getText().isEmpty()){\n showError(true, \"All fields are required. Please complete.\");\n return false;\n }\n if(locationCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a location.\");\n return false;\n }\n if(contactCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a contact.\");\n return false;\n }\n if(typeCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select the type.\");\n return false;\n }\n if(customerCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a customer.\");\n return false;\n }\n if(userCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a user.\");\n return false;\n }\n return true;\n }",
"private boolean checkInputFields(){\r\n\t\tString allertMsg = \"Invalid input: \" + System.getProperty(\"line.separator\");\r\n\t\t\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MCSTf.getText());\r\n\t\t\tif(testValue < 0 || testValue > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a MCS score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for relevance score weight and coherence score weight text fields\r\n\t\ttry{\r\n\t\t\tFloat relScoreW = Float.parseFloat(m_RelScoreTf.getText());\r\n\t\t\tFloat cohScoreW = Float.parseFloat(m_CohScoreTf.getText());\r\n\t\t\tif(relScoreW < 0 || relScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif(cohScoreW < 0 || cohScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif((relScoreW + cohScoreW) != 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a weight for relevance and coherence score.\" + System.getProperty(\"line.separator\");\r\n\t\t\tallertMsg += \"Sum of the weights for relevance and coherence score must be 1.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_KeyTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as multiplier for keyword concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for category confidence weight\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_CatConfTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for the weight of the category confidence of concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for weight of repeated concepts\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_RepeatTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for repeated concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for number of output categories\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MaxCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the maximum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MinCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the minimum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MinCatScoreTf.getText());\r\n\t\t\tif(testValue < 0.0f || testValue > 1.0f)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number between 0 and 1 as minimum category score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\tif(allertMsg.length() > 18){\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setContentText(allertMsg);\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean validateInputs() {\n if (Constants.NULL.equals(review)) {\n reviewET.setError(\"Must type a review!\");\n reviewET.requestFocus();\n return false;\n }\n if (Constants.NULL.equals(heading)) {\n headingET.setError(\"Heading cannot be empty\");\n headingET.requestFocus();\n return false;\n }\n return true;\n }",
"private void ValidateEditTextFields() {\n\tfor (int i = 0; i < etArray.length; i++) {\n\t if (etArray[i].getText().toString().trim().length() <= 0) {\n\t\tvalidCustomer = false;\n\t\tetArray[i].setError(\"Blank Field\");\n\t }\n\t}\n\n\tif (etPhoneNumber.getText().length() != 11) {\n\t validCustomer = false;\n\t etPhoneNumber.setError(\"Invalid Phone Number\");\n\t}\n\n\tif (etEmergencyNumber.getText().length() != 11) {\n\t validCustomer = false;\n\t etEmergencyNumber.setError(\"Invalid Phone Number\");\n\t}\n\n\tif (calendarDob == null) {\n\t validCustomer = false;\n\t}\n }",
"private boolean validateInputs() {\n if (KEY_EMPTY.equals(tenchuxe)) {\n etTenChuXe.setError(\"Vui lòng điền Tên chủ xe\");\n etTenChuXe.requestFocus();\n return false;\n\n }\n if (KEY_EMPTY.equals(sdt)) {\n etSDT.setError(\"Vui lòng điền Số điện thoại\");\n etSDT.requestFocus();\n return false;\n\n }\n if (KEY_EMPTY.equals(mota)) {\n edMoTa.setError(\"Vui lòng điền Mô tả xe\");\n edMoTa.requestFocus();\n return false;\n\n }\n if (KEY_EMPTY.equals(biensoxe)) {\n etBienSoXe.setError(\"Vui lòng điền Biển số xe\");\n etBienSoXe.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(passwordtx)) {\n etPasswordtx.setError(\"Vui lòng điền Mật khẩu\");\n etPasswordtx.requestFocus();\n return false;\n }\n\n if (KEY_EMPTY.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Vui lòng điền Xác nhận mật khẩu\");\n etConfirmPassword.requestFocus();\n return false;\n }\n if (!passwordtx.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Xác nhận mật khẩu sai !\");\n etConfirmPassword.requestFocus();\n return false;\n }\n\n return true;\n }",
"public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Email.setBackground(Color.white);\n\t\t\t\tif ((force(textField_Mtp.getText()) > 82)) {\n\t\t\t\t\ttextField_Mtp.setBackground(Color.white);\n\t\t\t\t\tactionGiveServeur();\n\n\t\t\t\t} else {\n\t\t\t\t\tshowMessageDialog(null, \"Votre mot de passe est trop faible\");\n\t\t\t\t\ttextField_Mtp.setText(\"Mot de passe trop simple : changer le \");\n\t\t\t\t\ttextField_Mtp.setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttextField_Email.setText(\"Email invalide\");\n\t\t\t\ttextField_Email.setBackground(Color.RED);\n\t\t\t\tshowMessageDialog(null, \"Email est invalide\");\n\t\t\t}\n\t\t} else {\n\n\t\t\tshowMessageDialog(null, \"Certain champs sont vide !\");\n\t\t}\n\t}",
"private boolean validateInput() {\n String username = editUsername.getText().toString().trim();\n String email = editEmail.getText().toString().trim();\n String password = editPassword.getText().toString().trim();\n String repeatPassword = editRepeatPassword.getText().toString().trim();\n if (!password.equals(repeatPassword)) {\n ShowMessageUtil.tosatSlow(\"Enter passwords differ\", EmailRegisterActivity.this);\n return false;\n } else if (username.equals(\"\") || email.equals(\"\") || password.equals(\"\")) {\n ShowMessageUtil.tosatSlow(\"every item can not be empty!\", EmailRegisterActivity.this);\n return false;\n }\n if (username.length()>10){\n ShowMessageUtil.tosatSlow(\"the character length of the username can't be over than 10\", EmailRegisterActivity.this);\n return false;\n }\n return true;\n }",
"private boolean isInputValid(){\n\t\tString errorMessage = \"\";\n\t\tif((nameField.getText() == null) || (nameField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid product name!\\n\";\n\t\t}\n\t\tif((amountAvailableField.getText() == null) || (amountAvailableField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount available value!\\n\";\n\t\t}\n\t\tif((amountSoldField.getText() == null) || (amountSoldField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount sold value!\\n\";\n\t\t}\n\t\tif((priceEachField.getText() == null) || (priceEachField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price for each!\\n\";\n\t\t}\n\t\tif((priceMakeField.getText() == null) || (priceMakeField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price to make the product!\\n\";\n\t\t}\n\t\tif(errorMessage.length() == 0){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean validateInput() {\n String departmentInput = mDepartmentField.getText().toString();\n String emailInput = mEmailField.getText().toString();\n String passwordInput = mPasswordField.getText().toString();\n\n if (departmentInput.isEmpty()) {\n mDepartmentField.setError(\"Please enter your department number\");\n mDepartmentField.requestFocus();\n return false;\n } else {\n mPasswordField.setError(null);\n }\n\n\n if (emailInput.isEmpty() || !Patterns.EMAIL_ADDRESS.matcher(emailInput).matches()) {\n mEmailField.setError(\"Please enter a valid email address\");\n mEmailField.requestFocus();\n return false;\n } else {\n mEmailField.setError(null);\n }\n\n if (passwordInput.isEmpty()) {\n mPasswordField.setError(\"Please enter your password\");\n mPasswordField.requestFocus();\n return false;\n } else {\n mPasswordField.setError(null);\n }\n\n return true;\n }",
"private boolean validateInputInfo(){\n\n //Get user input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Check to make sure no boxes were left empty\n if(firstName.isEmpty() || lastName.isEmpty() || email.isEmpty() || phone.isEmpty()){\n Toast.makeText(this, \"You must fill all fields before continuing!\", Toast.LENGTH_LONG).show();\n return false;\n }\n //Check to see if phone number is valid\n else if(!(phone.length() >= 10)){\n Toast.makeText(this, \"Make sure to input a valid 10 digit phone number!\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n return true;\n }",
"private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}",
"private boolean validateInputs() {\n\n boolean bValid = true;\n\n // Extract the inputs entered by the user and verify them\n String strEmail = m_tfUserEmailID.getText().toString();\n String strPassword = m_tfUserPassword.getText().toString();\n\n // Check if the e-mail format is right\n if (strEmail.isEmpty() || !android.util.Patterns.EMAIL_ADDRESS.matcher(strEmail).matches()) {\n m_tfUserEmailID.setError(\"Enter a valid email address\");\n bValid = false;\n } else {\n m_tfUserEmailID.setError(null);\n }\n\n // Check if the password is at least 6 characters long and within 12 characters\n if (strPassword.isEmpty() || strPassword.length() < 6 || strPassword.length() > 12) {\n m_tfUserPassword.setError(\"Must be between 6-12 alphanumeric characters\");\n bValid = false;\n } else {\n m_tfUserPassword.setError(null);\n }\n\n return bValid;\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n //for now just check they actually typed something\n if ((userField.getText() == null) || userField.getText().isEmpty()) {\n errorMessage += \"No username entered\\n\";\n }\n if ((pwField.getText() == null) || pwField.getText().isEmpty()) {\n errorMessage += \"No password entered\\n\";\n }\n\n //no error message means success / good input\n if (errorMessage.isEmpty()) {\n return true;\n } else {\n // Show the error message if bad data\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(_dialogStage);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n\n alert.showAndWait();\n\n return false;\n }\n }",
"private boolean validateInput() {\n\tboolean valid = false;\n\ttry {\n\t if (paymentText == null | paymentText.getValue() == \"\") {\n\t\tpaymentText.focus();\n\t\tthrow new NullPointerException(\"paymentText fehlt\");\n\t }\n\t if (paymentBetrag == null | paymentBetrag.getValue() == \"\") {\n\t\tpaymentBetrag.focus();\n\t\tthrow new NullPointerException(\"paymentBetrag fehlt\");\n\t }\n\t if (!paymentBetrag.isEmpty()) {\n\t\t@SuppressWarnings(\"unused\")\n\t\tdouble d = Double.parseDouble(paymentBetrag.getValue());\n\t }\n\t // seems that everything was OK\n\t valid = true;\n\t} catch (NullPointerException e) {\n\t System.out.println(\"PaymentWindow - \" + e);\n\t} catch (NumberFormatException e) {\n\t // entered value is no number\n\t paymentBetrag.focus();\n\t}\n\treturn valid;\n }",
"private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (idLabel.getText() == null || idLabel.getText().length() == 0) {\r\n errorMessage += \"No valid ID number!\\n\"; \r\n } else {\r\n // try to parse the postal code into an int.\r\n try {\r\n Integer.parseInt(idLabel.getText());\r\n } catch (NumberFormatException e) {\r\n errorMessage += \"No valid ID number (must be an integer)!\\n\"; \r\n }\r\n }\r\n \r\n if (firstNameField.getText() == null || firstNameField.getText().length() == 0) {\r\n errorMessage += \"No valid first name!\\n\"; \r\n }\r\n if (lastNameField.getText() == null || lastNameField.getText().length() == 0) {\r\n errorMessage += \"No valid last name!\\n\"; \r\n }\r\n if (industryField.getText() == null || industryField.getText().length() == 0) {\r\n errorMessage += \"No valid industry!\\n\"; \r\n }\r\n\r\n if (workTypeField.getText() == null || workTypeField.getText().length() == 0) {\r\n errorMessage += \"No valid work type!\\n\"; \r\n }\r\n\r\n if (addressField.getText() == null || addressField.getText().length() == 0) {\r\n errorMessage += \"No valid address!\\n\";\r\n }\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n // Show the error message.\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.initOwner(dialogStage);\r\n alert.setTitle(\"Invalid Fields\");\r\n alert.setHeaderText(\"Please correct invalid fields\");\r\n alert.setContentText(errorMessage);\r\n\r\n alert.showAndWait();\r\n\r\n return false;\r\n }\r\n }",
"private boolean validateInput(){\n boolean result = false;\n\n if(!us.setUsername(userField.getText())){\n errorLabel.setText(\"Nombre de usuario invalido\");\n } else if(!us.setPassword(passField.getText())){ //Valido 1 por uno los campos que ingreso el usuario\n errorLabel.setText(\"Contraseña invalida\");\n } else if(!us.setName(nameField.getText())){\n errorLabel.setText(\"Nombre Invalido\");\n } else if(!us.setSurname(surnameField.getText())){\n errorLabel.setText(\"Apellido Invalido\");\n } else if(!us.setDni(dniField.getText())){\n errorLabel.setText(\"Dni invalido\");\n } else if(!ageField.getText().matches(\"\\\\d{2}\")){\n errorLabel.setText(\"Edad invalida\");\n }\n else{\n us.setAge(Integer.parseInt(ageField.getText()));\n result = true;\n }\n return result;\n }",
"private boolean validateInputs() {\n question = txtQuestion.getText().trim();\n option1 = txtOption1.getText().trim();\n option2 = txtOption2.getText().trim();\n option3 = txtOption3.getText().trim();\n option4 = txtOption4.getText().trim();\n correctOption = jcCorrectAns.getSelectedItem().toString();\n //System.out.println(correctOption);\n if(question.isEmpty() || option1.isEmpty() || option2.isEmpty() || \n option3.isEmpty() || option4.isEmpty() || correctOption.isEmpty()){\n return false;\n }\n return true;\n }",
"protected boolean validateInputs() {\n if (KEY_EMPTY.equals(firstName)) {\n etFirstName.setError(\"First Name cannot be empty\");\n etFirstName.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(lastName)) {\n etLastName.setError(\"Last Name cannot be empty\");\n etLastName.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(username)) {\n etUsername.setError(\"Username cannot be empty\");\n etUsername.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(email)) {\n etEmail.setError(\"Email cannot be empty\");\n etEmail.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(password)) {\n etPassword.setError(\"Password cannot be empty\");\n etPassword.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Confirm Password cannot be empty\");\n etConfirmPassword.requestFocus();\n return false;\n }\n if (!password.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Password and Confirm Password does not match\");\n etConfirmPassword.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(major)) {\n etMajor.setError(\"Major cannot be empty\");\n etMajor.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(university)) {\n etUniversity.setError(\"university cannot be empty\");\n etUniversity.requestFocus();\n return false;\n }\n\n\n\n if(!isStudent && !isTutor){\n //Show a toast or some kind of error\n Toast toast = Toast.makeText(this, \"message\", Toast.LENGTH_SHORT);\n toast.setText(\"please check the account type\");\n toast.setGravity(Gravity.CENTER, 0, 0);\n //other setters\n toast.show();\n return false;\n }\n\n\n return true;\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ID.getText() == null || ID.getText().length() == 0) {\n errorMessage += \"No valid id!\\n\";\n System.out.println(\"fl\");\n }\n if (password.getText() == null || password.getText().length() == 0) {\n errorMessage += \"No valid password!\\n\"; \n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Dialogs.create()\n .title(\"Invalid Fields\")\n .masthead(\"Please correct invalid fields\")\n .message(errorMessage)\n .showError();\n return false;\n }\n }",
"private boolean validInput() throws SQLException {\n if (userNameField.getText().length() == 0) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (userNameField.getText().length() == 1) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (!isAllLetters(userNameField.getText())) {\n displayMessage(messagePane, \"Names must be all letters\", true);\n return false;\n }\n else if (!(userNameField.getText().contains(\" \")) || userNameField.getText().charAt(0) == ' ') {\n displayMessage(messagePane, \"Name must consist of two words\", true);\n return false;\n }\n else if (!(emailField.getText().contains(\"@\"))) {\n displayMessage(messagePane, \"Invalid email\", true);\n return false;\n }\n else if (DatabaseManager.isEmailTaken(user.getDatabaseConnection(), emailField.getText()) && !(emailField.getText().equals(user.getUser().getEmail()))){\n displayMessage(messagePane, \"Email is used before\", true);\n return false;\n }\n else {\n displayMessage(messagePane,\"Changes are saved\", false);\n return true;\n }\n }",
"private boolean checkInputValidity() {\n // if any of the input field is empty, return false directly\n if (name.getText().equals(\"\") || id.getText().equals(\"\") || fiber.getText().equals(\"\")\n || protein.getText().equals(\"\") || fat.getText().equals(\"\") || calories.getText().equals(\"\")\n || carbohydrate.getText().equals(\"\")) {\n String message = \"Make sure enter the value of all nutrient components, please try again!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();// close the add food stage\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any nutrition info input is not a number value or is negative, return false directly\n try {\n Double fibervalue = null;\n Double proteinvalue = null;\n Double fatvalue = null;\n Double caloriesvalue = null;\n Double carbohydratevalue = null;\n // trim the input to exact numeric value\n fibervalue = Double.valueOf(fiber.getText().trim());\n proteinvalue = Double.valueOf(protein.getText().trim());\n fatvalue = Double.valueOf(fat.getText().trim());\n caloriesvalue = Double.valueOf(calories.getText().trim());\n carbohydratevalue = Double.valueOf(carbohydrate.getText().trim());\n // nutrition input is suppose to be positive numbers\n // if any of the numbers is negative, return false diretcly\n if (fibervalue < 0.0 || proteinvalue < 0.0 || fatvalue < 0.0 || caloriesvalue < 0.0\n || carbohydratevalue < 0.0) {\n String message = \"The input of the nutrient can not be negative, please try again!\";\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any input of the nutrition info is not a double value, catch the exception and return\n // false\n } catch (Exception e) {\n String message =\n \"At least one nutrition value input is invalid, please type a number in nutrient textbox!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close(); // close the addfood stage\n // wait for response from ok button\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n return true;\n }",
"private boolean validCreateInput() throws SQLException {\n // Checks if any of the fields is empty\n if(teamNameCreateField.getText().equals(\"\") || abbrevationCreateField.getText().equals(\"\")\n || chooseCityBoxCreate.getValue() == null || chooseLeagueBoxCreate.getValue() == null\n || chooseAgeGroupCreate.getValue() == null || chooseLeagueTeamBoxCreate.getValue() == null){\n displayMessage(messagePane,\"Please fill all the fields\",true);\n return false;\n }\n // Checks the abbrevation length\n else if(abbrevationCreateField.getText().length() > 3)\n {\n displayMessage(messagePane,\"Abbrevations must be at most 3 characters\",true);\n return false;\n }\n // Checks team name length\n else if (teamNameCreateField.getText().length() > 30){\n displayMessage(messagePane,\"Team Names must be smaller than 30 characters\",true);\n return false;\n }\n return true;\n }",
"private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }",
"public boolean checkEntryInputs() {\n\t\tboolean isValid = true;\n\t\tif(sampleNumberTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(materialDescriptionTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(Double.valueOf(bacteroidesConcentrationTF.getText())==null) {\n\t\t\tisValid = false;\n\t\t}\n\t\treturn isValid;\n\t}",
"public void textFieldValidator(KeyEvent event) {\n TextFieldLimited source =(TextFieldLimited) event.getSource();\n if (source.equals(partId)) {\n isIntegerValid(event);\n } else if (source.equals(maximumInventory)) {\n isIntegerValid(event);\n } else if (source.equals(partName)) {\n isCSVTextValid(event);\n } else if (source.equals(inventoryCount)) {\n isIntegerValid(event);\n } else if (source.equals(minimumInventory)) {\n isIntegerValid(event);\n } else if (source.equals(variableTextField)) {\n if (inHouse.isSelected()) {\n isIntegerValid(event);;\n } else {\n isCSVTextValid(event);\n }\n } else if (source.equals(partPrice)) {\n isDoubleValid(event);\n } else return;\n }",
"private boolean validateUserInputs() {\n ArrayList<String> errors = new ArrayList();\n \n if (this.view.getContent().equals(\"\")) {\n errors.add(\"\\t - Enter a comment\");\n }\n \n if (errors.size() > 0) {\n String errorMsg = \"Unable to save new Asset.\\nDetails:\";\n for (String error : errors) {\n errorMsg += \"\\n\" + error;\n }\n JOptionPane.showMessageDialog(this.view, errorMsg, \"Unable to Save\", JOptionPane.INFORMATION_MESSAGE);\n return false;\n }\n return true;\n }",
"private void checkEditTexts() {\n\n if (!validateEmail(Objects.requireNonNull(edInputEmail.getText()).toString().trim())) {\n Toasty.error(Objects.requireNonNull(getActivity()), getString(R.string.error_invalid_email), Toasty.LENGTH_SHORT, true).show();\n } else {\n\n if (Objects.requireNonNull(edInputPass.getText()).toString().trim().equalsIgnoreCase(\"\")) {\n\n Toasty.error(Objects.requireNonNull(getActivity()), getString(R.string.error_empty_password), Toasty.LENGTH_SHORT, true).show();\n\n } else {\n sendLoginRequest(edInputEmail.getText().toString(), edInputPass.getText().toString());\n CustomProgressBar.showProgress(loadingLayout);\n }\n }\n }",
"private boolean checkUserInputValidity() {\n // Extract Student information from the edit text views\n String studentName = mStudentNameEditText.getText().toString().trim();\n String studentGradeString = mStudentGradeEditText.getText().toString();\n\n // Check for valid student name\n if (TextUtils.isEmpty(studentName)) {\n Toast.makeText(this, R.string.please_enter_valid_name, Toast.LENGTH_SHORT).show();\n mStudentNameEditText.requestFocus();\n return false;\n }\n\n // Check for valid student birthdate\n if (mStudentBirthdate == 0) {\n Toast.makeText(this, R.string.please_enter_valid_birthdate,\n Toast.LENGTH_SHORT).show();\n return false;\n }\n if (DateUtils.isChosenDateAfterToday(mStudentBirthdate)) {\n Toast.makeText(this, R.string.please_enter_valid_birthdate,\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n // Check for valid student grade\n if (TextUtils.isEmpty(studentGradeString)) {\n Toast.makeText(this, R.string.please_enter_valid_grade, Toast.LENGTH_SHORT).show();\n mStudentGradeEditText.requestFocus();\n return false;\n } else {\n int studentGrade = Integer.parseInt(studentGradeString);\n if (studentGrade <= 0) {\n Toast.makeText(this, R.string.please_enter_valid_grade, Toast.LENGTH_SHORT).show();\n mStudentGradeEditText.requestFocus();\n return false;\n }\n }\n\n return true;\n }",
"private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (nameField.getText() == null || nameField.getText().length() == 0) {\r\n errorMessage += \"请输入直播名!\\n\";\r\n }\r\n if (urlField.getText() == null || urlField.getText().length() == 0) {\r\n errorMessage += \"请输入直播流!\\n\";\r\n }\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"输入错误\");\r\n alert.setContentText(errorMessage);\r\n return false;\r\n }\r\n }",
"private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif (dateField.getText() == null || dateField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiges Datum!\\n\";\n\t\t} else {\n\t\t\tif (!DateUtil.validDate(dateField.getText())) {\n\t\t\t\terrorMessage += \"Kein gültiges Datum. Benutze das dd.mm.yyy Format!\\n\";\n\t\t\t}\n\t\t}\n\t\tString categoryFieldSelection = categoryField.getSelectionModel().getSelectedItem();\n\t\tif (categoryFieldSelection.isEmpty() || categoryFieldSelection.length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Kategorie!\\n\";\n\t\t}\n\t\tif (useField.getText() == null || useField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Verwendungszweck!\\n\";\n\t\t}\n\t\tif (amountField.getText() == null || amountField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Betrag!\\n\";\n\t\t} \n\t\t/**else {\n\t\t\t// try to parse the amount into a double\n\t\t\ttry {\n\t\t\t\tDouble.parseDouble(amountField.getText());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\terrorMessage += \"Kein zulässiger Betrag! (Nur Dezimalzahlen erlaubt)\\n\";\n\t\t\t}\n\t\t}**/\n\t\tif (distributionKindField.getText() == null || distributionKindField.getText().length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Ausgabeart!\\n\";\n\t\t}\n\n\t\tif (errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// Show the error message.\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Ungültige Eingaben\");\n\t\t\talert.setHeaderText(\"Bitte korrigieren Sie die Fehler in den Feldern.\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\talert.showAndWait();\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\t@FXML\n\tpublic boolean validate() {\n\t\t\n\t\tboolean isDataEntered = true;\n\t\tLocalDate startDate = Database.getInstance().getStartingDate();\n\t\tSystem.out.println();\n\t\tif(amountField.getText() == null || amountField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the amount field empty.\");\n\t\telse if(!(Validation.validateAmount(amountField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please enter a valid amount\");\n\t\telse if(creditTextField.getText() == null || creditTextField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the credit text field empty.\");\n\t\telse if(!(Validation.validateChars(creditTextField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please only enter valid characters\");\n\t\telse if(dateField.getValue() == null) {\n\t\t\tisDataEntered = setErrorTxt(\"You left the date field empty.\");\t\t\t\n\t\t}\n\t\telse if(dateField.getValue().isBefore(startDate))\n\t\t\tisDataEntered = setErrorTxt(\"Sorry, the date you entered is before the starting date.\");\n\t\treturn isDataEntered;\n\t}",
"public boolean isInputValid()\n {\n String[] values = getFieldValues();\n if(values[0].length() > 0 || values[1].length() > 0 || values[2].length() > 0)\n return true;\n else\n return false;\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (commentField.getText() == null || commentField.getText().length() == 0) {\n errorMessage += \"Не введен комментарий!\\n\";\n }\n if (timeField.getText() == null || timeField.getText().length() == 0) {\n errorMessage += \"Не введено время выполнения задачи!\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не введены все данные!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Пожалуйста, введите все данные!\");\n alert.showAndWait();\n return false;\n }\n }",
"protected void validate() {\n\t\tString quantity=editText.getText().toString().trim();\n\t\tif(quantity.length()==0){\n\t\t\tAlertUtils.showToast(mContext, \"Enter quantity\");\n\t\t\treturn;\n\t\t}else if(!isValidNumber(quantity)){\n\t\t\tAlertUtils.showToast(mContext, \"Enter valid quantity\");\n\t\t\treturn;\n\t\t}\n//\t\tif(((HomeActivity)mContext).checkInternet())\n//\t\t\tdialogCallback.setQuantity(item);\n\t}",
"boolean validateInput() {\n if (etFullname.getText().toString().equals(\"\")) {\n etFullname.setError(\"Please Enter Full Name\");\n return false;\n }\n if (etId.getText().toString().equals(\"\")) {\n etId.setError(\"Please Enter ID\");\n return false;\n }\n if (etEmail.getText().toString().equals(\"\")) {\n etEmail.setError(\"Please Enter Email\");\n return false;\n }\n if (etHall.getText().toString().equals(\"\")) {\n etHall.setError(\"Please Enter Hall Name\");\n return false;\n }\n if (etAge.getText().toString().equals(\"\")) {\n etAge.setError(\"Please Enter Age\");\n return false;\n }\n if (etPhone.getText().toString().equals(\"\")) {\n etPhone.setError(\"Please Enter Contact Number\");\n return false;\n }\n if (etPassword.getText().toString().equals(\"\")) {\n etPassword.setError(\"Please Enter Password\");\n return false;\n }\n\n // checking the proper email format\n if (!isEmailValid(etEmail.getText().toString())) {\n etEmail.setError(\"Please Enter Valid Email\");\n return false;\n }\n\n // checking minimum password Length\n if (etPassword.getText().length() < MIN_PASSWORD_LENGTH) {\n etPassword.setError(\"Password Length must be more than \" + MIN_PASSWORD_LENGTH + \"characters\");\n return false;\n }\n\n\n return true;\n }",
"public void validateInputs(ActionEvent actionEvent) {\n //retrieve the inputs\n try {\n productNameInput = productNameField.getText();\n if (productNameInput.equals(\"\")) {\n throw new myExceptions(\"Product Name: Enter a string.\\n\");\n }\n }\n catch (myExceptions ex) {\n errorMessageContainer += ex.getMessage();\n isInputValid = false;\n }\n\n try {\n productPriceInput = Double.parseDouble(productPriceField.getText());\n if (productPriceField.getText().equals(\"\")) {\n throw new myExceptions(\"Price field: enter a value..\\n\");\n }\n if (productPriceInput <= 0) {\n throw new myExceptions(\"Price field: enter a value greater than 0.\\n\");\n }\n }\n catch (myExceptions priceValidation) {\n errorMessageContainer += priceValidation.getMessage();\n isInputValid = false;\n\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Price field: enter a positive number. Your input can contain decimals. \\n\";\n isInputValid = false;\n\n }\n\n try {\n maxInventoryLevelInput = Integer.parseInt(maxInventoryField.getText());\n minInventoryLevelInput = Integer.parseInt(minInventoryField.getText());\n if (maxInventoryField.getText().equals(\"\") || minInventoryField.getText().equals(\"\") || maxInventoryLevelInput <= 0 || minInventoryLevelInput <= 0) {\n throw new myExceptions(\"Min and Max fields: enter values for the minimum and maximum inventory fields.\\n\");\n }\n if (maxInventoryLevelInput < minInventoryLevelInput) {\n throw new myExceptions(\"Max inventory MUST be larger than the minimum inventory.\\n\");\n }\n\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Min and Max fields: enter a positive whole number.\\n\";\n isInputValid = false;\n\n }\n catch (myExceptions minMaxValidation) {\n errorMessageContainer += minMaxValidation.getMessage();\n isInputValid = false;\n\n }\n\n try {\n productInventoryLevel = Integer.parseInt(inventoryLevelField.getText());\n if (inventoryLevelField.getText().equals(\"\")) {\n throw new myExceptions(\"Inventory level: enter a number greater than 0.\\n\");\n }\n if (productInventoryLevel <= 0) {\n throw new myExceptions(\"Inventory level: enter a number greater than 0.\\n\");\n }\n if (productInventoryLevel > maxInventoryLevelInput || productInventoryLevel < minInventoryLevelInput) {\n throw new myExceptions(\"Inventory level: value must be between max and min.\\n\");\n }\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Inventory level: enter a positive whole number.\\n\";\n isInputValid = false;\n\n }\n catch (myExceptions stockValidation) {\n errorMessageContainer += stockValidation.getMessage();\n isInputValid = false;\n\n }\n\n errorMessageLabel.setText(errorMessageContainer);\n errorMessageContainer = \"\";\n\n }",
"public boolean validateForm() {\r\n\t\tint validNum;\r\n\t\tdouble validDouble;\r\n\t\tString lengthVal = lengthInput.getText();\r\n\t\tString widthVal = widthInput.getText();\r\n\t\tString minDurationVal = minDurationInput.getText();\r\n\t\tString maxDurationVal = maxDurationInput.getText();\r\n\t\tString evPercentVal = evPercentInput.getText();\r\n\t\tString disabilityPercentVal = disabilityPercentInput.getText();\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.1 - Ensure all inputs are numbers\r\n\t\t */\r\n\t\t\r\n\t\t// Try to parse length as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(lengthVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Length must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(widthVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Width must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(minDurationVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Min Duration must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(maxDurationVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Max Duration must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidDouble = Double.parseDouble(evPercentVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"EV % must be a number\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidDouble = Double.parseDouble(disabilityPercentVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Disability % must be a number\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.2 - Ensure all needed inputs are non-zero\r\n\t\t */\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(lengthVal);\r\n\t\tif (validNum <= 0) {\r\n\t\t\tsetErrorMessage(\"Length must be greater than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(widthVal);\r\n\t\tif (validNum <= 0) {\r\n\t\t\tsetErrorMessage(\"Width must be greater than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(minDurationVal);\r\n\t\tif (validNum < 10) {\r\n\t\t\tsetErrorMessage(\"Min Duration must be at least 10\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(maxDurationVal);\r\n\t\tif (validNum < 10) {\r\n\t\t\tsetErrorMessage(\"Max Duration must be at least 10\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidDouble = Double.parseDouble(evPercentVal);\r\n\t\tif (validDouble < 0) {\r\n\t\t\tsetErrorMessage(\"EV % can't be less than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidDouble = Double.parseDouble(disabilityPercentVal);\r\n\t\tif (validDouble < 0) {\r\n\t\t\tsetErrorMessage(\"Disability % can't be less than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.3 - Ensure Max Duration can't be smaller than Min Duration\r\n\t\t */\r\n\t\t\r\n\t\tif (Integer.parseInt(minDurationVal) > Integer.parseInt(maxDurationVal)) {\r\n\t\t\tsetErrorMessage(\"Max Duration can't be less than Min Duration\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.4 - Ensure values aren't too large for the system to handle\r\n\t\t */\r\n\t\t\r\n\t\tif (Integer.parseInt(lengthVal) > 15) {\r\n\t\t\tsetErrorMessage(\"Carpark length can't be greater than 15 spaces\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (Integer.parseInt(widthVal) > 25) {\r\n\t\t\tsetErrorMessage(\"Carpark width can't be greater than 25 spaces\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (Integer.parseInt(minDurationVal) > 150) {\r\n\t\t\tsetErrorMessage(\"Min Duration can't be greater than 150\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Integer.parseInt(maxDurationVal) > 300) {\r\n\t\t\tsetErrorMessage(\"Max Duration can't be greater than 300\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Double.parseDouble(evPercentVal) > 100) {\r\n\t\t\tsetErrorMessage(\"EV % can't be greater than 100\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Double.parseDouble(disabilityPercentVal) > 100) {\r\n\t\t\tsetErrorMessage(\"Disability % can't be greater than 100\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Integer.parseInt(minDurationVal) > 150) {\r\n\t\t\tsetErrorMessage(\"Min Duration can't be greater than 150\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"private boolean validateInput(EditText titleInput, EditText descriptionInput, EditText priceInput) {\n String title = titleInput.getText().toString();\n String description = descriptionInput.getText().toString();\n int price = (TextUtils.isEmpty(priceInput.getText().toString()))? -1 : Integer.parseInt(priceInput.getText().toString());\n if (TextUtils.isEmpty(title) || TextUtils.isEmpty(description) || price < 0) {\n Toast.makeText(this.getActivity(),\n \"Please, fill in all fields.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n if (photoURI == null) {\n Toast.makeText(this.getActivity(),\n \"Please, add a picture to this item before submitting it.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }",
"public boolean isInputValid() {\n if ( !noFieldsEmpty() ) {\n return false;\n }\n\n String rawPhone = phoneField.getText().replaceAll(\"-\",\"\");\n if (!rawPhone.matches(\"[0-9]*\")) {\n errorLabel.setText(rb.getString(\"phoneIncorrect\"));\n return false;\n }\n\n errorLabel.setText(\"\");\n return true;\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ServiceName.getText() == null || ServiceName.getText().length() == 0) {\n errorMessage += \"No valid name!\\n\";\n }\n if (Serviceemail.getText() == null || Serviceemail.getText().length() == 0) {\n Pattern p = Pattern.compile(\"[_A-Za-z0-9][A-Za-z0-9._]*?@[_A-Za-z0-9]+([.][_A-Za-z]+)+\");\n Matcher m = p.matcher(Serviceemail.getText());\n if (m.find() && m.group().equals(Serviceemail.getText())) {\n errorMessage += \"No valid Mail Forment!\\n\";\n }\n }\n if (servicedescrip.getText() == null || servicedescrip.getText().length() == 0) {\n errorMessage += \"No valid description !\\n\";\n }\n if (f == null && s.getImage() == null) {\n errorMessage += \"No valid photo ( please upload a photo !)\\n\";\n }\n if (Serviceprice.getText() == null || Serviceprice.getText().length() == 0) {\n errorMessage += \"No valid prix !\\n\";\n } else {\n // try to parse the postal code into an int.\n try {\n Float.parseFloat(Serviceprice.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid prix (must be a Float)!\\n\";\n }\n }\n if ( !Weekly.isSelected() && !Daily.isSelected() && !Monthly.isSelected()) {\n errorMessage += \"No valid Etat ( select an item !)\\n\";\n }\n if (Servicesatet.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid etat ( select an item !)\\n\";\n }\n if (ServiceCity.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid City ( select an item !)\\n\";\n }\n if (servicetype.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid Type ( select an item !)\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n alert.showAndWait();\n return false;\n }\n }",
"private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }",
"private boolean checkForInvalidInput(){\n String email = emailTextView.getText().toString();\n String password = passwordTextView.getText().toString();\n String name = usernameTextView.getText().toString();\n\n\n if(email.isEmpty() || password.isEmpty() || name.isEmpty()){\n Toast.makeText(getApplicationContext(),\"Please fill in all fields\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n\n if(!email.contains(\"@\")){\n Toast.makeText(getApplicationContext(),\"Please enter a valid email\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n if(!isStudent && !isTeacher){\n Toast.makeText(getApplicationContext(),\"Please select Student or Teacher\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n\n\n\n\n // add more checks?\n\n return true;\n\n }",
"private boolean checkInputValidation(){\n if(facility_EDT_value.getText().toString().trim().isEmpty()){\n Toast.makeText(getContext(), \"Please enter search value!\", Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }",
"private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif(userNameField.getText() == null || userNameField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a felhasználó név mező!\\n\";\n\t\t}\n\t\tif(passwordField.getText() == null || passwordField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a jelszó mező!\";\n\t\t}\n\t\t\n\t\tif(errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// show the error message\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Érvénytelen mezők\");\n\t\t\talert.setHeaderText(\"Kérlek töltsd ki az összes mezőt!\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\t\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\t\tprotected boolean isTextValid()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (getField().getText().isEmpty())\n\t\t\t\t\tthrow new AppException(ErrorId.NO_FILTER);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (AppException e)\n\t\t\t{\n\t\t\t\tGuiUtils.setFocus(getField());\n\t\t\t\tJOptionPane.showMessageDialog(this, e, App.SHORT_NAME, JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"private boolean validateInput() {\n boolean isValid = true;\n Alert errMsg = Util.getAlert(Alert.AlertType.ERROR);\n if (connectionsCB.getEditor().getText() == null || !Util.isValidAddress(connectionsCB.getEditor().getText())) {\n errMsg.setContentText(\"Invalid TRex Host Name or IP address\");\n isValid = false;\n } else if (!Util.isValidPort(rpcPort.getText())) {\n errMsg.setContentText(\"Invalid TRex Sync Port Number(\" + rpcPort.getText() + \")\");\n isValid = false;\n } else if (!Util.isValidPort(asyncPort.getText())) {\n errMsg.setContentText(\"Invalid Async Port Number(\" + asyncPort.getText() + \")\");\n isValid = false;\n } else if (Util.isNullOrEmpty(nameTF.getText())) {\n errMsg.setContentText(\"Name should not be empty\");\n isValid = false;\n }\n\n if (!isValid) {\n errMsg.show();\n }\n return isValid;\n }",
"private boolean validInput()\n {\n boolean completeForm = true; //all textfields have been filled in\n boolean noExceptions = true; //all textfields (except name) have int\n boolean selectionMade = true; //user has selected a ship type\n\n if (shipNameInput.getText()==\"Ship name\" ||\n xcoordInput.getText()==\"Starting x coordinate\" ||\n ycoordInput.getText()==\"Starting y coordinate\")\n {\n System.out.println(\"ERROR: Please fill in all text fields before \"+\n \"adding your ship.\");\n completeForm = false;\n }\n try\n {\n xcoord = Integer.parseInt(xcoordInput.getText());\n ycoord = Integer.parseInt(ycoordInput.getText());\n }\n catch (NumberFormatException except)\n {\n System.out.println(\"ERROR: Ship coordinates and speed need to be \"+\n \"entered as integers.\");\n noExceptions = false;\n }\n if (directionInput.getResponse() == \"none\")\n {\n System.out.println(\"ERROR: Please choose a direction.\");\n selectionMade = false;\n }\n else\n {\n String d = directionInput.getResponse();\n if (d == \"N\") direction = 0;\n else if (d == \"NE\") direction = Ship.NE;\n else if (d == \"E\") direction = Ship.E;\n else if (d == \"SE\") direction = Ship.SE;\n else if (d == \"S\") direction = Ship.S;\n else if (d == \"SW\") direction = Ship.SW;\n else if (d == \"W\") direction = Ship.W;\n else if (d == \"NW\") direction = Ship.NW;\n }\n shipName = shipNameInput.getText();\n speed = speedSlider.getValue();\n\n return (completeForm && noExceptions && selectionMade);\n }",
"private boolean validFormInputs() {\n String email = etEmail.getText().toString();\n String password = etPassword.getText().toString();\n String institutionName = etInstitutionName.getText().toString();\n String addressFirst = etInstitutionAddressFirst.getText().toString();\n String addressSecond = etInstitutionAddressSecond.getText().toString();\n String CIF = etCIF.getText().toString();\n\n String[] allInputs = {email, password, institutionName, addressFirst, addressSecond, CIF};\n for (String currentInput : allInputs) {\n if (currentInput.matches(\"/s+\")) // Regex pt cazul cand stringul e gol sau contine doar spatii\n return false; // formular invalid - toate inputurile trebuie sa fie completate\n }\n String[] stringsAddressFirst = addressFirst.split(\",\");\n String[] stringsAddressSecond = addressSecond.split(\",\");\n if (stringsAddressFirst.length != 4 ||\n stringsAddressSecond.length != 3)\n return false;\n\n //<editor-fold desc=\"Checking if NUMBER and APARTMENT are numbers\">\n try {\n Integer.parseInt(stringsAddressSecond[0]);\n Integer.parseInt(stringsAddressSecond[2]);\n return true; // parsed successfully without throwing any parsing exception from string to int\n }catch (Exception e) {\n Log.v(LOG_TAG, \"Error on converting input to number : \" + e);\n return false; // parsed unsuccessfully - given strings can not be converted to int\n }\n //</editor-fold>\n }",
"public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}",
"public boolean inputIsValid() {\n return nameIsValid() &&\n descriptionIsValid() &&\n priceIsValid() &&\n streetIsValid() &&\n zipcodeIsValid() &&\n cityIsValid() &&\n imageIsSelected();\n }",
"private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }",
"public boolean validation(){\n String Venuename= venuename.getText().toString();\n String Address= address.getText().toString();\n String Details= details.getText().toString();\n String Venueimage= venueimage.getText().toString();\n if(Venuename.isEmpty()){\n venuename.setError(\"Please enter the item name\");\n venuename.requestFocus();\n return false;\n }\n if(Address.isEmpty()){\n address.setError(\"Please enter the item name\");\n address.requestFocus();\n return false;\n }\n if(Details.isEmpty()){\n details.setError(\"Please enter the item name\");\n details.requestFocus();\n return false;\n }\n if(Venueimage.isEmpty()){\n venueimage.setError(\"Please Select the image first\");\n return false;\n }\n\n\n return true;\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (gemNameField.getText() == null || gemNameField.getText().length() == 0) {\n errorMessage += \"No valid gem name!\\n\";\n }\n if (gemValueField.getText() == null || gemValueField.getText().length() == 0) {\n errorMessage += \"No valid gem value!\\n\";\n } else {\n // try to parse the gem value into an int.\n try {\n Integer.parseInt(gemValueField.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid gem value (must be an integer)!\\n\";\n }\n }\n if (gemDescripField.getText() == null || gemDescripField.getText().length() == 0) {\n errorMessage += \"No valid gem description!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(dialogStage);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n\n alert.showAndWait();\n\n return false;\n }\n }",
"private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic boolean verifyText(JTextField arg0, String arg1) {\n\t\treturn true;\n\t}",
"private boolean isInputValid() {\n boolean isValidInput = true;\n\n if (TextUtils.isEmpty(studentID)) {\n Validator.setEmptyError(studentIDLayout);\n isValidInput = false;\n } else {\n studentIDLayout.setError(null);\n studentIDLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(studentName)) {\n Validator.setEmptyError(studentNameLayout);\n isValidInput = false;\n } else {\n studentNameLayout.setError(null);\n studentNameLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(fatherName)) {\n Validator.setEmptyError(fatherNameLayout);\n isValidInput = false;\n } else {\n fatherNameLayout.setError(null);\n fatherNameLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(gender)) {\n genderErrorText.setVisibility(View.VISIBLE);\n isValidInput = false;\n } else {\n genderErrorText.setVisibility(View.GONE);\n }\n\n if (TextUtils.isEmpty(phone)) {\n Validator.setEmptyError(phoneLayout);\n isValidInput = false;\n } else if (!Validator.isValidMobile(phone)) {\n isValidInput = false;\n phoneLayout.setError(\"This phone is not valid\");\n } else {\n phoneLayout.setError(null);\n phoneLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(email)) {\n Validator.setEmptyError(emailLayout);\n isValidInput = false;\n } else if (!Validator.isValidEmail(email)) {\n isValidInput = false;\n emailLayout.setError(\"This email is not valid\");\n } else {\n emailLayout.setError(null);\n emailLayout.setErrorEnabled(false);\n }\n\n return isValidInput;\n }",
"public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }",
"private boolean validateFields() {\r\n\t\tif (txUsuario.getText().equals(\"\") || txPassword.getText().equals(\"\")\r\n\t\t\t\t|| checkAdmin.isIndeterminate()|| checkTPV.isIndeterminate())\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void validate() {\n\t\tFormFieldValidator.validateStudent(this, student);\n\t\tFormFieldValidator.validateCourseList(this, courseID);\n\t}",
"private boolean checkfields() {\n try {\n Integer.parseInt(checknum.getText().toString());\n Integer.parseInt(banknum.getText().toString());\n Integer.parseInt(branchnum.getText().toString());\n Integer.parseInt(accountnum.getText().toString()); //was commented\n\n } catch (NumberFormatException e) { // at least one of these numbers is not Integer\n return false;\n }\n\n if (checknum.getText().toString().equals(null) || banknum.getText().toString().equals(null) ||branchnum.getText().toString().equals(null)|| accountnum.getText().toString().equals(null))\n return false; // At least one of the fields is empty\n\n return true;\n }",
"private boolean isInputValid() {\n return true;\n }",
"private boolean checkForWrongInput(){\n if(this.studentCode.getText().isEmpty())\n return true;\n //Check for length\n if(this.studentCode.getText().length() != 3)\n return true;\n //Check for invalid characters\n for(char c: this.studentCode.getText().toCharArray())\n if(!Character.isDigit(c))\n return true;\n\n return false;\n }",
"@Override\n public void validate() {\n boolean b = false;\n\n //retrieving the contact us form details from request object\n String firstName = objContactUsForm.getName().trim();\n String email = objContactUsForm.getEmail().trim();\n String message = objContactUsForm.getMessage().trim();\n\n //now validating each of the field\n if (firstName.isEmpty()) {\n addFieldError(\"name\", getText(\"name.required\"));\n b = true;\n }\n\n if (email.isEmpty()) {\n addFieldError(\"email\", getText(\"email.required\"));\n b = true;\n }\n if (!b) {\n Pattern p = Pattern.compile(\".+@.+\\\\.[a-z]+\");\n Matcher m = p.matcher(email);\n boolean matchFound = m.matches();\n if (!matchFound) {\n addFieldError(\"email\", \"Please Provide Valid Email ID\");\n }\n }\n\n if (message.isEmpty()) {\n addFieldError(\"message\", getText(\"message.required\"));\n b = true;\n }\n\n if (!b) {\n boolean matches = message.matches(\"[<>!~@$%^&\\\"|!\\\\[#$]\");\n if (matches) {\n addFieldError(\"message\", \"Please Provide Valid Message Name\");\n b = true;\n }\n }\n }",
"private boolean isValidInput() {\n\t\treturn true;\n\t}",
"private boolean inputsAreCorrect(String name, String salary){\n if (name.isEmpty()) {\n editTextName.setError(\"Please enter a name\");\n editTextName.requestFocus();\n return false;\n }\n\n if (salary.isEmpty() || Integer.parseInt(salary) <= 0){\n editTextSalary.setError(\"Please Enter salary\");\n editTextSalary.requestFocus();\n return false;\n }\n return true;\n }",
"private boolean validateInput(){\n boolean operationOK = true;\n //perform input validation on the double values in the form\n String integrationTime = this.integrationTimeText.getText();\n String integrationFrequency = this.integrationFrequencyText.getText();\n \n if(!integrationTime.equals(\"\")){\n try {\n Double itime = Double.parseDouble(integrationTime);\n integrationTimeText.setBackground(Color.WHITE);\n integrationTimeText.setToolTipText(\"Time in seconds (s)\");\n } catch (NumberFormatException ex) {\n integrationTimeText.setBackground(Color.RED);\n operationOK=false;\n integrationTimeText.setToolTipText(\"This field has to be a valid double (eg. 1.5)\");\n }\n }\n if(!integrationFrequency.equals(\"\")){\n try {\n Double itime = Double.parseDouble(integrationFrequency);\n integrationFrequencyText.setBackground(Color.WHITE);\n integrationFrequencyText.setToolTipText(\"Frequency in Hertz (Hz)\");\n \n } catch (NumberFormatException ex) {\n operationOK=false;\n integrationFrequencyText.setBackground(Color.RED);\n integrationFrequencyText.setToolTipText(\"This field has to be a valid double (eg. 1.5)\");\n }\n }\n if(currentStepOperationsPanel!=null){\n operationOK = this.currentStepOperationsPanel.validateInput();\n \n }\n return operationOK;\n }",
"private boolean checkValidity() {\n if(txtSupplierCode.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Please Enter the Supplier Code!!\", \"EMPTY SUPPLIER CODE\", JOptionPane.ERROR_MESSAGE);\n txtSupplierCode.setBackground(Color.RED);\n return false;\n }\n if(txtSupplierName.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Please Enter the Supplier Name!!\", \"EMPTY SUPPLIER NAME\", JOptionPane.ERROR_MESSAGE);\n txtSupplierName.setBackground(Color.RED);\n return false;\n }\n return true;\n }",
"private boolean validate(){\n return EditorUtils.editTextValidator(generalnformation,etGeneralnformation,\"Type in information\") &&\n EditorUtils.editTextValidator(symptoms,etSymptoms, \"Type in symptoms\") &&\n EditorUtils.editTextValidator(management,etManagement, \"Type in management\");\n }",
"private boolean isInputOkay() {\n // checks the text fields\n if (mBinding.date.getText() == null || mBinding.date.getText().toString().equals(\"\")) {\n snackBar(\"Please select the date.\");\n return false;\n }\n\n if (mBinding.time.getText() == null || mBinding.time.getText().toString().equals(\"\")) {\n snackBar(\"Please select the time.\");\n return false;\n }\n\n if (mBinding.stress.getText() == null || mBinding.stress.getText().toString().equals(\"\")) {\n snackBar(\"Please select the stress level.\");\n return false;\n }\n\n if (mBinding.tired.getText() == null || mBinding.tired.getText().toString().equals(\"\")) {\n snackBar(\"Please select the tiredness level.\");\n return false;\n }\n\n if (mBinding.mv0.getText() == null || mBinding.mv0.getText().toString().equals(\"\")) {\n snackBar(\"Please select at least the start glucose value.\");\n return false;\n }\n\n return true;\n }",
"boolean isInputValid(){\n\t\tString ac = edAccount.getText().toString();\n\t\tString pwd = edPassword.getText().toString();\n\t\tboolean isAccEmpty = StringUtil.isNullOrEmpty(ac);\n\t\tboolean isPwdEmpty = StringUtil.isNullOrEmpty(pwd);\n\t\tif(isAccEmpty){\n\t\t\tedAccount.requestFocus();\n\t\t}else if(isPwdEmpty){\n\t\t\tedPassword.requestFocus();\n\t\t}\n\t\treturn !( isAccEmpty|| isPwdEmpty);\n\t}",
"public void checkText()\n\t{\n\t\ttry\n\t\t{\n\t\t\tqualityNum = Integer.parseInt(quality.getText());\n\t\t\tsidesNum = Integer.parseInt(sides.getText());\n\t\t\tlengthNum = Double.parseDouble(length.getText());\n\t\t\twidthNum = Double.parseDouble(width.getText());\n\t\t\theightNum = Double.parseDouble(height.getText());\n\t\t\tradiusNum = Double.parseDouble(radius.getText());\n\t\t\tradius2Num = Double.parseDouble(radius2.getText());\n\t\t\trollNum = Double.parseDouble(roll.getText());\n\t\t\tpitchNum = Double.parseDouble(pitch.getText());\n\t\t\tyawNum = Double.parseDouble(yaw.getText());\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t}\n\t\t\n\t\tquality.setText(Integer.toString(qualityNum));\n\t\tsides.setText(Integer.toString(sidesNum));\n\t\tlength.setText(Double.toString(lengthNum));\n\t\twidth.setText(Double.toString(widthNum));\n\t\theight.setText(Double.toString(heightNum));\n\t\tradius.setText(Double.toString(radiusNum));\n\t\tradius2.setText(Double.toString(radius2Num));\n\t\troll.setText(Double.toString(rollNum));\n\t\tpitch.setText(Double.toString(pitchNum));\n\t\tyaw.setText(Double.toString(yawNum));\n\t}",
"public boolean validateuser(){\n if(fname.getText().toString().isEmpty()){\n fname.setError(\"Enter your first name\");\n fname.requestFocus();\n return false;\n }\n if(lname.getText().toString().isEmpty()){\n lname.setError(\"Enter your last name\");\n lname.requestFocus();\n return false;\n }\n if(username.getText().toString().isEmpty()){\n username.setError(\"Enter your last name\");\n username.requestFocus();\n return false;\n }\n if(password.getText().toString().isEmpty()||password.getText().toString().length()<6){\n password.setError(\"Enter your password with digit more than 6\");\n password.requestFocus();\n return false;\n }\n return true;\n }",
"public boolean validate() {\n boolean validate = true;\n String titleStr = etTitle.getText().toString();\n String contentStr = etContent.getText().toString();\n if (titleStr.isEmpty() || titleStr.matches(\"\")) {\n etTitle.setError(\"Please Fill Title\");\n validate = false;\n }\n if (contentStr.isEmpty() || contentStr.matches(\"\")) {\n etContent.setError(\"Please Fill Content\");\n validate = false;\n }\n\n return validate;\n }",
"public boolean validate()\n {\n EditText walletName = findViewById(R.id.walletName);\n String walletNameString = walletName.getText().toString();\n\n EditText walletBalance = findViewById(R.id.walletBalance);\n String walletBalanceString = walletBalance.getText().toString();\n\n if (TextUtils.isEmpty(walletNameString))\n {\n walletName.setError(\"This field cannot be empty\");\n\n return false;\n }\n else if (TextUtils.isEmpty(walletBalanceString))\n {\n walletBalance.setError(\"This field cannot be empty\");\n\n return false;\n }\n else\n {\n return true;\n }\n }",
"private boolean validate() {\n if(edtMobileNumber.getText().toString().length() <= 0){\n edtMobileNumber.setFocusable(true);\n edtMobileNumber.setError(Constants.ERR_MSG_MOBILE);\n return false;\n }else if(edtFirstName.getText().toString().length() <= 0){\n edtFirstName.setFocusable(true);\n edtFirstName.setError(Constants.ERR_MSG_FIRST_NAME);\n return false;\n }else if(edtLastName.getText().toString().length() <= 0){\n edtLastName.setFocusable(true);\n edtLastName.setError(Constants.ERR_MSG_LAST_NAME);\n return false;\n }else if(edtDateOfBirth.getText().toString().length() <= 0){\n edtDateOfBirth.setFocusable(true);\n edtDateOfBirth.setError(Constants.ERR_MSG_DATE_OF_BIRTH);\n return false;\n }else if(edtEnterPin.getText().toString().length() <= 0){\n edtEnterPin.setFocusable(true);\n edtEnterPin.setError(Constants.ERR_MSG_PIN);\n return false;\n }else if(edtConfirmPin.getText().toString().length() <= 0){\n edtConfirmPin.setFocusable(true);\n edtConfirmPin.setError(Constants.ERR_MSG_CONFIRM_PIN);\n return false;\n }else if(spnStatus.getSelectedItemPosition() == 0){\n Toast.makeText(context, Constants.ERR_MSG_STATUS, Toast.LENGTH_SHORT).show();\n return false;\n }else if(spnBloodGroup.getSelectedItemPosition() == 0){\n Toast.makeText(context, Constants.ERR_MSG_BLOOD_GROUP, Toast.LENGTH_SHORT).show();\n return false;\n }else if(rgGender.getCheckedRadioButtonId() == -1){\n Toast.makeText(context,Constants.ERR_MSG_GENDER,Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }",
"private boolean validateInputs(String email, String password) {\n if (email.isEmpty()) {\n email_tf.setError(\"Email is required.\");\n return false;\n }\n\n // if nothing is entered in password field\n if (password.isEmpty()) {\n password_tf.setError(\"Password is required.\");\n return false;\n }\n\n return true;\n }",
"private boolean validateForm() {\r\n\t\tResources res = getResources();\r\n\t\tif (this.textViewPrivateKey.getText().toString().equalsIgnoreCase(\"\") ||\r\n\t\t\t\tthis.editTextPassword1.getText().toString().equalsIgnoreCase(\"\") ||\r\n\t\t\t\tthis.editTextPassword2.getText().toString().equalsIgnoreCase(\"\")) {\r\n\t\t\tToast.makeText(this.getApplicationContext(), R.string.all_fields_required, Toast.LENGTH_SHORT).show();\r\n\t\t\treturn false;\r\n\t\t} else if (!(this.editTextPassword1.getText().toString().equals(this.editTextPassword2.getText().toString()))) {\r\n\t\t\tToast.makeText(this.getApplicationContext(), R.string.passwords_not_the_same, Toast.LENGTH_SHORT).show();\r\n\t\t\treturn false;\r\n\t\t} else if (!(this.editTextPassword1.getText().length() >= MIN_PASSWORD_LENGTH)) {\r\n\t\t\tToast.makeText(this.getApplicationContext(), R.string.password_too_short + MIN_PASSWORD_LENGTH + \".\", Toast.LENGTH_SHORT).show();\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"@Override\n public void validate(MessageContainer messages) {\n // Verify that they user entered a title\n if (StringUtils.isBlank(madlib.getTitle())) {\n messages.addError(INPUT_NAME_MADLIB, \"error.validation.title.missing\");\n }\n // Verify that they user entered all the nouns\n if (StringUtils.isBlank(madlib.getNoun1()) || StringUtils.isBlank(madlib.getNoun2()) ||\n StringUtils.isBlank(madlib.getNoun3())) {\n messages.addError(INPUT_NAME_MADLIB, \"error.validation.noun.missing\");\n }\n // Verify that they user entered all the adjectives\n if (StringUtils.isBlank(madlib.getAdjective1()) || StringUtils.isBlank(madlib.getAdjective2()) ||\n StringUtils.isBlank(madlib.getAdjective3())) {\n messages.addError(INPUT_NAME_MADLIB, \"error.validation.adjective.missing\");\n }\n }",
"protected abstract boolean isInputValid();",
"private boolean validate() {\n if (activityAddTodoBinding.etTitle.getText().toString().trim().isEmpty())\n {\n activityAddTodoBinding.etTitle.setError(getString(R.string.enter_title));\n return false;\n }\n else if (activityAddTodoBinding.etDesc.getText().toString().trim().isEmpty())\n {\n activityAddTodoBinding.etDesc.setError(getString(R.string.enter_desc));\n return false;\n }\n return true;\n }",
"private boolean validateForm() {\n\n String email = mEditTextViewEmail.getText().toString();\n if (TextUtils.isEmpty(email)) {\n mTextInputLayoutEmail.setError(\"Emaill Id Required\");\n Toast.makeText(MainActivity.this, \"Email field required\", Toast.LENGTH_SHORT).show();\n return false;\n } else if (!isEmailValid(email)) {\n mTextInputLayoutEmail.setError(\"A valid Email id is required\");\n return false;\n } else {\n mTextInputLayoutEmail.setError(null);\n }\n\n String password = mEditTextViewPassword.getText().toString();\n if (TextUtils.isEmpty(password)) {\n mTextInputLayoutPassword.setError(\"Password required\");\n Toast.makeText(MainActivity.this, \"Password field required\", Toast.LENGTH_SHORT).show();\n return false;\n } else if (!isPasswordValid(password)) {\n mTextInputLayoutPassword.setError(\"Password must be at least 6 characters\");\n return false;\n } else {\n mTextInputLayoutPassword.setError(null);\n }\n\n return true;\n }",
"private void checkFields() {\n\t\t\n\t\tboolean errors = false;\n\t\t\n\t\t// contact name\n\t\tString newName = ((TextView) findViewById(R.id.tvNewContactName)).getText().toString();\n\t\tTextView nameErrorView = (TextView) findViewById(R.id.tvContactNameError);\n\t\tif(newName == null || newName.isEmpty()) {\n\t\t\terrors = true;\n\t\t\tnameErrorView.setText(\"Contact must have a name!\");\n\t\t} else {\n\t\t\tnameErrorView.setText(\"\");\n\t\t}\n\t\t\n\t\t// contact phone number\n\t\tString newPhone = ((TextView) findViewById(R.id.tvNewContactPhone)).getText().toString();\n\t\tTextView phoneNumberErrorView = (TextView) findViewById(R.id.tvContactPhoneError);\n\t\tif(newPhone == null || newPhone.isEmpty()) {\n\t\t\terrors = true;\n\t\t\tphoneNumberErrorView.setText(\"Contact must have a phone number!\");\n\t\t} else {\n\t\t\tphoneNumberErrorView.setText(\"\");\n\t\t}\n\t\t\n\t\t// contact e-mail\n\t\tString newEmail= ((TextView) findViewById(R.id.tvNewContactEmail)).getText().toString();\n\t\tTextView emailErrorView = (TextView) findViewById(R.id.tvContactEmailError);\n\t\tif(newEmail == null || newEmail.isEmpty()) {\n\t\t\terrors = true;\n\t\t\temailErrorView.setText(\"Contact must have an E-mail!\");\n\t\t} else if (!newEmail.matches(\".+@.+\\\\..+\")) {\n\t\t\terrors = true;\n\t\t\temailErrorView.setText(\"Invalid E-mail address! Example:\"\n\t\t\t\t\t+ \"[email protected]\");\n\t\t} else {\n\t\t\temailErrorView.setText(\"\");\n\t\t}\n\t\t\n\t\t// contact note\n\t\tString newNote = ((TextView) findViewById(R.id.tvNewContactNote)).getText().toString();\n\t\t\n\t\t// contact Facebook profile address\n\t\tString newAddress = ((TextView) findViewById(R.id.tvNewContactAddress)).getText().toString();\n\t\t\n\t\t// save the new contact if all the required fields are filled out\n\t\tif(!errors) {\n\t\t\tif(newNote == null || newNote.isEmpty()) {\n\t\t\t\tnewNote = \"No note.\";\n\t\t\t}\n\t\t\t\n\t\t\tif(newAddress == null || newAddress.isEmpty()) {\n\t\t\t\tnewAddress = \"No address.\";\n\t\t\t}\n\t\t\tHomeActivity.listOfContacts.add(new Contact(newName, newPhone, newEmail, \n\t\t\t\t\tnewNote, newAddress));\n\t\t\tIntent intent = new Intent(AddContactActivity.this, HomeActivity.class);\n\t\t\tstartActivity(intent);\n\t\t}\n\t}",
"private boolean isValid(){\n if(txtFirstname.getText().trim().isEmpty() || txtLastname.getText().trim().isEmpty() ||\n txtEmailAddress.getText().trim().isEmpty() || dobPicker.getValue()==null\n || txtPNum.getText().trim().isEmpty()\n || txtDefUsername.getText().trim().isEmpty()\n || curPassword.getText().trim().isEmpty()){\n \n return false; // return false if one/more fields are not filled\n }else{\n if(!newPassword.getText().trim().isEmpty()){\n if(!confirmPassword.getText().trim().isEmpty()){\n return true;\n }else{\n return false;\n }\n }\n return true; // return true if all fields are filled\n }\n }",
"public boolean checkValidity() {\n String sep = DECIMAL_FORMAT.getDecimalFormatSymbols().getDecimalSeparator() + \"\";\n String name = nameField.getText().trim();\n String priceText = valueField.getText().trim();\n if (name.equals(\"\") || priceText.equals(\"\")) {\n Utils.showWarningMessage(getRootPane(), \"The fields can not be empty!\");\n return false;\n }\n String price = priceText.replace(sep, \"\");\n if (!price.matches(\"^[0-9]+$\")) {\n Utils.showWarningMessage(getRootPane(), \"Please enter a valid price!\");\n return false;\n }\n int priceInt = Integer.parseInt(price);\n if (priceInt == 0) {\n Utils.showWarningMessage(getRootPane(), \"The price can not be 0.\");\n return false;\n }\n return true;\n }",
"private boolean formIsValid(){\r\n // check if all the required fields have been filled in\r\n boolean allFieldsEntered = formComplete();\r\n // check if Name field has valid input\r\n boolean nameFieldValid = isAllChars(NAME_FIELD.getText());\r\n // check if city field has valid input\r\n boolean cityFieldValid = isAllChars(CITY_FIELD.getText());\r\n // check if country field has valid input\r\n boolean ctryFieldValid = isAllChars(COUNTRY_FIELD.getText());\r\n // check if zipcode field has valid input\r\n boolean zipFieldValid = isAllNums(ZIP_FIELD.getText());\r\n // check if phone field has valid input\r\n boolean phoneFieldValid = isAllNums(PHONE_FIELD.getText());\r\n // check if all fields and form are valid\r\n return allFieldsEntered && nameFieldValid &&\r\n cityFieldValid && ctryFieldValid &&\r\n zipFieldValid && phoneFieldValid; \r\n }",
"protected boolean isAllRequiredTxtFieldsFilled() {\r\n JTextField[] txtFields = {\r\n txtFieldFirstName, txtFieldLastName,\r\n txtFieldDateOfBirth, txtFieldIBAN,\r\n txtFieldState, txtFieldHouseNumber,\r\n txtFieldPostcode, txtFieldLocation,\r\n txtFieldCountry, txtFieldState\r\n };\r\n\r\n for (JTextField txtField : txtFields) {\r\n if (txtField.getText().equals(\"\")) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }",
"public boolean validateInput(boolean showMessage) {\n\n boolean valid = true;\n\n valid = GuiUtilities.validateIntegerInput(this, peptideLengthLabel, minPepLengthTxt, \"minimum peptide length\", \"Peptide Length Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, peptideLengthLabel, maxPepLengthTxt, \"minimum peptide length\", \"Peptide Length Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, precursorMassLabel, minPrecursorMassTxt, \"minimum precursor mass\", \"Precursor Mass Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, precursorMassLabel, maxPrecursorMassTxt, \"maximum precursor mass\", \"Precursor Mass Error\", true, showMessage, valid);\n\n if (!minPtmsPerPeptideTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateIntegerInput(this, variablePtmsPerPeptideLabel, minPtmsPerPeptideTxt, \"minimum number of variable PTMs\", \"Variable PTMs Error\", true, showMessage, valid);\n }\n \n if (!maxPtmsPerPeptideTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateIntegerInput(this, variablePtmsPerPeptideLabel, maxPtmsPerPeptideTxt, \"maximum number of variable PTMs\", \"Variable PTMs Error\", true, showMessage, valid);\n }\n\n valid = GuiUtilities.validateIntegerInput(this, maxVariablePtmsPerTypeLabel, maxVariablePtmsPerTypeTxt, \"maximum number of variable PTMs per type\", \"Variable PTMs Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, decoySeedLabel, decoySeedTxt, \"decoy seed\", \"Decoy Seed Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, spectrumMzLabel, minSpectrumMzTxt, \"minimum spectrum mz\", \"Spectrum Mz Error\", true, showMessage, valid);\n if (!maxSpectrumMzTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateDoubleInput(this, spectrumMzLabel, maxSpectrumMzTxt, \"maximum spectrum mz\", \"Spectrum Mz Error\", true, showMessage, valid);\n }\n valid = GuiUtilities.validateIntegerInput(this, minPeaksLbl, minPeaksTxt, \"minimum number of peaks\", \"Spectrum Peaks Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, removePrecursorPeakLabel, removePrecursorPeakToleranceTxt, \"remove precursor peak tolerance\", \"Precursor Peak Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, mzBinWidthLabel, mzBinWidthTxt, \"mz bin width\", \"Mz Bin Width Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, mzBinOffsetLabel, mzBinOffsetTxt, \"mz bin offset\", \"Mz Bin Offset Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, numberMatchesLabel, numberMatchesTxt, \"number of spectrum matches\", \"Number of Spectrum Matches Error\", true, showMessage, valid);\n\n // peptide length: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minPepLengthTxt.getText().trim());\n double highValue = Double.parseDouble(maxPepLengthTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Peptide Length Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n peptideLengthLabel.setForeground(Color.RED);\n peptideLengthLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n // precursor mass range: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minPrecursorMassTxt.getText().trim());\n double highValue = Double.parseDouble(maxPrecursorMassTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Precursor Mass Range Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n precursorMassLabel.setForeground(Color.RED);\n precursorMassLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n // spectrum mz range: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minSpectrumMzTxt.getText().trim());\n double highValue = Double.parseDouble(maxSpectrumMzTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Spectrum Mz Range Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n spectrumMzLabel.setForeground(Color.RED);\n spectrumMzLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n okButton.setEnabled(valid);\n return valid;\n }",
"private void validateBirdName() {\n if (!validator.checkPresence(txtBirdName.getValue())) {\n txtBirdName.setErrorMessage(\"This field cannot be left blank.\");\n txtBirdName.setInvalid(true);\n removeValidity();\n }\n // Check that field does not contain numbers (type check)\n else if (!validator.checkNoNumbers(txtBirdName.getValue())) {\n txtBirdName.setErrorMessage(\"The bird mustn't contain numbers. Enter quantity in the next field.\");\n txtBirdName.setInvalid(true);\n removeValidity();\n }\n // Check that bird is among those being researched (look-up table check)\n else if (!validator.checkIsBirdBeingResearched(txtBirdName.getValue())) {\n txtBirdName.setErrorMessage(\"Please enter a bird name that is among those being researched. This field is case sensitive.\");\n txtBirdName.setInvalid(true);\n removeValidity();\n }\n }",
"public void validateInput(Information information) {\n information.validateFirstName();\n information.validateLastName();\n information.validateZipcode();\n information.validateEmployeeID();\n }",
"private void checkUserInput() {\n }",
"public boolean verifyData()\n {\n if(jTextFieldName.getText().equals(\"\") && jTextFieldNumber.getText().equals(\"\") \n || jTextFieldSupplier.getText().equals(\"\") || jTextArea1.getText().equals(\"\") || jTextFieldModel.getText().equals(\"\"))\n {\n JOptionPane.showMessageDialog(null, \"One or More Fields Are Empty\");\n return false;\n }\n \n else\n {\n return true;\n }\n \n }",
"public void validarPostagem() {\n\t\t// validando se o nome motorista ou carona foram preenchidos\n\t\tint verif = 0;\n\t\ttry {\n\t\t\tif (txtCarona.getText() == null\n\t\t\t\t\t|| txtCarona.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (txtMotorista.getText() == null\n\t\t\t\t\t|| txtMotorista.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (verif == 2) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t\tif (txtDestino.getText() == null\n\t\t\t\t\t|| txtDestino.getText().trim().equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\"Para postar no quadro é necessário informar nome (motorista ou passageiro) \"\n\t\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\te local. \\n Por favor certifique se os campos foram preenchidos e tente novamente.\");\n\t\t}\n\n\t}"
] | [
"0.771695",
"0.74096763",
"0.7314545",
"0.7313802",
"0.7159117",
"0.7140451",
"0.7137144",
"0.7114",
"0.70800513",
"0.70722663",
"0.705039",
"0.6997031",
"0.6960211",
"0.688162",
"0.68794",
"0.6864868",
"0.685007",
"0.6837429",
"0.68304986",
"0.6786118",
"0.67853016",
"0.6768802",
"0.67300993",
"0.67295617",
"0.6718756",
"0.66963947",
"0.6691734",
"0.6675094",
"0.6669905",
"0.66521513",
"0.6636636",
"0.66210157",
"0.66171825",
"0.6615297",
"0.6605498",
"0.6602726",
"0.6591771",
"0.65902376",
"0.6583321",
"0.65627563",
"0.65341955",
"0.65174174",
"0.6516904",
"0.6511448",
"0.6509996",
"0.6497548",
"0.6493733",
"0.64715177",
"0.6469433",
"0.6464663",
"0.64500666",
"0.6439203",
"0.6431838",
"0.64221287",
"0.64214504",
"0.6414638",
"0.64072204",
"0.63779527",
"0.63695055",
"0.63648444",
"0.6354731",
"0.6345107",
"0.63150007",
"0.63032204",
"0.6297418",
"0.62949693",
"0.6286435",
"0.6282846",
"0.6273234",
"0.62662834",
"0.62611353",
"0.62584794",
"0.62556463",
"0.6248181",
"0.6245619",
"0.62183356",
"0.6214218",
"0.62124443",
"0.6212113",
"0.6206332",
"0.61893785",
"0.6180321",
"0.6143849",
"0.6132233",
"0.6131392",
"0.6122412",
"0.61169976",
"0.61134565",
"0.61080277",
"0.60885936",
"0.6087172",
"0.60869825",
"0.60838294",
"0.60718155",
"0.6069227",
"0.6068822",
"0.6062184",
"0.60558087",
"0.6054255",
"0.60359377"
] | 0.6520128 | 41 |
TODO Autogenerated method stub | public void onClick(View v) {
try
{
String phoneno=phonenoET.getText().toString();
if(phoneno.equals(""))
{
Toast.makeText(getApplicationContext(),"Enter Phone No.",Toast.LENGTH_LONG).show();
}
else if(phoneno.length()!=10)
{
Toast.makeText(getApplicationContext(),"Wrong Phone No.",Toast.LENGTH_LONG).show();
}
else
{
//uniquecode="hello";
//double code=Math.random();
//Toast.makeText(getApplicationContext(),""+code+"",Toast.LENGTH_LONG).show();
uniquecode=Integer.toString((int)(Math.random()*1000000000));
//Toast.makeText(getApplicationContext(),"Unique CODE: "+uniquecode,Toast.LENGTH_LONG).show();
SmsManager sms=SmsManager.getDefault();
sms.sendTextMessage(phoneno, null,"Unique CODE: "+uniquecode, null, null);
Toast.makeText(getApplicationContext(),"Msg Sent",Toast.LENGTH_SHORT).show();
Date date = new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
String currentDate = dateFormat.format(date);
SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
String currentTime = timeFormat.format(date);
mBuilder.setContentTitle("Unique Code Sent");
mBuilder.setContentText("to "+phoneno+"\non "+currentDate+"");
mBuilder.setTicker("Password Alert!");
mBuilder.setSmallIcon(R.drawable.ic_launcher);
//mBuilder.setNumber(++numMessages);
mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
/* notificationID allows you to update the notification later on. */
mNotificationManager.notify((int)(Math.random()*1000), mBuilder.build());
//Intent i=new Intent(getApplicationContext(),Read_Activity.class);
//startActivity(i);
phonenoET.setEnabled(false);
sendb.setEnabled(false);
ucodeET.setVisibility(0);
nextb.setVisibility(0);
}
}
catch(Exception ex)
{
Toast.makeText(getApplicationContext(),ex.toString(),Toast.LENGTH_LONG).show();
Toast.makeText(getApplicationContext(),"Msg not Sent",Toast.LENGTH_LONG).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
try
{
String uniquecode1=ucodeET.getText().toString();
if(uniquecode1.equals(""))
{
Toast.makeText(getApplicationContext(),"Enter Unique Code",Toast.LENGTH_LONG).show();
}
else
{/*
if(uniquecode1.equals(uniquecode))
{*/
/*
String password="";
sqldb=openOrCreateDatabase("aman",MODE_PRIVATE,null);
Cursor c =sqldb.rawQuery("select * from aman1DB",null);
int count=c.getCount();
if (c.getCount() > 0)
{
c.moveToFirst();
password=c.getString(0);
*/
/* }
else
{
Toast.makeText(getApplicationContext(),"No Data",Toast.LENGTH_LONG).show();
}*/
Toast.makeText(getApplicationContext(),"Code Matched",Toast.LENGTH_LONG).show();
builder.setIcon(R.drawable.ic_launcher);
//builder.setTitle("Exit");
builder.setMessage("Kindly Change Your Password !!")
//.setCancelable(false)
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
//System.exit(0);
finish();
Intent i=new Intent(getApplicationContext(),Login.class);
startActivity(i);
}
});
AlertDialog alert = builder.create();
alert.setTitle("PASSWORD");
alert.show();
//Toast.makeText(getApplicationContext(),password,Toast.LENGTH_LONG).show();
}
/* else
{
Toast.makeText(getApplicationContext(),"Wrong Code",Toast.LENGTH_LONG).show();
ucodeET.setText("");
}*/
}
// }
catch(Exception ex)
{
Toast.makeText(getApplicationContext(),ex.toString(),Toast.LENGTH_LONG).show();
Toast.makeText(getApplicationContext(),"Msg not Sent",Toast.LENGTH_LONG).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Attempt to start listening, fail gracefully if we can't | public void tryToStartListenerForEndpoint(Endpoint theEndpoint) {
if (mLog.isLoggable(Level.FINE)) {
mLog.fine("Going to attempt to start endpoint: " + theEndpoint.getUniqueName());
}
try {
openConnection(theEndpoint);
} catch (Exception e) {
// We don't treat this as fatal, as an attempt to bind will be mad again
// when the sender actually tries to send a message. This way we don't
// fail starting up the service unit if the address can't be bound at
// that time
mLog.log(Level.WARNING, I18n.msg("E0340: Failed to open socket on port {0} on startup, won't retry until first message exchange. Error: {1}", theEndpoint
.getHL7Address().getHL7ServerPort(), e.getMessage()), e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void startListen() {\n try {\n listeningSocket = new ServerSocket(listeningPort);\n } catch (IOException e) {\n throw new RuntimeException(\"Cannot open listeningPort \" + listeningPort, e);\n }\n }",
"public void startListening() {\r\n\t\tlisten.startListening();\r\n\t}",
"public void startListening();",
"public void startListeningForConnection() {\n startInsecureListeningThread();\n }",
"public void start() {\n\t\t\n\t\ttry {\n\t\t\tmainSocket = new DatagramSocket(PORT_NUMBER);\n\t\t}\n\t\tcatch(SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t//Lambda expression to shorten the run method\n\t\tThread serverThread = new Thread( () -> {\n\t\t\tlisten();\n\t\t});\n\t\t\n\t\tserverThread.start();\n\t}",
"@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}",
"private void listen() {\n\t\ttry {\n\t\t\tServerSocket servSocket = new ServerSocket(PORT);\n\t\t\tSocket clientSocket;\n\t\t\twhile(true) {\n\t\t\t\tclientSocket = servSocket.accept();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error - Could not open connection\");\n\t\t}\n\t\t\n\t}",
"@Deprecated\n public final void startListen() {\n startListening();\n }",
"public void startListener() throws BindException, Exception{ // NOPMD by luke on 5/26/07 11:10 AM\n\t\tsynchronized (httpServerMutex){\n\t\t\t// 1 -- Shutdown the previous instances to prevent multiple listeners\n\t\t\tif( webServer != null )\n\t\t\t\twebServer.shutdownServer();\n\t\t\t\n\t\t\t// 2 -- Spawn the appropriate listener\n\t\t\twebServer = new HttpServer();\n\t\t\t\n\t\t\t// 3 -- Start the listener\n\t\t\twebServer.startServer( serverPort, sslEnabled);\n\t\t}\n\t}",
"@SuppressWarnings(\"resource\")\r\n\tprivate void tryToSetupServer() {\r\n\t\ttry {\r\n\t\t\tsetupStream.write(\"Trying to start on \" + Inet4Address.getLocalHost().toString() + \":\" + port);\r\n\t\t\tcientConn = new ServerSocket(port).accept();\r\n\t\t\tsetupStream.write(\"Client connectd, ready for data\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tif(e.getMessage().contains(\"Bind failed\")) {\r\n\t\t\t\tsetupStream.write(\"You can't use that port\");\r\n\t\t\t} else if(e.getMessage().contains(\"Address already in use\")) {\r\n\t\t\t\tsetupStream.write(\"That port is already in use\");\r\n\t\t\t}\r\n\t\t\tport = -1;\r\n\t\t}\r\n\t}",
"public void startListening() {\n\twhile (true) {\n\t try {\n\t\tSocket s = socket.accept();\n\n\t\tnew TCPSessionClient(s, this.clients);\n\t } // end of try\n\n\t catch (IOException e) {\n\t\te.printStackTrace();\n\t } // end of catch\n\t} // end of while\n }",
"public void startListener() throws IOException {\n\t\tthis.listener = new ServerSocket(this.port);\n\n Runnable serverThread = new Runnable() {\n @Override\n public void run() {\n try {\n System.out.println(\"Waiting for clients to connect...\");\n\n while (true) {\n \t// Wait for connections\n Socket newSocket = listener.accept();\n\n // Init new peer and add it to our list\n PeerCommunicator newCommunication = new PeerCommunicator(id, \"\", newSocket);\n activePeers.add(newCommunication);\n\n // Span new thread\n Thread clientThread = new Thread(new ReceivedConnection(newCommunication, fm));\n clientThread.start();\n }\n } catch (Exception e) {\n System.err.println(\"Unable to process incoming client\");\n e.printStackTrace();\n }\n }\n };\n\n // Start it up\n (new Thread(serverThread)).start();\n\n // Once everything's good, mark server as running\n //this.status = Status.RUNNING;\n\t}",
"protected void listen(int backlog) throws IOException {\n return;\n }",
"public void listen() throws Exception {\n if (serverSocket != null) {\n try {\n serverSocket.setSoTimeout(0);\n } catch (SocketException sx) {\n sx.printStackTrace();\n }\n }\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlisten();\n\t\t\t\t}",
"public void start() {\n System.err.println(\"Server will listen on \" + server.getAddress());\n server.start();\n }",
"public abstract void listen(ServiceConfig serviceConfig) throws IOException;",
"public void startListening() {\n if (Util.isDebugBuild()) {\n Log.d(TAG, \"mAcceptThread: \" + mAcceptThread);\n }\n\n // Start the AcceptThread which listens for incoming connection requests\n if (mAcceptThread == null) {\n mAcceptThread = new AcceptThread(mContext, mHandler, services, this);\n }\n\n if (Util.isDebugBuild()) {\n Log.d(TAG, \"mAcceptThread.isAlive(): \" + mAcceptThread.isAlive());\n }\n\n if (!mAcceptThread.isAlive()) {\n mAcceptThread.start();\n }\n }",
"@Override\n\tpublic boolean IsListening() {\n\t\treturn listening;\n\t}",
"void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }",
"@Override\n protected void startListener(){\n Socket socket = null;\n while (isRunning()){\n socket = acceptSocket();\n if (socket == null) {\n continue;\n }\n \n try {\n handleConnection(socket);\n } catch (Throwable ex) {\n getLogger().log(Level.FINE, \n \"selectorThread.handleConnectionException\",\n ex);\n try {\n socket.close(); \n } catch (IOException ioe){\n // Do nothing\n }\n continue;\n }\n } \n }",
"public void listen() throws IOException {\n listen(Thread.currentThread());\n }",
"public void start() throws RemoteException, AlreadyBoundException\n {\n start(DEFAULT_PORT);\n }",
"public void startRunning(){\n\t\ttry{\n\t\t\tserver = new ServerSocket(6789, 100);\n\t\t\t//int Port Number int 100 connections max (backlog / queue link)\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\twaitForConnection();\n\t\t\t\t\tsetupStreams();\n\t\t\t\t\twhileChatting();\n\t\t\t\t\t//connect and have conversation\n\t\t\t\t}catch(EOFException eofe){\n\t\t\t\t\tshowMessage(\"\\n Punk Ass Bitch.\");\n\t\t\t\t}finally{\n\t\t\t\t\tcloseChat();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}\n\t}",
"public void start() throws IOException {\n\t\tserverSocket = new ServerSocket(port);\n\t\tserverCallbacks.forEach(c -> c.onServerStarted(this, port));\n\t}",
"private void createAndListen() {\n\n\t\t\n\t}",
"public void startServer()\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Listen\");\n\t\t\tif(listenInitialValuesRequest)\n\t\t\t{\n\t\t\t\tlistenInitialValuesRequest();\n\t\t\t}\n\t\t}\n\t}",
"public static void startServer() {\n clientListener.startListener();\n }",
"private void resumeListening() {\n Thread listener = new Thread() {\n @Override\n public void run() {\n try {\n mListenerSocket = new ServerSocket();\n mListenerSocket.setReuseAddress(true);\n mListenerSocket.bind(new InetSocketAddress(LOCAL_PORT));\n while (true) {\n Socket connSocket = mListenerSocket.accept();\n Scanner sc = new Scanner(connSocket.getInputStream());\n String encMsg = sc.nextLine();\n connSocket.close();\n sc.close();\n Message msg = mHandler.obtainMessage();\n msg.obj = encMsg;\n mHandler.sendMessage(msg);\n }\n } catch (IOException e) {\n Log.d(\"LANConnection\", \"Stopping listener thread due to error\", e);\n }\n }\n };\n listener.start();\n }",
"public void start() {\n\t\tif (serverStarted.get()) {\n\t\t\tthrow new IllegalStateException(\"Server already started. \" + toString());\n\t\t}\n\t\tCallable<Boolean> task;\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(port);\n\t\t\tserverSocket.setSoTimeout(soTimeout);\n\t\t\tport = serverSocket.getLocalPort();\n\t\t\tnotifyListener(\"Server started. \" + toString());\n\t\t\tserverStarted.set(true);\n\t\t\ttask = new Callable<Boolean>() {\n\t\n\t\t\t\tpublic Boolean call() {\n\t\t\t\t\tnotifyListener(\"Starting server thread. \" + toString());\n\t\t\t\t\tstopFlag.set(false);\n\t\t\t\t\twhile (!stopFlag.get()) {\n\t\t\t\t\t\tSocket connection = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconnection = serverSocket.accept();\n\t\t\t\t\t\t\tnotifyListener(\"Connection accepted on port. \" + toString());\n\t\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t\t\tnotifyListener(\"Connection closed on port. \" + toString());\n\t\t\t\t\t\t\tpingCounter.incrementAndGet();\n\t\t\t\t\t\t} catch (SocketTimeoutException e) {\n\t\t\t\t\t\t\tnotifyListener(\"Server accept timed out. Retrying. \" + toString());\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tnotifyListener(\"Server accept caused exception [message=\" + e.getMessage() + \"]. Retrying. \" + toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tnotifyListener(\"Server socket closed. \" + toString());\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t};\n\t\t} catch (IOException e) {\n\t\t\tstopFlag.set(true);\n\t\t\tthrow new IllegalStateException(\"Unable to open socket on port. \" + toString(), e);\n\t\t}\n\t\tserverActivity = scheduler.submit(task);\n\t\tnotifyListener(\"Waiting for server to fully complete start. \" + toString());\n\t\tfor (;;) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(100);\n\t\t\t\tif (isStarted()) {\n\t\t\t\t\tnotifyListener(\"Server started. \" + toString());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void start() {\n if (D) Log.d(TAG, \"start\");\n\n // Cancel any thread attempting to make a connection\n if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;}\n\n // Cancel any thread currently running a connection\n if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;}\n\n setState(STATE_LISTEN);\n }",
"void onListeningStarted();",
"public void startListening()\n {\n if (!listening) {\n sensorManager.requestTriggerSensor(listener, motion);\n listening = true;\n }\n }",
"private void startNonBlockingListen() throws Exception {\n nioServer = new NioServer(null,8880);\n serverThread = (new Thread(nioServer));\n serverThread.setName(\"Server Thread\");\n serverThread.setDaemon(true);\n serverThread.start();\n }",
"private void initServerSocket()\n\t{\n\t\tboundPort = new InetSocketAddress(port);\n\t\ttry\n\t\t{\n\t\t\tserverSocket = new ServerSocket(port);\n\n\t\t\tif (serverSocket.isBound())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Server bound to data port \" + serverSocket.getLocalPort() + \" and is ready...\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unable to initiate socket.\");\n\t\t}\n\n\t}",
"void initAndListen() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\t\t// Startuje nowy watek z odbieraniem wiadomosci.\n\t\t\t\tnew ClientHandler(clientSocket, this);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Accept failed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}",
"public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }",
"public void start()\n throws IOException, StunException\n {\n localSocket = new IceUdpSocketWrapper(\n new SafeCloseDatagramSocket(serverAddress));\n\n stunStack.addSocket(localSocket);\n stunStack.addRequestListener(serverAddress, this);\n\n }",
"@Test\n public void testListen_0args() throws Exception {\n System.out.println(\"listen\");\n instance.listen();\n }",
"protected void start() throws IOException {\r\n\t\tif (smscListener == null) {\r\n\t\t\tSystem.out.print(\"Enter port number> \");\r\n\t\t\tint port = Integer.parseInt(keyboard.readLine());\r\n\t\t\tSystem.out.print(\"Starting listener... \");\r\n\t\t\tsmscListener = new SMSCListenerImpl(port, true);\r\n\t\t\tprocessors = new PDUProcessorGroup();\r\n\t\t\tmessageStore = new ShortMessageStore();\r\n\t\t\tdeliveryInfoSender = new DeliveryInfoSender();\r\n\t\t\tdeliveryInfoSender.start();\r\n\t\t\tusers = new Table(usersFileName);\r\n\t\t\tfactory = new SimulatorPDUProcessorFactory(processors, messageStore, deliveryInfoSender, users);\r\n\t\t\tfactory.setDisplayInfo(displayInfo);\r\n\t\t\tsmscListener.setPDUProcessorFactory(factory);\r\n\t\t\tsmscListener.start();\r\n\t\t\tSystem.out.println(\"started.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Listener is already running.\");\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void start() {\n\t\tscavenger.start();\r\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\twhile (!serverSocket.isClosed()) {\r\n\t\t\t\t\tSocket socket = null;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tsocket = serverSocket.accept();\r\n\t\t\t\t\t\tscavenger.addSocket(socket);\r\n\t\t\t\t\t\tnew SynchronousSocketThread(socket).start();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\t}",
"public void start(){\r\n\t\tLog.out(\"Start Service...listening on \" + port, 5);\r\n\t\ttry{\r\n\t\t\t//set up\r\n\t\t\tssocket = new ServerSocket(port);\r\n\t\t}catch(Exception e){\r\n\t\t\tLog.out(\"Can't open the port\", 5);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry{\r\n\t\t\twhile(isRun){\r\n\t\t\t\t//accept socket request,but only one.\r\n\t\t\t\tSocket socket = ssocket.accept();\r\n\t\t\t\tLog.out(\"Got a socket from \"+socket.getLocalAddress(), 5);\r\n\t\t\t\t//if no client now\r\n\t\t\t\tif(clientSocket == null){\r\n\t\t\t\t\tLog.out(\"Handle as client.\", 4);\r\n\t\t\t\t\tclientSocket = socket;\r\n\t\t\t\t\tnew Thread(new ServiceReciever(this, socket)).start();\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tLog.out(\"The server is already in use,refuse the request.\",2);\r\n\t\t\t\t\tnew DataOutputStream(socket.getOutputStream()).writeInt(SOCKET_REFUSE);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\tLog.out(\"There are something wrong when get the socket.\", 5);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private void listen() {\n System.out.println(\"launch listen task\");\n listenTask = new AsyncTask<Void, String, IOException>() {\n @Override\n protected IOException doInBackground(Void... params) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()))) {\n String line;\n while ((line = in.readLine()) != null) {\n System.out.println(\"receive \" + line);\n publishProgress(line);\n }\n } catch (SocketException e) {\n if (e.toString().equals(\"java.net.SocketException: Socket closed\")) {\n //that's what will happen when task.cancel() is called.\n System.out.println(\"listening is stopped as socket is closed\");\n return null;\n } else {\n e.printStackTrace();\n return e;\n }\n } catch (IOException e) {\n e.printStackTrace();\n return e;\n }\n return null;\n }\n\n @Override\n protected void onProgressUpdate(String... values) {\n handler.accept(new Message(MsgType.SERVER, values[0]));\n }\n\n @Override\n protected void onPostExecute(IOException e) {\n if (e == null) {\n handler.accept(new Message(MsgType.INFO, \"listening finished\"));\n } else {\n handler.accept(new Message(MsgType.ERROR,\n \"exception while listening\" + \"\\n\" + e.toString()));\n }\n }\n\n @Override\n protected void onCancelled() {\n super.onCancelled();\n }\n };\n //the listen task will last for a quite long time (blocking) and thus should run in a parallel pool.\n listenTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }",
"private void start(String[] args){\n\t\tServerSocket listenSocket;\n\n\t\ttry {\n\t\t\tlistenSocket = new ServerSocket(Integer.parseInt(args[0])); //port\n\t\t\tSystem.out.println(\"Server ready...\");\n\t\t\twhile (true) {\n\t\t\t\tSocket clientSocket = listenSocket.accept();\n\t\t\t\tSystem.out.println(\"Connexion from:\" + clientSocket.getInetAddress());\n\t\t\t\tClientThread ct = new ClientThread(this,clientSocket);\n\t\t\t\tct.start();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error in EchoServer:\" + e);\n\t\t}\n\t}",
"public void listen()\n {\n service = new BService (this.classroom, \"tcp\");\n service.register();\n service.setListener(this);\n }",
"public void start()\r\n\t\t{\r\n\t\tDebug.assert(serverSocket != null, \"(Server/123)\");\r\n\r\n \t// flag the server as running\r\n \tstate = RUNNING;\r\n\r\n // Loop while still listening, accepting new connections from the server socket\r\n while (state == RUNNING)\r\n \t{\r\n // Get a connection from the server socket\r\n\t\t\tSocket socket = null;\r\n\t\t\ttry {\r\n socket = serverSocket.accept();\r\n \tif (state == RUNNING) \r\n \t createLogin(socket);\r\n }\r\n \r\n // The socket timeout allows us to check if the server has been shut down.\r\n // In this case the state will not be RUNNING and the loop will end.\r\n\t\t catch ( InterruptedIOException e )\r\n\t\t \t{\r\n\t\t \t// timeout happened\r\n\t\t \t}\r\n\t\t \r\n\t\t // This shouldn't happen...\r\n \t catch ( IOException e )\r\n \t \t{\r\n log(\"Server: Error creating Socket\");\r\n \t \tDebug.printStackTrace(e);\r\n \t }\r\n\t }\r\n\t \r\n\t // We've finished, clean up\r\n disconnect();\r\n\t\t}",
"public abstract void Listen() throws TransportLayerException;",
"public static void startChatServer() {\n\t\tbyte[] buffer = new byte[1024];\n\t\tStreamConnectionNotifier cn = null;\n\t\ttry {\n\t\t\tLocalDevice local = LocalDevice.getLocalDevice();\n\t\t\tlocal.setDiscoverable(DiscoveryAgent.GIAC);\n\t\t\tcn = (StreamConnectionNotifier) Connector.open(INSECURE_URL);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tOutputThread t = null;\n\t\t\tStreamConnection sock = null;\n\t\t\tInputStream is = null;\n\t\t\tOutputStream os = null;\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"accepting connection:\");\n\t\t\t\tsock = cn.acceptAndOpen();\n\t\t\t\tSystem.out.println(\"accept!: \" + Charset.defaultCharset());\n\t\t\t\tis = sock.openInputStream();\n\t\t\t\tos = sock.openOutputStream();\n\n\t\t\t\tt = new OutputThread(os);\n\t\t\t\tt.start();\n\n\t\t\t\twhile (t.isAlive()) {\n\t\t\t\t\t//TODO: use timeout read?\n\t\t\t\t\tint len = is.read(buffer);\n\t\t\t\t\t// printAsHex(buffer, len);\n\t\t\t\t\tif (len > 0) {\n\t\t\t\t\t\tSystem.out.println(\"received message(\" + len + \"): \" + new String(buffer, 0, len));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//TODO: check connection is live or not,\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tt.interrupt();\n\t\t\t\tt = null;\n\t\t\t\ttry {\n\t\t\t\t\tsock.close();\n\t\t\t\t\tcn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t//\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void startServer() throws IOException{\n\t\t\n\t\tlistenThread = Thread.currentThread();\n\t\twhile(!listenThread.isInterrupted())\n\t\t{\n\t\t\tSocket clientSocket = null;\n\t\t\ttry {\n\t\t\t\tclientSocket = listenSocket.accept();\n\t\t\t\tConnectionHandler connectionHandler = new ConnectionHandler(clientSocket);\n\t\t\t\tTestInstance testInstance = new TestInstance(connectionHandler, dataHandler, outputServer);\n\t\t\t\ttestInstances.add(testInstance);\n\t\t\t\tnew Thread(testInstance).start();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run() {\n try {\n registerWithServer();\n initServerSock(mPort);\n listenForConnection();\n\t} catch (IOException e) {\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, e);\n setTextToDisplay(\"run(): \" + e.getMessage());\n setConnectedStatus(false);\n\t}\n }",
"public void startRunning() {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tserver = new ServerSocket(6789, 100); //6789 is the port number for docking(Where to connect). 100 is backlog no, i.e how many people can wait to access it.\n\t\t\t\twhile (true) {\n\t\t\t\t\t//This will run forever.\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\t\n\t\t\t\t\t\twaitForConnection();\n\t\t\t\t\t\tsetupStreams();\n\t\t\t\t\t\twhileChatting();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcatch(EOFException eofException) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tshowMessage(\"\\n The server has ended the connection!\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfinally {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcloseAll();\n\t\t\t\t\t\t//Housekeeping.\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcatch(IOException ioException ) {\n\t\t\t\t\n\t\t\t\tioException.printStackTrace();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"public void run(){\n\t\t\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tSocket s = listener.accept();\n\t\t\t\tnew ServerConnection(chatServ, s).start();\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn; // stop listening\n\t\t\t}\n\t\t}\n\t}",
"private static ServerSocket startServer(int port) {\n if (port != 0) {\n ServerSocket serverSocket;\n try {\n serverSocket = new ServerSocket(port);\n System.out.println(\"Server listening, port: \" + port + \".\");\n System.out.println(\"Waiting for connection... \");\n return serverSocket;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return null;\n }",
"public void startServer() {\n\r\n try {\r\n echoServer = new ServerSocket(port);\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n // Whenever a connection is received, start a new thread to process the connection\r\n // and wait for the next connection.\r\n while (true) {\r\n try {\r\n clientSocket = echoServer.accept();\r\n numConnections++;\r\n ServerConnection oneconnection = new ServerConnection(clientSocket, numConnections, this);\r\n new Thread(oneconnection).start();\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }\r\n\r\n }",
"public void init() throws IOException {\r\n try {\r\n serverSocket = new ServerSocket(PORT);\r\n this.running = true;\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }",
"protected abstract void startListener();",
"public void startServer() throws IOException {\n log.info(\"Starting server in port {}\", port);\n try {\n serverSocket = new ServerSocket(port);\n this.start();\n log.info(\"Started server. Server listening in port {}\", port);\n } catch (IOException e) {\n log.error(\"Error starting the server socket\", e);\n throw e;\n }\n }",
"public boolean setupSocket() throws ExitProgram {\n\t\tboolean success = false;\n\t\t\n\t\tthis.showNamedMessage(\"Trying to open a new socket...\");\n\t\twhile (this.socket == null) { \n\t\t\ttry {\n\t\t\t\tthis.socket = TransportLayer.openNewDatagramSocket(this.ownPort);\n\t\t\t\tthis.showNamedMessage(\"Client now bound to port \" + ownPort);\n\t\t\t\tsuccess = true;\n\t\t\t} catch (SocketException e) {\n\t\t\t\tthis.showNamedError(\"Something went wrong when opening the socket: \"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t\tif (!textUI.getBoolean(\"Do you want to try again?\")) {\n\t\t\t\t\tthrow new exceptions.ExitProgram(\"User indicated to exit the \"\n\t\t\t\t\t\t\t+ \"program after socket opening failure.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn success;\n\t}",
"public void run() {\n try {\n this.initialize();\n Listener ln = new Listener(localDir, port);\n ln.run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void startServer(int port) throws Exception;",
"public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }",
"public void startClientServer() {\n try {\n this.server_socket = new ServerSocket( port );\n this.start();\n } catch (IOException e ) {\n System.err.println( \"Failure: Socket couldn't OPEN! -> \" + e );\n } finally {\n System.out.println( \"Success: Server socket is now Listening on port \" + port + \"...\" );\n }\n }",
"public void startRunning(){\r\n\t\ttry{\r\n\t\t\twhile( true ){\r\n\t\t\t\tserver = new ServerSocket(PORT);\r\n\t\t\t\ttry{\r\n\t\t\t\t\twaitForClient(1);\r\n\t\t\t\t\twaitForClient(2);\r\n\t\t\t\t\tnew ServerThread(connectionClient1, connectionClient2, this).start();\r\n\t\t\t\t}\r\n\t\t\t\tcatch( EOFException e ){\r\n\t\t\t\t\tshowMessage(\"\\nServer ended the connection\");\r\n\t\t\t\t}\r\n\t\t\t\tfinally {\r\n\t\t\t\t\tserver.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch( IOException e ){\r\n\t\t}\r\n\t}",
"public void startServer(){\r\n try {\r\n\r\n while(true){\r\n\r\n s = sc.accept();\r\n new ServerThread(s).start();\r\n }\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n try {\r\n sc.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"public SuperPeer listen() {\n try {\n this.log(String.format(\"Listening on %s...\", this));\n while (true) {\n // accept an incoming connection\n Socket peerSocket = this.server.accept();\n PeerHandler ph = new PeerHandler(this, peerSocket);\n ph.start();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return this;\n }",
"public boolean init()\n\t{\n\t\tboolean ret = false;\n\t\ttry\n\t\t{\n\t\t\tsocket = new Socket(Setting.SERVER_IP, Setting.SERVER_PORT);\n\t\t\tis = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\tos = new PrintWriter(socket.getOutputStream());\n\t\t\t\n\t\t\tsentInitInfo();\n\t\t\t\n\t\t\tThread listeningThread = new Thread(listenRunnable);\n\t\t\tlisteningThread.start();\n\t\t\t\n\t\t\tret = true;\n\t\t}\n\t\tcatch (UnknownHostException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn ret;\n\t}",
"private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}",
"private void listenForConnection() throws IOException {\n\twhile(true) {\n System.out.println(\"Waiting for connection...\");\n // Wait for client to connect\n Socket cli = server.accept();\n if(connlist.size() < MAX_CONN) {\n\t\t// if numCli is less then 100\n initConnection(cli);\n }\n\t}\n }",
"@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}",
"public void startServer() throws Exception\n {\n\t\t\tString SERVERPORT = \"ServerPort\";\n\t\t\tint serverport = Integer.parseInt(ConfigurationManager.getConfig(SERVERPORT));\n\t\t\t\n \n Srvrsckt=new ServerSocket ( serverport );\n while ( true )\n {\n Sckt =Srvrsckt.accept();\n new Thread ( new ConnectionHandler ( Sckt ) ).start();\n }\n \n \n\n\n }",
"public Builder listeningPort(final Optional<Integer> maybeListeningPort) {\n this.listeningPort = maybeListeningPort.filter(port -> port != 0);\n return this;\n }",
"public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}",
"private void runServer()\n {\n int port = Integer.parseInt(properties.getProperty(\"port\"));\n String ip = properties.getProperty(\"serverIp\");\n \n Logger.getLogger(ChatServer.class.getName()).log(Level.INFO, \"Server started. Listening on: {0}, bound to: {1}\", new Object[]{port, ip});\n try\n {\n serverSocket = new ServerSocket();\n serverSocket.bind(new InetSocketAddress(ip, port));\n do\n {\n Socket socket = serverSocket.accept(); //Important Blocking call\n Logger.getLogger(ChatServer.class.getName()).log(Level.INFO, \"Connected to a client. Waiting for username...\");\n ClientHandler ch = new ClientHandler(socket, this);\n clientList.add(ch);\n ch.start();\n } while (keepRunning);\n } catch (IOException ex)\n {\n Logger.getLogger(ChatServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public int start() throws IOException{\n\t\tClientThread listenerThread = new ClientThread(this);\n\t\tlistenerSock = listenerThread.initSocket();\n\t\tint newPort = listenerSock.getLocalPort();\n\t\tclientPort = newPort;\n\t\tt = new Thread(listenerThread);\n\t\tt.start();\n\t\tsock = new Socket(serverIP, port);\n\t\treturn newPort;\n\t}",
"public void start() throws IOException {\n super.start();\n\n try {\n socket = new Socket(getIP(), getPort());\n input = new DataInputStream(socket.getInputStream());\n output = new DataOutputStream(socket.getOutputStream());\n }\n catch(Exception e) {\n System.out.println(\"The port \" + getPort() + \" is currently already in use.\");\n }\n }",
"public synchronized boolean isListening() {\n\t\treturn isListening;\n\t}",
"public void startServer() {\n server.start();\n }",
"public static void start() {\n enableIncomingMessages(true);\n }",
"@Override\r\n\tpublic void run() {\n\t boolean listen = true;\r\n\t while (listen) {\r\n\t\ttry {\r\n\t\t Socket socket = listeningSocket.accept();\r\n\t\t Thread ConnThread = new Thread (new Connection (socket, pid));\r\n\t\t ConnThread.start();\r\n\t\t connThreads.add(ConnThread);\r\n\t\t \r\n\t\t} catch (SocketException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t listen = false;\r\n\t\t} catch (Exception e) {\r\n\t\t System.err.println(\"Random exception\");\r\n\t\t}\r\n\t }\r\n\t}",
"@Test\n public void testListen_int() throws Exception {\n System.out.println(\"listen\");\n int p = 4000;\n instance.listen(p);\n }",
"public static void startServer() throws IOException {\n ServerSocket serverSocket = new ServerSocket(port_number);\n\n System.out.println(\"Server Up\");\n System.out.println(\"Port number: \" + port_number);\n\n Thread loop = loopClients(serverSocket);\n loop.start();\n\n while (running) {\n try {\n Thread.sleep(1000l);\n\n } catch (Exception e) {\n\n }\n }\n\n loop.stop();\n removeAllClients();\n }",
"protected boolean mStartServerService() {//170926 Start listening for a client to relay to (170926\n if (oBTServer == null) {\n oBTServer = new cRelay2Client();//170922\n }\n if (oBTServer.bRelayState ==cKonst.eSerial.kListening) {\n mMsgLog(9,\"Already listening\");\n return false;\n }\n oBTServer.mOpenService(mContext, oBTadapter);//170922\n return true;\n }",
"private void runServer() {\n while(true) {\n try {\n SSLSocket socket = (SSLSocket)listener.accept();\n\n this.establishClient(socket);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"protected void safeRun() throws Exception\n\t{\n\t\t//Note that continuous handling has begun.\n\t\tsynchronized (this) { this.running = true; }\n\t\t\n\t\t//Acquire listening socket.\n\t\tServerSocket ss = new ServerSocket(this.listeningAddress().getPort(), 10, this.listeningAddress().getAddress());\n\t\t\n\t\t//While this thread has permission to run...\n\t\t//(this.running)\n\t\t//Call terminate() to revoke permission and halt.\n\t\twhile (this.isRunning())\n\t\t{\n\t\t\t//Listen on the socket...\n\t\t\tSocket s = ss.accept();\n\t\t\t\n\t\t\t//Prepare an array of bytes into which\n\t\t\t//\tto load the incoming packet.\n\t\t\tbyte[] b = new byte[512];\n\t\t\t\n\t\t\t//Read the incoming packet into byte[] b.\n\t\t\t//Store b.length as int r.\n\t\t\tint r = s.getInputStream().read(b);\n\t\t\t\n\t\t\t// [scaffold]\n\t\t\t//System.out.println(b[0] + \" \" + b[1] + \" \" + b[2] + \" \" + b[3]);\n\t\t\t\n\t\t\t//If the packet was actually read (it has\n\t\t\t//\tlength), handle it.\n\t\t\tif (r > 0)\n\t\t\t\tthis.handle(s, b, r);\n\t\t}\n\t\t\n\t\t//Upon revocation of listening permission (signified\n\t\t//\tby boolean this.running = false) close the listening\n\t\t//\tport and conclude execution.\n\t\tss.close();\n\t}",
"private void listen() {\n //Grap port/ip from UI\n String ip = m_ipField.getText().trim();\n try {\n ip = InetAddress.getByName(ip).getHostAddress(); //Validate IP Address\n } catch (UnknownHostException ex) {\n Logger.getLogger(StreamRecorderDisplay.class.getName()).log(Level.SEVERE, \"Poorly formatted IP Address: \" + m_ipField.getText(), ex);\n }\n int port = Integer.valueOf(m_portField.getText().trim());\n\n //Start detector\n m_dataDetector = new MulticastDataDetector(ip, port);\n m_dataDetector.addMulticastDataDetectionListener(this);\n new Thread(m_dataDetector).start();\n }",
"public abstract InetSocketAddress listeningAddress();",
"private void listen() {\n try {\n this.console.println(MapControl.checkListen(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public String listen(){\t\n\t\tSystem.out.println(\"Server lauscht.\");\n\t\treturn receiveString();\n\t}",
"public void startDiscoverability() throws IOException {\r\n pendingWrites = new HashMap<>();\r\n\r\n datagramChannel = DatagramChannel.open()\r\n .setOption(StandardSocketOptions.SO_REUSEADDR, true)\r\n .bind(this.findableAddress);\r\n datagramChannel.configureBlocking(false);\r\n\r\n selector = Selector.open();\r\n datagramChannel.register(this.selector, SelectionKey.OP_READ);\r\n\r\n findableServerThread = new Thread(new FindableServerRunnable());\r\n findableServerThread.start();\r\n }",
"private void startServer() throws IOException {\n while (true) {\n System.out.println(\"[1] Waiting for connection...\");\n\n client = server.accept();\n System.out.println(\"[2] Connection accepted from: \" + client.getInetAddress());\n\n in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n out = new PrintStream(client.getOutputStream(), true);\n\n while (!in.ready()) ;\n\n String line = in.readLine();\n ManageConnections connection = new ManageConnectionsFactory().getConnection(line);\n\n connection.goConnect(client, in, out);\n }\n }",
"public void start(int port);",
"@Override\r\n\tpublic boolean listenAt(int port) {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t\tsocket = serverSocket.accept();\r\n\t\t\toutStreamServer = socket.getOutputStream();\r\n\t\t\tinStreamServer = socket.getInputStream();\r\n\t\t\treturn true;\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} finally {\r\n\t\t}\r\n\t}",
"public String listen() {\n\n\t\ttry {\n\n\t\t\treturn serverio.listen();\n\n\t\t} catch (IOException ioe) {\n\n\t\t\t// <2> Incoming data was corrupted and is being thrown away.\n\t\t\tSystem.out.println(\"<2>\");\n\t\t\treturn \"<2> Incoming data was corrupted and is being thrown away.\";\n\n\t\t}\n\t}",
"private void startServer(int port) throws IOException {\n System.out.println(\"Booting the server!\");\n\n // Open the server channel.\n serverSocketChannel = ServerSocketChannel.open();\n serverSocketChannel.bind(new InetSocketAddress(port));\n serverSocketChannel.configureBlocking(false);\n\n // Register the channel into the selector.\n selector = Selector.open();\n serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT);\n }",
"private static void startServer() {\n new Thread() {\n public void run() {\n Server server = new Server();\n server.startUDP();\n }\n }.start();\n }",
"public void start(int port)\n\t{\n\t\t// Initialize and start the server sockets. 08/10/2014, Bing Li\n\t\tthis.port = port;\n\t\ttry\n\t\t{\n\t\t\tthis.socket = new ServerSocket(this.port);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Initialize a disposer which collects the server listener. 08/10/2014, Bing Li\n\t\tMyServerListenerDisposer disposer = new MyServerListenerDisposer();\n\t\t// Initialize the runner list. 11/25/2014, Bing Li\n\t\tthis.listenerRunnerList = new ArrayList<Runner<MyServerListener, MyServerListenerDisposer>>();\n\t\t\n\t\t// Start up the threads to listen to connecting from clients which send requests as well as receive notifications. 08/10/2014, Bing Li\n\t\tRunner<MyServerListener, MyServerListenerDisposer> runner;\n\t\tfor (int i = 0; i < ServerConfig.LISTENING_THREAD_COUNT; i++)\n\t\t{\n\t\t\trunner = new Runner<MyServerListener, MyServerListenerDisposer>(new MyServerListener(this.socket, ServerConfig.LISTENER_THREAD_POOL_SIZE, ServerConfig.LISTENER_THREAD_ALIVE_TIME), disposer, true);\n\t\t\tthis.listenerRunnerList.add(runner);\n\t\t\trunner.start();\n\t\t}\n\n\t\t// Initialize the server IO registry. 11/07/2014, Bing Li\n\t\tMyServerIORegistry.REGISTRY().init();\n\t\t// Initialize a client pool, which is used by the server to connect to the remote end. 09/17/2014, Bing Li\n\t\tClientPool.SERVER().init();\n\t}",
"public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected void start() throws ConfigurationException, MalformedContentNameStringException, IOException {\n \t\t_thd.start();\n \t\t_chat.setLogging(Level.WARNING);\n \t\t_chat.listen();\n \t}",
"public void startCasterThread () throws IllegalStateException\n {\n System.out.println (\"Start Mailserver on port \" + port);\n if (ntripCaster != null)\n throw new IllegalStateException (\"NTRIP caster is already running.\");\n\n ntripCasterRunning = false;\n\n ntripCaster = new NtripCasterThread ();\n ntripCaster.start ();\n\n // Now we wait for the NTRIP caster to open its socket.\n int cycles = 100;\n while (!ntripCasterRunning && --cycles > 0) {\n try { Thread.sleep (50); } catch (Exception e) {}\n Thread.yield ();\n }\n\n if (cycles == 0)\n throw new IllegalStateException (\"Can not launch NTRIP caster.\");\n }",
"@Override\n\tpublic void run() {\n\t\tif (FrameworkHandler.DEBUG_MODE){\n\t\t\tString strType = \"\";\n\t\t\tif (type == RULE_CONNECTION) strType = \"New RemoteRule Listener\";\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(strType + \" LISTENING on port: \" + listeningSocket.getLocalPort());\n\t\t}\n\t\ttry {\n\t\t\twhile (running) {\n\t\t\t\tSocket newSocket = listeningSocket.accept();\n\t\t\t\t\n\t\t\t\tif (FrameworkHandler.DEBUG_MODE)\n\t\t\t\t\tSystem.out.println(\"New request obtained on \" + newSocket.getPort() + \"|\" + newSocket.getLocalPort());\n\t\t\t\t\n\t\t\t\tcreateNewConnection(newSocket);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tFrameworkHandler.exceptionLog(FrameworkHandler.LOG_ERROR, this, e);\n\t\t}\n\t}"
] | [
"0.79263276",
"0.7514316",
"0.7217831",
"0.70818347",
"0.70805544",
"0.69713134",
"0.6898606",
"0.6775929",
"0.6727032",
"0.66546047",
"0.66257477",
"0.65492344",
"0.6537842",
"0.6526783",
"0.6525656",
"0.6476977",
"0.6474505",
"0.64432776",
"0.643353",
"0.6431784",
"0.6420794",
"0.64165497",
"0.63926744",
"0.6367432",
"0.6341982",
"0.6324593",
"0.62937284",
"0.62247723",
"0.61890054",
"0.6183941",
"0.61527336",
"0.61349946",
"0.6119184",
"0.6112586",
"0.609529",
"0.609482",
"0.60411406",
"0.59984505",
"0.59845054",
"0.59519464",
"0.5937187",
"0.5934548",
"0.5896848",
"0.5893021",
"0.5871865",
"0.58671",
"0.5867082",
"0.5853691",
"0.58522016",
"0.5849292",
"0.58473545",
"0.58400637",
"0.5825829",
"0.58143395",
"0.58119816",
"0.5809317",
"0.5804976",
"0.5804391",
"0.5783907",
"0.57687724",
"0.57675225",
"0.5760105",
"0.57497996",
"0.5728721",
"0.57270914",
"0.571733",
"0.5714086",
"0.5705936",
"0.56946003",
"0.5692796",
"0.5669571",
"0.5657329",
"0.5643044",
"0.5637055",
"0.5635032",
"0.5622955",
"0.56151366",
"0.5609081",
"0.5600472",
"0.55966353",
"0.5593428",
"0.55748016",
"0.5569751",
"0.55643135",
"0.5547502",
"0.55298376",
"0.55244964",
"0.54820657",
"0.54766196",
"0.5472327",
"0.54715455",
"0.54649293",
"0.54610157",
"0.5458573",
"0.5456872",
"0.54549974",
"0.54514825",
"0.5450671",
"0.5449349",
"0.5440067"
] | 0.62877893 | 27 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | int countByExample(SysIdExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"Long getDbId();",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public int getId() {\n return tableId;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.6582411",
"0.650957",
"0.64063174",
"0.6391821",
"0.63313186",
"0.63313186",
"0.63087165",
"0.62580067",
"0.6093401",
"0.6066629",
"0.6066629",
"0.6035246",
"0.60230994",
"0.602279",
"0.5979938",
"0.5931264",
"0.5925807",
"0.58759946",
"0.58472604",
"0.58188355",
"0.58065206",
"0.5804293",
"0.5778077",
"0.5735845",
"0.56903696",
"0.5688734",
"0.5681446",
"0.56355876",
"0.5633101",
"0.5628323",
"0.5614652",
"0.5611281",
"0.5610083",
"0.5606451",
"0.56008947",
"0.55923533",
"0.5590888",
"0.5578161",
"0.55755746",
"0.5560301",
"0.5550822",
"0.55154526",
"0.5514955",
"0.55143255",
"0.5514139",
"0.55064696",
"0.55016726",
"0.55016726",
"0.55016726",
"0.55006224",
"0.5496037",
"0.54800195",
"0.5454746",
"0.5443951",
"0.5439579",
"0.5439579",
"0.5433756",
"0.542617",
"0.542617",
"0.54236686",
"0.5410291",
"0.5403002",
"0.53967595",
"0.53966063",
"0.53934604",
"0.5384321",
"0.5371398",
"0.5365455",
"0.5362179",
"0.53567106",
"0.53489584",
"0.53449214",
"0.5337798",
"0.53240585",
"0.53210807",
"0.53208673",
"0.5319383",
"0.53120905",
"0.53120905",
"0.53120905",
"0.5311376",
"0.5307124",
"0.53037363",
"0.5299976",
"0.52944404",
"0.5289579",
"0.5282432",
"0.5281773",
"0.5276971",
"0.5274287",
"0.5267222",
"0.52613884",
"0.5260856",
"0.5259296",
"0.5249053",
"0.5249053",
"0.5249053",
"0.5249053",
"0.5248428",
"0.52441263",
"0.5226882"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | int deleteByExample(SysIdExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"Long getDbId();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public int getId() {\n return tableId;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.6582291",
"0.65085024",
"0.64068365",
"0.63910955",
"0.6331192",
"0.6331192",
"0.6308016",
"0.62573636",
"0.6091793",
"0.6065976",
"0.6065976",
"0.6034096",
"0.6022949",
"0.6021949",
"0.5979965",
"0.5931327",
"0.59256494",
"0.5876596",
"0.58453107",
"0.5819486",
"0.58072877",
"0.5805169",
"0.57770777",
"0.57362664",
"0.5689886",
"0.5689599",
"0.5680603",
"0.56358445",
"0.5632219",
"0.56266755",
"0.561496",
"0.56096303",
"0.56087124",
"0.56066215",
"0.56004196",
"0.559075",
"0.5590163",
"0.55801266",
"0.55752456",
"0.5559409",
"0.5552725",
"0.55152553",
"0.5515146",
"0.55144614",
"0.5513808",
"0.5507708",
"0.5502478",
"0.5502478",
"0.5502478",
"0.5500245",
"0.5496894",
"0.5481028",
"0.54537857",
"0.54429966",
"0.54401225",
"0.54401225",
"0.54339397",
"0.5424429",
"0.5424429",
"0.5421471",
"0.5409633",
"0.54026175",
"0.5397226",
"0.5397013",
"0.53928155",
"0.5382463",
"0.5372739",
"0.53663015",
"0.5364178",
"0.53561455",
"0.5349881",
"0.5345509",
"0.53379416",
"0.53245056",
"0.5322378",
"0.53214854",
"0.532115",
"0.5312228",
"0.5312228",
"0.5312228",
"0.5310323",
"0.5307165",
"0.53030884",
"0.5300188",
"0.5293865",
"0.52888566",
"0.52823555",
"0.528141",
"0.5277335",
"0.5274091",
"0.5265603",
"0.52615553",
"0.5260407",
"0.52603304",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5246818",
"0.52445203",
"0.5226392"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | int deleteByPrimaryKey(String id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"Long getDbId();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public int getId() {\n return tableId;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.6582291",
"0.65085024",
"0.64068365",
"0.63910955",
"0.6331192",
"0.6331192",
"0.6308016",
"0.62573636",
"0.6091793",
"0.6065976",
"0.6065976",
"0.6034096",
"0.6022949",
"0.6021949",
"0.5979965",
"0.5931327",
"0.59256494",
"0.5876596",
"0.58453107",
"0.5819486",
"0.58072877",
"0.5805169",
"0.57770777",
"0.57362664",
"0.5689886",
"0.5689599",
"0.5680603",
"0.56358445",
"0.5632219",
"0.56266755",
"0.561496",
"0.56096303",
"0.56087124",
"0.56066215",
"0.56004196",
"0.559075",
"0.5590163",
"0.55801266",
"0.55752456",
"0.5559409",
"0.5552725",
"0.55152553",
"0.5515146",
"0.55144614",
"0.5513808",
"0.5507708",
"0.5502478",
"0.5502478",
"0.5502478",
"0.5500245",
"0.5496894",
"0.5481028",
"0.54537857",
"0.54429966",
"0.54401225",
"0.54401225",
"0.54339397",
"0.5424429",
"0.5424429",
"0.5421471",
"0.5409633",
"0.54026175",
"0.5397226",
"0.5397013",
"0.53928155",
"0.5382463",
"0.5372739",
"0.53663015",
"0.5364178",
"0.53561455",
"0.5349881",
"0.5345509",
"0.53379416",
"0.53245056",
"0.5322378",
"0.53214854",
"0.532115",
"0.5312228",
"0.5312228",
"0.5312228",
"0.5310323",
"0.5307165",
"0.53030884",
"0.5300188",
"0.5293865",
"0.52888566",
"0.52823555",
"0.528141",
"0.5277335",
"0.5274091",
"0.5265603",
"0.52615553",
"0.5260407",
"0.52603304",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5246818",
"0.52445203",
"0.5226392"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | int insert(SysId record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"Long getDbId();",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public int getId() {\n return tableId;\n }",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"Long getId();",
"Long getId();",
"Long getId();",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.658298",
"0.6509866",
"0.64063925",
"0.6391799",
"0.63319606",
"0.63319606",
"0.63094836",
"0.6258782",
"0.6093177",
"0.6066707",
"0.6066707",
"0.60359544",
"0.6023374",
"0.60229033",
"0.5982698",
"0.59331226",
"0.5926955",
"0.5876655",
"0.5847389",
"0.582015",
"0.58073825",
"0.58049417",
"0.57785445",
"0.5736712",
"0.5690967",
"0.568853",
"0.56819373",
"0.56370246",
"0.5633578",
"0.5628196",
"0.5614414",
"0.5611213",
"0.5609138",
"0.560723",
"0.56013733",
"0.5592108",
"0.5591529",
"0.5579462",
"0.55765134",
"0.55613655",
"0.55531234",
"0.5516938",
"0.5516914",
"0.5514722",
"0.5514655",
"0.5507117",
"0.55025816",
"0.55025816",
"0.55025816",
"0.55009854",
"0.54961556",
"0.5480569",
"0.5454935",
"0.54428446",
"0.54411143",
"0.54411143",
"0.5434291",
"0.54258925",
"0.54258925",
"0.5422807",
"0.54106945",
"0.54045725",
"0.5399059",
"0.5395849",
"0.5393384",
"0.53848994",
"0.537331",
"0.53658164",
"0.5364868",
"0.5358354",
"0.5349368",
"0.5345228",
"0.53384846",
"0.5324089",
"0.5322785",
"0.5322186",
"0.5321235",
"0.53124326",
"0.53123915",
"0.53123915",
"0.53123915",
"0.5307609",
"0.5305169",
"0.53004056",
"0.529504",
"0.52899307",
"0.52833474",
"0.5282385",
"0.5278518",
"0.52757794",
"0.52674735",
"0.52616525",
"0.5261465",
"0.5259336",
"0.5249871",
"0.5249871",
"0.5249871",
"0.5249871",
"0.52482784",
"0.52442",
"0.52269363"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | int insertSelective(SysId record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"Long getDbId();",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public int getId() {\n return tableId;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.6582411",
"0.650957",
"0.64063174",
"0.6391821",
"0.63313186",
"0.63313186",
"0.63087165",
"0.62580067",
"0.6093401",
"0.6066629",
"0.6066629",
"0.6035246",
"0.60230994",
"0.602279",
"0.5979938",
"0.5931264",
"0.5925807",
"0.58759946",
"0.58472604",
"0.58188355",
"0.58065206",
"0.5804293",
"0.5778077",
"0.5735845",
"0.56903696",
"0.5688734",
"0.5681446",
"0.56355876",
"0.5633101",
"0.5628323",
"0.5614652",
"0.5611281",
"0.5610083",
"0.5606451",
"0.56008947",
"0.55923533",
"0.5590888",
"0.5578161",
"0.55755746",
"0.5560301",
"0.5550822",
"0.55154526",
"0.5514955",
"0.55143255",
"0.5514139",
"0.55064696",
"0.55016726",
"0.55016726",
"0.55016726",
"0.55006224",
"0.5496037",
"0.54800195",
"0.5454746",
"0.5443951",
"0.5439579",
"0.5439579",
"0.5433756",
"0.542617",
"0.542617",
"0.54236686",
"0.5410291",
"0.5403002",
"0.53967595",
"0.53966063",
"0.53934604",
"0.5384321",
"0.5371398",
"0.5365455",
"0.5362179",
"0.53567106",
"0.53489584",
"0.53449214",
"0.5337798",
"0.53240585",
"0.53210807",
"0.53208673",
"0.5319383",
"0.53120905",
"0.53120905",
"0.53120905",
"0.5311376",
"0.5307124",
"0.53037363",
"0.5299976",
"0.52944404",
"0.5289579",
"0.5282432",
"0.5281773",
"0.5276971",
"0.5274287",
"0.5267222",
"0.52613884",
"0.5260856",
"0.5259296",
"0.5249053",
"0.5249053",
"0.5249053",
"0.5249053",
"0.5248428",
"0.52441263",
"0.5226882"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | List<SysId> selectByExample(SysIdExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"Long getDbId();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public int getId() {\n return tableId;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.6582291",
"0.65085024",
"0.64068365",
"0.63910955",
"0.6331192",
"0.6331192",
"0.6308016",
"0.62573636",
"0.6091793",
"0.6065976",
"0.6065976",
"0.6034096",
"0.6022949",
"0.6021949",
"0.5979965",
"0.5931327",
"0.59256494",
"0.5876596",
"0.58453107",
"0.5819486",
"0.58072877",
"0.5805169",
"0.57770777",
"0.57362664",
"0.5689886",
"0.5689599",
"0.5680603",
"0.56358445",
"0.5632219",
"0.56266755",
"0.56096303",
"0.56087124",
"0.56066215",
"0.56004196",
"0.559075",
"0.5590163",
"0.55801266",
"0.55752456",
"0.5559409",
"0.5552725",
"0.55152553",
"0.5515146",
"0.55144614",
"0.5513808",
"0.5507708",
"0.5502478",
"0.5502478",
"0.5502478",
"0.5500245",
"0.5496894",
"0.5481028",
"0.54537857",
"0.54429966",
"0.54401225",
"0.54401225",
"0.54339397",
"0.5424429",
"0.5424429",
"0.5421471",
"0.5409633",
"0.54026175",
"0.5397226",
"0.5397013",
"0.53928155",
"0.5382463",
"0.5372739",
"0.53663015",
"0.5364178",
"0.53561455",
"0.5349881",
"0.5345509",
"0.53379416",
"0.53245056",
"0.5322378",
"0.53214854",
"0.532115",
"0.5312228",
"0.5312228",
"0.5312228",
"0.5310323",
"0.5307165",
"0.53030884",
"0.5300188",
"0.5293865",
"0.52888566",
"0.52823555",
"0.528141",
"0.5277335",
"0.5274091",
"0.5265603",
"0.52615553",
"0.5260407",
"0.52603304",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5246818",
"0.52445203",
"0.5226392"
] | 0.561496 | 30 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | SysId selectByPrimaryKey(String id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"Long getDbId();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public int getId() {\n return tableId;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.6582291",
"0.65085024",
"0.63910955",
"0.6331192",
"0.6331192",
"0.6308016",
"0.62573636",
"0.6091793",
"0.6065976",
"0.6065976",
"0.6034096",
"0.6022949",
"0.6021949",
"0.5979965",
"0.5931327",
"0.59256494",
"0.5876596",
"0.58453107",
"0.5819486",
"0.58072877",
"0.5805169",
"0.57770777",
"0.57362664",
"0.5689886",
"0.5689599",
"0.5680603",
"0.56358445",
"0.5632219",
"0.56266755",
"0.561496",
"0.56096303",
"0.56087124",
"0.56066215",
"0.56004196",
"0.559075",
"0.5590163",
"0.55801266",
"0.55752456",
"0.5559409",
"0.5552725",
"0.55152553",
"0.5515146",
"0.55144614",
"0.5513808",
"0.5507708",
"0.5502478",
"0.5502478",
"0.5502478",
"0.5500245",
"0.5496894",
"0.5481028",
"0.54537857",
"0.54429966",
"0.54401225",
"0.54401225",
"0.54339397",
"0.5424429",
"0.5424429",
"0.5421471",
"0.5409633",
"0.54026175",
"0.5397226",
"0.5397013",
"0.53928155",
"0.5382463",
"0.5372739",
"0.53663015",
"0.5364178",
"0.53561455",
"0.5349881",
"0.5345509",
"0.53379416",
"0.53245056",
"0.5322378",
"0.53214854",
"0.532115",
"0.5312228",
"0.5312228",
"0.5312228",
"0.5310323",
"0.5307165",
"0.53030884",
"0.5300188",
"0.5293865",
"0.52888566",
"0.52823555",
"0.528141",
"0.5277335",
"0.5274091",
"0.5265603",
"0.52615553",
"0.5260407",
"0.52603304",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5246818",
"0.52445203",
"0.5226392"
] | 0.64068365 | 2 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | int updateByExampleSelective(@Param("record") SysId record, @Param("example") SysIdExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"Long getDbId();",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public int getId() {\n return tableId;\n }",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"Long getId();",
"Long getId();",
"Long getId();",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.658298",
"0.6509866",
"0.64063925",
"0.6391799",
"0.63319606",
"0.63319606",
"0.63094836",
"0.6258782",
"0.6093177",
"0.6066707",
"0.6066707",
"0.60359544",
"0.6023374",
"0.60229033",
"0.5982698",
"0.59331226",
"0.5926955",
"0.5876655",
"0.5847389",
"0.582015",
"0.58073825",
"0.58049417",
"0.57785445",
"0.5736712",
"0.5690967",
"0.568853",
"0.56819373",
"0.56370246",
"0.5633578",
"0.5628196",
"0.5614414",
"0.5611213",
"0.5609138",
"0.560723",
"0.56013733",
"0.5592108",
"0.5591529",
"0.5579462",
"0.55765134",
"0.55613655",
"0.55531234",
"0.5516938",
"0.5516914",
"0.5514722",
"0.5514655",
"0.5507117",
"0.55025816",
"0.55025816",
"0.55025816",
"0.55009854",
"0.54961556",
"0.5480569",
"0.5454935",
"0.54428446",
"0.54411143",
"0.54411143",
"0.5434291",
"0.54258925",
"0.54258925",
"0.5422807",
"0.54106945",
"0.54045725",
"0.5399059",
"0.5395849",
"0.5393384",
"0.53848994",
"0.537331",
"0.53658164",
"0.5364868",
"0.5358354",
"0.5349368",
"0.5345228",
"0.53384846",
"0.5324089",
"0.5322785",
"0.5322186",
"0.5321235",
"0.53124326",
"0.53123915",
"0.53123915",
"0.53123915",
"0.5307609",
"0.5305169",
"0.53004056",
"0.529504",
"0.52899307",
"0.52833474",
"0.5282385",
"0.5278518",
"0.52757794",
"0.52674735",
"0.52616525",
"0.5261465",
"0.5259336",
"0.5249871",
"0.5249871",
"0.5249871",
"0.5249871",
"0.52482784",
"0.52442",
"0.52269363"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | int updateByExample(@Param("record") SysId record, @Param("example") SysIdExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"Long getDbId();",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public int getId() {\n return tableId;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.6582411",
"0.650957",
"0.64063174",
"0.6391821",
"0.63313186",
"0.63313186",
"0.63087165",
"0.62580067",
"0.6093401",
"0.6066629",
"0.6066629",
"0.6035246",
"0.60230994",
"0.602279",
"0.5979938",
"0.5931264",
"0.5925807",
"0.58759946",
"0.58472604",
"0.58188355",
"0.58065206",
"0.5804293",
"0.5778077",
"0.5735845",
"0.56903696",
"0.5688734",
"0.5681446",
"0.56355876",
"0.5633101",
"0.5628323",
"0.5614652",
"0.5611281",
"0.5610083",
"0.5606451",
"0.56008947",
"0.55923533",
"0.5590888",
"0.5578161",
"0.55755746",
"0.5560301",
"0.5550822",
"0.55154526",
"0.5514955",
"0.55143255",
"0.5514139",
"0.55064696",
"0.55016726",
"0.55016726",
"0.55016726",
"0.55006224",
"0.5496037",
"0.54800195",
"0.5454746",
"0.5443951",
"0.5439579",
"0.5439579",
"0.5433756",
"0.542617",
"0.542617",
"0.54236686",
"0.5410291",
"0.5403002",
"0.53967595",
"0.53966063",
"0.53934604",
"0.5384321",
"0.5371398",
"0.5365455",
"0.5362179",
"0.53567106",
"0.53489584",
"0.53449214",
"0.5337798",
"0.53240585",
"0.53210807",
"0.53208673",
"0.5319383",
"0.53120905",
"0.53120905",
"0.53120905",
"0.5311376",
"0.5307124",
"0.53037363",
"0.5299976",
"0.52944404",
"0.5289579",
"0.5282432",
"0.5281773",
"0.5276971",
"0.5274287",
"0.5267222",
"0.52613884",
"0.5260856",
"0.5259296",
"0.5249053",
"0.5249053",
"0.5249053",
"0.5249053",
"0.5248428",
"0.52441263",
"0.5226882"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | int updateByPrimaryKeySelective(SysId record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"Long getDbId();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public int getId() {\n return tableId;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.6582291",
"0.65085024",
"0.64068365",
"0.63910955",
"0.6331192",
"0.6331192",
"0.6308016",
"0.62573636",
"0.6091793",
"0.6065976",
"0.6065976",
"0.6034096",
"0.6022949",
"0.6021949",
"0.5979965",
"0.5931327",
"0.59256494",
"0.5876596",
"0.58453107",
"0.5819486",
"0.58072877",
"0.5805169",
"0.57770777",
"0.57362664",
"0.5689886",
"0.5689599",
"0.5680603",
"0.56358445",
"0.5632219",
"0.56266755",
"0.561496",
"0.56096303",
"0.56087124",
"0.56066215",
"0.56004196",
"0.559075",
"0.5590163",
"0.55801266",
"0.55752456",
"0.5559409",
"0.5552725",
"0.55152553",
"0.5515146",
"0.55144614",
"0.5513808",
"0.5507708",
"0.5502478",
"0.5502478",
"0.5502478",
"0.5500245",
"0.5496894",
"0.5481028",
"0.54537857",
"0.54429966",
"0.54401225",
"0.54401225",
"0.54339397",
"0.5424429",
"0.5424429",
"0.5421471",
"0.5409633",
"0.54026175",
"0.5397226",
"0.5397013",
"0.53928155",
"0.5382463",
"0.5372739",
"0.53663015",
"0.5364178",
"0.53561455",
"0.5349881",
"0.5345509",
"0.53379416",
"0.53245056",
"0.5322378",
"0.53214854",
"0.532115",
"0.5312228",
"0.5312228",
"0.5312228",
"0.5310323",
"0.5307165",
"0.53030884",
"0.5300188",
"0.5293865",
"0.52888566",
"0.52823555",
"0.528141",
"0.5277335",
"0.5274091",
"0.5265603",
"0.52615553",
"0.5260407",
"0.52603304",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5246818",
"0.52445203",
"0.5226392"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table sys_id | int updateByPrimaryKey(SysId record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSysId() {\n return sysId;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"SysId selectByPrimaryKey(String id);",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"int getSysID();",
"Long getDbId();",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"public abstract byte getTableId();",
"@Override\n\tpublic long getTableId() {\n\t\treturn _expandoColumn.getTableId();\n\t}",
"@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }",
"java.lang.String getDatabaseId();",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}",
"SysCode selectByPrimaryKey(String id);",
"@Insert({ \"insert into public.tb_sistema (ds_sistema)\", \"values (#{dsSistema,jdbcType=VARCHAR})\" })\n\t@SelectKey(statement = \"SELECT currval('tb_sistema_id_sistema_seq')\", keyProperty = \"idSistema\", before = false, resultType = Integer.class)\n\tint insert(Sistema record);",
"public String getSystemId();",
"SysType selectByPrimaryKey(Integer id);",
"@Select({ \"select\", \"id_sistema, ds_sistema\", \"from public.tb_sistema\",\n\t\t\t\"where id_sistema = #{idSistema,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"id_sistema\", property = \"idSistema\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"ds_sistema\", property = \"dsSistema\", jdbcType = JdbcType.VARCHAR) })\n\tSistema selectByPrimaryKey(Integer idSistema);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"public abstract long getSdiId();",
"TableId table();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"List<SysId> selectByExample(SysIdExample example);",
"public void setSystemId(String systemId);",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}",
"public ScGridColumn<AcGlobalDomesticActualMarketCache> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"protected abstract String identity() throws SQLException;",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public int getId() {\n return tableId;\n }",
"public abstract String getPrimaryKey(String tableName);",
"public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}",
"public ScGridColumn<AcFossWebServiceMessage> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"int getStatementId();",
"int getStatementId();",
"int getStatementId();",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}",
"public String getSystemId() { return this.systemId; }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int ultimoSysPk(Connection connection) {\n\t\tString query = \"SELECT sysPK FROM detallesolicitudes order by sysPK asc\";\n\t\tint ultimoSysPk = 0;\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(query);\n\t\t\twhile (resultSet.next())\n\t\t\t\tultimoSysPk = resultSet.getInt(1);\n\t\t\treturn ultimoSysPk;\n\t\t}catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t}//FIN TRY/CATCH\n\t\treturn ultimoSysPk;\n\t}",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public long getId() {\n return ctTableColumn.getId();\n }",
"@Override\n public String getPrimaryKey(String tableName) {\n return super.getPrimaryKey(tableName);\n }",
"SysOrganization selectByPrimaryKey(Long id);",
"String getExistingId();",
"String pvIDTableName();",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"long getSourceId();",
"ColumnIdentifier<ENTITY> identifier();",
"int getTableID() {\r\n return table_id;\r\n }",
"public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public String getBaseId();",
"public int dbId() { return dbId; }",
"public String getSysNo() {\n return sysNo;\n }",
"public interface ISysIdtableService extends CommonService<SysIdtableEntity>{\n\n /**\n * 获取最大表序列值,不更新到数据库\n * @param code\n * @return\n */\n Long get(String code);\n\n /**\n * 获取一个当前最大序列后后,并跟新数据库\n * @param code\n * @return\n */\n Long increment(String code);\n\n}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}",
"int getUnusedTableId(Schema schema);",
"SystemRoleUserMapperMo selectByPrimaryKey(Integer id);",
"boolean hasSysID();",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"public abstract Long getId();",
"public ScGridColumn<AcUspsInternationalSkeletonRouteOffer> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}",
"java.lang.String getHeaderTableId();",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"SysRoleFunction selectByPrimaryKey(Integer id);",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getValueId();",
"long getNoId();"
] | [
"0.6582291",
"0.65085024",
"0.64068365",
"0.63910955",
"0.6331192",
"0.6331192",
"0.6308016",
"0.62573636",
"0.6091793",
"0.6065976",
"0.6065976",
"0.6034096",
"0.6022949",
"0.6021949",
"0.5979965",
"0.5931327",
"0.59256494",
"0.5876596",
"0.58453107",
"0.5819486",
"0.58072877",
"0.5805169",
"0.57770777",
"0.57362664",
"0.5689886",
"0.5689599",
"0.5680603",
"0.56358445",
"0.5632219",
"0.56266755",
"0.561496",
"0.56096303",
"0.56087124",
"0.56066215",
"0.56004196",
"0.559075",
"0.5590163",
"0.55801266",
"0.55752456",
"0.5559409",
"0.5552725",
"0.55152553",
"0.5515146",
"0.55144614",
"0.5513808",
"0.5507708",
"0.5502478",
"0.5502478",
"0.5502478",
"0.5500245",
"0.5496894",
"0.5481028",
"0.54537857",
"0.54429966",
"0.54401225",
"0.54401225",
"0.54339397",
"0.5424429",
"0.5424429",
"0.5421471",
"0.5409633",
"0.54026175",
"0.5397226",
"0.5397013",
"0.53928155",
"0.5382463",
"0.5372739",
"0.53663015",
"0.5364178",
"0.53561455",
"0.5349881",
"0.5345509",
"0.53379416",
"0.53245056",
"0.5322378",
"0.53214854",
"0.532115",
"0.5312228",
"0.5312228",
"0.5312228",
"0.5310323",
"0.5307165",
"0.53030884",
"0.5300188",
"0.5293865",
"0.52888566",
"0.52823555",
"0.528141",
"0.5277335",
"0.5274091",
"0.5265603",
"0.52615553",
"0.5260407",
"0.52603304",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5248917",
"0.5246818",
"0.52445203",
"0.5226392"
] | 0.0 | -1 |
Adds the given element into the next open index | public void enqueue(T item) {
++item_count;
if(item_count==arr.length)
doubleArray();
arr[++back%arr.length]=item;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void add(int index, Object element);",
"@Override\n public void add(int index, int element) {\n Entry newElement = new Entry(element);\n Entry tmp = getEntry(index);\n newElement.next = tmp;\n newElement.previous = tmp.previous;\n tmp.previous.next = newElement;\n tmp.previous = newElement;\n size++;\n }",
"public void add(int index, E element);",
"public void add (Object element)\n {\n if (position == null)\n {\n addFirst(element);//LL is empty\n position = first;\n }\n else{\n Node newNode = new Node();\n newNode.data = element; // Alias \n newNode.next = position.next; //I know who is next \n position.next =newNode; //Iterator thinks next is me\n position= newNode;// current posiion is me, little conflict if you call remove\n \n \n }\n isAfterNext = false;\n \n }",
"public void add(T element, int index) {\n int counter = 0;\n Node<T> newNode = new Node(element);\n Node<T> current = itsFirstNode;\n\t\tif (current == null) {\n\t\t\tthrow new NoSuchElementException(\"Beyond size of list or list empty\");\n\t\t}\n\t\twhile (current.getNextNode() != null ) {\n\t\t\tif ((counter == index - 1) || (index == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t\tcurrent = current.getNextNode();\n\t\t\tcounter++;\n\t\t}\n\t\ttry {\n\t\t\tif (index == 0) {\n\t\t\t\taddAsFirst(newNode);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnewNode.setNextNode(current.getNextNode());\n\t\t\t\t(newNode.getNextNode()).setPriorNode(newNode);\n\t\t\t\tcurrent.setNextNode(newNode);\n\t\t\t\tnewNode.setPriorNode(current);\n\t\t\t}\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t// NullPointer is fine\n\t\t}\n size++;\n }",
"void add(int index, T element);",
"void add(int index, T element);",
"public abstract void add(T element, int index);",
"@Override\n\tpublic void add(int index, E element) {\n\t\trangeCheckForAdd(index);\n\t\tif (index==size) {\n\t\t\tNode<E> oldLast = last;\n\t\t\tlast = new Node<E>(oldLast, element, first);\n\t\t\t//这是链表添加的第一个元素\n\t\t\tif (oldLast == null) {\n\t\t\t\tfirst = last;\n\t\t\t\tfirst.next = first;\n\t\t\t\tfirst.prev = first;\n\t\t\t}else {\n\t\t\t\toldLast.next = last;\n\t\t\t\tfirst.prev = last;\n\t\t\t}\n\t\t}else {\n\t\t\tNode<E> next = node(index);\n\t\t\tNode<E> prev = next.prev;\n\t\t\tNode<E> node = new Node<E>(prev, element, next);\n\t\t\tnext.prev = node;\n\t\t\tprev.next = node;\n\t\t\tif (next == first) { // index == 0\n\t\t\t\tfirst = node;\n\t\t\t}\n\t\t}\n\t\tsize ++;\n\t}",
"public @Override void add(int index, E element) {\n \tNode n = index == size ? sentinel : getNode(index);\n \tnew Node(n.pred, element);\n }",
"public void add(int index, Object element) {\r\n addBefore(element, (index == size ? header : entry(index)));\r\n }",
"@Override\n public void add(Integer element) {\n if (this.contains(element) != -1) {\n return;\n }\n // when already in use\n int index = this.getIndex(element);\n if(this.data[index] != null && this.data[index] != this.thumbstone){\n int i = index + 1;\n boolean foundFreePlace = false;\n while(!foundFreePlace && i != index){\n if(this.data[i] == null && this.data[i] == this.thumbstone){\n foundFreePlace = true;\n }else{\n if(i == this.data.length - 1){\n // start at beginning.\n i = 0;\n }else{\n i++;\n }\n }\n }\n if(foundFreePlace){\n this.data[i] = element;\n }else{\n throw new IllegalStateException(\"Data Structre Full\");\n }\n }\n }",
"public void add(int element);",
"public void moveNext() {\n\t\tcurrentElement++;\n\t}",
"public void add(T element, int pos);",
"public void incrementIndex() {\n\t\tindex++;\n\t\tif (nextItem != null) {\n\t\t\tnextItem.incrementIndex();\n\t\t}\n\t}",
"public void add(T element)\r\n {\r\n Node<T> newNode = new Node<T>(element);\r\n Node<T> origPrev = prev; // remember original prev\r\n \r\n // these are needed for all 4 scenarios:\r\n newNode.next = next;\r\n prev = newNode;\r\n \r\n if (isEmpty())\r\n {\r\n front = rear = newNode;\r\n }\r\n \r\n // cursor position at front:\r\n else if (prev == null)\r\n {\r\n front = newNode;\r\n }\r\n\r\n // cursor position at rear:\r\n else if (next == null)\r\n {\r\n rear = newNode;\r\n origPrev.next = newNode;\r\n }\r\n\r\n else // cursor position in the interior:\r\n {\r\n origPrev.next = newNode;\r\n }\r\n \r\n numElements++;\r\n }",
"public void addElement(int index, TLProperty element);",
"@Override\n\tpublic void add(int idx, E element) {\n\t\tif (element == null)\n\t\t\tthrow new NullPointerException();\n\t\tif (idx < 0 || idx > size())\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (element.equals(list[i]))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t// Element is added to the end of the list\n\t\tif (idx == size)\n\t\t\tlist[idx] = element;\n\n\t\t// Element is added at the beginning or middle\n\t\telse {\n\t\t\tfor (int i = size; i > idx; i--) {\n\t\t\t\tlist[i] = list[i - 1];\n\t\t\t}\n\t\t\tlist[idx] = element;\n\t\t}\n\n\t\tsize++;\n\t\tif (size == list.length)\n\t\t\tgrowArray();\n\n\t}",
"public void add()\n {\n set(++ current);\n }",
"public void appendElement(int element) {\r\n\t\tNode newNode = new Node();\r\n\t\tnewNode.value = element;\r\n\t\tnewNode.next = sentinel;\r\n\t\tnewNode.previous = sentinel.previous;\r\n\t\tsentinel.previous = newNode;\r\n\t\tnewNode.previous.next = newNode;\r\n\t\tlength++;\r\n\t}",
"@Override\n public void add(int index, T element){\n if(index < 0 || index > size()){\n throw new NullPointerException();\n }else if(isEmpty() || index == size()){\n add(element);\n } else if(index == 0){\n prepend(element);\n } else{\n DLLNode<T> newNode = new DLLNode<T>(element);\n DLLNode<T> rightNode = getCurrentNode(index);\n DLLNode<T> leftNode = rightNode.previous;\n leftNode.successor = newNode;\n newNode.previous = leftNode;\n newNode.successor = rightNode;\n rightNode.previous = newNode;\n }\n }",
"public void addElement(int element) {\n \tif(element > 0) {\n \tarray[head++] = element;\n \t}else {\n \t\tthrow new RuntimeException(\"Invalid element to add\");\n \t}\n }",
"private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}",
"public void add(int index, E element) {\n\t\tcheckBounds(index);\r\n\t\tif(index == size) {\r\n\t\t\tadd(element);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tNode<E> node = new Node<E>(element);\r\n\t\tif(index == 0) {\r\n\t\t\thead.setPrevious(node);\r\n\t\t\tnode.setNext(head);\r\n\t\t\thead = node;\r\n\t\t} else {\r\n\t\t\tnode.setNext(getNode(index));\r\n\t\t\tnode.setPrevious(getNode(index-1));\r\n\t\t\tgetNode(index-1).setNext(node);\r\n\t\t\tgetNode(index).setPrevious(node);\r\n\t\t}\r\n\t\tsize++;\r\n\t}",
"public final void add(final int index, final TokenStatement element) {\r\n\t\tif (index > this.size || index < 0) {\r\n\t\t\tthrow new IndexOutOfBoundsException( \"Index: \" + index + \", Size: \" + this.size );\r\n\t\t}\r\n\t\tthis.ensureCapacity( this.size + 1 ); // Increments modCount!!\r\n\t\tSystem.arraycopy( this.elementData, index, this.elementData, index + 1, this.size - index );\r\n\t\tthis.elementData[index] = element;\r\n\t\tthis.size++;\r\n\t}",
"public void access(E e) {\n Position<Item<E>> p = findPosition(e); // try to locate existing element\n if (p == null) // new element\n p = list.addLast(new Item<E>(e)); // if new , place at end\n p.getElement().increment(); // always increment count\n moveUp(p);\n }",
"private void add(E e, int index) {\r\n\t\t\tif (hasRoom(index)) {\r\n\t\t\t\tshiftElements(data, index);\r\n\t\t\t\tdata[index] = e;\r\n\t\t\t} else {\r\n\t\t\t\tNode toAdd = new Node();\r\n\t\t\t\tthis.next.prev = toAdd;\r\n\t\t\t\ttoAdd.next = this.next;\r\n\t\t\t\ttoAdd.prev = this;\r\n\t\t\t\tthis.next = toAdd;\r\n\r\n\t\t\t\ttoAdd.data[0] = this.data[data.length - 1];\r\n\t\t\t\t// Shifts everything over one spot, the end element gets lost\r\n\t\t\t\tSystem.arraycopy(this.data, index, this.data, index + 1, data.length - index - 1);\r\n\t\t\t\tthis.data[index] = e;\r\n\t\t\t}\r\n\t\t}",
"@Override\n public void add(int index, T element) {\n Object[] newArray = new Object[size + 1];\n for (int i = 0; i < index; i++) {\n newArray[i] = data[i];\n }\n newArray[index] = element;\n for (int i = index + 1; i < newArray.length; i++) {\n newArray[i] = data[i - 1];\n }\n data = newArray;\n size++;\n }",
"@Override\n public void add(int index, T elem) {\n if(index < 0 || index >= size()) {//if the required index is not valid, give error\n throw new IndexOutOfBoundsException();\n }\n //if we want to add at the beginning of the list\n if(index == 0) {\n prepend(elem); //reuse prepend method when adding at the start of list\n return;\n }\n //if we want to add inside the list\n DLNode<T> predecessor = first; //create a reference, point it to the first node\n for(int i = 0; i < index - 1; i++) {//locate the preceeding index of the required index\n predecessor = predecessor.next;\n \n }\n DLNode<T> successor = predecessor.next; //another reference, now points to the index we want to add the new node to\n \n DLNode<T> middle = new DLNode(elem, predecessor, successor);//create new node, it's previous node is predecessor, the one after it is successor\n predecessor.next = middle; //new node is assigned to the required index, after predecessor, before successor\n \n if(successor == null) {//if there's no node after the new node\n last = middle; //new node is the last one \n }\n else{ //if there is a successor node exist\n successor.prev = middle; //new node preceeds it's successor\n } \n \n }",
"@Override\n public int nextIndex()\n {\n return idx+1; \n }",
"E add(E element) {\n\t\t\tshort index = (short)((element.hashCode() >> 24) & 0x000000FF);\n\t\t\tE obj = nodes[index].add(this, element.hashCode(), element, (byte) 1);\n\t\t\tif (obj == null) {\n\t\t\t\tsize++;\n\t\t\t}\n\t\t\treturn obj;\n\t\t}",
"@Override\r\n public void add(int index, E element) {\r\n if (index < 0 || index > size) {\r\n throw new IndexOutOfBoundsException();\r\n\r\n }\r\n for (int i = 0; i < size; i++) {\r\n if (get(i).equals(element)) {\r\n throw new IllegalArgumentException();\r\n }\r\n }\r\n\r\n LinkedListIterator it = new LinkedListIterator(index);\r\n it.add(element);\r\n\r\n }",
"@Override\n public void addAfter(T target, T element){\n int index = getIndex(target)+1;\n add(index,element);\n }",
"public void addTo(Integer element, int i)\n\t\t{buckets.get(i).add(element);}",
"public void add(E element) {\n\t\tresetIterator();\n\t\tif (isEmpty()) {\n\t\t\tsize++;\n\t\t\thead = new Node(element, null);\n\t\t\treturn;\n\t\t} else {\n\t\t\tfor (int i = 0; i < size - 1; i++) {\n\t\t\t\tnext();\n\t\t\t}\n\t\t\tsize++;\n\t\t\tif (hasNext()) {\n\t\t\t\titerator.next = new Node(element, null);\n\t\t\t} else {\n\t\t\t\titerator = new Node(element, null);\n\t\t\t}\n\t\t}\n\t}",
"protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}",
"@Override\n public void add(final int index, final T element) {\n this.checkIndexToAdd(index);\n\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n for (int i = this.size; i > index; i--) {\n this.data[i] = this.data[i - 1];\n }\n\n this.data[index] = element;\n this.size++;\n }",
"public void add(int index, Object element) {\r\n refs.add(index, new WeakReference(element));\r\n }",
"public boolean add(int index, E elem) {\r\n\t\tif (index < 0 || index > size) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t} else {\r\n\t\t\tNode<E> adding;\r\n\t\t\tif (size == 0) {\r\n\t\t\t\tadding = new Node<E>(elem, null, null);\r\n\t\t\t\thead = adding;\r\n\t\t\t\ttail = adding;\r\n\t\t\t} else {\r\n\t\t\t\tif (index <= size - 1) { // adding between nodes\r\n\t\t\t\t\tNode<E> oldItem = indices.get(index);\r\n\t\t\t\t\tadding = new Node<E>(elem, oldItem.prev, oldItem);\r\n\t\t\t\t\toldItem.prev = adding;\r\n\t\t\t\t\tif (index == 0) {\r\n\t\t\t\t\t\thead = adding;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else { // appending (index == size)\r\n\t\t\t\t\tappend(elem);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tindices.add(index, adding);\r\n\t\t\tsize++;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public void add(int index, E x) {\n\t\tif (index < 0 || index > mSize) // == mSize allowed\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tif (size() == 0)\n\t\t\taddFirst(x);\n\t\telse {\n\t\t\taddBefore(getNode(index, 0, size()), x);\n\t\t\tmSize++;\n\t\t\tmodCount++;\n\t\t}\n\t}",
"public abstract void nextElement();",
"@Override\n\t\tpublic void add(int index, Community element) {\n\t\t\t\n\t\t}",
"public void add(int index, T element) {\n\t\tif (index < 0 || index > size)\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\tif (index == 0) {\n\t\t\tinsertHead(element);\n\t\t\treturn;\n\t\t}\n\t\tif (index == size) {\n\t\t\tinsertTail(element);\n\t\t}\n\t\tNode<T> curNode = head;\n\t\twhile (index != 1) {\n\t\t\tcurNode = curNode.next;\n\t\t\tindex--;\n\t\t}\n\t\tNode<T> temp = curNode.next;\n\t\tcurNode.next = new Node<>(element);\n\t\tcurNode.next.next = temp;\n\t\tsize++;\n\t}",
"@Override\n public void addFirst(E element) {\n Node<E> newNodeList = new Node<>(element, head);\n\n head = newNodeList;\n cursor = newNodeList;\n size++;\n }",
"public void AddE(E element)\n {\n this.add(element);\n if (this.size() != 1)\n {\n int i;\n int j;\n for (i = 0; i < this.size(); i++) {\n E value = this.get(i);\n for (j = i; j > 0; j--) {\n if (this.get(j - 1).compareTo(value) < 0) {\n break;\n } else {\n this.set(j, this.get(j - 1));\n }\n }\n this.set(j, value);\n }\n }\n }",
"void add(int idx, float incr);",
"public abstract void add(int index, E e);",
"@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }",
"public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }",
"public boolean add(ElementType element){\n if(this.contains(element)){\n return false;\n }\n else{\n if(size==capacity){\n reallocate();\n }\n elements[size]=element;\n size++;\n }\n return true;\n }",
"public void add(T elem){\n\t\tNode<T> toAdd = new Node<T>(elem);\r\n\t\tif(this.start == null)\r\n\t\t\tthis.start = toAdd;\r\n\t\telse {\r\n\t\t\tNode<T> temp = this.start;\r\n\t\t\twhile (temp.next != null)\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\ttemp.next = toAdd;\r\n\t\t}\r\n\t}",
"public boolean increaseKey(int i, int element) {\r\n\t\tif (i < 0 || i > theHeap.size() - 1) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (element <= 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttheHeap.set(i, (T) (Integer) ((Integer) theHeap.get(i) + element));\r\n\t\tsiftDown(i);\r\n\t\treturn true;\r\n\t}",
"@Override\n public synchronized void add(E element) {\n if (this.pointer == this.capacity) {\n int newCapacity = this.capacity + (this.capacity >> 1);\n Object[] arr = Arrays.copyOf(this.container, newCapacity);\n this.capacity = newCapacity;\n this.container = arr;\n }\n this.container[this.pointer++] = element;\n }",
"@Override\n\tpublic void add(int index, Object e) throws IndexOutOfBoundsException\n\t{\n\t\t//just to check if the index is valid\n\t\tif ( index < 0 || index > size )\n \t\tthrow new IndexOutOfBoundsException();\n\t\t//check arraylist size\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\t//move all the proceeding elements to make room for the desired element\n\t\tfor ( int i = size; i > index; i-- )\n \t\tmyArray[i] = myArray[i-1];\n \t//plug the element\n\t\tmyArray[index] = e;\n \t++this.size;\n\n\t\t\n\t}",
"public void addElement(Integer elem){\n\t\tlist.add(elem);\n\t}",
"public void add(E element) {\n\t\t// your code here\n\t}",
"public Node<T> add(T element) {\n // Get a free node.\n Node<T> freeNode = getFree();\n if (freeNode != null) {\n // Attach the element.\n return freeNode.attach(element);\n } else {\n // Failed!\n throw new IllegalStateException(\"Capacity exhausted.\");\n }\n }",
"public void add(int index, E e) {\n resize();\n for(int i = size-1; i >= index; i--) {\n list[i+1] = list[i];\n }\n list[index] = e;\n size++;\n }",
"public void addAfter(E val, int idx) throws IndexOutOfBoundsException {\n addNodeAfter(new SinglyLinkedList.Node<>(val), idx);\n }",
"public void add(int index, E obj){\n Node n = head;\n Node foo = new Node<E>(obj);\n Node temp = new Node<E>(null);\n int count = 0;\n if(index >= size()){\n index = size(); \n }\n else if (index < 0){\n index = 0;\n }\n while(n.getNext() != null && count != index)\n {\n n = n.getNext();\n temp = n;\n count++;\n }\n temp = n.getNext();\n n.setNext(foo);\n foo.setNext(temp);\n }",
"public void addElement(Integer e){\n list.add(e);\n }",
"private void addAtIndex(int index, FoodItem item) {\n // store the \"pushed\" forward item\n FoodItem toMoveNext = this._stock[index];\n // and set the new item in index\n this._stock[index] = new FoodItem(item);\n\n // \"push\" forward in the array each item, until no more items to push.\n for (int i = index+1; i < _noOfItems+1; i++) {\n FoodItem tempToMoveNext = _stock[i];\n _stock[i] = toMoveNext;\n toMoveNext = tempToMoveNext;\n }\n\n // we added a new item for _stock, so now increase the noOfItem:\n this._noOfItems++;\n }",
"@Test\n public void testAdd_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(9);\n int expResult = 2;\n\n assertEquals(expResult, baseList.indexOf(9));\n }",
"public void add(int index, Object value) {\n if (index > _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode node = new ListNode(value);\n if (index == 0) {\n node.next = start;\n start = node;\n } else {\n ListNode prev = start;\n for (int i = 0; i<index - 1; i++ ) {\n prev = prev.next;\n }\n ListNode temp = prev.next;\n prev.next = node;\n node.next = temp;\n } \n _size++;\n }",
"public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }",
"Object getNextElement() throws NoSuchElementException;",
"public void add(T element) {\n\n Node<T> node = new Node(element);\n\n if (itsFirstNode == null) {\n itsFirstNode = node;\n itsLastNode = node;\n }\n else {\n itsLastNode.setNextNode(node);\n\t\t\tnode.setPriorNode(itsLastNode);\n itsLastNode = node;\n }\n size++;\n }",
"public void add(E element)\r\n\t{\r\n\t\tif( root == null)\r\n\t\t{\r\n\t\t\troot = new BTNode<E>(element, null, null);\r\n\t\t\tnumItems++;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tBTNode<E> cursor = root;\r\n\t\t\tboolean done = false;\r\n\r\n\t\t\twhile(!done)\r\n\t\t\t{\r\n\t\t\t\tif(element.compareTo(cursor.getData()) <=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(cursor.getLeft() == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcursor.setLeft(new BTNode<E>(element, null , null));\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tnumItems++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcursor = cursor.getLeft();\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif(cursor.getRight() == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcursor.setRight(new BTNode<E>(element, null, null));\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tnumItems++;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcursor = cursor.getRight();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public boolean add(T element) {\n if (this.position >= this.container.length) {\n this.enlargeCapacity();\n }\n this.container[this.position++] = element;\n return true;\n }",
"void add(int i , E e) throws IndexOutOfBoundsException;",
"public void set (Object element)\n {\n if(!isAfterNext){\n throw new IllegalStateException(); \n }\n position.data = element;\n \n \n }",
"@Override\n public void add(int i, E e) throws IndexOutOfBoundsException {\n checkIndex(i, size + 1);\n if (size == data.length) // not enough capacity\n throw new IllegalStateException(\"Array is full\");\n for (int k = size - 1; k >= i; k--) // start by shifting rightmost\n data[k + 1] = data[k];\n data[i] = e; // ready to place the new element\n size++;\n }",
"public void add(int index, Object element) {\n\n\t\tif (element == null) {\n\t\t\tthrow new IllegalArgumentException(\"ArrayList cannot contain null.\");\n\t\t}\n\t\tif (index < 0 || index > this.size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"the index [\" + index\n\t\t\t\t\t+ \"] is not valid for this list with the size [\"\n\t\t\t\t\t+ this.size + \"].\");\n\t\t}\n\t\tif (this.size >= this.storedObjects.length) {\n\t\t\tincreaseCapacity();\n\t\t}\n\t\t// shift all following elements one position to the back:\n\t\tfor (int i = this.size; i > index; i--) {\n\t\t\tthis.storedObjects[i] = this.storedObjects[i - 1];\n\t\t}\n\t\t// insert the given element:\n\t\tthis.storedObjects[index] = element;\n\t\tthis.size++;\n\t}",
"void add(int i, E e) throws IndexOutOfBoundsException;",
"final void add(int elt) {\n if (contents == null)\n return;\n if (n == contents.length) {\n int[] new_contents = new int[2*n+1];\n //@ assert n < new_contents.length;\n arraycopy(contents, 0, new_contents, 0, n);\n contents = new_contents;\n }\n if (n < 0 || n >= contents.length) \n return;\n contents[n]=elt;\n n++;\n }",
"private int plusOne(int i) {\n return (i + 1) % capacity;\n }",
"public void incrementCurrentIndex() {\n currentIndex++;\n }",
"public void add(Object object) {\n\t\tif (nextItem == null) {\n\t\t\tnextItem = new Item(object, index + 1);\n\t\t} else {\n\t\t\tnextItem.add(object);\n\t\t}\n\t}",
"public void add(E s,int index) {\t//O(n)\r\n\t\t//checks if the index is valid\r\n\t\tif(index>=0 && index<=size) {\t//index is valid\r\n\t\t\t//checks if there is any space left in the array\r\n\t\t\tif(size>=capacity)\r\n\t\t\t\tresize(this.capacity*2);\t//increases size of the array\r\n\t\t\tfor (int k=size-1; k>=index;k--) {\t//shifting element\r\n\t\t\t\tlist[k+1]=list[k];\r\n\t\t\t}\r\n\t\t\tlist[index]=s;\t//add element to the index\r\n\t\t\tsize++;\t//increases size\r\n\t\t} else {\t//index is not valid\r\n\t\t\tSystem.out.println(\"index \"+index+\" is out or range!\");\r\n\t\t}\r\n\t}",
"@Override\n public boolean add(E e) {\n head++; //Increment the head by one\n if (head == ringArray.length)\n head = 0; //If we get to the end of the ring set the pointer to be 0 again to loop back round\n ringArray[head] = e; //Get the element\n if (elementCount < ringArray.length) //Increase the element count up until the length because at that point the number of elements cant change.\n elementCount++;\n return true;\n }",
"private int plusOne(int index) {\n if (index + 1 >= array.length) {\n return 0;\n } else {\n return index + 1;\n }\n }",
"public void add(int index, int value) {\n\t\t\tif(index < 0 || index > size) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"index\" + index);\n\t\t\t}\n\t\t\tensureCapacity(size + 1);\n\t\t\tfor(int i = size; i > index; i--) {\n\t\t\t\telementData[size] = elementData[i - 1];\n\t\t\t}\n\t\t\telementData[index] = value;\n\t\t\tsize++;\n\t\t}",
"public int nextIndex() {\r\n throw new UnsupportedOperationException();\r\n }",
"@Override\n public void updateToNextDoc() {\n if(idx < postingList.size())\n idx += postingList.get(idx+1)+2;\n }",
"private void addElement(PEElement element) {\n\t\tif (currentGroups.size() > 0) {\n\t\t\tcurrentGroups.peek().getElements().add(element);\n\t\t} else if (currentLabeledNodeType != null) {\n\t\t\tcurrentLabeledNodeType.getElements().add(element);\n\t\t} else {\n\t\t\tcurrentNodeType.getElements().add(element);\n\t\t}\n\t}",
"public void add(int index, T element)\r\n {\r\n Node<T> newNode = new Node<T>(element);\r\n Node<T> walker; // needed for traversing the list\r\n \r\n if ((index < 0) || (index > numElements))\r\n throw new IndexOutOfBoundsException(\r\n \"Illegal index \" + index + \" passed to add method.\\n\");\r\n\r\n if (front == null) // add to empty list\r\n { \r\n front = newNode;\r\n rear = newNode;\r\n }\r\n else if (index == 0) // add to front\r\n {\r\n newNode.next = front;\r\n front = newNode;\r\n }\r\n else if (index == size()) // add to rear\r\n {\r\n rear.next = newNode;\r\n rear = newNode;\r\n }\r\n else // add to interior part of list\r\n {\r\n walker = front; \r\n for (int i=0; i<(index-1); i++)\r\n {\r\n walker = walker.next;\r\n }\r\n newNode.next = walker.next;\r\n walker.next = newNode;\r\n }\r\n numElements++;\r\n }",
"public void add(Statement element) {\n ensureSize(size + 1);\n arr[size++] = element;\n }",
"public void add(Object e)\n {\n if(numElements == maxElements)\n doubleCapacity();\n \n // Add element\n if(!contains(e))\n elements[numElements++] = e;\n }",
"public void setNextElement(Element<T> nextElement) \n\t{\n\t\tthis.nextElement = nextElement;\n\t}",
"public void add(final T data, final int index) {\n if (index < 0 || index > numElement + 1) {\n throw new IndexOutOfBoundsException();\n }\n Node<T> newNode = new Node<>(data);\n if (index == 0) {\n prepend(data);\n } else if (index == numElement) {\n append(data);\n }\n Node<T> iterator = head;\n for (int currentIndex = 0; currentIndex < index - 1; currentIndex++) {\n iterator = iterator.getNext();\n }\n newNode.setNext(iterator.getNext());\n iterator.setNext(newNode);\n numElement++;\n }",
"public void add(T element) {\r\n if (element == null) {\r\n throw new IllegalArgumentException(); \r\n } \r\n if (size == elements.length) { \r\n resize(elements.length * 2); \r\n }\r\n elements[size()] = element; \r\n size++; \r\n }",
"public T getNextElement();",
"public void addAtIndex(int index, int data)\n {\n Node newNode = new Node(data);\n Node oldNode = head;\n\n for (int i=1;i<size;i++)\n {\n if (i == index)\n {\n Node myNode = oldNode.next;\n oldNode.next = newNode;\n newNode.next = myNode;\n break;\n }\n oldNode = oldNode.next;\n }\n size++ ;\n }",
"@Override\n public boolean addAt (E el, int pos){\n if (el == null)\n return false;\n\n // check if the position is valid\n if (pos <= 0 || pos >= size){\n if (pos == 0){\n this.addHead(el);\n return true;\n }\n else if (pos == size){\n this.addTail(el);\n return true;\n }\n\n return false;\n }\n\n int i = 1;\n INode2<E> iter = null;\n // iterate all the list to get to the position\n for (iter = this.head; iter.getNext() != null && i < pos; iter = iter.getNext(), i++);\n\n // if right, add to the list\n if (i == pos){\n Node2<E> temp = new Node2<E>(el);\n temp.setNext(iter.getNext());\n iter.setNext(temp);\n this.size++;\n }\n\n return true;\n }",
"public boolean add(int index, T element) {\n if(index < 0 || index > this.size()) {\n return false;\n } else if (index == 0) {\n addHead(element);\n return true;\n } else if (index == size()) {\n addTail(element);\n return true;\n }\n \n int i = 0;\n Node<T> preTemp = head;\n Node<T> temp = head;\n \n while(i < index) {\n preTemp = temp;\n temp = temp.getNext();\n i++;\n }\n\n Node<T> newNode = new Node<>(element);\n newNode.setNext(preTemp.getNext());\n preTemp.setNext(newNode);\n return true;\n\n }",
"private int next(int index)\n\t{\n\t\tif (index == list.length - 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn index + 1;\n\t\t}\n\t}",
"public void add(E element){\n if(size==capacity){\n capacity *=2;\n E[] array2 = (E[]) new Object[capacity];\n if (size >= 0) System.arraycopy(array, 0, array2, 0, size);\n array2[size]=element;\n array=array2;\n }else{\n array[size]=element;\n }\n size++;\n }",
"public T add(T element) {\n if(maxElements <= 0)\n return element;\n else if(reservoir.size() < maxElements) {\n reservoir.add(element);\n return null;\n }\n else {\n // Get a uniformly distributed int. If the chosen slot lives within the partition, replace the entry in that slot with the newest entry.\n int slot = GenomeAnalysisEngine.getRandomGenerator().nextInt(maxElements);\n if(slot >= 0 && slot < maxElements) {\n T displaced = reservoir.get(slot);\n reservoir.set(slot,element);\n return displaced;\n }\n else\n return element;\n }\n }",
"@Override\n public void add(int i, E e) throws IndexOutOfBoundsException,\n IllegalStateException {\n if (i == size){\n addLast(e);\n }\n else {\n validIndex(i);\n checkSize();\n for (int j = size - 1; j >= i; j--) {\n data[j + 1] = data[j];\n }\n data[i] = e;\n size++;\n }\n }",
"void add(Object element);"
] | [
"0.6938679",
"0.683169",
"0.6750626",
"0.6675459",
"0.66737044",
"0.6670726",
"0.6670726",
"0.6640105",
"0.6596206",
"0.6587728",
"0.64919925",
"0.64391214",
"0.64074534",
"0.63803625",
"0.63273525",
"0.6311375",
"0.6281548",
"0.6267794",
"0.6254122",
"0.62470895",
"0.6244749",
"0.6223877",
"0.6209998",
"0.6193219",
"0.6187118",
"0.6168404",
"0.61658734",
"0.61591303",
"0.6143302",
"0.6119581",
"0.61191183",
"0.61162025",
"0.60839117",
"0.6061273",
"0.6045341",
"0.6024044",
"0.6021295",
"0.6015185",
"0.6012852",
"0.6007498",
"0.59685147",
"0.59503555",
"0.5944158",
"0.59236044",
"0.59193546",
"0.59191674",
"0.5915057",
"0.5908337",
"0.59075785",
"0.58995646",
"0.58764154",
"0.58368903",
"0.5833367",
"0.58298534",
"0.58191097",
"0.5814613",
"0.58121145",
"0.5799607",
"0.5796896",
"0.5789743",
"0.5788829",
"0.578824",
"0.57857716",
"0.57848245",
"0.5782379",
"0.5770115",
"0.57646435",
"0.5758636",
"0.5756885",
"0.5748882",
"0.5741844",
"0.5738263",
"0.5736682",
"0.5735689",
"0.5730898",
"0.5728242",
"0.57166725",
"0.5711982",
"0.57114816",
"0.57084465",
"0.56942225",
"0.56892765",
"0.568015",
"0.5674207",
"0.5673756",
"0.56655693",
"0.56640214",
"0.56634057",
"0.5656419",
"0.56552917",
"0.56536555",
"0.5649937",
"0.56457835",
"0.5643302",
"0.56410754",
"0.5640269",
"0.5636227",
"0.56293297",
"0.5628318",
"0.56263894",
"0.5619734"
] | 0.0 | -1 |
Removes the element at the 'back' of the array | public T dequeue() throws Exception {
// TODO Auto-generated method stub
if(item_count==0)
throw new Exception("Array is empty");
--item_count;
return arr[front++%arr.length];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private E remove(){\n E tmp = array[0];\n swap(0,--lastPosition);\n array[lastPosition] = null;\n trickleDown(0);\n array = Arrays.copyOfRange(array,0,array.length);\n return tmp;\n }",
"void deleteBack()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call deleteBack() on empty List\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tcursor = null;\n\t\t\tindex = -1;\n\t\t}\n \n\t\tback = back.prev; //the back element becomes the previous element in the list\n\t\tlength--;\n\n\t}",
"void remove(int index) {\n\t\tfor (int i = index; i < array.length - 1; i++) {\n\t\t\tarray[i] = array[i + 1];\n\t\t}\n\t\tint[] temp = new int[array.length - 1];\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\ttemp[i] = array[i];\n\t\t}\n\t\tint lastValue = array[array.length - 1];// index starts @ 0, so its the\n\t\t\t\t\t\t\t\t\t\t\t\t// array.length - 1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t// for the 0\n\t\tarray = temp;\n\n\t}",
"protected void sPopBack() {\n if (head == tail)\n return;\n mMyArray[tail] = null;\n tail--;\n }",
"public T removeLast() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[rear];\n }\n this.checkReSizeDown();\n size--;\n rear--;\n this.updatePointer();\n return array[Math.floorMod(rear + 1, array.length)];\n }",
"public Item deleteBack() {\n items[size - 1] = null;\n size -= size;\n Item itemToReturn = getBack();\n \n return itemToReturn;\n }",
"@Override\n public E remove() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n size--;\n array[0] = swap(array[size], array[size] = array[0]);\n siftDown(0);\n return (E) array[size];\n }",
"@Override\r\n public T pop() {\r\n if (this.isEmpty()) {\r\n throw new ArrayIndexOutOfBoundsException();\r\n }\r\n final T top = (T) this.array[0];\r\n this.array[0] = this.array[--this.size];\r\n this.bubbleDown();\r\n return top;\r\n }",
"private static void remove(int[]data,int size){\n int temp = data[0];\n data[0] = data[size-1];\n data[size-1] = temp;\n pushDown(data, size-1, 0);\n }",
"@Override\n public T remove(int index) {\n T removed = array[index];\n for (int i = index + 1; i < array.length; i++) {\n array[i] = array[i + 1];\n }\n this.size = size - 1;\n return removed;\n }",
"public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }",
"public U removeLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls remove on last\r\n\t \treturn remove(numElems-1);\r\n\t }",
"@Override\n public Item removeLast() {\n nextLast = moveBack(nextLast, 1);\n Item output = items[nextLast];\n items[nextLast] = null;\n size -= 1;\n return output;\n }",
"private void shiftBackArray(int position) {\n\t\tif (position < 0 || position >= capacity) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Cannot shiftBack array with invalid position given.\");\n\t\t}\n\n\t\tfor (int i = position; i < size - 1; i++) {\n\t\t\telements[i] = elements[i + 1];\n\t\t}\n\n\t\telements[size - 1] = null;\n\t}",
"@Override\n public T removeLast() {\n if (size == 0) {\n return null;\n }\n\n int position = minusOne(nextLast);\n T itemToReturn = array[position];\n array[position] = null;\n nextLast = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }",
"public T removeFromBack() {\n if (size == 0) {\n throw new NoSuchElementException(\"The list is empty, \"\n + \"so there is nothing to get.\");\n }\n if (head == tail) {\n head.setNext(null);\n head.setPrevious(null);\n tail.setNext(null);\n tail.setPrevious(null);\n size -= 1;\n return tail.getData();\n } else {\n T temp = tail.getData();\n tail = tail.getPrevious();\n tail.setNext(null);\n size -= 1;\n return temp;\n\n }\n }",
"@Override\n public T remove() {\n if(numItems == 0)\n return null;\n return this.arr[--numItems];\n }",
"public TypeHere removeLast() {\n TypeHere x = getLast();\n items[size - 1] = null;\n size -= 1; \n return x;\n }",
"public void remove()\n {\n if( current > 0 )\n {\n set(-- current);\n }\n }",
"void remove(int index)\n\t{\n\t\t//Create a temporary array\n\t\tint[] temp=new int[inputArray.length-1];\n\t\t\n\t\t//Copy all the elements before the element at position index into the temporary array\n\t\tfor(int i = 0; i < index; i++)\n\t\t{\n\t\t\ttemp[i] = inputArray[i];\n\t\t}\n\t\t\n\t\t//Copy all the elements after the element at position index into the temporary array\n\t\tfor(int i = index+1; i < inputArray.length; i++)\n\t\t{\n\t\t\ttemp[i-1] = inputArray[i];\n\t\t}\n\t\t\n\t\t//Make the temporary array as the new array\n\t\tinputArray = temp;\n\t}",
"int pop() {\n\t\tint[] temp = new int[array.length - 1]; // temporary place holder\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\ttemp[i] = array[i];\n\t\t}\n\t\t// returning last value in array\n\t\tint lastValue = array[array.length - 1];// array.length - 1 bc its the\n\t\t\t\t\t\t\t\t\t\t\t\t// last term\n\t\tarray = temp;\n\t\treturn lastValue;\n\t}",
"public U removeFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls remove on first\r\n\t \treturn remove(0);\r\n\t }",
"private Element popElement() {\r\n return ((Element)this.elements.remove(this.elements.size() - 1));\r\n }",
"@Override\n public T pop(){\n\n if (arrayAsList.isEmpty()){\n throw new IllegalStateException(\"Stack is empty. Nothing to pop!\");\n }\n\n T tempElement = arrayAsList.get(stackPointer - 1);\n arrayAsList.remove(--stackPointer);\n\n return tempElement;\n }",
"public IClause popBack() {\n if (back==front)\n throw new BufferUnderflowException();\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }",
"public void remove( int index ) {\n\tif (index > _lastPos)\n\t System.out.println(\"No meaningful value at index\");\n\telse {for (int i= index; i < _lastPos; i++){\n\t\t_data[i]= _data[i+1];\n\t }\n\t _size--;\n\t _lastPos--;\n\t}\n }",
"@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }",
"public Item removeLast() {\n Item val = deck[bFront];\n deck[bFront--] = null;\n return val;\n }",
"public void popToPointer() {\n while (this.size() > undoPointer + 1) {\n super.pop();\n }\n }",
"public E uncons() throws IndexOutOfBoundsException {\n return remove(0);\n }",
"public void removeFirst() \r\n\t{\r\n\t\tint position = 1;\r\n\t\tif ( this.isEmpty() || position > numItems || position < 1 )\r\n\t\t{\r\n\t\t\tSystem.out.print(\"This delete can not be performed \"+ \"an element at position \" + position + \" does not exist \" );\r\n\t\t}\r\n\t\tfor (int i=position-1; i< numItems-1; i++)\r\n\t\t\tthis.bookArray[i] = this.bookArray[i+1];\r\n\t\t\tthis.bookArray[numItems-1] = null;\r\n\t\t\tnumItems--;\r\n\t\t\tSystem.out.println(\"DELETED first book from the Array \\n\");\r\n\t\t\r\n\t\t\treturn ;\r\n\t}",
"@Override\n public E remove(int index) {\n // todo: Students must code\n int pos = calculate(index);\n\n E temp = data[pos];\n data[pos] = null;\n if(pos == head)\n head = (head+1) % data.length;\n else if(pos == tail)\n tail = (tail-1) % data.length;\n else {\n // shift all array contents after pos left 1\n for(int i = pos; i < (pos + curSize-index-1); i++)\n data[calculate(i)] = data[calculate(i+1)];\n tail = (tail-1) % data.length;\n }\n curSize--;\n return temp;\n }",
"public E remove(int index){\n if (index < 0 || index >= size){\n throw new ArrayIndexOutOfBoundsException(index);\n }\n E returnValue = theData[index];\n for (int i = index + 1; i < size; i++) {\n theData[i - 1] = theData[i];\n }\n size--;\n return returnValue;\n }",
"public U remove(int idx){\r\n\t \tif ((idx < 0)|| (idx > numElems-1))\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \tint i = idx;\r\n\t \t@SuppressWarnings(\"unchecked\")\r\n\t\t\tU data = (U) array[i];\r\n\t \t//Same shift algorithm as other remove method\r\n\t \twhile(i<numElems-1){\r\n\t \t\tarray[i]= array[i+1];\r\n\t \t\ti++;\r\n\t \t}\r\n\t \t//Not sure if needed: set last element to null after shift\r\n\t \tarray[numElems-1] = null;\r\n\t \tnumElems--;\r\n\t \treturn data;\r\n\t }",
"public U remove(U x){\r\n\t \tif (x==null)\r\n\t \t\tthrow new IllegalArgumentException(\"x cannot be null\");\r\n\t \t//find index\r\n\t \tint i = Arrays.binarySearch(array,0, getArraySize(), x);\r\n\t \t//x not found in array\r\n\t \tif (i<0)\r\n\t \t\treturn null;\r\n\t \t//store current element\r\n\t \t@SuppressWarnings(\"unchecked\")\r\n\t\t\tU data = (U) array[i];\r\n\t \t//enter loop\r\n\t \twhile(i<numElems-1){\r\n\t \t\t//move element left\r\n\t \t\tarray[i]= array[i+1];\r\n\t \t\ti++;\r\n\t \t}\r\n\r\n\t \t//Not sure if needed: set last element to null after shift\r\n\t \tarray[numElems-1] = null;\r\n\t \tnumElems--;\r\n\t \treturn data;\r\n\t \t\r\n\t }",
"@Override\n public T removeFirst() {\n if (size == 0) {\n return null;\n }\n\n int position = plusOne(nextFirst);\n T itemToReturn = array[position];\n array[position] = null;\n nextFirst = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }",
"public long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front element\r\n\t\t\tfront++;\r\n\t\t\tif(front == maxSize){ //To set front = 0 and use it again\r\n\t\t\t\tfront = 0;\r\n\t\t\t}\r\n\t\t\tnItems--;\r\n\t\t\treturn temp;\r\n\t\t}",
"public L removeFromBack(){\n\t\tif (isEmpty())//throw exception if List is empty\n\t\tthrow new IllegalStateException(\"List \" + name + \" is empty.\");\n\n\t\tL removedItem = (L)lastNode.data; //retrieve data being removed\n\n\t\t//update references firstNode and lastNode\n\t\tif( firstNode == lastNode )\n\t\tfirstNode = lastNode = null;\n\t\telse{ //locate new last node\n\t\t\tListNode current = firstNode;\n\n\t\t\t//loop while current node does not refer to lastNode\n\t\t\twhile ( current.nextNode != lastNode )\n\t\t\tcurrent = current.nextNode;\n\n\t\t\tlastNode = current; //current is new lastNode\n\t\t\tcurrent.nextNode = null;\n\t\t}//end else\n\n\t\treturn removedItem; //return removed node data\n\t}",
"public O popBack()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = last;\r\n last = last.getPrevious();\r\n\r\n count--;\r\n if (isEmpty()) first = null;\r\n else last.setNext(null);\r\n return l.getObject();\r\n } else\r\n return null;\r\n \r\n }",
"public T remove(int index) {\n\n if (index >= size) {\n throw new IndexOutOfBoundsException(\"Index: \" + index + \", Size: \" + size);\n }\n\n T oldValue = myList[index];\n int value = size - index - 1;\n\n if (value > 0) {\n System.arraycopy(myList, index + 1, myList, index, value);\n }\n System.out.println(\"one \" + size);\n myList[--size] = null;\n System.out.println(\"two \" + size);\n\n return oldValue;\n }",
"public T removeLast( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//last node\r\n\t\tArrayNode<T> node = endMarker.prev;\r\n\t\ttry{\r\n\t \tmodCount++;\r\n\t \tnumAdded--;\r\n\t \t//calls nested method\r\n\t\t\treturn node.removeLast();\r\n\t\t}catch( IndexOutOfBoundsException e){\t//empty node\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t}",
"public T removeFromBack() throws EmptyListException {\n\t\tif (isEmpty()) // throw exception if List is empty\n\t\t\tthrow new EmptyListException(name);\n\n\t\tT removedItem = lastNode.data; // retrieve data being removed\n\n\t\t// update references firstNode and lastNode\n\t\tif (firstNode == lastNode)\n\t\t\tfirstNode = lastNode = null;\n\t\telse // locate new last node\n\t\t{\n\t\t\tNode<T> current = firstNode;\n\n\t\t\t// loop while current node does not refer to lastNode\n\t\t\twhile (current.nextNode != lastNode)\n\t\t\t\tcurrent = current.nextNode;\n\n\t\t\tlastNode = current; // current is new lastNode\n\t\t\tcurrent.nextNode = null;\n\t\t} // end else\n\t\tsize--;\n\t\treturn removedItem; // return removed node data\n\t}",
"public E remove(int index){\n if (index > maxIndex || index < 0){\n return null;\n }\n\n E res = (E) array[index];\n\n //deleting element\n array[index] = null;\n\n //shifting other elements\n for (int i = index; i < maxIndex ; i++) {\n array[i] = array[i+1];\n }\n\n --maxIndex;\n\n return res;\n }",
"public T removeFromBack() throws EmptyListException {\n if(isEmpty())\n throw new EmptyListException(name);\n\n T removedItem = lastNode.data;\n\n // update references to firstNode and lastNode\n if(firstNode == lastNode)\n firstNode = lastNode = null;\n else{\n SortedListNode<T> current = firstNode;\n\n // loop while current node does not refer to lastNode\n while(current.nextNode != lastNode)\n current = current.nextNode;\n\n lastNode = current;\n current.nextNode = null;\n }\n\n return removedItem;\n }",
"public Item pop(){\n Item t = a[--size];\r\n a[size] = null;\r\n if(size > 0 && size == a.length/4){\r\n resize(a.length/2); //元素个数达到数组的1/4时候,比如原来length是8 当pop弹栈时,size减少到2时候进行缩减至1/2也就是4个\r\n }\r\n return t;\r\n }",
"protected Tree remove(){\n if(noItems<=0){\n System.out.println(\"Q Empty. Cant remove\");\n return null;\n }else{\n return array[--noItems];\n }\n }",
"public T removeBack() {\n\t\t// This is my fancy version of \"TODO\".\n\t\tthrow new UnsupportedOperationException(\"This is a challenge for you to implement.\");\n\t}",
"public E removeRear() {\r\n if (elem[rear] == null) {\r\n throw new NoSuchElementException();\r\n } else {\r\n E temp = elem[rear];\r\n elem[rear] = null;\r\n rear--;\r\n return temp;\r\n }\r\n }",
"public void removeAt(int index){\n E[] array2 = (E[]) new Object[capacity*2];\n int j=0;\n for(int i=0;i<size;i++){\n if(i!=index) {\n array2[j] = array[i];\n j++;\n }\n }\n array=array2;\n size--;\n }",
"public IClause uncheckedPopBack() {\n \t\tassert back!=front : \"Deque is empty\";\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }",
"public E remove(int index) {\n //first make a copy of the element we are going to remove later\n //so that it can be returned\n E copy = this.array[index];\n \n /*\n * make an if to find out if there is only one element in the array or not\n * if there is, then simply make the array empty\n */\n if (this.array.length == 1) {\n //only one element in the array, so there is nothing to slide over\n this.array = (E[]) new Object[0];\n } else {\n //make a temp array that has one less index than the current array\n Object[] temp = new Object[this.array.length - 1];\n \n //copy everything up to the desired index\n for (int i = 0; i < index; i++) {\n temp[i] = this.array[i];\n }\n \n //now copy all of the other elements after the index, but skip over the desired element to remove\n for (int i = index; i < temp.length; i++) {\n /*\n * take in the element from the next index over from this.array\n * this will automatically skip over the element that we want to remove\n */\n temp[i] = this.array[i + 1];\n }\n \n //set the array to the temp now that the element is removed\n this.array = (E[]) temp;\n }\n \n //return the copy that we created before we removed the element\n return (E) copy;\n }",
"@Override\n public T remove(int index) {\n if (index < 0 || index > size) {\n throw new IndexOutOfBoundsException(\"Index out of bounds exception.\");\n }\n\n T oldValue = (T) data[index];\n int move = index - size - 1;\n if (move > 0) {\n System.arraycopy(data, index + 1, data, index, move);\n }\n\n data[--size] = null;\n return oldValue;\n }",
"public Object remove(int index){\n\t\tif(index < listSize){\n\t\t\tObject o = myArrayList[index];\n\t\t\tmyArrayList[index] = null;\n\t\t\tint temp = index;\n\t\t\twhile(temp < listSize){\n\t\t\t\tmyArrayList[temp] = myArrayList[temp+1];\n\t\t\t\tmyArrayList[temp+1] = 0;\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t\tlistSize --;\n\t\t\treturn o;\n\t\t}else{\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\t}\n\t}",
"public void removelast()\r\n {\r\n Item item = post.item;\r\n post = post.prev;\r\n n--;\r\n }",
"@Override\n public E remove(int index) {\n\t E first = _store[index];\n\t _store[index] = null;\n\t for( int i = index; i< _size-1;i++) {\n\t\t _store[i]=_store[i+1];\n\t }\n\t_store[_size-1]=null;\n\t _size -=1;\n\t \n\t\t \n\treturn first;\n }",
"public void remove(int index) {\n\t\tif (index < 0 || index >= size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Cannot remove value with invalid index.\");\n\t\t}\n\n\t\tshiftBackArray(index);\n\t\tsize--;\n\t}",
"public T pop() { //pop = remove the last element added to the array, in a stack last in, first out (in a queue pop and push from different ends)\n try {\n T getOut = (T) myCustomStack[numElements - 1]; //variable for element to remove (pop off) = last element (if you have 7 elements, the index # is 6)\n myCustomStack[numElements] = null; //remove element by making it null\n numElements--; //remove last element, decrease the numElements\n return getOut; //return popped number\n\n } catch (Exception exc) {\n System.out.println(\"Can't pop from empty stack!\");\n return null;\n }\n }",
"public E removeLast();",
"private final void fastRemove(final int index) {\r\n\t\tfinal int numMoved = this.size - index - 1;\r\n\t\tif (numMoved > 0) {\r\n\t\t\tSystem.arraycopy( this.elementData, index + 1, this.elementData, index, numMoved );\r\n\t\t}\r\n\t\tthis.elementData[--this.size] = null; // Let gc do its work\r\n\t}",
"public Item pop() {\n\t\tif (N < arr.length/4)\n\t\t\tresize (arr.length/2);\n\t\tItem s = arr[--N];\n\t\tarr[N] = null;\n\t\treturn s;\n\t}",
"public Item removeLast(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[last--];\r\n\t\tn--;\r\n\t\tlatter=last+1;\r\n\t\tif(last==-1){last=list.length-1;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}",
"@Override\n public void backtrack() {\n if (!stack.isEmpty()) {\n int index = (Integer) stack.pop();\n\n if (index > arr.length) {//popping the insert function unneeded push\n insert((Integer) stack.pop());\n stack.pop();\n }\n if (index < arr.length) {//popping the delete function unneeded push\n delete(index);\n stack.pop();\n stack.pop();\n }\n System.out.println(\"backtracking performed\");\n }\n }",
"public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n }",
"@Override\n public void delete(Integer index) {\n if(index > lastIndex)\n throw new IllegalArgumentException(); // only for tests\n stack.push(arr[index]);\n stack.push(index + arr.length+1);\n for (int i=index+1; i<lastIndex + 1; i++){\n arr[i-1] = arr[i];\n }\n lastIndex = lastIndex - 1;\n }",
"@Override\n public E removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[tail];\n dequeue[tail] = null;\n tail--;\n if (tail == -1) {\n tail = dequeue.length - 1;\n }\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }",
"public void remove() {\n elements[index] = null;\n size--;\n next();\n }",
"public void popBack()\n {\n\ttail = tail.prev;\n\tif (null == tail) {\n\t // the list is now empty\n\t head = null;\n\t return;\n\t}\n\ttail.next = null;\n }",
"public E removeFirst() {\n return pop();\n }",
"@Override\n public Item getBack() {\n int lastActualItemIndex = size - 1;\n return items[lastActualItemIndex];\n }",
"public E removeBack() throws NoSuchElementException {\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(name + \" is Empty.\");\r\n\t\t\r\n\t\tE removedItem = last.data;\r\n\t\t\r\n\t\tif (first == last)\r\n\t\t\tfirst = last = null;\r\n\t\telse {\r\n\t//create a node to traverse the list to find the second to last node\r\n\t\t\tNode<E> current = first;\r\n\t//while loop will find the second to last node and set Node current to that node\r\n\t\t\twhile(current.next != last) {\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t//the second to last node is set to be the last node and the next node is set to Null\r\n\t\t\tlast = current;\r\n\t\t\tcurrent.next = null;\r\n\t\t}\r\n\t\treturn removedItem;\r\n\t}",
"public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }",
"private Element getElementBackwards(int index) {\n Element element = this._headAndTail;\n\n for (int i = this._size - index; i > 0; --i) {\n element = element.getPrevious();\n }\n\n return element;\n }",
"private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}",
"public void remove(){\n\t\tqueueArray[1][0] = null;\n\t\tqueueArray[1][1] = null;\n\t}",
"public T remove(int index) throws IndexOutOfBoundsException {\n checkException(index);\n System.arraycopy(arr, index + 1, arr, index, size - index - 1);\n T elem = arr[--size];\n arr[size] = null;\n return elem;\n }",
"private void pop() {\r\n pop( false );\r\n }",
"public Message remove() \n { \n Message r = elements[head]; \n head = (head + 1) % elements.length; \n count--; \n return r; \n }",
"@Override\n\tpublic Object pop() {\n\t\tif(this.vector.isEmpty()) throw new PilaVuota();\n\t\treturn this.vector.remove(this.vector.size()-1);\t\t\n\t}",
"public Item removeLast() {\n Item last = items[size];\n items[size] = null;\n size -= 1;\n return last;\n }",
"public void back() {\n\t\tif (path.isEmpty()) {\n\t\t\tpath = crossLocation.pop();\n\t\t\tLocation loc = path.get(path.size() - 1);\n\t\t\tint dir = getLocation().getDirectionToward(loc);\n\t\t\tif (dir == Location.HALF_CIRCLE) {\n\t\t\t\tdirsCount[0]--;\n\t\t\t} else if (dir == Location.AHEAD) {\n\t\t\t\tdirsCount[1]--;\n\t\t\t} else if (dir == Location.RIGHT) {\n\t\t\t\tdirsCount[2]--;\n\t\t\t} else {\n\t\t\t\tdirsCount[3]--;\n\t\t\t}\n\t\t}\n\t\tnext = path.remove(path.size() - 1);\n\t\tmove();\n\t}",
"public Object pop() {\r\n\t\treturn al.removeElementAt(al.listSize - 1);\r\n\t}",
"public void pop();",
"public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return temp;\n\n }",
"public T removeLast() {\n return remove(sentinel.prev);\n }",
"public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}",
"T removeFromTail() {\n return this.prev.remove();\n }",
"public void removeLastEntry(){\r\n\t\tboards.remove(boards.size() -1 );\r\n\t}",
"@Override\n public void remove(T t) {\n for (int i = 0; i < elementsInArray; i++) {\n if(t.equals(arrayList[i])) {\n arrayList[i] = null;\n elementsInArray--;\n return;\n }\n }\n }",
"@Override\n public boolean remove(T item) {\n //find where the item is in the array\n int index = this.findIndex(item);\n //if it is not in the array, return false\n if(index == -1)\n return false;\n //otherwise, move the last item in the array to the removed items\n //spot, decrement numItems and return true\n else{\n arr[index] = arr[--numItems];\n return true;\n }\n }",
"public int popBack() {\n int y = 0;\n if(tail == null) {\n return Integer.MIN_VALUE;\n }\n\n Node node = tail;\n tail = node.prev;\n\n size--;\n\n return node.val;\n }",
"public int pop(){\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\n int tmp=myarray[top];\n top--;\n return tmp;\n \n \n }",
"private void deleteElement(int index) {\n Object[] first = new Object[index];\n System.arraycopy(this.container, 0, first, 0, index);\n\n Object[] second = new Object[this.container.length - index - 1];\n System.arraycopy(this.container, index + 1, second, 0, second.length);\n\n this.container = new Object[this.container.length];\n System.arraycopy(first, 0, this.container, 0, first.length);\n System.arraycopy(second, 0, this.container, index, second.length);\n\n this.position--;\n }",
"public T removeLast(){\n\tT ret = _end.getCargo();\n\t_end = _end.getNext();\n\t_end.setPrev(null);\n\t_size--;\n\treturn ret;\n }",
"public long removeRight() {\n long temporary = Array[end--];\n if ( end == -1 ) {\n end = max-1;\n }\n nItems--;\n return temporary;\n }",
"Object pop();",
"@Override\n public synchronized E remove(int index) {\n E result = this.get(index);\n if (index < this.size() - 1) {\n System.arraycopy(this.container, index + 1, this.container, index, this.size() - (index + 1));\n }\n this.container[--this.pointer] = null;\n return result;\n }",
"public void remove(int index) {\n\t\t\tcheckIndex(index);\n\t\t\tfor(int i = index; i < size - 1; i++) {\n\t\t\t\telementData[i] = elementData[i + 1];\n\t\t\t}\n\t\t}",
"public void back() throws JSONException {\n if(usePrevious || this.index <= 0) {\n throw new JSONException(\"Stepping back two steps is not supported\");\n }\n this.index -= 1;\n this.character -= 1;\n this.usePrevious = true;\n this.eof = false;\n }",
"private int minusOne(int index) {\n if (index - 1 < 0) {\n return array.length - 1;\n } else {\n return index - 1;\n }\n }",
"@Override\n\tpublic T remove(int index) {\n\t\t// TODO check if index is withing the correct range\n\t\t// If not, return null\n\t\t// otherwise , do the same as above\n\t\tif (index >= 0 && index < size) {\n\t\t\tT item = data[index];\n\t \t\tfor(int i=index;i<size-1;i++)\n\t \t\t\tdata[i] = data[i+1];\n\t \t\tsize--;\n\t \t\treturn item;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public int pop() {\n var tmp = array[dataSize - 1];\n removeAt(dataSize - 1);\n\n if (dataSize < arraySize / 2)\n halveSize();\n\n return tmp;\n }"
] | [
"0.7970711",
"0.74117905",
"0.738518",
"0.733742",
"0.7098942",
"0.7065565",
"0.7004688",
"0.69986856",
"0.6943014",
"0.6909638",
"0.6902659",
"0.68981004",
"0.6848887",
"0.6810168",
"0.6808239",
"0.68076044",
"0.67410314",
"0.6687474",
"0.665838",
"0.6647134",
"0.66424227",
"0.66280985",
"0.66248614",
"0.66032785",
"0.65940446",
"0.65811145",
"0.65707976",
"0.65687066",
"0.65517014",
"0.6540562",
"0.65369004",
"0.6527811",
"0.6522772",
"0.6522549",
"0.6506447",
"0.6501388",
"0.64851177",
"0.6484902",
"0.64805007",
"0.64550936",
"0.6451933",
"0.6438511",
"0.64358425",
"0.6433738",
"0.64078414",
"0.63932276",
"0.6392865",
"0.6388258",
"0.6387209",
"0.638603",
"0.63832366",
"0.63827527",
"0.6380721",
"0.6377995",
"0.63757765",
"0.63722193",
"0.63703066",
"0.6363207",
"0.63561076",
"0.63533974",
"0.63436353",
"0.6343177",
"0.6331402",
"0.6327235",
"0.6322494",
"0.6321312",
"0.6319672",
"0.6312447",
"0.6308506",
"0.62987804",
"0.6296374",
"0.62945145",
"0.62911475",
"0.62893176",
"0.6284395",
"0.62817943",
"0.627417",
"0.626341",
"0.6248722",
"0.6247408",
"0.6246261",
"0.6244831",
"0.6229336",
"0.6226849",
"0.6220695",
"0.6192089",
"0.61910105",
"0.6182688",
"0.6181248",
"0.6177849",
"0.6174916",
"0.6170446",
"0.61670744",
"0.61598474",
"0.61521035",
"0.6150974",
"0.6148996",
"0.6148441",
"0.61457866",
"0.6132492",
"0.6129867"
] | 0.0 | -1 |
Returns 'true' if the array is empty; returns 'false' if the array has elements | public boolean empty() {
if(item_count>0)
return false;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEmpty() {\n\t\treturn array.isEmpty();\n\t}",
"public boolean isEmpty() {\n //if the array length is 0, then the array is empty\n if (this.array.length < 1) {\n return true;\n }\n \n //return false if the length is greater than 0\n return false;\n }",
"public boolean isEmpty()\n\t{\n\t\treturn arraySize == 0;\n\t}",
"public boolean isEmpty( Object[] array ){\n if( array == null || array.length == 0 ){\n return true;\n }\n return false;\n }",
"private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}",
"protected boolean arrayIsEmpty(Object arr[]) {\n boolean empty = true;\n \n for (Object obj : arr) {\n \tif (obj != null) {\n \t\tempty = false;\n \t\tbreak;\n \t}\n }\n \treturn empty;\n }",
"public static boolean isEmpty(Object[] array) {\n if (array == null || array.length == 0) {\n return true;\n }\n return false;\n }",
"public static boolean isEmpty(Object[] array) {\r\n return (array == null || array.length == 0);\r\n }",
"boolean isEmpty(int[] array) {\n return array.length == 0;\n }",
"public static boolean isEmpty(Object[] array) {\n return array == null || array.length == 0;\n }",
"public boolean isEmpty() {\n\t\treturn elements == 0;\n\t}",
"public boolean isEmpty() {\n return elements == 0;\n }",
"public boolean isEmpty() {\n\t\treturn numElements == 0; // Dummy return\n\t}",
"boolean isEmpty() {\n\t\t\n\t\t// array is empty if no elements can be polled from it\n\t\t// \"canPoll\" flag shows if any elements can be polled from queue\n\t\t// NOT \"canPoll\" means - empty\n\t\t\n\t\treturn !canPoll;\n\t}",
"public boolean isEmpty(){\n for(int i = 0; i < arrayList.length; i++) {\n if (arrayList[i] != null)\n return false;\n }\n return true;\n }",
"public boolean isEmpty() {\n\t\treturn numElements==0;\n\t}",
"public boolean isEmpty()\n {\n return ((elements == null) || elements.isEmpty());\n }",
"public boolean isEmpty()\n {\n return elements.isEmpty();\n }",
"public boolean isEmpty() {\n return elements.isEmpty();\n }",
"private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}",
"public synchronized boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public boolean isEmpty() { return size == 0; }",
"public boolean isEmpty() { return size == 0; }",
"public boolean isEmpty() { return size == 0; }",
"public boolean isEmpty() {\n\t\treturn elements.isEmpty();\n\t}",
"private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}",
"public synchronized boolean isEmpty() {\r\n return size == 0;\r\n }",
"public boolean isEmpty()\r\n\t{\r\n\t\treturn data.size() == 0;\r\n\t}",
"public boolean isEmpty(){\n\t\tboolean ans = false;\n\t\tif (_size == 0) ans = true;\n\t\treturn ans;\n\t}",
"public boolean isEmpty() {\n\t\treturn size == 0;\r\n\t}",
"public boolean isEmpty() {\r\n return (size == 0);\r\n }",
"public boolean isEmpty() {\n \t\treturn size == 0;\n \n \t}",
"public boolean isEmpty() {\n \treturn size == 0;\n }",
"private boolean isEmpty() {\n return (size == 0);\n }",
"public boolean isEmpty() {\r\n return size == 0; \r\n }",
"public boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public boolean isEmpty() {\r\n return size == 0;\r\n }",
"public boolean isEmpty() {\r\n \r\n return size == 0;\r\n }",
"public static boolean isNotNullOrEmpty(Object[] array) {\n return array != null && array.length > 0;\n }",
"public boolean empty() {\n\t\treturn (size() <= 0);\n\t}",
"public boolean isEmpty() {\r\n\t\treturn size == 0;\r\n\t}",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty()\n {\n return size == 0;\n }",
"public boolean isEmpty() {\n\t\treturn (size == 0);\n\t}",
"public boolean isEmpty(){\r\n\t\treturn size == 0;\r\n\t}",
"boolean hasArray();",
"public boolean isEmpty() {\r\n return size == 0;\r\n }",
"public boolean isEmpty() {\r\n return size == 0;\r\n }",
"public boolean isEmpty()\n {\n return size <= 0;\n }",
"public boolean isEmpty() {\n return size <= 0;\n }",
"public boolean isEmpty() {\r\n\t\treturn size==0;\r\n\t}",
"public boolean empty() { \t \n\t\t return size <= 0;\t \n }",
"public Boolean isEmpty() {\n \n return ( size == 0 ) ? true : false;\n \n }",
"public boolean isEmpty() {\n\t return size == 0;\n\t }",
"public boolean isEmpty() {\n\n return elements.isEmpty();\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return (size == 0);\n\n }",
"public boolean isEmpty() {\n return (size == 0);\n }",
"public boolean isEmpty() {\n\n\t\treturn size == 0;\n\n\t}",
"public boolean isEmpty(){\r\n\t\treturn size() == 0;\r\n\t}",
"public boolean empty() {\n return size <= 0;\n }",
"public boolean isEmpty() \r\n\t{\r\n\t\treturn size() == 0;\r\n\t}",
"public boolean isEmpty() {\n\tif (size==0) {\n\t return true;\n\t}\n\treturn false;\n }",
"public boolean isEmpty() {\r\n\t\tif (size > 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isEmpty() {\n\t\tif (size == 0) return true;\n\t\treturn false;\n\t}",
"public boolean isEmpty() {\n \t return size == 0;\n }",
"public boolean empty() {\r\n return size == 0;\r\n }",
"public boolean isEmpty()\r\n {\r\n return (size() == 0);\r\n }",
"public boolean isEmpty() \n\t {\n\t\t return (size()==0);\n\t }",
"public boolean isEmpty(){\n\t\treturn (howMany==0);\n\t}",
"public boolean isEmpty() {\n return size() == 0;\n }",
"public boolean isEmpty(){\r\n if(size == 0){\r\n return true;\r\n }\r\n return false;\r\n }"
] | [
"0.8720716",
"0.8468761",
"0.84587187",
"0.8357062",
"0.83068377",
"0.8305481",
"0.8097784",
"0.8041041",
"0.8023551",
"0.799501",
"0.7963405",
"0.7945725",
"0.7937375",
"0.79098886",
"0.79015595",
"0.7856103",
"0.78350186",
"0.78272694",
"0.7821141",
"0.78082573",
"0.78029037",
"0.7797246",
"0.7797246",
"0.7797246",
"0.7792461",
"0.77709",
"0.7744858",
"0.77426666",
"0.77272403",
"0.7720885",
"0.7716717",
"0.77115816",
"0.77065355",
"0.77063555",
"0.77042204",
"0.7700162",
"0.7700162",
"0.7700162",
"0.76958996",
"0.7693295",
"0.76897603",
"0.7687011",
"0.7686033",
"0.76842046",
"0.76842046",
"0.76842046",
"0.76842046",
"0.76842046",
"0.7679841",
"0.76784235",
"0.76765746",
"0.76741004",
"0.7673835",
"0.7673835",
"0.7673035",
"0.7668126",
"0.76676726",
"0.7666415",
"0.7660927",
"0.7659985",
"0.76599205",
"0.7658272",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.76548946",
"0.7645033",
"0.76416105",
"0.76359254",
"0.7623312",
"0.7621898",
"0.7619878",
"0.76185817",
"0.7617626",
"0.7615099",
"0.76122576",
"0.76113695",
"0.7605524",
"0.7600294",
"0.7600072",
"0.7598109",
"0.7588209"
] | 0.0 | -1 |
Doubles the size of the array | public void doubleArray() {
@SuppressWarnings("unchecked")
T[] temp=(T[]) new Object[item_count*2];
// Copies elements from the initial array to a larger array
for(int i=0;i<item_count;i++)
temp[i]=arr[i];
arr=temp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void doubleSize() {\n\t\tint[] arr2 = new int[2 * arr.length];\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\tarr2[i] = arr[i];\n\t\t}\n\t\tarr = arr2;\n\t}",
"private int getDoubleSize() {\n int oddNewSize = (sizeArray * 2) + 1;\n return primes.getNextPrime(oddNewSize);\n }",
"private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray = new Object[doubleSize];\n System.arraycopy(this.container, 0, newArray, 0, this.container.length);\n this.container = new Object[doubleSize];\n System.arraycopy(newArray, 0, this.container, 0, doubleSize);\n }",
"public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}",
"private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }",
"public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }",
"@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }",
"private void doubleArraySizeBy(final int numberOfNewSize) {\n if (numberOfNewSize > 0) {\n int newSize = this.data.length * numberOfNewSize;\n this.data = Arrays.copyOf(this.data, newSize);\n }\n }",
"private void doubleArray()\n\t{\n\t\tT[] oldList = list;\n\t\tint oldSize = oldList.length;\n\t\t\n\t\tlist = (T[]) new Object[2 * oldSize];\n\t\t\n\t\t// copy entries from old array to new, bigger array\n\t\tfor (int index = 0; index < oldSize; index++)\n\t\t\tlist[index] = oldList[index];\n\t}",
"public int bufferSize(int arrayLength) {\r\n return arrayLength * (precision.isDouble() ? Sizeof.cl_double : Sizeof.cl_float); \r\n }",
"long arrayLength();",
"private void resizeDown()\n\t{\n\t\tint newSize = myArray.length/2;\n\t\tmyArray = Arrays.copyOf(myArray, newSize);\n\t}",
"public int arraySize();",
"int getArrayLength();",
"int getArrayLength();",
"@Override\n public synchronized int getSize() {\n return mArray.size();\n }",
"public int getSize() {\r\n return array.length;\r\n }",
"synchronized protected void enlargeArrays() {\n \t\tenlargeArrays(5);\n \t}",
"public int getLength(){\r\n\t \treturn arraySize;\r\n\t }",
"private void resizeUp() \n\t {\n\t\t int newSize = myArray.length * 2;\n\t\t myArray = Arrays.copyOf(myArray, newSize);\n\t }",
"protected int getArraySize(){\r\n\t \treturn numElems;\r\n\t \t//return arraySize;\r\n\t }",
"public final int getRealSize() {\n return size - 1;\n }",
"public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }",
"public int getTrueSize() {\n int len = ArrayFuncs.computeSize(dataArray);\n return len;\n }",
"private void resizeArray()\n {\n int[] temp = new int[integerList.length * 2];//Create new array with twice the size.\n for(int i = 0; i < integerList.length; i++)//Populate new array with data from old array\n {\n temp[i] = integerList[i];\n }\n integerList = temp;//Set the integerList to point to the new array.\n }",
"private void shrink() {\n int shrinkSize = array.length>>1;\n array = Arrays.copyOf(array, shrinkSize);\n }",
"@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"@Override public long getSimulatedSize() {\n return 1;\n }",
"public int calculateSize( int numSamples )\n {\n return numSamples * 2;\n }",
"public void addArrayDimension() {\r\n\t\ttheArrayDimension++;\r\n\t}",
"public int size() {\n //encapsulate\n int size = this.array.length;\n return size;\n }",
"public void resize()\r\n\t{\r\n\t\tif(nItems >= arraySize/2)\t\t\t\t\t\t\t\t\t\t\t\t//If array is half full, the array becomes twice as large.\r\n\t\t{\t\t\t\r\n\t\t\tItem[] tempArray = (Item[]) new Object[2*arraySize];\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = 2*arraySize;\t\t\t\t\t\t\t\t\t\t\t//Array size is doubled.\r\n\t\t}\r\n\t\telse if(nItems <= arraySize/4)\t\t\t\t\t\t\t\t\t\t\t//If array is a quarter full, the array size is halved.\r\n\t\t{\r\n\t\t\tItem[] tempArray = (Item[]) new Object[arraySize/2];\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = arraySize/2;\t\t\t\t\t\t\t\t\t\t\t//Array size is halved.\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn;\r\n\t}",
"public static int elementSize_data() {\n return (8 / 8);\n }",
"private T[] resize(T[] arr, double factor) {\n int nSize = (int) (arr.length * factor) + 1;\n // initialize the new array with a new size\n T[] nArr = (T[]) (new Object[nSize]);\n // always take the smallest length to make sure the index is in bound\n int size = Math.min(nArr.length, arr.length);\n // copy all values from the old array into the new array\n for (int i = 0; i < size; i++) {\n nArr[i] = arr[i];\n }\n return nArr;\n }",
"double getSize();",
"private void testSize(ArrayGenerator generator) {\n assertEquals(generator.getSize(), generator.getArray().length);\n }",
"public static double[] correctDataLength(double[] in) {\n\t\tint n = in.length;\n\t\tdouble x = (int)(Math.log(n)/Math.log(2));\n\t\tint newLength = (int)Math.pow(2,x);\n\t\tdouble[] correctArray = new double[newLength];\n\t\tfor (int i = 0 ; i<newLength-1 ; i++) {\n\t\t\tif (i < n) {\n\t\t\t\tcorrectArray[i]=in[i];\n\t\t\t} else { //pad with 0s\n\t\t\t\tcorrectArray[i]=0;\n\t\t\t}\n\t\t}\n\t\treturn correctArray;\n\t}",
"public int size()\n\t{\n\t\treturn arraySize;\n\t}",
"@Override\n public int size() {\n return array.length;\n }",
"public static native int Size(long lpjFbxArrayVector2);",
"@Override\r\n\tpublic int getSize() {\r\n\t\treturn getBitSize() / stridePolicy.getStride();\r\n\t}",
"protected void setArraySize(int arraySize){\r\n\t \tthis.arraySize = arraySize;\r\n\t }",
"int sizeOfSpeedsArray();",
"int size() {\n\t\treturn array.length;\n\t}",
"public static native int Capacity(long lpjFbxArrayVector2);",
"private void resize() {\n Point[] temp = new Point[2*N+1];\n for (int i = 0; i <= N; i++) temp[i] = a[i];\n a = temp;\n }",
"int sizeOfDecisionSightDistanceArray();",
"public ListOfDouble(int size) {\n\t\telements = new double[size];\n\t\tpointer = 0;\n\t}",
"float getSize(float[] sizes);",
"private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }",
"int fixedSize();",
"public native double[] __doubleArrayMethod( long __swiftObject, double[] arg );",
"public void sizeDecrease1() {\n\t\t _size--;\n\t}",
"public int size() {\n\t\treturn array.length();\n\t}",
"private void increaseSize() {\r\n\t\tE[] biggerE = (E[]) new Object[this.capacity * 2];\r\n\t\tdouble[] biggerC = new double[this.capacity * 2];\r\n\t\tfor (int i = 0; i < this.size; i++) {\r\n\t\t\tbiggerE[i] = this.objectHeap[i];\r\n\t\t\tbiggerC[i] = this.costHeap[i];\r\n\t\t}\r\n\t\tthis.costHeap = biggerC;\r\n\t\tthis.objectHeap = biggerE;\r\n\t\tthis.capacity = this.capacity * 2;\r\n\t}",
"protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }",
"public double getSize() {\n return size_;\n }",
"private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }",
"public double getSize() {\n return size_;\n }",
"Dimension[] getSizes();",
"public double getSize()\n\t{\n\t\treturn size;\n\t}",
"private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }",
"int sizeOfTrafficVolumeArray();",
"public static int arrayLength(final Object array) {\r\n if (GWT.isProdMode()) {\r\n return jsniLength(array);\r\n } else {\r\n return Array.getLength(array);\r\n }\r\n }",
"public double getSize() \n {\n return size;\n }",
"public double[] getWidth() { return this.width; }",
"protected String getArraySize()\n {\n return arraySize;\n }",
"private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}",
"@SuppressWarnings(\"resource\")\n public static void doubleCapacity(String[] array){\n int wordCount = 0;\n int arrayGrowth = 500;\n array = new String[10];\n String strLine = null;\n while (strLine != null) {\n // Store the content into an array\n Scanner s = new Scanner(strLine);\n while (s.hasNext()) {\n if (array.length == wordCount) {\n // expand list\n array = Arrays.copyOf(array, array.length + arrayGrowth);\n }\n array[wordCount] = s.next();\n wordCount++;\n } \n }\n }",
"int sizeOfStarArray();",
"private void resize(int cap) {\n Item[] temp = (Item[]) new Object[cap];\n for(int i = 0; i < size; i++)\n temp[i] = rqArrays[i];\n rqArrays = temp;\n }",
"@Test\r\n public void ArraySizeTest() {\r\n System.out.println(\"arraySize\");\r\n String[] string = {\"1\",\"2\",\"3\"};\r\n\r\n int expResult = 3;\r\n int result = instance.arraySize(string);\r\n assertEquals(expResult, result);\r\n }",
"public void makeArray(int size) {\n\t\t\n\t}",
"public void increaseSize(int size) {\n int arraySize = container.length;\n if (size > arraySize) {\n int newSize = arraySize * 2;\n container = Arrays.copyOf(container, newSize);\n }\n }",
"@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }",
"UINT SafeArrayGetElemsize(SAFEARRAY psa);",
"int sizeOfRoadsideArray();",
"private void resizeArray() {\n stackArray = Arrays.copyOf(stackArray, stackArray.length * 2 + 1);\n }",
"public int getMaxSize(){\n\t\treturn ds.length;\n\t}",
"public int length(){ return this.isUpgraded ? this.linkArray.length() : this.nativeArray.size(); }",
"private void reallocateDoubleCapacity() {\n\t\tObject oldElements[] = elements;\n\t\tcapacity *= reallocateFactor;\n\t\tsize = 0;\n\t\telements = new Object[capacity];\n\n\t\tfor (Object object : oldElements) {\n\t\t\tthis.add(object);\n\t\t}\n\t}",
"int getLostedSize();",
"public int getSize() {\n\t\treturn dist.length;\n\t}",
"public int sizeOfDosageArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DOSAGE$14);\n }\n }",
"protected int getElementSize () {\n return 1;\n }",
"int getTribeSize();",
"public int sizeOfSupArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SUP$4);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tObject[] newList = new Object[size * 2];\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tnewList[i] = get(i);\n\t\t}\n\t\tlist = (E[]) newList;\n\t\tsize *= 2;\n\t}",
"@Override\n public int getSize() {\n return 64;\n }",
"private void resize(int newSize){\n Item[] temp = (Item[]) new Object[newSize]; //newsize\n for(int i=0; i<itemCount; i++){\n temp[i] = array[i]; // fill temp with array's stuff\n }\n array = temp; // reset array to temp\n }",
"private void arraySize(MyArrayList list, Results results) {\r\n int size = -123;\r\n size = list.size();\r\n if(size != -123) {\r\n results.storeNewResult(\"ArraySize test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArraySize test case: FAILED\");\r\n }\r\n }",
"public native double[][] __double2dArrayMethod( long __swiftObject, double[][] arg );",
"public void resize(){\n Object[] old = myCustomStack;\n //resize array to be twice the size when the Stack is more than 3/4 full\n if(numElements > old.length * .75){\n Object[] resizedArr = new Object[old.length * 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to twice the size. Array length: \" + myCustomStack.length);\n }\n //resize array to be half the size when the Stack is more than 1/4 empty\n else if(numElements < old.length * .25){\n Object[] resizedArr = new Object[old.length / 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to half the size. Array length: \" + myCustomStack.length);\n }\n else{\n return;\n }\n }",
"public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}",
"private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }",
"public float getSize() {\n return bufSize;\n }",
"public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }",
"public void testSun13AccuracyArray_Shallow() throws Exception {\n // the size is : 12 + 1 * 10 = 22 -> 24\n byte[] array1 = new byte[10];\n\n assertEquals(\"byte array memory size not correct\", 24,\n test.getShallowMemoryUsage(array1).getUsedMemory());\n\n // the size is : 12 + 2 * 10 = 32 -> 32\n short[] array2 = new short[10];\n\n assertEquals(\"short array memory size not correct\", 32,\n test.getShallowMemoryUsage(array2).getUsedMemory());\n\n // the size is : 12 + 4 * 10 = 52 -> 56\n float[] array3 = new float[10];\n assertEquals(\"float array memory size not correct\", 56,\n test.getShallowMemoryUsage(array3).getUsedMemory());\n\n // the size is : 12 + 8 * 10 = 92 -> 96\n double[] array4 = new double[10];\n assertEquals(\"double array memory size not correct\", 96,\n test.getShallowMemoryUsage(array4).getUsedMemory());\n\n // the size is : 12 + 4 * 10 = 52 -> 56\n Object[] array5 = new Object[10];\n assertEquals(\"object array memory size not correct\", 56,\n test.getShallowMemoryUsage(array5).getUsedMemory());\n }",
"public void addSize(double edgeSize)\r\n\t{\r\n\t\tsize= size + edgeSize;\r\n\t}"
] | [
"0.8153164",
"0.7707423",
"0.742457",
"0.70871145",
"0.6988704",
"0.6887445",
"0.66710514",
"0.6610358",
"0.6596709",
"0.6497392",
"0.64794177",
"0.6473957",
"0.64116096",
"0.6340796",
"0.6340796",
"0.6329485",
"0.6319057",
"0.62433416",
"0.62187636",
"0.615225",
"0.599259",
"0.597613",
"0.5956916",
"0.5949594",
"0.59030974",
"0.5886626",
"0.58800054",
"0.584642",
"0.5843666",
"0.5817566",
"0.5815912",
"0.58117664",
"0.58057374",
"0.58038974",
"0.58023834",
"0.57927835",
"0.5783817",
"0.5773182",
"0.5770882",
"0.5769723",
"0.57551837",
"0.5745564",
"0.57420015",
"0.57392484",
"0.57158434",
"0.5709093",
"0.5704481",
"0.5676337",
"0.5674015",
"0.56638086",
"0.56461287",
"0.5626878",
"0.56259066",
"0.5620465",
"0.56189275",
"0.5616531",
"0.56140816",
"0.5607219",
"0.5606308",
"0.5605099",
"0.5601737",
"0.5595741",
"0.55890477",
"0.5582456",
"0.558137",
"0.5574734",
"0.5558376",
"0.55581635",
"0.55524814",
"0.55466586",
"0.5527711",
"0.5521359",
"0.5520152",
"0.55115575",
"0.5501642",
"0.55007803",
"0.5498983",
"0.5496677",
"0.5487175",
"0.547415",
"0.54736435",
"0.54691064",
"0.5453907",
"0.54525226",
"0.5449975",
"0.54484844",
"0.544749",
"0.54466987",
"0.54438865",
"0.5431463",
"0.54278016",
"0.54163665",
"0.5411733",
"0.5409359",
"0.54049283",
"0.5403165",
"0.5403124",
"0.5393822",
"0.5392907",
"0.5392338"
] | 0.6406715 | 13 |
/ Task01 1. create an interface named onlineEducation variable: boolean onlineStudent abstract methods: attendClass(); | public interface onlineEducation {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Student {\n}",
"protected abstract boolean approvedForClass(Course c);",
"public interface IStudent {\r\n\t\r\n\tpublic String getId();\r\n\t\r\n\tpublic void setId(String i);\r\n\t\r\n\tpublic List<Integer> generateAnswers(List<String> options, boolean multi);\r\n}",
"abstract public void getStudent();",
"public boolean isStudent(){\n return student;\n }",
"public boolean isStudent(){\n return student;\n }",
"@Override\n public boolean isStudent() {\n return false;\n }",
"public ProfileInterface recommend();",
"public interface Activity extends RUP_Core_Elements {\n\n /* ***************************************************\n * Property http://www.semanticweb.org/morningstar/ontologies/2019/9/untitled-ontology-9#hasRecommendation\n */\n \n /**\n * Gets all property values for the hasRecommendation property.<p>\n * \n * @returns a collection of values for the hasRecommendation property.\n */\n Collection<? extends PM_Learning_Material> getHasRecommendation();\n\n /**\n * Checks if the class has a hasRecommendation property value.<p>\n * \n * @return true if there is a hasRecommendation property value.\n */\n boolean hasHasRecommendation();\n\n /**\n * Adds a hasRecommendation property value.<p>\n * \n * @param newHasRecommendation the hasRecommendation property value to be added\n */\n void addHasRecommendation(PM_Learning_Material newHasRecommendation);\n\n /**\n * Removes a hasRecommendation property value.<p>\n * \n * @param oldHasRecommendation the hasRecommendation property value to be removed.\n */\n void removeHasRecommendation(PM_Learning_Material oldHasRecommendation);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/morningstar/ontologies/2019/9/untitled-ontology-9#isPerformOf\n */\n \n /**\n * Gets all property values for the isPerformOf property.<p>\n * \n * @returns a collection of values for the isPerformOf property.\n */\n Collection<? extends Role> getIsPerformOf();\n\n /**\n * Checks if the class has a isPerformOf property value.<p>\n * \n * @return true if there is a isPerformOf property value.\n */\n boolean hasIsPerformOf();\n\n /**\n * Adds a isPerformOf property value.<p>\n * \n * @param newIsPerformOf the isPerformOf property value to be added\n */\n void addIsPerformOf(Role newIsPerformOf);\n\n /**\n * Removes a isPerformOf property value.<p>\n * \n * @param oldIsPerformOf the isPerformOf property value to be removed.\n */\n void removeIsPerformOf(Role oldIsPerformOf);\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}",
"public interface cpurseModelInterface {\n\n void getTimeTable(coursePresInterface coursePresInterface, Context context, String stdId);\n void getAttendance(coursePresInterface coursePresInterface,Context context, String stdId);\n void getHomeWork(coursePresInterface coursePresInterface,Context context, String stdId);\n void getExam(coursePresInterface coursePresInterface,Context context, String stdId);\n}",
"protected abstract boolean gradeable();",
"public interface Expert {\n}",
"interface Interviewer {\n public void askQuestions();\n}",
"public interface AircraftColleague {\n public void startLanding();\n public void finishLanding();\n}",
"public interface Critere{\n\n /**\n * @param v la voiture dont on teste la conformité au critère\n * @return true si et seulement si la voiture est conforme au\n * critère (on dit que v satisfait le critère)\n */\n public boolean estSatisfaitPar(Vehicule v);\n\n}",
"public interface ExerciseSessionGoal extends Serializable {\n\n\t/**\n\t * Returns a value indicating whether the goal has been achieved for the given data.\n\t * \n\t * @param data\n\t * @return\n\t */\n\tboolean isGoalReached(ExerciseSessionData data);\n\n\tString getName(Context context);\n\n\tint getIconId();\n\n}",
"interface School\r\n{\r\n\tString sname=\"abc\";\t\r\n\r\n\tvoid display();\r\n\r\n}",
"public interface Jefes {\n\n//Los metodos de las intefeces no utilizan llaves\n String tomar_decisiones(String decision);\n\n \n\n\n \n}",
"public interface AvailableIn extends Activated\n{\n boolean isAvailableIn(DateTime time);\n boolean isAvailableNow();\n\n}",
"public interface IsOnline\n {\n /**\n * offline\n */\n String OFFLINE = \"0\";\n\n /**\n * online\n */\n String ONLINE = \"1\";\n }",
"public interface AdultAccountInterface {\n\n\tpublic void makeAccount();\n}",
"public interface CreateCourseInter {\n void createCourse(Course course , OnCreateCourse onCreateCourse);\n\n}",
"boolean isIntroduced();",
"public interface ClassLearner<I>\n{\n //-------------------------------------------------------------------------\n public Classifier<I> learn(\n List<Classified<I>> trainingPoints);\n}",
"public interface Participant {\r\n\tpublic void update();\r\n\tpublic void start();\r\n\tpublic void gameOver();\r\n\tpublic String getPlayerName();\r\n}",
"public interface IEstado {\n\n /**\n * Modifica el estado del objeto publicacion\n *\n * @return String\n */\n String ejecutarAccion();\n}",
"public interface StudentClassworkService {\n /**\n * 初始化作业主页面\n * @param model\n * @return\n */\n List<Map<String,Object>> initClasswork(StudentModel model);\n\n /**\n * 按学科获取学生的作业列表\n * @param model\n * @return\n */\n// List<StudentRecordModel> classworkList(StudentModel model);\n}",
"public interface Entrada {\r\n\t\r\n\tpublic abstract String getLinVenta();\r\n\t\r\n\tpublic abstract boolean getTarjetaFid();\r\n\t\r\n\tpublic abstract boolean getEmpleado();\r\n\t\r\n\tpublic abstract int getDia();\r\n\t\r\n\tpublic abstract String getHora();\r\n\t\r\n\tpublic abstract boolean isFinalFichero();\r\n}",
"public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}",
"public interface Classroom {\n String getName();\n}",
"public abstract boolean isAssignable();",
"public interface Contest extends Adif {\n\n /**\n * Gets the contest id. A \"\" indicates that this field is not in use.\n * \n * @return the contest id.\n */\n public String getContestId() ;\n \n /**\n * Sets the contest id. A \"\" indicates that this field is not in use.\n * \n * @param contestId the contest id.\n */\n public void setContestId(String contestId) ;\n \n /**\n * Gets the received serial number for a contest QSO. A \"\" indicates that this field is not in use.\n * \n * @return the received serial number for a contest QSO.\n */\n public String getReceivedSerialNumber() ;\n \n /**\n * Sets the received serial number for a contest QSO. A \"\" indicates that this field is not in use.\n * \n * @param receivedSerialNumber the received serial number for a contest QSO.\n */\n public void setReceivedSerialNumber(String receivedSerialNumber) ;\n\n /**\n * Gets the transmitted serial number for a contest QSO. A \"\" indicates that this field is not in use.\n * \n * @return the transmitted serial number for a contest QSO.\n */\n public String getTransmittedSerialNumber() ;\n \n /**\n * Sets the transmitted serial number for a contest QSO. A \"\" indicates that this field is not in use.\n * \n * @param transmittedSerialNumber the transmitted serial number for a contest QSO.\n */\n public void setTransmittedSerialNumber(String transmittedSerialNumber) ;\n\n}",
"public interface IMachineGlasses \n{\n\t/**\n\t * Called on display ticks with the player to determine if the player can see complex machine interfaces. Return true to allow it.\n\t * @return True to allow the player to see complex machine interfaces.\n\t * @param player The player wearing the gear\n\t */\n\tpublic boolean isVisionary(EntityPlayer player);\n}",
"public interface BarStudent {\n\n\t/**\n * Student signals the waiter to bring the next course.\n * Notifies the waiter that all the people already ate.\n * Updates internal state of the student to CHATTING_WITH_COMPANION.\n */\n public void signalTheWaiter();\n \n /**\n * Student calls the waiter when everyone has chosen.\n * Notifies a new order in the requests queue.\n * Updates internal state of the student to ORGANIZING_THE_ORDER.\n */\n public void callTheWaiter();\n \n /**\n * Student enters the restaurant, updates internal state of student to TAKING_A_SEAT_AT_THE_TABLE.\n * Notifies the waiter that a student has entered.\n * Adds a request of type SALUTE_THE_CLIENT to the queue.\n */\n public void enter();\n \n /**\n * Student leaves the restaurant, updates internal state of student to GOING_HOME.\n * Notifies the waiter that a student has left.\n * Adds a request of type SAY_GOODBYE to the queue.\n */\n public void exit();\n \n /**\n * Gets the id of the student who arrived last.\n * Notifies a new order in the requests queue.\n * Updates internal state of the student to PAYING_THE_BILL.\n * \n * @return boolean if the student was the last to enter the restaurant\n */\n public boolean shouldHaveArrivedEarlier(int sID);\n \n /**\n * Student reads the menu.\n * Notifies the waiter that he has read the menu.\n * Updates internal state of the student to SELECTING_THE_COURSES.\n */\n public void readTheMenu();\n}",
"public interface SavingAccInterface {\n\n public void interestRate();\n\n}",
"public interface Understandability extends Usability {\n}",
"public interface AreaOccupier {\n}",
"public static void main(String[] args) {\n Student student1 = new Student(10000, 20000, \"Sang\", \"Shin\", \"Good School\");\r\n \r\n // You can assign the object instance to\r\n // StudentInterface type.\r\n StudentInterface studentinterface1 = student1;\r\n \r\n // Display data from student1 and studentinterface1.\r\n // Observe that they refer to the same object instance.\r\n System.out.println(\"student1.getName() = \" + student1.getName() + \",\" +\r\n \" student1.computeTotalWealth() = \" + student1.computeTotalWealth()+ \",\" +\r\n \" student1.findSchool() = \" + student1.findSchool());\r\n \r\n System.out.println(\"studentinterface1.getName() = \" + studentinterface1.getName() + \",\" +\r\n \" studentinterface1.computeTotalWealth() = \" + studentinterface1.computeTotalWealth()+ \",\" +\r\n \" studentinterface1.findSchool() = \" + studentinterface1.findSchool());\r\n \r\n // Check of object instance that is referred by student1 and\r\n // studentinterface1 is the same object instance.\r\n boolean b1 = (student1 == studentinterface1);\r\n System.out.println(\"Do student1 and studentinterface1 point to the same object instance? \" + b1);\r\n \r\n }",
"public interface Strategie {\n\n\t/**\n\t * choisit un coup selon la strategie a adopter\n\t * @return le coup a jouer\n\t */\n\tpublic Coup coupAJouer();\n\n}",
"public interface Enemy {\n /**\n * Prints Enemy name and health\n */\n void printInfo();\n\n /**\n * Returns an Enemy's current health\n *\n * @return health : Float\n */\n Float getHealth();\n\n /**\n * Decreases an Enemy's health by the amount of damage taken\n */\n void decreaseHealth(Float damage);\n\n /**\n * Checks if an Enemy is a Boss\n *\n * @return Boolean\n */\n Boolean isBoss();\n\n /**\n * Checks if an Enemy died and returns the result\n *\n * @return Boolean\n */\n Boolean isDead();\n\n /**\n * Returns the damage an Enemy has inflicted\n *\n * @return damage : Integer\n */\n Float attack();\n}",
"public abstract String getStudentType();",
"@java.lang.Override\n public boolean getIsChulaStudent() {\n return isChulaStudent_;\n }",
"public interface TeacherService {\n\n public boolean isValid(Integer id,\n String lastName,\n String firstName,\n String password);\n public boolean validateRegister(String lastName, String firstName,\n String fatherInitial, String username,\n String password);\n public Teacher getTeacher(Integer id);\n public void addStudent(String lastName, String firstName,\n String fatherInitial, String username,\n String password,\n Integer courseId, Integer teacherId);\n public Integer getStudentId(String username);\n public void addGrade(String studentName, String courseName, Integer teacherId, Integer nota);\n public Integer getCourseID(Integer id, String courseName);\n public List<Course> getCourses(Integer id);\n public List<Student> getStudents(int courseId, int teacherId);\n public int CountStudents(int courseId, int teacherId);\n public List<StudentperCourse> getPopulation (int teacherId);\n public List<StudentwithGrades> getStudentAtCourse(int teacherId, int courseId);\n}",
"public interface eit {\n}",
"public abstract boolean save(IntfCourse course);",
"public abstract boolean isEdible();",
"public static interface _cls9\n{\n\n public abstract void userCancelledSignIn();\n\n public abstract void userSuccessfullySignedIn();\n}",
"public interface Knight {\n void embarkOnQuest();\n}",
"public interface Requirements {\n\n /**\n * the method checks that the purchase requirements are met\n * @param playerBoard of the player\n * @return true if the player can buy the card\n */\n public boolean checkRequirements(PlayerBoard playerBoard);\n\n\n /**\n * method to draw the card's requirements\n * @return string containing the requirements to print\n */\n public String drawRequirements();\n}",
"public interface INnominable {\n\n boolean ganoPreviamente();\n\n void reproducirTrailerNominacion();\n\n void sacarSelfie(List<Actor> elenco);\n\n boolean estaNominaada();\n\n}",
"boolean hasInstructor(){\n\t\treturn instructor == null ? false : true;\n\t}",
"public interface Unit {\n /**\n * Simple getter for unit code<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * None<br>\n *\n * @return The Unit code.\n */\n public String getCode();\n\n /**\n * Simple getter for unit name<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * None<br>\n *\n * @return The Unit name.\n */\n public String getName();\n\n /**\n * Enrols the given student in this unit<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * The student will be enrolled in this unit.<br>\n *\n * @param student The student to enrol. May not be null. May not already be enrolled in this unit.\n * @throws IllegalArgumentException If student is null\n * @throws IllegalStateException If a matching student (by equal SID or unikey) is enrolled already\n */\n public void enrolStudent(Student student) throws IllegalArgumentException, IllegalStateException;\n\n /**\n * Withdraws the given student from this unit<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * The given student will be withdrawn from this unit.<br>\n *\n * @param student The student to withdraw. May not be null. Must currently be enrolled.\n * @throws IllegalArgumentException If student is null\n * @throws IllegalStateException if no matching student (by equal SID or unikey) is currently enrolled\n */\n public void withdrawStudent(Student student) throws IllegalArgumentException, IllegalStateException;\n\n /**\n * Retrieves a list of students enrolled in this unit.<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * None<br>\n *\n * @return A list of students represented by their unikey\n */\n public List<String> getStudents();\n\n /**\n * Retrieves a given enrolled student from the unit<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * None<br>\n *\n * @param match The term to search for.\n * @return The matching enrolled student if one exists, otherwise null. A matching student is one whose SID or unikey matches the given search term.\n */\n public Student getStudent(String match);\n}",
"public interface Interestable {\n void applyInterest();\n}",
"public interface Knight {\n public void emberkOnQuest();\n}",
"public interface IStudent {\n public List<StudentDo> GetStudents();\n public int InsertStudent(StudentDo studentDo);\n}",
"CourseExam<OOPExamActivities> fullOopExam();",
"public interface AMDPModelLearner extends AMDPPolicyGenerator{\n\n\n public void updateModel(State s, Action a, List<Double> rewards, State sPrime, GroundedTask gt);\n\n\n}",
"public interface IWomen {\n //获得个人情况, 是否结婚,丈夫是否去世\n int getType();\n //获得个人请示,\n String getRequest();\n}",
"@Override\n public boolean studentEditClass(Token token, int courseID, String grading, String courseTerm) {\n // TODO Auto-generated method stub\n Student student = new Student();\n return student.studentEditClass(token, courseID, grading, courseTerm);\n }",
"public void hireInstructor(Instructor instructor, Course course) {\n\n\t}",
"public static boolean isLearnable(IndustrySpecAPI spec)\n {\n return true;\n }",
"@Override\n public boolean adminEditClass(ShibbolethAuth.Token token, int courseID, String courseName, int courseCredits,\n int instructorID, String firstDay, String lastDay, String classBeginTime, String classEndTime,\n String weekDays, String location, String type, String prerequisite, String description, String department) {\n try {\n adminEditClass1(token, courseID, courseName, courseCredits, instructorID, firstDay, lastDay, classBeginTime,\n classEndTime, weekDays, location, type, prerequisite, description, department);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return false;\n }\n return true;\n }",
"public interface AntiThiefListener {\n void antiThiefState(Boolean antiThief);\n}",
"public interface CaracteristiquesJoueurDeChamps{\n /**\n * This method is for a celebration when a goal is scored\n */\n \n void celebrer();\n \n /**\n * This method is for shoot on the goal\n * @return double, the stat of shoot\n */\n \n double tirer();\n \n /**\n * This method is for pass the ball\n * @return double, the stat of pass\n */\n \n double passer();\n \n /**\n * This method is for defend on the ball\n * @return double, the stat of defense\n */\n \n double defendre();\n \n /**\n * This method is for injury a player\n * @return double, the stat of injury\n */\n double seBlesser();\n \n /**\n * This method is for the mood of the player\n * @return double, the stat of agressivity\n */\n double agression();\n \n \n /**\n * This method is for run\n */\n void courir();\n \n \n double fatigue();\n \n \n }",
"public interface IPlayer {\n\n /**\n * Nick Sifniotis u5809912\n * 3/9/2015\n *\n * Create whatever is necessary to link the player submission to the tournament.\n *\n * @param path_name - the path/file name of the code, the classname, and the method within the class\n * @return true if the player has loaded successfully, false if there was a problem connecting\n * to the submission\n */\n boolean InitialisePlayer (String path_name);\n\n\n /**\n * Nick Sifniotis u5809912\n * 2/9/2015\n *\n * You are given the current state of the game. Make your next move son.\n * Note that you (the academic / tutor) are responsible for properly casting\n * these objects into whatever data structures your assignment specs\n * have indicated need to be used\n *\n * @param game_state - the current state of the game\n * @return the move that the player wishes to make\n */\n Object GetMove (Object game_state);\n\n\n /**\n * Nick Sifniotis u5809912\n * 18/09/2015\n *\n * The student submission failed to return a valid move.\n * But we don't want to abort the game and ruin things for everyone else.\n * So instead, we skip the players turn. This method returns the\n * 'null / skip move' turn for this game.\n *\n * The use of this method is strictly optional and is a tournament rule that\n * can be configured in the tournament manager. In games like Kalaha where there\n * is no skip turn move, just return a null.\n *\n * @return an object that represents a 'no move' move.\n */\n Object NullMove ();\n}",
"Assessment getAssessment();",
"@Override\n public String getClassType(){\n return \"Assistant Professor\";\n }",
"public interface Participation {\n\n /** alternative owner, but as long as this person is not the owner. \n * This person is allowed to make comments, but nothing else. */\n String CANDIDATE = \"candidate\";\n\n /** the person with ultimate responsibility over a task. */\n String OWNER = \"owner\";\n\n /** person that will be using the result of this task. This person is \n * allowed to make comments, but nothing else. */\n String CLIENT = \"client\";\n\n /** person that is allowed to watch-but-not-touch this task */\n String VIEWER = \"viewer\";\n\n /** a person that was assigned to a task, but got replaced because of \n * absence or another reason. This way, a trace can be left in case \n * this person returns and wants to take back his tasks that got \n * reassigned. */\n String REPLACED_ASSIGNEE = \"replaced-assignee\";\n\n /** the unique id for this participation that is used as a reference in the service methods */\n String getId();\n\n /** userId for this participation. \n * null in case this is a {@link #getGroupId() group participation}. */\n String getUserId();\n\n /** groupId for this participation. \n * null in case this is a {@link #getUserId() user participation}. */\n String getGroupId();\n\n /** see constants for default participations */\n String getType();\n}",
"public interface CanalState {\n \n void SelecionarCanal();\n void ObterInformacoesDoCanal();\n void ObterCanalSelecionado();\n \n}",
"public interface Estado {\n\tvoid enviarBanco();\n\tvoid pagar();\n\tvoid cancelar();\n\tvoid analisar(); // enviando para a analise de risco\n\tvoid aprovarAnalise(); // analise de risco aprovou\n\tvoid negarAnalise(); // analise de risco reprovou\n}",
"@Override\n public boolean studentAddClass(Token token, int courseID, String grading, String courseTerm) {\n // TODO Auto-generated method stub\n Student student = new Student();\n return student.studentAddClass(token, courseID, grading, courseTerm);\n\n }",
"public abstract boolean isUsable();",
"public interface Behaviour {\n/**abstract method of the Behaviour interface*/\n\tvoid sad();\n}",
"public interface IControleBatterie extends RequiredI {\n\n\t/**\n\t * Permet d'allumer ou eteindre la batterie\n\t * @param etat\n\t * @throws Exception\n\t */\n\tpublic void envoyerEtatUniteProduction(EtatUniteProduction etat) throws Exception;\n}",
"public interface EGImmediate extends EGNonRecurring {\r\n}",
"public boolean isSatisfiable(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;",
"public interface ContinuingEducationService extends EducatonCommonService<ContinuingEducationModel>\r\n{\r\n\tpublic ContinuingEducationModel getByPK(ContinuingEducationPKModel pk) throws AAException;\r\n\t\t\r\n\t/**\r\n\t * Check all the continuing educations in specific cap, if all conditions are matched then return true.\r\n\t *\r\n\t * @param capID\r\n\t * @return true - passed , false - not passed\r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tpublic boolean isContinuingEducationPassed(CapIDModel capID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Get the total required hours by cap type\r\n\t *\r\n\t * @param capType\t\t\tthe specific cap type model\r\n\t * @return\r\n\t * @throws RemoteException\r\n\t * @throws AAException\r\n\t */\r\n\tpublic double getTotalRequiredHours(CapTypeModel capType) throws RemoteException, AAException;\r\n\r\n\t/**\r\n\t * Get all continuing education info according to the specific cap ID and merge condition.\r\n\t *\r\n\t * @param source\r\n\t * @param isMergeRef true - merge reference data to daily side. false - only return daily side data. \r\n\t * @return \r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tList<ContinuingEducationModel> getModelsByCapID(CapIDModel capId, boolean isMergeRef) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Check if task status is allowed to change. If the task status is configuired to be checked \r\n\t * before changing, then check if task's app have passed the continuing education. \r\n\t *\r\n\t * @param taskItem\r\n\t * @return\r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tboolean isWorkflowStatusCanBeChanged(TaskItemModel taskItem) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Auto approve required cehs.\r\n\t * \r\n\t * @param capId the cap id\r\n\t * @param callerID TODO\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t * @throws RemoteException the remote exception\r\n\t */\r\n\tpublic void autoApproveRequiredCEHs(CapIDModel capId, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Auto approve cont edus.\r\n\t * \r\n\t * @param contEduList the cont edu list\r\n\t * @param capID the cap id\r\n\t * @param callerID the caller id\r\n\t * \r\n\t * @return the int\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t * @throws RemoteException the remote exception\r\n\t */\r\n\tpublic int autoApproveContEdus(List<ContinuingEducationModel> contEduList, CapIDModel capID, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\t\r\n}",
"public interface IEnemyFeature {\n\n}",
"abstract void classRooms();",
"public interface Coach1 {\n\tpublic String getDailyWorkout();\n\t\n\tpublic String getDailyFortune();\n}",
"public interface IUserInterface {\n\t\n\t/**\n\t * Displays the welcome message.\n\t */\n\tpublic void displayWelcomeMsg();\n\t\n\t/**\n\t * Used to ask the user for the departure airport's 3-digit code.\n\t * @return the departure airport as a string from the user.\n\t */\n\tpublic String getDepartureAirport();\n\t\n\t/**\n\t * Used to ask the user for the arrival airport's 3-digit code.\n\t * @return the arrival airport as a string from the user.\n\t */\n\tpublic String getArrivalAirport();\n\t\n\t/**\n\t * Used to ask the user what date they want to leave.\n\t * @return the departure date (day) as a string from the user.\n\t */\n\tpublic String getLeavingDate();\n\t\n\t/**\n\t * Ask user if they want to book a round trip. \n\t * @return the user's answer. Should be a \"yes\" or a \"no\".\n\t */\n\tpublic String roundTrip();\n\t\n\t/**\n\t * Used to ask the user what date they want to return.\n\t * @return the return date (day) as a string from the user.\n\t */\n\tpublic String getReturnDate();\n\t\n\t/**\n\t * Used to ask the user if they want 1st class seating or not.\n\t * <p>\n\t * The user answer should start with a 'y' for yes\n\t * and a 'n' for no.\n\t * @return the \"yes\" or \"no\" as a string.\n\t */\n\tpublic String isFirstClassSeat();\n\t\n\t/**\n\t * Displays a message that tells the user how many flights \n\t * fit their search criteria.\n\t * @param numOfFlights the number of available flights\n\t */\n\tpublic void numOfFlights(int numOfFlights);\n\t\n\t/**\n\t * Displays a message that tells the user there are no flights \n\t * that fit their search criteria.\n\t */\n\tpublic void noFlights();\n\t\n\t/**\n\t * Asks the user which flight they would like to book.\n\t */\n\tpublic String bookFlight();\n\t\n\t/**\n\t * Tells the user that their flight was bought.\n\t */\n\tpublic void confirmFlight();\n\t\n\t/**\n\t * Asks the user if they would like to book another flight.\n\t */\n\tpublic String bookAnother();\n\n\t/**\n\t * Tell the user goodbye and thanks for using the system.\n\t */\n\tpublic void goodbyeMsg();\n\t\n\t/**\n\t * Prints the flight index in a user-friendly format.\n\t * @param index the index of the flight within the list.\n\t */\n\tpublic void printFlightOption(int index);\n\t\n\t/**\n\t * Asks the user if they want more detail about a\n\t * specific flight.\n\t * @return a \"yes\" or \"no\" String.\n\t */\n\tpublic String wantDetail();\n\t\n\t/**\n\t * Asks the user for the flight option that they want to \n\t * get detail about.\n\t * @return a positive number, because it is an index in the flight list.\n\t */\n\tpublic String getDetailFlight();\n\t\n\t/**\n\t * Asks the user if they want to get detail about\n\t * another flight.\n\t * @return a \"yes\" or \"no\" String.\n\t */\n\tpublic String getAnotherDetail();\n\t\n\t/**\n\t * Tells the user what flight they selected. \n\t */\n\tpublic void userFlightChoice(int index);\n\t\n\t/**\n\t * Tells the user the flight doesn't exist anymore \n\t */\n\tpublic void flightDisappear();\n\t\n\t/** \n\t * Tell the user that they can't buy the flight right now\n\t * please wait a few minutes, or try back later.\n\t */\n\tpublic void dataBaseLocked();\n\t\n\t/**\n\t * Ask the user if they want to filter a flight.\n\t * @return \"yes\" or \"no\" answer.\n\t */\n\tpublic String doSort();\n\t\n\t/**\n\t * Ask the what criteria they user wants to sort by.s\n\t * @return what criteria the user wants to sort by.\n\t */\n\tpublic String sortBy();\n\t\n\t/**\n\t * Ask the user if they want the list in ascending or descending order.\n\t */\n\tpublic String sortOrder();\n\t\n\t/**\n\t * Ask the user if they want to filter by departure time. \n\t */\n\tpublic String askDepFilter();\n\t\n\t/**\n\t * Ask the user if they want to filter by arrival time. \n\t */\n\tpublic String askArrFilter();\n\t\n\t/**\n\t * Asks the user if they want to filter the time as before or after.\n\t */\n\tpublic String b4OrAfter();\n\t\n\t/**\n\t * Ask the user what time they want to depart at.\n\t * @param depTime \n\t */\n\tpublic void askDepTime(boolean depTime);\n\t\n\t/**\n\t * Gets hour information from the user.\n\t * @return the hours the user wants their flight.\n\t */\n\tpublic String getHours();\n\t\n\t/**\n\t * Gets minutes information from the user.\n\t * @return the minutes the user wants their flight.\n\t */\n\tpublic String getMinutes();\n\n\t/**\n\t * Tells the user that you're searching for flights.\n\t */\n\tpublic void searchFlights();\n\n\t/**\n\t * Ask's the user if they want to book a round trip.\n\t * @return The yes or no answer.\n\t */\n\tpublic String wantRoundTrip();\n\t\n\t/**\n\t * Ask the user if they want to with the flight information. \n\t * @return the user's option.\n\t */\n\tpublic String doWhatWithFlights();\n\t\n\t/** \n\t * Ask the user which list they want to filter \n\t * @return the user's answer.\n\t */\n\tpublic String askOriginOrReturn();\n\t\n\t/** \n\t * Ask the user if they want to sort the origin flights,\n\t * or the return flights\n\t * @return the user's answer.\n\t */\n\tpublic String sortOriginOrReturn();\n\t\n\t/**\n\t * Ask the user if they want detail about an origin flight or a return flight.\n\t * @return the origin flight or return flight.\n\t */\n\tpublic String detailOriginOrReturn();\n\t\n\t/**\n\t * Ask the user if they want to buy the origin ticket or the return ticket.\n\t * @return The user's answer.\n\t */\n\tpublic String buyOrgOrRet();\n\t\n}",
"public interface Ave {\n\n public void voar();\n\n}",
"public interface IInstructorService extends IIdentifiableService<Instructor> {\n Instructor activate(Instructor instructor);\n\n Instructor deactivate(Instructor instructor);\n\n List<Course> findCourses(Instructor instructor);\n}",
"public interface AbstractC2883ha {\n boolean a();\n}",
"public interface UpdateMakeupExamInfoDelegate {\n\n void informMakeupExamUpdated(MakeupExam makeupExam);\n}",
"public boolean getAI(){return ai;}",
"public interface Maintenance\r\n{\r\n}",
"public interface Wifi {\n\n\t/**\n\t * Activar el WIFI\n\t */\n\tpublic void activarWifi();\n\t/**\n\t * Desactivar el WIFI\n\t */\n\tpublic void desactivarWifi();\n\t/**\n\t * Verificar si estamos en modo avion\n\t * @return\n\t */\n\tpublic boolean estaEnModoAvion();\n\t\n}",
"public interface ITier {\n\n\tpublic String getName();\n\tpublic void setName(String name);\n\tpublic Zoo getZoo();\n\tpublic void setZoo(Zoo zoo);\n\t\n\tpublic void fuettere(Personal personal); //implemented. Gibt aus, dass tier von personal gefüttert wird.\n\tpublic void lebtIn(/*String gehege, Gehege neuesGehege, */Gehege gehege); //implemented\n\t\t\n}",
"public abstract boolean isActive();",
"public abstract Boolean isActive();",
"public static void main(String[] args) {\n Course AbstractAdvancedJavaSuperClass = new AdvancedJavaCourse(\"AdvancedJava\", \"-003\");\r\n Course AbstractJavaSuperClass = new IntroJavaCourse(\"IntroJava\", \"-002\");\r\n Course AbstractProgramClass = new IntroToProgrammingCourse(\"Intro\", \"-001\");\r\n\r\n AbstractAdvancedJavaSuperClass.setCredits(4);\r\n AbstractJavaSuperClass.setCredits(4.0);\r\n AbstractProgramClass.setCredits(4.0);\r\n \r\n //this is a test\r\n \r\n AbstractAdvancedJavaSuperClass.setPrerequisites(AbstractJavaSuperClass.getCourseNumber());\r\n AbstractJavaSuperClass.setPrerequisites(AbstractProgramClass.getCourseNumber());\r\n \r\n System.out.println(AbstractProgramClass.getCapitalizedCourseName()\r\n + \" \" + AbstractProgramClass.getCourseNumber() );\r\n \r\n System.out.println(AbstractJavaSuperClass.getCourseName()\r\n + \" \" + AbstractJavaSuperClass.getCourseNumber() \r\n + \" \" + AbstractJavaSuperClass.getPrerequisites());\r\n \r\n System.out.println(AbstractAdvancedJavaSuperClass.getCourseName()\r\n + \" \" + AbstractAdvancedJavaSuperClass.getCourseNumber() \r\n + AbstractAdvancedJavaSuperClass.getPrerequisites() );\r\n}",
"public interface Zrada\n{\n void accuse();\n}",
"@Test\r\n\t public void isRegisterIfdroped2() {\n\t\t \tthis.admin.createClass(\"ecs60\",2016,\"sean\",4);\r\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2016);\r\n\t\t \tthis.student.dropClass(\"gurender\", \"ecs60\", 2016);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2016));\r\n\t // assertTrue(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t \r\n\t }",
"boolean hasUserInterest();",
"boolean hasUserInterest();",
"public abstract void applyTo(StudentPaper aStudentPaper);",
"interface people{\n void walk();\n }",
"boolean isOnlineEvaluation();",
"public interface LoadQuiz {\n\tpublic void loadQuiz();\n}"
] | [
"0.6381494",
"0.63698554",
"0.6281642",
"0.6241603",
"0.6120241",
"0.6120241",
"0.61190635",
"0.601284",
"0.5919956",
"0.5893215",
"0.58808434",
"0.5879613",
"0.58754647",
"0.5851101",
"0.5846674",
"0.5837392",
"0.5776298",
"0.57742345",
"0.5749357",
"0.5723654",
"0.5717498",
"0.57160324",
"0.5713624",
"0.570465",
"0.57030576",
"0.56980175",
"0.5673966",
"0.56693107",
"0.5666471",
"0.5662867",
"0.56546867",
"0.5638396",
"0.5624989",
"0.5608614",
"0.5581845",
"0.55669093",
"0.55597454",
"0.5557802",
"0.55499756",
"0.55340266",
"0.55205065",
"0.55091643",
"0.54934734",
"0.5485795",
"0.5482193",
"0.5477712",
"0.5473843",
"0.54625666",
"0.54492825",
"0.54365325",
"0.54327077",
"0.5422616",
"0.54195195",
"0.54194146",
"0.5408651",
"0.54031706",
"0.540097",
"0.53897434",
"0.538433",
"0.5381144",
"0.5362948",
"0.5361743",
"0.5353484",
"0.53520036",
"0.5351144",
"0.5350326",
"0.53491414",
"0.5337723",
"0.5332797",
"0.5328088",
"0.53262043",
"0.5325875",
"0.5323786",
"0.5321675",
"0.53172505",
"0.5311068",
"0.5310472",
"0.53100944",
"0.53059506",
"0.5303689",
"0.53020036",
"0.53015876",
"0.5300707",
"0.5294955",
"0.52943796",
"0.52922463",
"0.52876437",
"0.52821124",
"0.5277584",
"0.52767503",
"0.52766716",
"0.5273867",
"0.5273187",
"0.5271874",
"0.5269876",
"0.5269876",
"0.52698267",
"0.52692515",
"0.5268433",
"0.5266417"
] | 0.78932273 | 0 |
Gets the number of documents in the collection | public long getDocumentsInCollection()
throws DataAccessException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getDocumentCount();",
"public long getCount() {\n return getCount(new BasicDBObject(), new DBCollectionCountOptions());\n }",
"@Override\n\tpublic long count(String documentCollection) {\n\t\ttry {\n\t\t\treturn getStore().documentCount();\n\t\t} catch (JsonException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public int getDocumentCount() {\n return this.documentCount;\n }",
"int getNumberOfDocuments();",
"public int size() {\n return documents.size();\n }",
"public long documentCount() {\n return this.documentCount;\n }",
"public int countDocuments(){\n try {\n ResultSet rs = stCountDocuments.executeQuery();\n\n int count = 0;\n\n while(rs.next()){\n count = rs.getInt(1);\n }\n rs.close();\n\n if(count<=0){\n System.out.println(\"There are no documents\");\n }\n\n return count;\n } catch(SQLException e){\n e.printStackTrace();\n }\n return 0;\n }",
"public int size() {\n return this.collection.size();\n }",
"public int getDocumentCount(String collectionId) {\r\n int toReturn = 0;\r\n if (null == collectionId || 0 == collectionId.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"document_count\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0421\", \"retrieval of number of topics wasn't successful: coll_id=\" + collectionId);\r\n } else {\r\n wrapError(\"APIL_0421\", \"retrieval of number of topics wasn't successful: coll_id=\" + collectionId);\r\n }\r\n } else {\r\n toReturn = Tools.parseInt(response.getValue(\"count\"));\r\n }\r\n\r\n return toReturn;\r\n }",
"public int size() {\n return collection.size();\n }",
"public int size() {\n\t\treturn collection.size();\n\t}",
"public int size() {\n maintain();\n return collection.size();\n }",
"@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}",
"public long userCount(DBCollection collection) {\n return collection.count();\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}",
"public int getDocCount(){\n\t\treturn index.size();\r\n\t}",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"int numDocuments();",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public int size() {return collection.size();}",
"public Integer getDocumentCount() {\n return null;\n }",
"public int getLength() {\n return collection.size();\n }",
"public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}",
"public int count() {\n return Query.count(iterable);\n }",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }",
"@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }",
"public String getNumIndexed() {\n\t\treturn Integer.toString(getIndex().getNumDocs(\"collection:0\" + getKey()));\n\t}",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"public int get_count();",
"public int count() {\r\n Session session = getSession();\r\n Long count = new Long(0);\r\n try {\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \").uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }",
"public int getLength() {\r\n int length = 0;\r\n \r\n Iterator it = collection.iterator();\r\n \r\n while(it.hasNext()) {\r\n length += ((Chunk)it.next()).getSize();\r\n }\r\n \r\n return length;\r\n }",
"public Integer getPageCount();",
"public int getNumDocs() {\n return numDocs;\n }",
"@GET\r\n\t@Path(\"count\")\r\n\t@Produces(MediaType.TEXT_PLAIN)\r\n\tpublic String getCount() {\r\n\t\tint count = TodoDao.instance.getMovies().size();\r\n\t\treturn String.valueOf(count);\r\n\t}",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"public int count() {\n\t\treturn count;\n\t}",
"int getRecordCount();",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getCount() {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBCursor cursor = coll.find(QueryCriteria.getByUser(getUserUuid()));\n\t\t\n\t\treturn \"{count: \" + Integer.valueOf(cursor.count()).toString() + \"}\";\n\t}",
"public int count() {\r\n return count;\r\n }",
"int findAllCount() ;",
"public int getNumberOfPosts() throws DatabaseException;",
"public long getCount() {\n return counter.get();\n }",
"public int count() {\n return count;\n }",
"@Override\n\tpublic int selectCount() {\n\n\t\tint res = session.selectOne(\"play.play_count\");\n\n\t\treturn res;\n\t}",
"public long getCount() {\n return count.get();\n }",
"public int getTopicCount(String collectionId) {\r\n int toReturn = 0;\r\n if (null == collectionId || 0 == collectionId.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"topic_count\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0421\", \"retrieval of number of topics wasn't successful: coll_id=\" + collectionId);\r\n } else {\r\n wrapError(\"APIL_0421\", \"retrieval of number of topics wasn't successful: coll_id=\" + collectionId);\r\n }\r\n } else {\r\n toReturn = Tools.parseInt(response.getValue(\"count\"));\r\n }\r\n\r\n return toReturn;\r\n }",
"public int getTotalMessageCount() {\n Query query = new Query(\"Message\");\n PreparedQuery results = datastore.prepare(query);\n return results.countEntities(FetchOptions.Builder.withLimit(1000));\n }",
"public long getCount()\n\t{\n\t\treturn count;\n\t}",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"public final int size() {\n int size = 0;\n final Iterator iterator = this.iterator();\n while (iterator.hasNext()) {\n size++;\n iterator.next();\n }\n return size;\n }",
"public Long getCount() {\n return count;\n }",
"public long getCount() {\n return count_;\n }",
"public static int getPageCount(PDDocument doc) {\n\tint pageCount = doc.getNumberOfPages();\n\treturn pageCount;\n\t\n}",
"@Override\r\n\tpublic int count() throws StrumentoNotFoundException {\n\t\treturn (int) strumentoRepository.count();\r\n\t}",
"public long getCount() {\n return count_;\n }",
"public int findAllCount() {\n\t\treturn mapper.selectCount(null);\n\t}",
"public int getPageCount()\n {\n return _pages.size();\n }",
"int docValueCount() throws IOException;",
"public int getTotalCount() {\n return totalCount;\n }",
"@Schema(example = \"10\", description = \"Amount of pages available in the file. Used only for multipage documents.\")\n public Integer getPageCount() {\n return pageCount;\n }",
"public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}",
"default long count() {\n\t\treturn select(Wildcard.count).fetchCount();\n\t}",
"public int count() {\n return this.count;\n }",
"@Override\r\n\tprotected int count() {\n\t\treturn service.count();\r\n\t}",
"public static int getPageHits() {\r\n return _count;\r\n }",
"public int getPageCount() {\n return (int) (getPageSize() > 0 ? Math.ceil(getTotalRecords() / getPageSize()) : 0);\n }",
"public int size()\r\n {\r\n return count;\r\n }",
"Long getAllCount();",
"int postsCount();",
"public int size()\n {\n return count;\n }",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public Long getCount() {\r\n return count;\r\n }",
"public int getSubscriptionCount()\n {\n int count;\n\n synchronized (lock)\n {\n count = (subscriptions != null) ? subscriptions.size() : 0;\n }\n\n return count;\n }",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public Long getElementCount();",
"public int getNumberOfDocuments(IndexReader indexReader)\n\t{\n\t\treturn indexReader.numDocs();\n\t}",
"Long recordCount();",
"public long count() {\n return this.count;\n }",
"public int size() {\n return count;\n }",
"public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}",
"public long numberCached(String databaseName, String collectionName, FeatureExtractionPipeline pipeline){\n return client.getDB(databaseName).getCollection(collectionName).count(new BasicDBObject(\"pipelineConfig\", pipeline.getCacheConfiguration()));\n }",
"public long count(@Nullable final DBObject query) {\n return getCount(query, new DBCollectionCountOptions());\n }",
"public static int numberOfEvents() {\n List<Events> listOfEvents = retrieveEvents();\n if (listOfEvents != null) {\n return listOfEvents.size();\n } else {\n return 0;\n }\n }",
"@GetMapping(\"/docentes/count\")\n public ResponseEntity<Long> countDocentes(DocenteCriteria criteria) {\n log.debug(\"REST request to count Docentes by criteria: {}\", criteria);\n return ResponseEntity.ok().body(docenteQueryService.countByCriteria(criteria));\n }",
"public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}"
] | [
"0.8018317",
"0.7912508",
"0.7681581",
"0.7641814",
"0.7636728",
"0.7589714",
"0.7585948",
"0.7533702",
"0.75085276",
"0.74669695",
"0.7432766",
"0.74160784",
"0.7366092",
"0.73362553",
"0.7232136",
"0.72285795",
"0.71954024",
"0.71469945",
"0.7076403",
"0.70696396",
"0.7067054",
"0.70583475",
"0.7055258",
"0.7051402",
"0.6867572",
"0.6855351",
"0.68142194",
"0.68142194",
"0.67801964",
"0.67505985",
"0.6729035",
"0.6710928",
"0.66236866",
"0.66091555",
"0.6602654",
"0.660188",
"0.65863734",
"0.65663594",
"0.6544581",
"0.65338486",
"0.6530625",
"0.65166914",
"0.6493154",
"0.64825505",
"0.6477427",
"0.64758605",
"0.647095",
"0.64631516",
"0.6461605",
"0.6461178",
"0.6455176",
"0.6453468",
"0.6426233",
"0.6415107",
"0.6413443",
"0.6405357",
"0.6404904",
"0.6396069",
"0.63945174",
"0.6393058",
"0.6392798",
"0.6391763",
"0.6389448",
"0.6389226",
"0.6386735",
"0.6380902",
"0.6371473",
"0.6369694",
"0.6369594",
"0.6348064",
"0.6347395",
"0.634483",
"0.63407135",
"0.6340173",
"0.6332763",
"0.63315225",
"0.63315225",
"0.6328375",
"0.63211954",
"0.63133675",
"0.63133675",
"0.63133675",
"0.63133675",
"0.63133675",
"0.63133675",
"0.63133675",
"0.63133675",
"0.63133675",
"0.63133675",
"0.63115776",
"0.6306791",
"0.63015777",
"0.62990195",
"0.6292854",
"0.62920946",
"0.62872565",
"0.6276463",
"0.62750596",
"0.6264037",
"0.6260503"
] | 0.6781957 | 28 |
Gets the number of citations in the collection | public long getCitationsInCollection()
throws DataAccessException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getDocumentCount();",
"int getCertificateCount();",
"int getCertificateCount();",
"public int getNumArtistsInCollection() {\n\t\treturn numArtistsInCollection;\n\t}",
"int getAuthoritiesCount();",
"public int getNumOfCourses() {\n return numOfCourses;\n }",
"@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"int getCazuriCount();",
"public long getCount() {\n return getCount(new BasicDBObject(), new DBCollectionCountOptions());\n }",
"public int getCertificateCount() {\n if (certificateBuilder_ == null) {\n return certificate_.size();\n } else {\n return certificateBuilder_.getCount();\n }\n }",
"public int lireCount() {\n\t\treturn cpt;\n\t}",
"public int size() {\n\t\treturn collection.size();\n\t}",
"int getInterestsCount();",
"public int size() {\n return collection.size();\n }",
"@Override\n public int getNumberOfCategories() {\n Cursor query = this.writableDatabase.rawQuery(\"SELECT COUNT(*) FROM \" + TABLE_CATEGORIES, null);\n\n query.moveToFirst();\n int count = query.getInt(0);\n query.close();\n\n return count;\n }",
"public String getCuredCount() {\n return curedCount;\n }",
"public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}",
"public int size() {\n return this.collection.size();\n }",
"public int size() {\n maintain();\n return collection.size();\n }",
"int getEducationsCount();",
"public int getDocumentCount() {\n return this.documentCount;\n }",
"public int getCertificateCount() {\n return certificate_.size();\n }",
"int getNumberOfDocuments();",
"@Override\n\tpublic long count(String documentCollection) {\n\t\ttry {\n\t\t\treturn getStore().documentCount();\n\t\t} catch (JsonException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public int getCazuriCount() {\n return cazuri_.size();\n }",
"public int getCazuriCount() {\n if (cazuriBuilder_ == null) {\n return cazuri_.size();\n } else {\n return cazuriBuilder_.getCount();\n }\n }",
"public int getCertificatesCount() {\n if (certificatesBuilder_ == null) {\n return certificates_.size();\n } else {\n return certificatesBuilder_.getCount();\n }\n }",
"public int getCertificatesCount() {\n if (certificatesBuilder_ == null) {\n return certificates_.size();\n } else {\n return certificatesBuilder_.getCount();\n }\n }",
"int getEntryCount();",
"public int getNumberOfCourses(){}",
"public int count() {\n return Query.count(iterable);\n }",
"@java.lang.Override\n public int getCertificateCount() {\n return instance.getCertificateCount();\n }",
"@Override\n\tpublic Integer getAllComBorrowingsCount() {\n\t\treturn comBorrowingsMapper.countByExample(new ComBorrowingsExample());\n\t}",
"public int numCiudades() {\r\n \r\n return ciudades.size();\r\n }",
"int getInCount();",
"public int getCardCount() {\n return cardSet.totalCount();\n }",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public static int getCountofPeople(){\n int training_set = 0;\n \n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT count(*) FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n if (rs.next()) {\n training_set = rs.getInt(1);\n }\n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return training_set;\n }",
"public int getNumCities() {\n \t\treturn cities;\n \t}",
"public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}",
"public int getOccurrences() {\n\t\treturn this.occurrenceFactors.size();\n\t}",
"public int getInterestsCount() {\n if (interestsBuilder_ == null) {\n return interests_.size();\n } else {\n return interestsBuilder_.getCount();\n }\n }",
"int getContentsCount();",
"public int count() {\n\t\treturn sizeC;\n\t}",
"int findAllCount() ;",
"public int noOfBooks() {\n\t\treturn arlist.size();\r\n\t}",
"public long getCount() {\n return counter.get();\n }",
"public int getDocCount(){\n\t\treturn index.size();\r\n\t}",
"public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}",
"public int count() {\n\t\treturn count;\n\t}",
"public int getAuthoritiesCount() {\n return authorities_.size();\n }",
"public int getNrOfAssociations() {\n int size = 0;\n for (PriorityCollection associations : memory.values()) {\n size += associations.size();\n }\n return size;\n }",
"public int getNumberOfEntries();",
"@PrivateAPI\n\tpublic int getReferenceCount() {\n\t\treturn this.referencesFromCapacityMap.get();\n\t}",
"public int get_count();",
"public String getCount() {\r\n\t\treturn this.count;\r\n\t}",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"public String getNumIndexed() {\n\t\treturn Integer.toString(getIndex().getNumDocs(\"collection:0\" + getKey()));\n\t}",
"public int getLength() {\n return collection.size();\n }",
"public int size() {return collection.size();}",
"public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}",
"public Integer count() {\n\t\tif(cache.nTriples != null)\n\t\t\treturn cache.nTriples;\n\t\treturn TripleCount.count(this);\n\t}",
"public int countDocuments(){\n try {\n ResultSet rs = stCountDocuments.executeQuery();\n\n int count = 0;\n\n while(rs.next()){\n count = rs.getInt(1);\n }\n rs.close();\n\n if(count<=0){\n System.out.println(\"There are no documents\");\n }\n\n return count;\n } catch(SQLException e){\n e.printStackTrace();\n }\n return 0;\n }",
"int getContactCount();",
"public int count() {\r\n return count;\r\n }",
"public int getInterestsCount() {\n return interests_.size();\n }",
"public int getCount(final K key) {\n throwIfNullKey(key);\n final Integer count = associationCountMap.get(key);\n if (count == null) {\n return 0;\n }\n return count;\n }",
"public long getCount() {\n return count_;\n }",
"public long getCount() {\n return count_;\n }",
"public java.math.BigInteger getCount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COUNT$8);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}",
"public long getCount()\n\t{\n\t\treturn count;\n\t}",
"public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }",
"public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}",
"public int getAuthoritiesCount() {\n return authorities_.size();\n }",
"public int count() {\n return this.count;\n }",
"int getAoisCount();",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"public Integer getChapterCount() {\n return chapterCount;\n }",
"public int getCertificatesCount() {\n return certificates_.size();\n }",
"public int getCertificatesCount() {\n return certificates_.size();\n }",
"public int count() {\n return count;\n }",
"public int count() {\n\t\tint count = cstCustomerDao.count();\n\t\treturn count;\n\t}",
"public int size() {\n\t\treturn this.articleIdToReferenceIdMap.size();\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"public long documentCount() {\n return this.documentCount;\n }",
"public Integer getCount() {\n return this.count;\n }",
"int getPersonInfoCount();",
"public long getMembershipsCount() {\r\n return membershipsCount;\r\n }",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"public Integer getPageCount();",
"int getCertificatesCount();",
"int getCertificatesCount();",
"public Integer getCount() {\n return count;\n }",
"public Long getCount() {\n return count;\n }"
] | [
"0.6955683",
"0.67352986",
"0.67352986",
"0.67051905",
"0.6686331",
"0.6654338",
"0.66237146",
"0.6606839",
"0.65761065",
"0.6575078",
"0.6568439",
"0.6557927",
"0.6554174",
"0.65533245",
"0.6536516",
"0.6530346",
"0.65267277",
"0.652527",
"0.65228003",
"0.650884",
"0.648447",
"0.64437574",
"0.64392185",
"0.6428558",
"0.6423714",
"0.64196044",
"0.6406297",
"0.638689",
"0.6382751",
"0.6382514",
"0.6382514",
"0.6381963",
"0.6380227",
"0.6379748",
"0.6372857",
"0.63663965",
"0.63645744",
"0.63595164",
"0.6336282",
"0.63285303",
"0.63285303",
"0.63005906",
"0.62992895",
"0.62988794",
"0.6295651",
"0.62900716",
"0.62890834",
"0.6285786",
"0.6270529",
"0.62694055",
"0.62662643",
"0.62657523",
"0.62656873",
"0.62656844",
"0.626017",
"0.6234568",
"0.6228652",
"0.6228065",
"0.62175375",
"0.62172884",
"0.62138104",
"0.62117946",
"0.6202883",
"0.6199263",
"0.61974853",
"0.6196347",
"0.6195065",
"0.6193091",
"0.6192749",
"0.6191934",
"0.6190185",
"0.6188033",
"0.6181985",
"0.61802256",
"0.6178511",
"0.6174893",
"0.6174526",
"0.6169052",
"0.61680895",
"0.6167851",
"0.6167492",
"0.61670405",
"0.61665076",
"0.6165675",
"0.6165675",
"0.61640507",
"0.6163892",
"0.6163286",
"0.6160053",
"0.6160053",
"0.615727",
"0.61562485",
"0.6151345",
"0.61506784",
"0.6139737",
"0.6137136",
"0.613622",
"0.613622",
"0.6133986",
"0.6126484"
] | 0.6973825 | 0 |
Gets the number of public documents in the collection | public long getPublicDocumentsInCollection()
throws DataAccessException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getDocumentCount();",
"int getNumberOfDocuments();",
"public int getDocumentCount() {\n return this.documentCount;\n }",
"public int size() {\n return documents.size();\n }",
"public long documentCount() {\n return this.documentCount;\n }",
"@Override\n\tpublic long count(String documentCollection) {\n\t\ttry {\n\t\t\treturn getStore().documentCount();\n\t\t} catch (JsonException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"int numDocuments();",
"public Integer getDocumentCount() {\n return null;\n }",
"public long getCount() {\n return getCount(new BasicDBObject(), new DBCollectionCountOptions());\n }",
"public int getDocCount(){\n\t\treturn index.size();\r\n\t}",
"public int countDocuments(){\n try {\n ResultSet rs = stCountDocuments.executeQuery();\n\n int count = 0;\n\n while(rs.next()){\n count = rs.getInt(1);\n }\n rs.close();\n\n if(count<=0){\n System.out.println(\"There are no documents\");\n }\n\n return count;\n } catch(SQLException e){\n e.printStackTrace();\n }\n return 0;\n }",
"@Override\n\tpublic int getItemPublicacaosCount() {\n\t\treturn itemPublicacaoPersistence.countAll();\n\t}",
"public int size() {\n return this.collection.size();\n }",
"public int size() {\n return collection.size();\n }",
"public int size() {\n maintain();\n return collection.size();\n }",
"abstract public int numDocs();",
"public long getDocumentsInCollection()\n\tthrows DataAccessException;",
"public int getNumDocs() {\n return numDocs;\n }",
"public int size() {\n\t\treturn collection.size();\n\t}",
"@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}",
"public Integer getPageCount();",
"public int size() {return collection.size();}",
"public static int getPageCount(PDDocument doc) {\n\tint pageCount = doc.getNumberOfPages();\n\treturn pageCount;\n\t\n}",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"public long userCount(DBCollection collection) {\n return collection.count();\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"int getProtectedPodCount();",
"@Schema(example = \"10\", description = \"Amount of pages available in the file. Used only for multipage documents.\")\n public Integer getPageCount() {\n return pageCount;\n }",
"int docValueCount() throws IOException;",
"public int get_count();",
"public int getPageCount() { return _pages.size(); }",
"public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}",
"public String getNumIndexed() {\n\t\treturn Integer.toString(getIndex().getNumDocs(\"collection:0\" + getKey()));\n\t}",
"@ApiModelProperty(value = \"Count of public projects.\")\n\t@JsonProperty(\"publicProjectCount\")\n\tpublic Integer getPublicProjectCount() {\n\t\treturn publicProjectCount;\n\t}",
"public int getPageCount()\n {\n return _pages.size();\n }",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"public static int getPageHits() {\r\n return _count;\r\n }",
"public Long getElementCount();",
"@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}",
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"public long getPublicQuestionCount() {\n return Question.count(\"select count(q.id) from Question q, User u, Company c \" +\n \"where q.user = u and u.company = c and u.company = ? and q.status = ? and active = ?\",\n this, QuestionStatus.ACCEPTED, true);\n }",
"Long getAllCount();",
"public int getNumPublicationsAtStart() {\n\t\treturn numPublicationsAtStart;\n\t}",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getCount() {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBCursor cursor = coll.find(QueryCriteria.getByUser(getUserUuid()));\n\t\t\n\t\treturn \"{count: \" + Integer.valueOf(cursor.count()).toString() + \"}\";\n\t}",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"public int getLength() {\n return collection.size();\n }",
"default long count() {\n\t\treturn select(Wildcard.count).fetchCount();\n\t}",
"@GET\r\n\t@Path(\"count\")\r\n\t@Produces(MediaType.TEXT_PLAIN)\r\n\tpublic String getCount() {\r\n\t\tint count = TodoDao.instance.getMovies().size();\r\n\t\treturn String.valueOf(count);\r\n\t}",
"public int getDocumentCount(String collectionId) {\r\n int toReturn = 0;\r\n if (null == collectionId || 0 == collectionId.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"document_count\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0421\", \"retrieval of number of topics wasn't successful: coll_id=\" + collectionId);\r\n } else {\r\n wrapError(\"APIL_0421\", \"retrieval of number of topics wasn't successful: coll_id=\" + collectionId);\r\n }\r\n } else {\r\n toReturn = Tools.parseInt(response.getValue(\"count\"));\r\n }\r\n\r\n return toReturn;\r\n }",
"int postsCount();",
"int findAllCount() ;",
"@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"int getEntryCount();",
"public long getArticleCount(boolean published, String tags) throws SQLException {\n\t\treturn this.getArticleOrShortCount(published, tags, false);\n\t}",
"int getLinksCount();",
"public int count() {\r\n return count;\r\n }",
"public int getStreamCount()\n {\n return _streams.size();\n }",
"public int count() {\n return count;\n }",
"public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}",
"int getRecordCount();",
"int getSubscriptionCount();",
"public long countByPublisher(Publisher publisher) {\n return getDevStudioRepository().countByPublisher(publisher);\n }",
"public int getUserCount() {\n return instance.getUserCount();\n }",
"public int count();",
"public int count();",
"public int count();",
"public int count();",
"public int getDocSize(){\n\t\t\n\t\tint counter = 0;\t\t\t\t\t\t\t\t\t\t\t/* ====> Size counter */\n\t\t\n\t\tUser marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n\t\tmarker = this.getHead();\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n\t\t\n\t\twhile(marker.getNext()!= null){\t\t\t\t\t\t\t\t/* ====> Move marker to next element until it reaches the end. */\n\t\t\tmarker = marker.getNext();\n\t\t\tif(marker.getAccType().equals(\"Doctor\")){\t\t\t\t/* ====> If marker is an Admin then increment counter */\n\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn counter;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Return number of Admins in UserList */\n\t\t\n\t}",
"public int count() {\n\t\treturn count;\n\t}",
"public int countPerson() {\n\t\treturn count(GraphQueries.COUNT_PERSON);\n\t}",
"@Override\r\n\tpublic int count() throws StrumentoNotFoundException {\n\t\treturn (int) strumentoRepository.count();\r\n\t}",
"public int getTotalPageCount() {\n try {\n return (int) this.webView.getEngine().executeScript(\"PDFViewerApplication.pagesCount;\");\n } catch (RuntimeException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"public int count() {\n return this.visitors.size();\n }",
"int getViewsCount();",
"public long getCount() {\n return count.get();\n }",
"public Integer getPageItemCount() {\n return pageItemCount;\n }",
"public int size()\n {\n return count;\n }",
"public int size()\r\n {\r\n return count;\r\n }",
"int getUserCount();",
"int getUserCount();",
"public int count() {\n return this.count;\n }",
"public long getCount() {\n return count_;\n }",
"public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}",
"@Override\n\tpublic int size() {\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.size();\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}",
"public synchronized int size() {\n return count;\n }",
"int getContentsCount();",
"int getPersonInfoCount();",
"public int getNumArtistsInCollection() {\n\t\treturn numArtistsInCollection;\n\t}",
"public long getCount() {\n return count_;\n }",
"public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}",
"public int getNrOfAccounts() {\n return getPublicKeys().size();\n }",
"Long recordCount();",
"public int getSubscriptionCount()\n {\n int count;\n\n synchronized (lock)\n {\n count = (subscriptions != null) ? subscriptions.size() : 0;\n }\n\n return count;\n }",
"public long count() {\n return this.count;\n }",
"int getItemsCount();"
] | [
"0.7493419",
"0.7152819",
"0.7091204",
"0.7075317",
"0.6972011",
"0.69122934",
"0.68530047",
"0.66870445",
"0.66856533",
"0.66715235",
"0.6667786",
"0.6560335",
"0.6543094",
"0.6483843",
"0.64784086",
"0.64751565",
"0.6467338",
"0.64663315",
"0.6444142",
"0.6406813",
"0.6350305",
"0.6320137",
"0.6286659",
"0.62859833",
"0.62853956",
"0.62588197",
"0.62405837",
"0.62115675",
"0.6206587",
"0.6206019",
"0.61944246",
"0.6171459",
"0.61500394",
"0.614534",
"0.61411417",
"0.61028117",
"0.60978305",
"0.6096273",
"0.6071639",
"0.60270613",
"0.6025593",
"0.6025593",
"0.6025593",
"0.6024945",
"0.60093296",
"0.600795",
"0.60047877",
"0.5995232",
"0.59922266",
"0.5986013",
"0.5964366",
"0.59567124",
"0.5947973",
"0.5946375",
"0.5935183",
"0.5931259",
"0.5931259",
"0.59224284",
"0.59131616",
"0.59101653",
"0.590856",
"0.59065765",
"0.5892459",
"0.58918136",
"0.5877577",
"0.5873475",
"0.5872918",
"0.5872022",
"0.5870987",
"0.5870987",
"0.5870987",
"0.5870987",
"0.5869071",
"0.58678794",
"0.5866265",
"0.5863844",
"0.58586633",
"0.58512706",
"0.58466816",
"0.5827361",
"0.58223915",
"0.5818651",
"0.58152187",
"0.5814071",
"0.5814071",
"0.5812238",
"0.58087015",
"0.5794559",
"0.5792895",
"0.5791648",
"0.578712",
"0.5786207",
"0.5785122",
"0.5783486",
"0.57815206",
"0.5778052",
"0.5775408",
"0.5774369",
"0.57672465",
"0.5766102"
] | 0.76251656 | 0 |
Gets the number of authors in the collection | public long getAuthorsInCollection()
throws DataAccessException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int numberAuthors() {\n return authors.size();\n }",
"int getAuthoritiesCount();",
"public int getAuthoritiesCount() {\n return authorities_.size();\n }",
"public int getAuthoritiesCount() {\n return authorities_.size();\n }",
"public int getNumArtistsInCollection() {\n\t\treturn numArtistsInCollection;\n\t}",
"public long getUniqueAuthorsInCollection()\n\tthrows DataAccessException;",
"public int getNumCreationAuthors() {\n\t\treturn numCreationAuthors;\n\t}",
"public int getAuthors() {\n return Integer.parseInt(getCellContent(AUTHORS));\n }",
"private void extractNumberOfCoauthors() {\r\n try {\r\n List<String> coAuthor = new ArrayList<String>();\r\n // gets all matched objects for extracting coauthor names.\r\n Matcher matcherObject = matcher.patternMatcher(\"Coauthors\");\r\n\r\n String authorName;\r\n // check if name already exists in data structure.\r\n while (matcherObject.find()) {\r\n authorName = matcherObject.group(2).toString();\r\n coAuthor.add(authorName);\r\n if (!CoAuthors.contains(authorName)) {\r\n CoAuthors.add(authorName);\r\n }\r\n }\r\n if (isValidFile) {\r\n format.Formatter(6, coAuthor.size());\r\n }\r\n \r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Error has occured in extractNumberOfCoauthors\");\r\n }\r\n }",
"public int getNumAuthorsAtStart() {\n\t\treturn numAuthorsAtStart;\n\t}",
"public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}",
"public int noOfBooks() {\n\t\treturn arlist.size();\r\n\t}",
"public long getDisambiguatedAuthorsInCollection()\n\tthrows DataAccessException;",
"public Map<String, Long> findAuthors() {\n SearchResponse searchResponse = client.prepareSearch(INDEX_BASE)\n .addAggregation(terms(\"authors\").field(\"author\"))\n .setSize(0)\n .get();\n\n Terms issues = searchResponse.getAggregations().get(\"authors\");\n Map<String, Long> foundAuthors = new LinkedHashMap<>();\n\n issues.getBuckets().forEach(bucket -> {\n foundAuthors.put(bucket.getKeyAsString(), bucket.getDocCount());\n });\n\n return foundAuthors;\n }",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"@Override\n\tpublic long count(String documentCollection) {\n\t\ttry {\n\t\t\treturn getStore().documentCount();\n\t\t} catch (JsonException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"int getDocumentCount();",
"@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}",
"public int size() {\n return collection.size();\n }",
"public int size() {\n\t\treturn collection.size();\n\t}",
"int getPersonInfoCount();",
"public int getNumBooks() {\n return numBooks;\n }",
"public int size() {\n maintain();\n return collection.size();\n }",
"public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}",
"public int size() {\n return this.collection.size();\n }",
"@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}",
"public int getNoOfBooks()\r\n {\r\n return noOfBooks;\r\n }",
"public long getCount() {\n return getCount(new BasicDBObject(), new DBCollectionCountOptions());\n }",
"public int getBookCount() {\n \treturn set.size();\n }",
"public int size() {return collection.size();}",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"int getParticipantsCount();",
"int getParticipantsCount();",
"public int getNumberOfCommenters(){\n return commenters.size();\n }",
"public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }",
"int findAllCount() ;",
"public int countPerson() {\n\t\treturn count(GraphQueries.COUNT_PERSON);\n\t}",
"public long userCount(DBCollection collection) {\n return collection.count();\n }",
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"int getContentsCount();",
"int getCountOfAllBooks();",
"public int count() {\n return Query.count(iterable);\n }",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getCount() {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBCursor cursor = coll.find(QueryCriteria.getByUser(getUserUuid()));\n\t\t\n\t\treturn \"{count: \" + Integer.valueOf(cursor.count()).toString() + \"}\";\n\t}",
"public int getLength() {\n return collection.size();\n }",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"int getCustomersCount();",
"public int Customers()\r\n\t{\r\n\t\treturn customers.size();\r\n\t}",
"public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }",
"public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}",
"int getEntryCount();",
"public int numContacts();",
"public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}",
"public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}",
"@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}",
"int getItemsCount();",
"int getItemsCount();",
"public int get_count();",
"public int getAdvisorCount();",
"int getContactCount();",
"public int size() {\n return documents.size();\n }",
"int getNumberOfDocuments();",
"int postsCount();",
"@Override\n\tpublic Integer getSubjectForCount() {\n\t\treturn subjectDAO.getSubjectForCount();\n\t}",
"public int size() {\n\t\treturn this.articleIdToReferenceIdMap.size();\r\n\t}",
"public int getUsersCount() {\n return users_.size();\n }",
"public int getUsersCount() {\n return users_.size();\n }",
"@GET\r\n\t@Path(\"count\")\r\n\t@Produces(MediaType.TEXT_PLAIN)\r\n\tpublic String getCount() {\r\n\t\tint count = TodoDao.instance.getMovies().size();\r\n\t\treturn String.valueOf(count);\r\n\t}",
"public int findTotalDisplaySubjects() throws DAOException;",
"public int contactAmount()\n\t{\n\t\treturn contacts.size();\n\t}",
"int getDetailsCount();",
"int getDetailsCount();",
"int getContactListCount();",
"int getContactListCount();",
"int getContactListCount();",
"int getContactListCount();",
"public int getDocumentCount() {\n return this.documentCount;\n }",
"static public int numberOfPersons() {\n return personMap.size();\n }",
"public String getCount() {\r\n\t\treturn this.count;\r\n\t}",
"public int getParticipantsCount()\n {\n return participants.size();\n }",
"public int count() {\n return this.count;\n }",
"public int size()\n {\n return bookList.size();\n }",
"int getCountOfBookWithTitle(String title);",
"public int getCardCount() {\n return cardSet.totalCount();\n }",
"@Override\r\n\tpublic int count() throws StrumentoNotFoundException {\n\t\treturn (int) strumentoRepository.count();\r\n\t}",
"int getNumItems();",
"public Long getCount() {\n return count;\n }",
"@Override\n\tpublic long size() {\n\t\treturn contacts.size();\n\t}",
"int getListCount();",
"@Override\n\tpublic int getItemPublicacaosCount() {\n\t\treturn itemPublicacaoPersistence.countAll();\n\t}",
"public Integer getAuthorId() {\n return authorId;\n }",
"public Integer getAuthorId() {\n return authorId;\n }",
"public int count() {\n\t\t\tassert wellFormed() : \"invariant false on entry to count()\";\n\n\t\t\tint count = 0;\n\t\t\tfor(Card p = this.first; p != null; p = p.next) {\n\t\t\t\t++count;\n\t\t\t}\n\n\t\t\treturn count; // TODO\n\t\t}",
"int getRolesCount();",
"int getRolesCount();",
"int getStudentCount();",
"int getEducationsCount();",
"public int count() {\r\n return count;\r\n }"
] | [
"0.8344599",
"0.7691433",
"0.75351244",
"0.74541074",
"0.7275231",
"0.69932604",
"0.6921673",
"0.67735595",
"0.67501086",
"0.6726045",
"0.64878017",
"0.6468076",
"0.64609474",
"0.6383239",
"0.6382298",
"0.6358077",
"0.6353596",
"0.63203585",
"0.62724334",
"0.6266075",
"0.62106925",
"0.61908555",
"0.619073",
"0.6166866",
"0.61580753",
"0.6156792",
"0.6154023",
"0.6130472",
"0.6128163",
"0.61215144",
"0.6107687",
"0.6083985",
"0.6076996",
"0.6076996",
"0.6050611",
"0.60437006",
"0.6040794",
"0.60360324",
"0.603469",
"0.6034062",
"0.6034062",
"0.6034062",
"0.60098773",
"0.5997777",
"0.5984999",
"0.5981661",
"0.59802806",
"0.5971198",
"0.59407735",
"0.593486",
"0.59343",
"0.593242",
"0.59211904",
"0.5904346",
"0.58710444",
"0.58668137",
"0.5864137",
"0.58584255",
"0.58584255",
"0.5849683",
"0.58443815",
"0.5844071",
"0.5843931",
"0.5842556",
"0.58229345",
"0.58212894",
"0.5818762",
"0.5818337",
"0.5817449",
"0.58052933",
"0.580003",
"0.57999945",
"0.5798109",
"0.5798109",
"0.5797759",
"0.5797759",
"0.5797759",
"0.5797759",
"0.57951057",
"0.5794565",
"0.5787334",
"0.5785696",
"0.577666",
"0.5763426",
"0.5758823",
"0.57562345",
"0.57529306",
"0.57513314",
"0.57383335",
"0.57326055",
"0.5729711",
"0.5728927",
"0.5722606",
"0.5722606",
"0.5712395",
"0.57085145",
"0.57085145",
"0.57073325",
"0.5705994",
"0.5704638"
] | 0.73324484 | 4 |
Gets the number of unique authors in the collection | public long getUniqueAuthorsInCollection()
throws DataAccessException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int numberAuthors() {\n return authors.size();\n }",
"int getAuthoritiesCount();",
"public int getAuthoritiesCount() {\n return authorities_.size();\n }",
"public int getAuthoritiesCount() {\n return authorities_.size();\n }",
"public long getAuthorsInCollection()\n\tthrows DataAccessException;",
"public int getNumCreationAuthors() {\n\t\treturn numCreationAuthors;\n\t}",
"public long getDisambiguatedAuthorsInCollection()\n\tthrows DataAccessException;",
"private void extractNumberOfCoauthors() {\r\n try {\r\n List<String> coAuthor = new ArrayList<String>();\r\n // gets all matched objects for extracting coauthor names.\r\n Matcher matcherObject = matcher.patternMatcher(\"Coauthors\");\r\n\r\n String authorName;\r\n // check if name already exists in data structure.\r\n while (matcherObject.find()) {\r\n authorName = matcherObject.group(2).toString();\r\n coAuthor.add(authorName);\r\n if (!CoAuthors.contains(authorName)) {\r\n CoAuthors.add(authorName);\r\n }\r\n }\r\n if (isValidFile) {\r\n format.Formatter(6, coAuthor.size());\r\n }\r\n \r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Error has occured in extractNumberOfCoauthors\");\r\n }\r\n }",
"public int getNumArtistsInCollection() {\n\t\treturn numArtistsInCollection;\n\t}",
"int getUniqueNumbersCount();",
"public int getNumAuthorsAtStart() {\n\t\treturn numAuthorsAtStart;\n\t}",
"public Map<String, Long> findAuthors() {\n SearchResponse searchResponse = client.prepareSearch(INDEX_BASE)\n .addAggregation(terms(\"authors\").field(\"author\"))\n .setSize(0)\n .get();\n\n Terms issues = searchResponse.getAggregations().get(\"authors\");\n Map<String, Long> foundAuthors = new LinkedHashMap<>();\n\n issues.getBuckets().forEach(bucket -> {\n foundAuthors.put(bucket.getKeyAsString(), bucket.getDocCount());\n });\n\n return foundAuthors;\n }",
"public int getAuthors() {\n return Integer.parseInt(getCellContent(AUTHORS));\n }",
"public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}",
"@Override\n\tpublic long count(String documentCollection) {\n\t\ttry {\n\t\t\treturn getStore().documentCount();\n\t\t} catch (JsonException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public int getTotalUniqueWords() {\n return totalUniqueWords;\n }",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"int getPersonInfoCount();",
"public int getBookCount() {\n \treturn set.size();\n }",
"long getOwnedEntryCount();",
"public long userCount(DBCollection collection) {\n return collection.count();\n }",
"@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}",
"public int size() {\n maintain();\n return collection.size();\n }",
"int getNumberOfDetectedDuplicates();",
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"public Integer getAuthorId() {\n return authorId;\n }",
"public Integer getAuthorId() {\n return authorId;\n }",
"public int size() {\n\t\treturn this.articleIdToReferenceIdMap.size();\r\n\t}",
"public Integer getAuthorId() {\n\t\treturn authorId;\n\t}",
"public int size() {\n return collection.size();\n }",
"public int size() {return collection.size();}",
"public int noOfBooks() {\n\t\treturn arlist.size();\r\n\t}",
"static public int numberOfPersons() {\n return personMap.size();\n }",
"public static long getCountOfUniqueActivitiesOfSchool(){\r\n\t\treturn StudentRepository.getStudents()\r\n\t\t\t.stream() // Stream<Student>\r\n\t\t\t.map(Student :: getActivities) // Stream<List<String>>\r\n\t\t\t// want to pass a List and get back a stream of that list\r\n\t\t\t.flatMap(List :: stream) // Stream<String>\r\n\t\t\t.distinct()\r\n\t\t\t.count();\r\n\t}",
"int getParticipantsCount();",
"int getParticipantsCount();",
"public int size() {\n\t\treturn collection.size();\n\t}",
"public int count () {\n return member_id_list.length;\r\n }",
"public Long getReviewerCount(){\n return User.count(\"from User u where u.status in (?1) and u.company = ?2 and (u.superReviewer = ?3 or u.reviewCategories IS NOT EMPTY)\",\n UserStatus.getStatusesConsideredInUse(), this, true);\n }",
"int findAllCount() ;",
"int getIdsCount();",
"public int getDonors()\n\t{\n\t\tint donors=0;\n\t\tString query=\"select count(distinct username) from donations\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tdonors=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn donors;\n\t}",
"public static int numberOfSegs() {\n String sql = \"SELECT COUNT(*) FROM corpus1;\";\n\n int notDistinctCount = 0;\n int distinctCount = 0;\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n notDistinctCount = rs.getInt(1);\n } catch (SQLException e) {\n System.out.println(\"count: \" + e.getMessage());\n }\n\n sql = \"SELECT COUNT(DISTINCT id) FROM corpus1;\";\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n distinctCount = rs.getInt(1);\n } catch (SQLException e) {\n System.out.println(\"count: \" + e.getMessage());\n }\n\n if (distinctCount != notDistinctCount) {\n System.out.println(distinctCount + \", \" + notDistinctCount);\n }\n\n return distinctCount;\n }",
"int getDocumentCount();",
"public int countPerson() {\n\t\treturn count(GraphQueries.COUNT_PERSON);\n\t}",
"public long getUniqueEntitiesInCollection() \n\tthrows DataAccessException;",
"public void clearAuthors() {\r\n\t\tauthorsNum = 0;\r\n\t}",
"public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }",
"int getEntryCount();",
"int sumOfYearsOfUniqueUsers(List<User> users);",
"int getCountOfAllBooks();",
"public int size() {\n return this.collection.size();\n }",
"@Override\n\tpublic Integer getSubjectForCount() {\n\t\treturn subjectDAO.getSubjectForCount();\n\t}",
"public int count() {\n return Query.count(iterable);\n }",
"int countAssociations();",
"public int getUsersCount() {\n return users_.size();\n }",
"public int getUsersCount() {\n return users_.size();\n }",
"public int getNumberOfCommenters(){\n return commenters.size();\n }",
"int getUniquesNumber() throws SQLException;",
"public String getAuthorId() {\n return authorId;\n }",
"@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}",
"public long getCount() {\n return getCount(new BasicDBObject(), new DBCollectionCountOptions());\n }",
"int countByExample(UcMembersExample example);",
"public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }",
"public int numContacts();",
"protected short getCount() \r\n {\r\n // We could move this to the individual implementing classes\r\n // so they have their own count\r\n synchronized(AbstractUUIDGenerator.class) \r\n {\r\n if (counter < 0)\r\n {\r\n counter = 0;\r\n }\r\n return counter++;\r\n }\r\n }",
"int getAoisCount();",
"int getCustomersCount();",
"public long countByPublisher(Publisher publisher) {\n return getDevStudioRepository().countByPublisher(publisher);\n }",
"@Transactional\n\tpublic Integer countLabConstructUsers() {\n\t\treturn ((Long) labConstructUserDAO.createQuerySingleResult(\"select count(o) from LabConstructUser o\").getSingleResult()).intValue();\n\t}",
"public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}",
"public int Customers()\r\n\t{\r\n\t\treturn customers.size();\r\n\t}",
"int getOtherIdsCount();",
"public int _count() {\n return _count(\"\");\n }",
"int getUserCount();",
"int getUserCount();",
"int getCountOfBookWithTitle(String title);",
"@Override\n\tpublic long size() {\n\t\treturn contacts.size();\n\t}",
"@Override\n\tpublic long getAuthorId() {\n\t\treturn _scienceApp.getAuthorId();\n\t}",
"int getEducationsCount();",
"public int countUniqueStrings()\n\t{\n\t\treturn countUniqueStrings(this.root);\n\t}",
"private int numeroCuentas() {\r\n\t\tint cuentasCreadas = 0;\r\n\t\tfor (Cuenta cuenta : this.cuentas) {\r\n\t\t\tif (cuenta != null) {\r\n\t\t\t\tcuentasCreadas++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cuentasCreadas;\r\n\t}",
"public String getAuthorisor()\n\t{\n\t\treturn authorisor;\n\t}",
"public int getCount(String username);",
"public int getNumberOfPostOnBlog(){\n List<BlogPost>blogs = blogPostFacade.findAll();\n int k=0;\n for(BlogPost temp: blogs){\n if(temp.getBlog().getId().equals(blogPost.getBlog().getId())){\n k++;\n System.out.println(\"Mes \"+temp.getMessage());\n }\n \n }\n return k ;\n }",
"int getContentsCount();",
"@SuppressWarnings(\"deprecation\")\r\n\tprivate int countEntities(){\r\n\t\tQuery query = new Query(\"UserProfile\");\r\n\t\treturn datastore.prepare(query).countEntities();\r\n\t}",
"int getCazuriCount();",
"int getListCount();",
"@Override\r\n\tpublic int count() throws StrumentoNotFoundException {\n\t\treturn (int) strumentoRepository.count();\r\n\t}",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"public int get_count();",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getCount() {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBCursor cursor = coll.find(QueryCriteria.getByUser(getUserUuid()));\n\t\t\n\t\treturn \"{count: \" + Integer.valueOf(cursor.count()).toString() + \"}\";\n\t}",
"public int findTotalDisplaySubjects() throws DAOException;",
"int countByExample(UUserExample example);",
"public int getUserCount() {\n return user_.size();\n }",
"public int count() {\n\t\t\tassert wellFormed() : \"invariant false on entry to count()\";\n\n\t\t\tint count = 0;\n\t\t\tfor(Card p = this.first; p != null; p = p.next) {\n\t\t\t\t++count;\n\t\t\t}\n\n\t\t\treturn count; // TODO\n\t\t}",
"public int getParticipantsCount()\n {\n return participants.size();\n }"
] | [
"0.77660924",
"0.726585",
"0.7135392",
"0.70412165",
"0.7029286",
"0.6872886",
"0.67067647",
"0.6593725",
"0.6576942",
"0.6407149",
"0.62987757",
"0.6269656",
"0.6187588",
"0.5844607",
"0.58131397",
"0.5809918",
"0.5793888",
"0.574245",
"0.57393473",
"0.5726498",
"0.5701082",
"0.57010454",
"0.56847835",
"0.5659719",
"0.56497705",
"0.56497705",
"0.56497705",
"0.5636793",
"0.5636793",
"0.56319964",
"0.56260425",
"0.5623589",
"0.5623143",
"0.5620141",
"0.5611374",
"0.56055427",
"0.56040704",
"0.56040704",
"0.5593756",
"0.55794334",
"0.5569747",
"0.55670965",
"0.55547464",
"0.5539341",
"0.55156255",
"0.5503544",
"0.5495615",
"0.54909354",
"0.5474525",
"0.54722",
"0.546332",
"0.54615194",
"0.5457334",
"0.5455584",
"0.5439818",
"0.54195833",
"0.5405339",
"0.5398979",
"0.5398613",
"0.5393345",
"0.53932583",
"0.5392412",
"0.5369219",
"0.5359189",
"0.53581834",
"0.5351312",
"0.5350672",
"0.5343573",
"0.533801",
"0.53377956",
"0.5333951",
"0.5333057",
"0.5331786",
"0.5331717",
"0.5322554",
"0.5319666",
"0.5315892",
"0.5315892",
"0.5313232",
"0.5304681",
"0.53028184",
"0.52958196",
"0.52920157",
"0.52872026",
"0.5279695",
"0.52785987",
"0.5277964",
"0.52778125",
"0.5276522",
"0.5275704",
"0.52753824",
"0.52713126",
"0.52666533",
"0.52643645",
"0.5258459",
"0.5257476",
"0.5253798",
"0.5251284",
"0.5250148",
"0.52476394"
] | 0.7771375 | 0 |
Gets the number of disambiguated authors in the collection | public long getDisambiguatedAuthorsInCollection()
throws DataAccessException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int numberAuthors() {\n return authors.size();\n }",
"int getAuthoritiesCount();",
"public long getUniqueAuthorsInCollection()\n\tthrows DataAccessException;",
"public long getAuthorsInCollection()\n\tthrows DataAccessException;",
"private void extractNumberOfCoauthors() {\r\n try {\r\n List<String> coAuthor = new ArrayList<String>();\r\n // gets all matched objects for extracting coauthor names.\r\n Matcher matcherObject = matcher.patternMatcher(\"Coauthors\");\r\n\r\n String authorName;\r\n // check if name already exists in data structure.\r\n while (matcherObject.find()) {\r\n authorName = matcherObject.group(2).toString();\r\n coAuthor.add(authorName);\r\n if (!CoAuthors.contains(authorName)) {\r\n CoAuthors.add(authorName);\r\n }\r\n }\r\n if (isValidFile) {\r\n format.Formatter(6, coAuthor.size());\r\n }\r\n \r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Error has occured in extractNumberOfCoauthors\");\r\n }\r\n }",
"public int getAuthoritiesCount() {\n return authorities_.size();\n }",
"public int getAuthoritiesCount() {\n return authorities_.size();\n }",
"public int getNumArtistsInCollection() {\n\t\treturn numArtistsInCollection;\n\t}",
"public Map<String, Long> findAuthors() {\n SearchResponse searchResponse = client.prepareSearch(INDEX_BASE)\n .addAggregation(terms(\"authors\").field(\"author\"))\n .setSize(0)\n .get();\n\n Terms issues = searchResponse.getAggregations().get(\"authors\");\n Map<String, Long> foundAuthors = new LinkedHashMap<>();\n\n issues.getBuckets().forEach(bucket -> {\n foundAuthors.put(bucket.getKeyAsString(), bucket.getDocCount());\n });\n\n return foundAuthors;\n }",
"public int getAuthors() {\n return Integer.parseInt(getCellContent(AUTHORS));\n }",
"public int getNumAuthorsAtStart() {\n\t\treturn numAuthorsAtStart;\n\t}",
"public int getNumCreationAuthors() {\n\t\treturn numCreationAuthors;\n\t}",
"public int getAdvisorCount();",
"public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}",
"public Integer getAuthorId() {\n return authorId;\n }",
"public Integer getAuthorId() {\n return authorId;\n }",
"int getNewsindentifydetailCount();",
"public Iterable<DBObject> topLinker(DBCollection collection) {\n Iterable<DBObject> ai = collection.aggregate(Arrays.asList(\n new BasicDBObject(\"$match\", new BasicDBObject(\"text\", new BasicDBObject(\"$regex\", rege))),\n new BasicDBObject(\"$group\", new BasicDBObject(\"_id\", \"$user\").append(\"count\", new BasicDBObject(\"$sum\", 1))),\n new BasicDBObject(\"$sort\", new BasicDBObject(\"count\", -1)),\n new BasicDBObject(\"$limit\", 10)\n )).results();\n return ai;\n }",
"public List applyAuthorRule () {\n\t\treturn authors;\n\t}",
"public int findTotalDisplaySubjects() throws DAOException;",
"public Integer getAuthorId() {\n\t\treturn authorId;\n\t}",
"public String getSuspectedCount() {\n return suspectedCount;\n }",
"int countAssociations();",
"public int getNumberCandidatesPerMention() {\n return numberCandidatesPerMention;\n }",
"public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"public Long getReviewerCount(){\n return User.count(\"from User u where u.status in (?1) and u.company = ?2 and (u.superReviewer = ?3 or u.reviewCategories IS NOT EMPTY)\",\n UserStatus.getStatusesConsideredInUse(), this, true);\n }",
"public Item2Vector<Author> getAuthorss() { return authorss; }",
"int getOtherIdsCount();",
"public int getNumberOfCommenters(){\n return commenters.size();\n }",
"int getPersonInfoCount();",
"public int getDonors()\n\t{\n\t\tint donors=0;\n\t\tString query=\"select count(distinct username) from donations\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tdonors=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn donors;\n\t}",
"public void clearAuthors() {\r\n\t\tauthorsNum = 0;\r\n\t}",
"int getEducationsCount();",
"public Iterable<DBObject> mostMentioned(DBCollection collection) {\n Iterable<DBObject> ai = collection.aggregate(Arrays.asList(\n new BasicDBObject(\"$match\", new BasicDBObject(\"text\", new BasicDBObject(\"$regex\", rege))),\n new BasicDBObject(\"$project\", new BasicDBObject(\"user\", \"$user\").append(\"texts\", new BasicDBObject(\"$split\", Arrays.asList(\"$text\", \" \")))),\n new BasicDBObject(\"$unwind\", \"$texts\"),\n new BasicDBObject(\"$match\", new BasicDBObject(\"texts\", new BasicDBObject(\"$regex\", rege))),\n new BasicDBObject(\"$group\", new BasicDBObject(\"_id\", \"$texts\").append(\"count\", new BasicDBObject(\"$sum\", 1))),\n new BasicDBObject(\"$sort\", new BasicDBObject(\"count\", -1)),\n new BasicDBObject(\"$limit\", 5)\n )).results();\n return ai;\n }",
"int getDocumentCount();",
"int getNumberOfDetectedDuplicates();",
"public int f1(List<Book> a) {\r\n int count = 0;\r\n for (Book o : a) {\r\n int demchu = 0;\r\n int demso = 0;\r\n for (int i = 0; i < o.getCode().length(); i++) {\r\n char c = o.getCode().charAt(i);\r\n if (Character.isDigit(c)) {\r\n demso++;\r\n }\r\n if (Character.isLetter(c)) {\r\n demchu++;\r\n }\r\n }\r\n if (demchu != 0 && demso != 0) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n\r\n }",
"public int noOfBooks() {\n\t\treturn arlist.size();\r\n\t}",
"public String getAuthorisor()\n\t{\n\t\treturn authorisor;\n\t}",
"public int getNumAnnouncements(){\n return message.length;\n }",
"java.lang.String getAuthorities(int index);",
"public int getNumberOfActivitiesByPoster(Identity ownerIdentity, Identity viewerIdentity);",
"public String getAuthorId() {\n return authorId;\n }",
"@Override\n\tpublic long count(String documentCollection) {\n\t\ttry {\n\t\t\treturn getStore().documentCount();\n\t\t} catch (JsonException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}",
"public synchronized int getMissed() {\n\t\treturn missedWords.get();\n\t}",
"public void setAuthors(String _authors) { authors = _authors; }",
"public static int numberOfSegs() {\n String sql = \"SELECT COUNT(*) FROM corpus1;\";\n\n int notDistinctCount = 0;\n int distinctCount = 0;\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n notDistinctCount = rs.getInt(1);\n } catch (SQLException e) {\n System.out.println(\"count: \" + e.getMessage());\n }\n\n sql = \"SELECT COUNT(DISTINCT id) FROM corpus1;\";\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n distinctCount = rs.getInt(1);\n } catch (SQLException e) {\n System.out.println(\"count: \" + e.getMessage());\n }\n\n if (distinctCount != notDistinctCount) {\n System.out.println(distinctCount + \", \" + notDistinctCount);\n }\n\n return distinctCount;\n }",
"@Nonnull @NonnullElements @Live public Collection<String> getAuthorities() {\n return authorities;\n }",
"public int size() {\n\t\treturn this.articleIdToReferenceIdMap.size();\r\n\t}",
"public int countByArticle(java.lang.String articleId);",
"public int countByArticle(java.lang.String articleId);",
"public String getAuthorities() {\n return authorities;\n }",
"int getParticipantsCount();",
"int getParticipantsCount();",
"public static boolean processAuthor(String dcCreator){\n\t\tlong maxTopic = bl.getMaxTopicToAuthor(dcCreator);\n\t\tdouble TF = 0;\n\t\tif (maxTopic > 0)\n\t\t{\n\t\t\t\n\t\t}\n\t\tdouble IDF = 0;\n\t\tArrayList<TopicWeight> topicVec = bl.getTopicWeightVecForAuthor(dcCreator);\n//\t\tSystem.out.println(topicVec);\n\t\tfor(int i = 0; i < topicVec.size(); i++){\n\t\t\tTF = (double)topicVec.get(i).getTopicWeight()/(double)maxTopic;\n\t\t\tlong NumOfAuthorsWithTopic = bl.getNumOfAuthorsWithTopic(topicVec.get(i).getTopicName());\n\t\t\t//\t\t\tSystem.err.println(NumOfAuthorsWithTopic);\n\t\t\tif (NumOfAuthorsWithTopic>0){\n\t\t\t\tIDF = (double)java.lang.Math.log10((double)numOfAuthors/(double)NumOfAuthorsWithTopic);\n\t\t\t}\n\t\t\tdouble tfidf = (double)TF*(double)IDF;\n//\t\t\tSystem.out.println(dcCreator + \" -- \" + topicVec.get(i).getTopicName()+\" -- \" + tfidf);\n\t\t\tjena.InsertTriple(new RDFTripleModel(dcCreator,\"TF-IDF-TopicWithWeight\",topicVec.get(i).getTopicName()+\" -- \" + tfidf ));\n\t\t\tCOUNTER++;\n\t\t}\n\t\treturn true;\n\t}",
"public int numberOfOccorrence();",
"int getNumberOfArtillery();",
"public int getNumberOfActivitiesByPoster(Identity posterIdentity);",
"@Override\r\n\tpublic int count() throws StrumentoNotFoundException {\n\t\treturn (int) strumentoRepository.count();\r\n\t}",
"public String recognizeAuthorSentence(String sentence) \n\t{\n\t\tLanguageModelInterface langM;\n\t\tCollection<LanguageModelInterface> authbis;\n\t\tIterator<LanguageModelInterface> it;\n\t\tDouble prob = 0.0;\n\t\tString author_recognized = UNKNOWN_AUTHOR;\n\n\t\tfor(int i = 0; i < this.authorLangModelsMap.size(); i++)\n\t\t{\n\t\t\tauthbis = this.authorLangModelsMap.get(authors.get(i)).values();\n\t\t\tit = authbis.iterator();\n\t\t\t//System.out.println(authors.get(i));\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tlangM = (NaiveLanguageModel) it.next();\n\t\t\t\t//System.out.println(langM.getSentenceProb(sentence));\n\t\t\t\t//System.out.println(authors.get(i));\n\t\t\t\t\n\t\t\t\tif(prob < langM.getSentenceProb(sentence))\n\t\t\t\t{\n\t\t\t\t\tprob = langM.getSentenceProb(sentence);\n\t\t\t\t\tauthor_recognized = authors.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn author_recognized;\n\t}",
"int getObjectAnnotationsCount();",
"int getObjectAnnotationsCount();",
"int getAnnotationCount();",
"int getContentsCount();",
"public int findTotalSubjects() throws DAOException;",
"int getDetailsCount();",
"int getDetailsCount();",
"int getAoisCount();",
"public int getNumAssists () {\r\n\t\treturn numAssists;\r\n\t}",
"public int findTotalDisplaySubjectsByPaperId( Integer paperId ) throws DAOException;",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"public static void numOfBook() {\n\t\t\n\t\tString a = \"Book is very Book. I like to read Book and I like to give Boroky. And I like to sell Book\";\n\t\tint counter=0;\n\t\tfor(int i=0; i<a.length()-3; i++) {\n\t\t\tif(a.substring(i,i+4).contains(\"Book\")) {\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n\t\t\n\t}",
"public int getEducationsCount() {\n return educations_.size();\n }",
"int getIdsCount();",
"Set<URI> getAuthors();",
"public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }",
"int getMetadataCount();",
"int getMetadataCount();",
"int getMetadataCount();",
"int getMetadataCount();",
"@Override\n\tpublic long getAuthorId() {\n\t\treturn _scienceApp.getAuthorId();\n\t}",
"public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}",
"public long getCitationsInCollection()\n\tthrows DataAccessException;",
"int getWordCount() {\r\n return entrySet.size();\r\n }",
"public int getNewsindentifydetailCount() {\n return newsindentifydetail_.size();\n }",
"public int getReasonersCount() {\r\n return registry.getReasonerCount();\r\n }",
"@Override\n protected int count(TopCategorySearcher searcher) {\n return 0;\n }",
"int getMissingCount();",
"int getCountOfBookWithTitle(String title);",
"public int getCount() {\n return arName.size();\n }",
"int getAchievementsCount();",
"private String getAuthorStringForLookup(CitedArticle citedArticle) {\n List<CitedArticleAuthor> authors = citedArticle.getAuthors();\n return authors.size() > 0 ? authors.get(0).getSurnames() : \"\";\n }",
"public int getBookCount() {\n \treturn set.size();\n }",
"int countByExample(ReEducationExample example);",
"int countByExample(UcMembersExample example);",
"int commentsCount();",
"public int numContacts();",
"int getNotInCount();",
"int countByExample(organize_infoBeanExample example);"
] | [
"0.71511936",
"0.68514925",
"0.67290276",
"0.6694523",
"0.6674662",
"0.6528015",
"0.63910264",
"0.63638484",
"0.59576464",
"0.58430254",
"0.5835904",
"0.5553516",
"0.53657967",
"0.5309379",
"0.52939826",
"0.52939826",
"0.52639157",
"0.52637297",
"0.5255731",
"0.5248674",
"0.5204369",
"0.5190546",
"0.5190483",
"0.51859105",
"0.5174497",
"0.5171763",
"0.516466",
"0.5162396",
"0.514681",
"0.5139595",
"0.51295507",
"0.51284456",
"0.512052",
"0.51172584",
"0.5103263",
"0.50984806",
"0.5094518",
"0.5089031",
"0.5078925",
"0.50670826",
"0.505296",
"0.50461805",
"0.50296545",
"0.50276613",
"0.5022482",
"0.5009818",
"0.49863982",
"0.49829432",
"0.497665",
"0.49752444",
"0.49738145",
"0.49724105",
"0.49625129",
"0.49610963",
"0.49610963",
"0.49515042",
"0.49480674",
"0.49378023",
"0.49338767",
"0.4927515",
"0.49270272",
"0.49246976",
"0.49246976",
"0.49244642",
"0.4920766",
"0.4917374",
"0.49112076",
"0.49112076",
"0.4910884",
"0.49107906",
"0.49046588",
"0.4903412",
"0.4900538",
"0.49001673",
"0.4899616",
"0.48822987",
"0.48793316",
"0.48744774",
"0.48744774",
"0.48744774",
"0.48744774",
"0.48711056",
"0.48657438",
"0.48652425",
"0.485956",
"0.48547715",
"0.48503742",
"0.48479974",
"0.48479956",
"0.48414728",
"0.48380524",
"0.48318368",
"0.48315716",
"0.48277757",
"0.4827301",
"0.48225722",
"0.48217186",
"0.48181787",
"0.48164344",
"0.48133707"
] | 0.7658643 | 0 |
Gets the number of clusters in the collection (unique citations) | public long getUniqueEntitiesInCollection()
throws DataAccessException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumClusters() {\n return clusters.size();\n }",
"int getClusteringKeyCount();",
"synchronized public int getNumVisibleClusters() {\n return numVisibleClusters;\n }",
"public int getClusteringKeyCount() {\n return clusteringKey_.size();\n }",
"public int getClusteringKeyCount() {\n return clusteringKey_.size();\n }",
"public java.lang.Integer getClusterSize() {\n return clusterSize;\n }",
"public long getNClusters() {\n return cGetNClusters(this.cObject);\n }",
"public int getClusterSize() {\r\n \treturn this.clusterSize;\r\n }",
"public int getSelectedNumberOfCluster() {\n\t\treturn selectedNumberOfCluster;\n\t}",
"int getReplicaCount(ClusterSpec clusterSpec);",
"public int size(){\n\t\t\treturn clusterPointsList.size();\n\t\t}",
"private static int getNumberClusters(String graph) throws IOException {\n ReadFile rf = new ReadFile();\n String[] lines = rf.readLines(graph);\n\n Set<Double> clusters = new HashSet<>();\n int n = lines.length;\n for (int i = 0; i < n; i++) {\n String[] line = lines[i].split(\" \");\n Double c = Double.parseDouble(line[3]);\n clusters.add(c);\n }\n return clusters.size();\n }",
"public final float getClusterSize() {\n return clusterSize;\n }",
"public final int getMaxNumClusters() {\n return maxNumClusters;\n }",
"public String getCacheClusterSize() {\n return cacheClusterSize;\n }",
"int getNodesCount();",
"int getNodesCount();",
"public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }",
"public Integer getClusterNum(Integer key)\n{\n return NPchains.get(key);\n}",
"public ClusterSize getClusterSize() {\n\t\treturn clusterSize;\n\t}",
"public static int numberOfSegs() {\n String sql = \"SELECT COUNT(*) FROM corpus1;\";\n\n int notDistinctCount = 0;\n int distinctCount = 0;\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n notDistinctCount = rs.getInt(1);\n } catch (SQLException e) {\n System.out.println(\"count: \" + e.getMessage());\n }\n\n sql = \"SELECT COUNT(DISTINCT id) FROM corpus1;\";\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n distinctCount = rs.getInt(1);\n } catch (SQLException e) {\n System.out.println(\"count: \" + e.getMessage());\n }\n\n if (distinctCount != notDistinctCount) {\n System.out.println(distinctCount + \", \" + notDistinctCount);\n }\n\n return distinctCount;\n }",
"int getCazuriCount();",
"int getNodeCount();",
"int getNodeCount();",
"public int getOccurrences() {\n\t\treturn this.occurrenceFactors.size();\n\t}",
"public double aveClusterSize() {\n return -1.0;\n }",
"public int clientsCount(){\n return clientsList.size();\n }",
"public int getNumberOfEntries();",
"public int getNumArtistsInCollection() {\n\t\treturn numArtistsInCollection;\n\t}",
"public int[] getCluster() {\r\n return this.clusters[this.clusterIndex];\r\n }",
"@Override\n\tpublic int getNbClients() {\n\t\t// TODO Auto-generated method stub\n\t\tint nbClients=0;\n\t\tfor (ArrayList<TC> quantite : salle.values()) {\t\t//On parcours l'ensemble de la liste pour connaître à chaque tour de\n\t\t\tnbClients += quantite.size();\t\t\t\t\t//boucle le nombre de personne prioritaire.\n\t\t}\n\t\treturn nbClients;\n\t\t\n\t\t// on cherche a donner le nombre de clients dans la salle à l'instant T, pour ce faire on fait la somme de la taille de chaque file d'attente \n// int res=0;\n// for(int i=0;i<maxPrio;i++) {\n// res += salle.get(i).size(); // on fait un get sur la salle d'indice i (correspondant a 1 niveau de priorité) ce qui rend l'ArrayList puis on prend la size de ce get. \n// }\n\t}",
"public int count() {\n\t\treturn sizeC;\n\t}",
"int getBlockNumbersCount();",
"int getPartitionLagsCount();",
"public Integer count() {\n\t\tif(cache.nTriples != null)\n\t\t\treturn cache.nTriples;\n\t\treturn TripleCount.count(this);\n\t}",
"public int getNumOfCourses() {\n return numOfCourses;\n }",
"int getBlockLocationsCount();",
"int getNumberOfCavalry();",
"public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}",
"int getCertificatesCount();",
"int getCertificatesCount();",
"public int getCazuriCount() {\n return cazuri_.size();\n }",
"public int numberOfIcosahedrons() {\n return icosList.size();\n }",
"public static int getCountofPeople(){\n int training_set = 0;\n \n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT count(*) FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n if (rs.next()) {\n training_set = rs.getInt(1);\n }\n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return training_set;\n }",
"public OpenIntIntHashMap getClusterSizes() {\n\n if (sizeMap != null) return sizeMap;\n\n sizeMap = new OpenIntIntHashMap();\n\n ValueIterator imageIterator = labelledVolume.valueIterator();\n //Map<Integer, Integer> sizes = new HashMap<Integer, Integer>();\n\n do {\n int label = (int) imageIterator.next();\n if (label > 0) {\n if (sizeMap.containsKey(label)) {\n int crt = sizeMap.get(label) + 1;\n sizeMap.put(label, crt);\n } else {\n sizeMap.put(label, 1);\n }\n }\n\n\n } while (imageIterator.hasNext());\n\n return sizeMap;\n }",
"int totalNumberOfNodes();",
"public int numberOfEntries();",
"public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}",
"int getEducationsCount();",
"public int lireCount() {\n\t\treturn cpt;\n\t}",
"int getEntryCount();",
"public int getCrossRefEntriesCount() {\n return crossRefEntriesCount;\n }",
"public int nextAvailableCluster()\r\n\t{\r\n\t\tfor (int i = 0; i < MAX_CLUSTERS; i++)\r\n\t\t\tif (cluster[i] == false)\r\n\t\t\t\treturn i;\r\n\t\treturn -1;\r\n\t}",
"int getCertificateCount();",
"int getCertificateCount();",
"public int getNbClients() {\n\t\t\treturn nbClients;\r\n\t\t}",
"@Override\n public int getNumberOfCategories() {\n Cursor query = this.writableDatabase.rawQuery(\"SELECT COUNT(*) FROM \" + TABLE_CATEGORIES, null);\n\n query.moveToFirst();\n int count = query.getInt(0);\n query.close();\n\n return count;\n }",
"int getBlockNumsCount();",
"int getBlockNumsCount();",
"public long numCandidates();",
"public static long count(nitro_service service) throws Exception{\n\t\tclusternodegroup obj = new clusternodegroup();\n\t\toptions option = new options();\n\t\toption.set_count(true);\n\t\tclusternodegroup[] response = (clusternodegroup[])obj.get_resources(service, option);\n\t\tif (response != null) {\n\t\t\treturn response[0].__count;\n\t\t}\n\t\treturn 0;\n\t}",
"int getAuthoritiesCount();",
"@Override\n public long[ ][ ] count() {\n // precompute common nodes\n for (int x = 0; x < n; x++) {\n for (int n1 = 0; n1 < deg[x]; n1++) {\n int a = adj[x][n1];\n for (int n2 = n1 + 1; n2 < deg[x]; n2++) {\n int b = adj[x][n2];\n Tuple ab = createTuple(a, b);\n common2.put(ab, common2.getOrDefault(ab, 0) + 1);\n for (int n3 = n2 + 1; n3 < deg[x]; n3++) {\n int c = adj[x][n3];\n boolean st = adjacent(adj[a], b) ? (adjacent(adj[a], c) || adjacent(adj[b], c)) :\n (adjacent(adj[a], c) && adjacent(adj[b], c));\n if (!st) continue;\n Tuple abc = createTuple(a, b, c);\n common3.put(abc, common3.getOrDefault(abc, 0) + 1);\n }\n }\n }\n }\n\n // precompute triangles that span over edges\n int[ ] tri = countTriangles();\n\n // count full graphlets\n long[ ] C5 = new long[n];\n int[ ] neigh = new int[n];\n int[ ] neigh2 = new int[n];\n int nn, nn2;\n for (int x = 0; x < n; x++) {\n for (int nx = 0; nx < deg[x]; nx++) {\n int y = adj[x][nx];\n if (y >= x) break;\n nn = 0;\n for (int ny = 0; ny < deg[y]; ny++) {\n int z = adj[y][ny];\n if (z >= y) break;\n if (adjacent(adj[x], z)) {\n neigh[nn++] = z;\n }\n }\n for (int i = 0; i < nn; i++) {\n int z = neigh[i];\n nn2 = 0;\n for (int j = i + 1; j < nn; j++) {\n int zz = neigh[j];\n if (adjacent(adj[z], zz)) {\n neigh2[nn2++] = zz;\n }\n }\n for (int i2 = 0; i2 < nn2; i2++) {\n int zz = neigh2[i2];\n for (int j2 = i2 + 1; j2 < nn2; j2++) {\n int zzz = neigh2[j2];\n if (adjacent(adj[zz], zzz)) {\n C5[x]++;\n C5[y]++;\n C5[z]++;\n C5[zz]++;\n C5[zzz]++;\n }\n }\n }\n }\n }\n }\n\n int[ ] common_x = new int[n];\n int[ ] common_x_list = new int[n];\n int ncx = 0;\n int[ ] common_a = new int[n];\n int[ ] common_a_list = new int[n];\n int nca = 0;\n\n // set up a system of equations relating orbit counts\n for (int x = 0; x < n; x++) {\n for (int i = 0; i < ncx; i++) common_x[common_x_list[i]] = 0;\n ncx = 0;\n\n // smaller graphlets\n orbit[x][0] = deg[x];\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = adj[x][nx1];\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = adj[x][nx2];\n if (adjacent(adj[a], b)) orbit[x][3]++;\n else orbit[x][2]++;\n }\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n if (b != x && !adjacent(adj[x], b)) {\n orbit[x][1]++;\n if (common_x[b] == 0) common_x_list[ncx++] = b;\n common_x[b]++;\n }\n }\n }\n\n long f_71 = 0, f_70 = 0, f_67 = 0, f_66 = 0, f_58 = 0, f_57 = 0; // 14\n long f_69 = 0, f_68 = 0, f_64 = 0, f_61 = 0, f_60 = 0, f_55 = 0, f_48 = 0, f_42 = 0, f_41 = 0; // 13\n long f_65 = 0, f_63 = 0, f_59 = 0, f_54 = 0, f_47 = 0, f_46 = 0, f_40 = 0; // 12\n long f_62 = 0, f_53 = 0, f_51 = 0, f_50 = 0, f_49 = 0, f_38 = 0, f_37 = 0, f_36 = 0; // 8\n long f_44 = 0, f_33 = 0, f_30 = 0, f_26 = 0; // 11\n long f_52 = 0, f_43 = 0, f_32 = 0, f_29 = 0, f_25 = 0; // 10\n long f_56 = 0, f_45 = 0, f_39 = 0, f_31 = 0, f_28 = 0, f_24 = 0; // 9\n long f_35 = 0, f_34 = 0, f_27 = 0, f_18 = 0, f_16 = 0, f_15 = 0; // 4\n long f_17 = 0; // 5\n long f_22 = 0, f_20 = 0, f_19 = 0; // 6\n long f_23 = 0, f_21 = 0; // 7\n\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = inc[x][nx1]._1, xa = inc[x][nx1]._2;\n\n for (int i = 0; i < nca; i++) common_a[common_a_list[i]] = 0;\n nca = 0;\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = adj[b][nb];\n if (c == a || adjacent(adj[a], c)) continue;\n if (common_a[c] == 0) common_a_list[nca++] = c;\n common_a[c]++;\n }\n }\n\n // x = orbit-14 (tetrahedron)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || !adjacent(adj[b], c)) continue;\n orbit[x][14]++;\n f_70 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_71 += (tri[xa] > 2 && tri[xb] > 2) ? (common3.getOrDefault(createTuple(x, a, b), 0) - 1) : 0;\n f_71 += (tri[xa] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, a, c), 0) - 1) : 0;\n f_71 += (tri[xb] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_67 += tri[xa] - 2 + tri[xb] - 2 + tri[xc] - 2;\n f_66 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(a, c), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_58 += deg[x] - 3;\n f_57 += deg[a] - 3 + deg[b] - 3 + deg[c] - 3;\n }\n }\n\n // x = orbit-13 (diamond)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][13]++;\n f_69 += (tri[xb] > 1 && tri[xc] > 1) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_68 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_64 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_61 += tri[xb] - 1 + tri[xc] - 1;\n f_60 += common2.getOrDefault(createTuple(a, b), 0) - 1;\n f_60 += common2.getOrDefault(createTuple(a, c), 0) - 1;\n f_55 += tri[xa] - 2;\n f_48 += deg[b] - 2 + deg[c] - 2;\n f_42 += deg[x] - 3;\n f_41 += deg[a] - 3;\n }\n }\n\n // x = orbit-12 (diamond)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][12]++;\n f_65 += (tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_63 += common_x[c] - 2;\n f_59 += tri[ac] - 1 + common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_54 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_47 += deg[x] - 2;\n f_46 += deg[c] - 2;\n f_40 += deg[a] - 3 + deg[b] - 3;\n }\n }\n\n // x = orbit-8 (cycle)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][8]++;\n f_62 += (tri[ac] > 0) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_53 += tri[xa] + tri[xb];\n f_51 += tri[ac] + common2.getOrDefault(createTuple(c, b), 0);\n f_50 += common_x[c] - 2;\n f_49 += common_a[b] - 2;\n f_38 += deg[x] - 2;\n f_37 += deg[a] - 2 + deg[b] - 2;\n f_36 += deg[c] - 2;\n }\n }\n\n // x = orbit-11 (paw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = 0; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (c == a || c == b || adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][11]++;\n f_44 += tri[xc];\n f_33 += deg[x] - 3;\n f_30 += deg[c] - 1;\n f_26 += deg[a] - 2 + deg[b] - 2;\n }\n }\n\n // x = orbit-10 (paw)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][10]++;\n f_52 += common_a[c] - 1;\n f_43 += tri[bc];\n f_32 += deg[b] - 3;\n f_29 += deg[c] - 1;\n f_25 += deg[a] - 2;\n }\n }\n\n // x = orbit-9 (paw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || !adjacent(adj[b], c) || adjacent(adj[x], c)) continue;\n orbit[x][9]++;\n f_56 += (tri[ab] > 1 && tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_45 += common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_39 += tri[ab] - 1 + tri[ac] - 1;\n f_31 += deg[a] - 3;\n f_28 += deg[x] - 1;\n f_24 += deg[b] - 2 + deg[c] - 2;\n }\n }\n\n // x = orbit-4 (path)\n for (int na = 0; na < deg[a]; na++) {\n int b = inc[a][na]._1, ab = inc[a][na]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][4]++;\n f_35 += common_a[c] - 1;\n f_34 += common_x[c];\n f_27 += tri[bc];\n f_18 += deg[b] - 2;\n f_16 += deg[x] - 1;\n f_15 += deg[c] - 1;\n }\n }\n\n // x = orbit-5 (path)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (b == a || adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][5]++;\n f_17 += deg[a] - 1;\n }\n }\n\n // x = orbit-6 (claw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || adjacent(adj[x], c) || adjacent(adj[b], c)) continue;\n orbit[x][6]++;\n f_22 += deg[a] - 3;\n f_20 += deg[x] - 1;\n f_19 += deg[b] - 1 + deg[c] - 1;\n }\n }\n\n // x = orbit-7 (claw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][7]++;\n f_23 += deg[x] - 3;\n f_21 += deg[a] - 1 + deg[b] - 1 + deg[c] - 1;\n }\n }\n }\n\n // solve equations\n orbit[x][72] = C5[x];\n orbit[x][71] = (f_71 - 12 * orbit[x][72]) / 2;\n orbit[x][70] = (f_70 - 4 * orbit[x][72]);\n orbit[x][69] = (f_69 - 2 * orbit[x][71]) / 4;\n orbit[x][68] = (f_68 - 2 * orbit[x][71]);\n orbit[x][67] = (f_67 - 12 * orbit[x][72] - 4 * orbit[x][71]);\n orbit[x][66] = (f_66 - 12 * orbit[x][72] - 2 * orbit[x][71] - 3 * orbit[x][70]);\n orbit[x][65] = (f_65 - 3 * orbit[x][70]) / 2;\n orbit[x][64] = (f_64 - 2 * orbit[x][71] - 4 * orbit[x][69] - 1 * orbit[x][68]);\n orbit[x][63] = (f_63 - 3 * orbit[x][70] - 2 * orbit[x][68]);\n orbit[x][62] = (f_62 - 1 * orbit[x][68]) / 2;\n orbit[x][61] = (f_61 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][67]) / 2;\n orbit[x][60] = (f_60 - 4 * orbit[x][71] - 2 * orbit[x][68] - 2 * orbit[x][67]);\n orbit[x][59] = (f_59 - 6 * orbit[x][70] - 2 * orbit[x][68] - 4 * orbit[x][65]);\n orbit[x][58] = (f_58 - 4 * orbit[x][72] - 2 * orbit[x][71] - 1 * orbit[x][67]);\n orbit[x][57] = (f_57 - 12 * orbit[x][72] - 4 * orbit[x][71] - 3 * orbit[x][70] - 1 * orbit[x][67] - 2 * orbit[x][66]);\n orbit[x][56] = (f_56 - 2 * orbit[x][65]) / 3;\n orbit[x][55] = (f_55 - 2 * orbit[x][71] - 2 * orbit[x][67]) / 3;\n orbit[x][54] = (f_54 - 3 * orbit[x][70] - 1 * orbit[x][66] - 2 * orbit[x][65]) / 2;\n orbit[x][53] = (f_53 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63]);\n orbit[x][52] = (f_52 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59]) / 2;\n orbit[x][51] = (f_51 - 2 * orbit[x][68] - 2 * orbit[x][63] - 4 * orbit[x][62]);\n orbit[x][50] = (f_50 - 1 * orbit[x][68] - 2 * orbit[x][63]) / 3;\n orbit[x][49] = (f_49 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][62]) / 2;\n orbit[x][48] = (f_48 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][68] - 2 * orbit[x][67] - 2 * orbit[x][64] - 2 * orbit[x][61] - 1 * orbit[x][60]);\n orbit[x][47] = (f_47 - 3 * orbit[x][70] - 2 * orbit[x][68] - 1 * orbit[x][66] - 1 * orbit[x][63] - 1 * orbit[x][60]);\n orbit[x][46] = (f_46 - 3 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][65] - 1 * orbit[x][63] - 1 * orbit[x][59]);\n orbit[x][45] = (f_45 - 2 * orbit[x][65] - 2 * orbit[x][62] - 3 * orbit[x][56]);\n orbit[x][44] = (f_44 - 1 * orbit[x][67] - 2 * orbit[x][61]) / 4;\n orbit[x][43] = (f_43 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59]) / 2;\n orbit[x][42] = (f_42 - 2 * orbit[x][71] - 4 * orbit[x][69] - 2 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][55]);\n orbit[x][41] = (f_41 - 2 * orbit[x][71] - 1 * orbit[x][68] - 2 * orbit[x][67] - 1 * orbit[x][60] - 3 * orbit[x][55]);\n orbit[x][40] = (f_40 - 6 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][66] - 4 * orbit[x][65] - 1 * orbit[x][60] - 1 * orbit[x][59] - 4 * orbit[x][54]);\n orbit[x][39] = (f_39 - 4 * orbit[x][65] - 1 * orbit[x][59] - 6 * orbit[x][56]) / 2;\n orbit[x][38] = (f_38 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][63] - 1 * orbit[x][53] - 3 * orbit[x][50]);\n orbit[x][37] = (f_37 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63] - 4 * orbit[x][62] - 1 * orbit[x][53] - 1 * orbit[x][51] - 4 * orbit[x][49]);\n orbit[x][36] = (f_36 - 1 * orbit[x][68] - 2 * orbit[x][63] - 2 * orbit[x][62] - 1 * orbit[x][51] - 3 * orbit[x][50]);\n orbit[x][35] = (f_35 - 1 * orbit[x][59] - 2 * orbit[x][52] - 2 * orbit[x][45]) / 2;\n orbit[x][34] = (f_34 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51]) / 2;\n orbit[x][33] = (f_33 - 1 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][58] - 4 * orbit[x][44] - 2 * orbit[x][42]) / 2;\n orbit[x][32] = (f_32 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][43] - 2 * orbit[x][41] - 1 * orbit[x][40]) / 2;\n orbit[x][31] = (f_31 - 2 * orbit[x][65] - 1 * orbit[x][59] - 3 * orbit[x][56] - 1 * orbit[x][43] - 2 * orbit[x][39]);\n orbit[x][30] = (f_30 - 1 * orbit[x][67] - 1 * orbit[x][63] - 2 * orbit[x][61] - 1 * orbit[x][53] - 4 * orbit[x][44]);\n orbit[x][29] = (f_29 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][60] - 1 * orbit[x][59] - 1 * orbit[x][53] - 2 * orbit[x][52] - 2 * orbit[x][43]);\n orbit[x][28] = (f_28 - 2 * orbit[x][65] - 2 * orbit[x][62] - 1 * orbit[x][59] - 1 * orbit[x][51] - 1 * orbit[x][43]);\n orbit[x][27] = (f_27 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][45]) / 2;\n orbit[x][26] = (f_26 - 2 * orbit[x][67] - 2 * orbit[x][63] - 2 * orbit[x][61] - 6 * orbit[x][58] - 1 * orbit[x][53] - 2 * orbit[x][47] - 2 * orbit[x][42]);\n orbit[x][25] = (f_25 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][52] - 1 * orbit[x][48] - 1 * orbit[x][40]) / 2;\n orbit[x][24] = (f_24 - 4 * orbit[x][65] - 4 * orbit[x][62] - 1 * orbit[x][59] - 6 * orbit[x][56] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][39]);\n orbit[x][23] = (f_23 - 1 * orbit[x][55] - 1 * orbit[x][42] - 2 * orbit[x][33]) / 4;\n orbit[x][22] = (f_22 - 2 * orbit[x][54] - 1 * orbit[x][40] - 1 * orbit[x][39] - 1 * orbit[x][32] - 2 * orbit[x][31]) / 3;\n orbit[x][21] = (f_21 - 3 * orbit[x][55] - 3 * orbit[x][50] - 2 * orbit[x][42] - 2 * orbit[x][38] - 2 * orbit[x][33]);\n orbit[x][20] = (f_20 - 2 * orbit[x][54] - 2 * orbit[x][49] - 1 * orbit[x][40] - 1 * orbit[x][37] - 1 * orbit[x][32]);\n orbit[x][19] = (f_19 - 4 * orbit[x][54] - 4 * orbit[x][49] - 1 * orbit[x][40] - 2 * orbit[x][39] - 1 * orbit[x][37] - 2 * orbit[x][35] - 2 * orbit[x][31]);\n orbit[x][18] = (f_18 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][45] - 2 * orbit[x][36] - 2 * orbit[x][27] - 1 * orbit[x][24]) / 2;\n orbit[x][17] = (f_17 - 1 * orbit[x][60] - 1 * orbit[x][53] - 1 * orbit[x][51] - 1 * orbit[x][48] - 1 * orbit[x][37] - 2 * orbit[x][34] - 2 * orbit[x][30]) / 2;\n orbit[x][16] = (f_16 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][36] - 2 * orbit[x][34] - 1 * orbit[x][29]);\n orbit[x][15] = (f_15 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][35] - 2 * orbit[x][34] - 2 * orbit[x][27]);\n }\n\n return orbit;\n }",
"@Override\r\n\tpublic int carpoollistCount(Criteria cri) throws Exception {\n\t\treturn adminDAO.carpoollistCount(cri);\r\n\t}",
"public int numPartitions() {\n\t\treturn vertex_sets.size();\n\t}",
"public int getNonPrunedCustomerCount() {\n return this.customers.size();\n }",
"Integer getConnectorCount();",
"public double getTotalNodeCount() {\n return this.node.getFullNodeList().values().stream()\n .filter(BaseNode::checkIfConsensusNode).count();\n }",
"public int countNumberClientsTotal() {\n\t\tint counter = 0;\n\t\tfor(int number : numberClients.values())\n\t\t\tcounter += number;\n\t\treturn counter;\n\t}",
"public SME_Cluster[] getClusters();",
"int getInCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"int getGroupCount();",
"public int getNumberOfEntries() ;",
"public static int getNSectors()\n {\n return Disk.NUM_OF_SECTORS - ADisk.REDO_LOG_SECTORS - 1;\n }",
"public int getNumCategories(){\n\n return numCategories;\n }",
"int getReplicationCount();",
"public String getClusterId() {\n return this.ClusterId;\n }",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"int getReplicaCount(Type type);",
"public int numberOfOccorrence();",
"public java.util.List<EinsteinClusterTracker.Cluster> getClusters() {\n return this.clusters;\n }",
"public int getNrOfAssociations() {\n int size = 0;\n for (PriorityCollection associations : memory.values()) {\n size += associations.size();\n }\n return size;\n }",
"int getCellsCount();",
"public int getCertificatesCount() {\n return certificates_.size();\n }",
"public int getCertificatesCount() {\n return certificates_.size();\n }",
"public long getMembershipsCount() {\r\n return membershipsCount;\r\n }",
"int getMaxConcurrentStartup(ClusterSpec clusterSpec);",
"public int numCiudades() {\r\n \r\n return ciudades.size();\r\n }",
"int getIdsCount();",
"int getNumberOfFold();",
"public int getCazuriCount() {\n if (cazuriBuilder_ == null) {\n return cazuri_.size();\n } else {\n return cazuriBuilder_.getCount();\n }\n }",
"long getOwnedEntryCount();",
"int getDocumentCount();",
"int getIndexesCount();",
"public String getClusterId() {\n return clusterId;\n }",
"public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}",
"public String getClusterIdentifier() {\n return this.clusterIdentifier;\n }",
"private int numeroCuentas() {\r\n\t\tint cuentasCreadas = 0;\r\n\t\tfor (Cuenta cuenta : this.cuentas) {\r\n\t\t\tif (cuenta != null) {\r\n\t\t\t\tcuentasCreadas++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cuentasCreadas;\r\n\t}",
"public String getCuredCount() {\n return curedCount;\n }",
"public int getNumCities() {\n \t\treturn cities;\n \t}"
] | [
"0.7939185",
"0.7578518",
"0.72252536",
"0.720382",
"0.7152658",
"0.69423306",
"0.6912965",
"0.69071895",
"0.6824104",
"0.6763971",
"0.67490244",
"0.6660486",
"0.66246986",
"0.66222054",
"0.6500817",
"0.63501513",
"0.63501513",
"0.6253163",
"0.6252704",
"0.6242439",
"0.6194821",
"0.61759233",
"0.61625814",
"0.61625814",
"0.6156744",
"0.61441624",
"0.6134829",
"0.61280704",
"0.611513",
"0.6104896",
"0.6095541",
"0.6061573",
"0.6059467",
"0.6058474",
"0.60480875",
"0.60474163",
"0.60463613",
"0.6045885",
"0.60189",
"0.6015047",
"0.6015047",
"0.60137546",
"0.60112435",
"0.60056543",
"0.6002501",
"0.599763",
"0.59960085",
"0.5991197",
"0.5988807",
"0.59878683",
"0.59849125",
"0.5978993",
"0.59660876",
"0.59634006",
"0.59634006",
"0.5949666",
"0.5947015",
"0.59365124",
"0.59365124",
"0.5918632",
"0.59098154",
"0.59043616",
"0.5900565",
"0.59004956",
"0.58982337",
"0.5891625",
"0.58911884",
"0.58811593",
"0.58802724",
"0.58651435",
"0.5859267",
"0.5858857",
"0.58544016",
"0.58493334",
"0.5848497",
"0.58352566",
"0.583282",
"0.58277595",
"0.5815721",
"0.5796475",
"0.5782219",
"0.5775672",
"0.5771439",
"0.57689375",
"0.57668906",
"0.57668906",
"0.5765841",
"0.5764672",
"0.5760166",
"0.57593936",
"0.57494974",
"0.57477176",
"0.5739486",
"0.57259715",
"0.57242143",
"0.5722591",
"0.5718878",
"0.5718443",
"0.5713035",
"0.5711458",
"0.5708189"
] | 0.0 | -1 |
end Item createItem(String type) | public Registry() {
loadItems();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Item(String name, ItemType type)\n {\n\tthis.name = name;\n\tthis.type = type;\n }",
"void createItem (String name, String description, double price);",
"protected abstract void makeItem();",
"ItemType(String itemCode) {\n code = itemCode;\n }",
"public Item getItem(String typeItem){\r\n if(typeItem.equals(\"coeur\")){\r\n Item coeur = new Coeur();\r\n return coeur;\r\n } else if(typeItem.equals(\"potionvie\")){\r\n Item potion = new Potion();\r\n return potion;\r\n } else if(typeItem.equals(\"hexaforce\")){\r\n Item hexa = new Hexaforce();\r\n return hexa;\r\n } else {\r\n return null;\r\n }\r\n }",
"public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if(lookImplementation == null)\n {\n lookImplementation = new DefaultLook(R.string.default_look);\n }\n\n if(defaultItemInteraction == null)\n {\n throw new IllegalArgumentException(\"No default interaction specified!\");\n }\n\n\n return new Item(\n id,\n name,\n pickUpImplementation,\n lookImplementation,\n useImplementation,\n defaultItemInteraction\n );\n }",
"public ItemStack createItem(ItemType type, int damage,List<Text> lore);",
"QuoteItem createQuoteItem();",
"ListItem createListItem();",
"void createSportItem (String name, String description, double price, String sportType);",
"@Override\n\tpublic Item create() {\n\t\tLOGGER.info(\"Shoe Name\");\n\t\tString item_name = util.getString();\n\t\tLOGGER.info(\"Shoe Size\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Set Price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Number in Stock\");\n\t\tlong stock = util.getLong();\n\t\tItem newItem = itemDAO.create(new Item(item_name, size, price, stock));\n\t\tLOGGER.info(\"\\n\");\n\t\treturn newItem;\n\t}",
"ShipmentItem createShipmentItem();",
"@Override\n public Item createItem(int itemNum, Item item) throws VendingMachinePersistenceException {\n loadItemFile();\n Item newItem = itemMap.put(itemNum, item);\n writeItemFile();\n return newItem;\n }",
"ItemType(String code) {\n this.code = code;\n }",
"ItemType(String code) {\n this.code = code;\n }",
"public void createItem(View view) {\n \t\n String[] temp = getCurrentItemTypes();\n \n Intent intent = new Intent(this, CreateItem.class);\n intent.putExtra(EDIT, \"no\");\n intent.putExtra(TYPES, temp);\n startActivityForResult(intent, 1);\n }",
"@Override\r\n\t\tpublic boolean createItem() {\n\t\t\treturn false;\r\n\t\t}",
"CollectionItem createCollectionItem();",
"protected abstract Item createTestItem1();",
"public boolean add(Type item);",
"private static Object makeItem(final String item){\n return new Object(){\n public String toString() {\n return item;\n }\n };\n }",
"protected abstract Item createTestItem3();",
"protected void addInventoryItemType() {\n\t\tProperties props = new Properties();\n\n\t\t/* DEBUG\n\t\t\n\t\tSystem.out.println(typeNameTF.getText());\n\t\tSystem.out.println(unitsTF.getText());\n\t\tSystem.out.println(unitMeasureTF.getText());\n\t\tSystem.out.println(validityDaysTF.getText());\n\t\tSystem.out.println(reorderPointTF.getText());\n\t\tSystem.out.println(notesTF.getText());\n\t\tSystem.out.println(statusCB.getValue());\n\t\n\t\t*/ \n\n\t\t// Set the values.\n\t\tprops.setProperty(\"ItemTypeName\", typeNameTF.getText());\n\t\tprops.setProperty(\"Units\", unitsTF.getText());\n\t\tprops.setProperty(\"UnitMeasure\", unitMeasureTF.getText());\n\t\tprops.setProperty(\"ValidityDays\", validityDaysTF.getText());\n\t\tprops.setProperty(\"ReorderPoint\", reorderPointTF.getText());\n\t\tprops.setProperty(\"Notes\", notesTF.getText());\n\t\tprops.setProperty(\"Status\", (String) statusCB.getValue());\n\n\t\t// Create the inventory item type.\n\t\tInventoryItemType iit = new InventoryItemType(props);\n\n\t\t// Save it into the database.\n\t\tiit.update();\n\n\t\tpopulateFields();\n\t\t\n\t\t// Display message on GUI.\n\t\t//submitBTN.setVisible(false);\n\t\tcancelBTN.setText(\"Back\");\n\t\tmessageLBL.setText(\"Inventory Item Type added.\");\n\t}",
"public abstract void addItem(AbstractItemAPI item);",
"public @NotNull Item newItem();",
"public void makeTransaction(Item item, String type) {\n\t\tthis.item = item;\n\t\ttransactionType = type;\n\t}",
"@Override\n public ID createItem(@NotNull String uid) {\n final long startNs = myStats != null ? System.nanoTime() : 0;\n final ID result = createItemImpl(uid);\n if (myStats != null) {\n myStats.incrementCounter(StatsCounters.itemsCreationDurationNs, System.nanoTime() - startNs);\n }\n return result;\n }",
"protected abstract Item createTestItem2();",
"public Item(String input) {\n name = input;\n }",
"public Item(String itemName, String itemDescription){\n this.itemName = itemName;\n this.itemDescription = itemDescription;\n}",
"public abstract MapItem createMapItem(Object[] parameters) throws Exception;",
"public static void createItem(String inputCommand) {\r\n\t\tString[] value = inputCommand.split(\" \");\r\n\t\tif(value.length == 4 && \"create\".equalsIgnoreCase(value[0])) {\r\n\t\t\tInventory inventory = new Inventory();\r\n\t\t\tinventory.setItemName(value[1]);\r\n\t\t\tinventory.setItemCostPrice(Double.parseDouble(value[2]));\r\n\t\t\tinventory.setItemSellPrice(Double.parseDouble(value[3]));\r\n\t\t\tinventoryList.put(value[1], inventory);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Entered wrong input command\");\r\n\t\t}\r\n\t}",
"public Item(Car car, Type type) {\n\t\tthis.type = type;\n\t\tthis.car = car;\n\t\tid = 1;\n\t}",
"void add(Item item);",
"public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}",
"public Item() {}",
"protected int createItem() throws Exception {\n\t\tString title = etTitle.getText().toString();\r\n\t\tif (title.length() == 0)\r\n\t\t\tthrow new Exception(\"Invalide name\");\r\n\r\n\t\t// Gets the description\r\n\t\tString description = etDescription.getText().toString();\r\n\r\n\t\t// Gets the start date [not null]\r\n\t\tString strStartDate = tvStartDate.getText().toString();\r\n\t\tif (strStartDate.length() == 0)\r\n\t\t\tthrow new Exception(\"Invalide start date\");\r\n\t\tDate startDate = dateFormatter.parse(strStartDate);\r\n\r\n\t\t// Gets the end date\r\n\t\tString strEndDate = tvEndDate.getText().toString();\r\n\t\tDate endDate = null;\r\n\t\tif (strEndDate.length() != 0)\r\n\t\t\tendDate = dateFormatter.parse(strEndDate);\r\n\r\n\t\t// Gets the start location [not null]\r\n\t\tString startLocation = etStartLocation.getText().toString();\r\n\t\tif (startLocation.length() == 0)\r\n\t\t\tthrow new Exception(\"Invalide location\");\r\n\r\n\t\t// Gets the end location\r\n\t\tString endLocation = etEndLocation.getText().toString();\r\n\t\tif (endLocation.length() == 0)\r\n\t\t\tendLocation = null;\r\n\r\n\t\t// Gets the tag\r\n\t\tString strTag = spTag.getSelectedItem().toString();\r\n\r\n\t\t// set values\r\n\t\ttravelItem.setDescription(description);\r\n\t\ttravelItem.setTitle(title);\r\n\t\ttravelItem.setEndLocation(endLocation);\r\n\t\ttravelItem.setStartLocation(startLocation);\r\n\t\ttravelItem.setStartDate(startDate);\r\n\t\ttravelItem.setEndDate(endDate);\r\n\t\ttravelItem.getTag().setTagType(TagType.valueOf(strTag));\r\n\r\n\t\t// Creates or updates the item\r\n\t\tDao<TravelItem, Integer> itemDao = databaseHelper.getTravelItemDao();\r\n\t\tDao<Tag, Integer> tagDao = databaseHelper.getTagDao();\r\n\r\n\t\tLog.i(LOGTAG, travelItem.toString());\r\n\t\titemDao.createOrUpdate(travelItem);\r\n\t\ttagDao.update(travelItem.getTag());\r\n\r\n\t\treturn travelItem.getId();\r\n\t}",
"public Item createFromParcel(Parcel source) {\n Item item = new Item();\n item.name = source.readString(); \n item.description = source.readString(); \n item.type = source.readString(); \n item.value = source.readString(); \n return item; \n }",
"public ItemStack generateItem(){\n\t\tItemStack item = new ItemStack(material);\n\t\tif(damage >= 0) item.setDurability(damage);\n\t\t\n\t\tif(itemName.isEmpty() && loreLine.isEmpty()) return item;\n\t\t\n\t\tItemMeta meta = item.getItemMeta();\n\t\tif(meta == null) return item;\n\t\t\n\t\tmeta.setDisplayName(itemName);\n\t\tmeta.setLore(Arrays.asList(loreLine));\n\t\titem.setItemMeta(meta);\n\t\t\n\t\treturn item;\n\t}",
"public Item(){}",
"public Item createItem(int i, int x, int y) {\n\t\tswitch (i) {\n\t\tcase 51:\n\t\t\treturn new DoubleJumpItem(i, x, y);\n\t\tcase 102:\n\t\t\treturn new StopTimeItem(i, 5, x, y);\n\t\tcase 53:\n\t\t\treturn new ImmortalItem(i, x, y);\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}",
"public Object create( DataWrapper data) {\n return LoadManager.getItem(data.getString(\"type\"),data.getName());\n }",
"public void create(RecognizedItem item, SketchBook model) {\n }",
"static public ApplicationFormItem createNew(int id, String shortname, boolean required, ApplicationFormItemType type,\n\t\t\t\t\t\t\t\t\t\t\t\tString federationAttribute, String perunSourceAttribute, String perunDestinationAttribute, String regex,\n\t\t\t\t\t\t\t\t\t\t\t\tList<Application.ApplicationType> applicationTypes, Integer ordnum, boolean forDelete)\t{\n\t\tApplicationFormItem afi = new JSONObject().getJavaScriptObject().cast();\n\t\tafi.setId(id);\n\t\tafi.setShortname(shortname);\n\t\tafi.setRequired(required);\n\t\tafi.setType(type);\n\t\tafi.setFederationAttribute(federationAttribute);\n\t\tafi.setPerunSourceAttribute(perunSourceAttribute);\n\t\tafi.setPerunDestinationAttribute(perunDestinationAttribute);\n\t\tafi.setRegex(regex);\n\t\tafi.setApplicationTypes(applicationTypes);\n\t\tafi.setOrdnum(ordnum);\n\t\tafi.setForDelete(forDelete);\n\t\treturn afi;}",
"private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}",
"public static ItemStack item(XMaterial type, String name, String... lore) {\r\n\t\tItemStack is = type.parseItem();\r\n\t\tItemMeta im = is.getItemMeta();\r\n\t\tim.addItemFlags(ItemFlag.values());\r\n\t\tis.setItemMeta(applyMeta(im, name, lore));\r\n\t\treturn is;\r\n\t}",
"public static Item create(long itemId) {\n\t\treturn getPersistence().create(itemId);\n\t}",
"@Override\n public int getItemType() {\n return ITEM_TYPE;\n }",
"public void createItem(\tString upc, String title, ITEM_TYPE type, \n\n\t\t\tGENRE category, String company, String year, \n\n\t\t\tint price_incent, int initStk)\n\n\t\t\t\t\tthrows SQLException, ClassNotFoundException, IOException\n\n\t\t\t\t\t{\n\n\t\tif(this.conn == null)\n\n\t\t\tthis.conn = JDBCConnection.getConnection();\n\n\n\n\n\n\n\n\n\t\tPreparedStatement stmt = conn.prepareStatement(\n\n\t\t\t\t\"INSERT INTO Item \" +\n\n\t\t\t\t\"VALUES(?, ?, ?, ?, ?, ?, ?, ?)\");\n\n\t\tstmt.setString(1, upc);\n\n\t\tstmt.setString(2, title);\n\n\t\tstmt.setString(3, Item.translateType(type));\n\n\t\tstmt.setString(4, Item.translateGenre(category));\n\n\t\tstmt.setString(5, company);\n\n\t\tstmt.setString(6, year);\n\n\t\tstmt.setDouble(7, (double)price_incent / 100.0);//TODO setDouble/setFloat?\n\n\t\tstmt.setInt(8, initStk);\n\n\n\n\t\ttry\n\n\t\t{\n\n\t\t\tint count = stmt.executeUpdate();\n\n\t\t}\n\n\t\tfinally\n\n\t\t{\n\n\t\t\tstmt.close();\n\n\t\t}\n\n\t\t\t\t\t}",
"public void setItemType(String itemType) {\n\t\tthis.itemType = itemType;\n\t}",
"@Test\n\tpublic void createItemNotEqual() {\n\t\tItem item = new Item().createItemFromItemName(\"lamp_woonkamer\");\n\t\tSystem.out.println(item);\n\t\tassertNotEquals(new Item(), item);\n\t}",
"public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }",
"public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }",
"@Override\n public Optional<FridgeItemEntity> addItem(String fridgeId, String itemId, String itemType) {\n return Optional.empty();\n }",
"private Item(){}",
"public Item convertToItem(Object value, XQItemType type) throws XQException;",
"@Override\n\tpublic boolean create(Item obj) {\n\t\ttry{\n\t\t\tString query=\"INSERT INTO items(title, start_date, end_date, type) VALUES(?,?,?,?)\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n\t\t\tstate.setString(1, obj.getTitle());\n\t\t\tstate.setDate(2, obj.getStartDate());\n\t\t\tstate.setDate(3, obj.getEndDate());\n\t\t\tstate.setInt(4, obj.getItemType().getIndex());\n\t\t\t\n\t\t\t// Run the query\n\t\t\tstate.executeUpdate();\n\t\t\t\n\t\t\t// Update of the index (should be 0 up to this point)\n\t\t\tResultSet genKey = state.getGeneratedKeys();\n\t\t\tif (genKey.next()){\n\t\t\t\tobj.setIndex(genKey.getInt(1));\n\t\t\t};\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.create -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public Item() \r\n\t{\r\n\t\tname = \"AbstractItem\";\r\n\t\tdescription = \"Example Item Generated\";\r\n\t\tprice = 0;\r\n\t}",
"public static ItemStack item(XMaterial type, String name, List<String> lore) {\r\n\t\tItemStack is = type.parseItem();\r\n\t\tItemMeta im = is.getItemMeta();\r\n\t\tim.addItemFlags(ItemFlag.values());\r\n\t\tis.setItemMeta(applyMeta(im, name, lore));\r\n\t\treturn is;\r\n\t}",
"private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }",
"public static ImageItem createItem(CustomValue tile) {\n\t\tswitch(tile.getValueKind()) {\r\n\t\tcase INTEGER:\r\n\t\t\treturn createItem((CustomInteger)tile);\r\n\t\t\t\r\n\t\t\r\n\t\tcase BOOLEAN:\r\n\t\t\treturn createItem((CustomBoolean)tile);\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public ItemRecord() {\n super(Item.ITEM);\n }",
"public static Item createItemFromJSON(final JSONObject itemJson) throws JSONException {\n\t\tif (itemJson.getString(\"type\").equals(\"variable\")) {\n\t\t\treturn Helper.createVariableFromJSON(itemJson);\n\t\t} else {\n\t\t\treturn Helper.createLiteralFromJSON(itemJson);\n\t\t}\n\t}",
"public Item(String description) {\n this.description = description;\n }",
"void addItem(DataRecord record);",
"@Override\n\tprotected DataTypes getDataType() {\n\t\treturn DataTypes.ITEM;\n\t}",
"@Override\r\n\t\r\n\t protected OverlayItem createItem(int index) {\n\t\treturn lstItems.get(index);\r\n\t\r\n\t }",
"public Item_Record() {\n super(Item_.ITEM_);\n }",
"public Source(String name, String description, String story, double mass, \n String itemtype, String itemname, String itemdescription, String itemstory, \n double itemmass, double itemnutrition) \n {\n super(name, description, story, mass);\n this.itemtype = itemtype;\n \n this.itemname = itemname;\n this.itemdescription = itemdescription;\n this.itemstory = itemstory; \n this.itemmass = itemmass;\n this.itemnutrition = itemnutrition;\n \n //creates item of the type itemtype, which is specified upon creation of the source\n if(itemtype.equals(\"Drink\")) {new Drink(itemname, itemdescription, itemstory, itemmass, itemnutrition);}\n else if(itemtype.equals(\"Food\")) {new Food (itemname, itemdescription, itemstory, itemmass, itemnutrition);}\n else if(itemtype.equals(\"Item\")) {item = new Item (itemname, itemdescription, itemstory, itemmass);} \n }",
"public static ImageItem createItem(Generator tile) {\n\t\tswitch(tile.getGeneratorKind()) {\r\n\t\tcase Value:\r\n\t\t\treturn new ValueGeneratorItem((ValueGenerator) tile);\r\n\t\t\r\n\t\tcase Text:\r\n\t\t\treturn new TextGeneratorItem((TextGenerator) tile);\r\n\t\tcase Event:\r\n\t\t\treturn new ModifierGeneratorItem((ModifierGenerator) tile);\r\n\t\t\r\n\t\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Item createNew(int xpos, int ypos) {\r\n Item i = new Item(name, id);\r\n i.setPosition(xpos, ypos);\r\n return i;\r\n }",
"public static void createItem() {\n //Initializing an item and putting it in a room airport\n itemLocation.addItem(airport, new PickableItem(\"Bottle\", \"This is a bottle that have been left behind by someone\", 2, false));\n itemLocation.addItem(airport, new PickableItem(\"Boardingpass\", \"This is a boardingpass to get on the plane to Hawaii: 126AB\", 1, false));\n\n //Initializing an item and putting it in a room beach\n itemLocation.addItem(beach, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash \", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(beach, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n itemLocation.addItem(beach, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room jungle\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(jungle, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room mountain\n itemLocation.addItem(mountain, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(mountain, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n itemLocation.addItem(mountain, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n\n //Initializing an item and putting it in a room cave\n itemLocation.addItem(cave, new PickableItem(\"Shroom\", \"these shrooms look suspecius, but maybe the can be\", 1, true));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Waterbottle\", \"This is freshwater found in the jungle, maybe you can drink it\", 2, true));\n itemLocation.addItem(cave, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room camp\n itemLocation.addItem(camp, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(camp, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(camp, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n\n //Initializing an item and putting it in a room seaBottom\n itemLocation.addItem(seaBottom, new PickableItem(\"Backpack\", \"This is a backpack from the plane crash maybe you can use it to carry more items \", 0, false));\n itemLocation.addItem(seaBottom, new PickableItem(\"WaterBottle\", \"This is a water bottle from the plan crash \", 1, true));\n itemLocation.addItem(seaBottom, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash\", 2, false));\n }",
"public ItemInfo () {}",
"public void addItem() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter Item Name: \");\n\t\tString itemName = scanner.nextLine();\n\t\tSystem.out.print(\"Enter Item Description: \");\n\t\tString itemDescription = scanner.nextLine();\n\t\tSystem.out.print(\"Enter minimum bid price for item: $\");\n\t\tdouble basePrice = scanner.nextDouble();\n\t\tLocalDate createDate = LocalDate.now();\n\t\tItem item = new Item(itemName, itemDescription, basePrice, createDate);\n\t\taddItem(item);\n\t}",
"@Test\n\tpublic void createItemEqual() {\n\t\tItem item = new Item().createItemFromItemName(\"lamp\");\n\t\tSystem.out.println(item);\n\t\tassertEquals(new Item(), item);\n\t}",
"public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}",
"public static ItemStack createItem(String customName, Material material, String ID) {\r\n ItemStack is = new ItemStack(material);\r\n ItemMeta isMeta = is.getItemMeta();\r\n isMeta.setDisplayName(customName); //you can even set color\r\n ArrayList<String> lore = new ArrayList<>();\r\n lore.add(ID);\r\n isMeta.setLore(lore);\r\n is.setItemMeta(isMeta);\r\n return is;\r\n }",
"private Item getNewItem(String gtin) throws IOException {\n\n\t\tlog.info(\"Getting Item with Barcode: \" + gtin);\n\t\tGson gson = new Gson();\n\t\tURL url = new URL(\"https://api.outpan.com/v2/products/\" + gtin + \"?apikey=e13a9fb0bda8684d72bc3dba1b16ae1e\");\n\n\t\tStringBuilder temp = new StringBuilder();\n\t\tScanner scanner = new Scanner(url.openStream());\n\n\t\twhile (scanner.hasNext()) {\n\t\t\ttemp.append(scanner.nextLine());\n\t\t}\n\t\tscanner.close();\n\n\t\tItem item = new Item(gson.fromJson(temp.toString(), Item.class));\n\t\t\n\t\tif (item.name != null) {\n\t\t\treturn item;\n\t\t} else {\n\t\t\tthrow new NoNameForProductException();\n\t\t}\n\t}",
"@Override\n public Item create(Context context, WorkspaceItem workspaceItem) throws SQLException, AuthorizeException\n {\n if(workspaceItem.getItem() != null)\n {\n throw new IllegalArgumentException(\"Attempting to create an item for a workspace item that already contains an item\");\n }\n\n Item item = createItem(context);\n workspaceItem.setItem(item);\n return item;\n }",
"private Object createObjectFromAttName(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getName();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getName());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getName());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getName());\n \t\t}\n \t\t// outta here\n \t\treturn null;\n \t}",
"public Item_Record(Integer _Id_, String name_, String description_, String code_, Double price_, Double retailPrice_, Double costPrice_, Object _Search_, String[] _Types_, String _LastModified_, Integer _Version_) {\n super(Item_.ITEM_);\n\n set(0, _Id_);\n set(1, name_);\n set(2, description_);\n set(3, code_);\n set(4, price_);\n set(5, retailPrice_);\n set(6, costPrice_);\n set(7, _Search_);\n set(8, _Types_);\n set(9, _LastModified_);\n set(10, _Version_);\n }",
"public long insertItem(String type, String imagePath) {\r\n\t\ttry {\r\n\t\t\tContentValues values = new ContentValues();\r\n\t\t\tvalues.put(SkyleConstants.ITEMS_TYPE, type);\r\n\t\t\tvalues.put(SkyleConstants.ITEMS_PATH, imagePath);\r\n\t\t\tvalues.put(SkyleConstants.DATE_NAME, java.lang.System.currentTimeMillis());\r\n\t\t\treturn db.insert(SkyleConstants.TABLE_ITEMS, null, values); // tukaj se dobi ID\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(TAG, \"insert item ex: \"+e);\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}",
"public int addItem(Item i);",
"<C> CollectionItem<C> createCollectionItem();",
"void addCpItem(ICpItem item);",
"<U extends T> U create(String name, Class<U> type) throws InvalidUserDataException;",
"public NewItems() {\n super();\n }",
"TitleType createTitleType();",
"@attribute(value = \"\", required = false)\r\n\tpublic void addItem(Item i) {\r\n\t}",
"IEquipableItem createDefault();",
"@Override\n public void addItem(P_CK t) {\n \n }",
"public GItem(Item i) {\n this.mGItem = i.getId();\n this.title = i.getTitle();\n\n if (!i.getAddress().equals(\"\")){\n this.address = i.getAddress();\n }\n\n if (i instanceof OfficerItem){\n this.type = 1;\n\n } else if (i instanceof CompanyItem){\n this.type = 0;\n }\n\n }",
"@JsonIgnore\n @Override\n public Item createDynamoDbItem() {\n return new Item()\n .withPrimaryKey(\"widgetId\", this.getWidgetId())\n .with(\"widgetJSONString\", WidgetSerializer.serialize(this));\n }",
"public Item(String name, double price, int quantity, String type) {\n\t\t\tsuper();\n\t\t\tthis.name = name;\n\t\t\tthis.price = price;\n\t\t\tthis.quantity = quantity;\n\t\t\tthis.type = type;\n\t\t\tdouble cost = this.price*this.quantity;\n\t\t\tif(this.type.equals(\"raw\")) {\n\t\t\t\tthis.tax = cost*0.125;\n\t\t\t\tthis.total = this.tax + cost;\n\t\t\t}\n\t\t\telse if(this.type.equals(\"manufactured\")) {\n\t\t\t\tthis.tax = cost*0.125;\n\t\t\t\tthis.tax = this.tax + (this.tax + cost)*0.02;\n\t\t\t\tthis.total = this.tax + cost;\n\t\t\t}\n\t\t\telse if(this.type.equals(\"imported\")) {\n\t\t\t\tthis.tax = cost*0.10;\n\t\t\t\tthis.total = this.tax + cost;\n\t\t\t\tif(this.total <= 100.0) {\n\t\t\t\t\tthis.tax = this.tax + 5;\n\t\t\t\t}\n\t\t\t\telse if(this.total <= 200) {\n\t\t\t\t\tthis.tax = this.tax + 10;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.tax = this.tax + this.total*0.05;\n\t\t\t\t}\n\t\t\t\tthis.total = this.tax + cost;\n\t\t\t}\n\t\t}",
"public @NotNull Item newItem(@NotNull @Size(min = 1, max = 255) final String name,\r\n\t\t\t@NotNull @Size(min = 1, max = 255) final String description, @NotNull final Category category);",
"String createListItem(String list, int accountId);",
"public void createOrderItem() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tRestaurantApp.globalMenuManager.printMenu(); //create a globalmenuManager so that other classes can access the menu\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Which item would you like to order?\");\r\n\t\t\tint menuIndex = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif (menuIndex <= 0 || menuIndex > RestaurantApp.globalMenuManager.getSizeOfMenu()){\r\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Please input a valid index from 1 to \"+RestaurantApp.globalMenuManager.getSizeOfMenu());\r\n\t\t\t}\r\n\t\t\tthis.menuItem = RestaurantApp.globalMenuManager.getMenuItem(menuIndex-1);\r\n\t\t\tSystem.out.println(\"How many of this are you ordering?\");\r\n\t\t\tthis.quantity = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tSystem.out.println(\"Order item added. printing details...\");\r\n\t\t\tthis.printOrderItem();\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(e.getMessage()); \r\n\t\t\tSystem.out.println(\"program exiting ...\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"public Item() {\n }",
"public Item() {\n }",
"public interface Item {\n \n /**\n * Returns the name of the item\n * @return \n */\n public String getName();\n \n /**\n * Returns the price of the item\n * @return \n */\n public double getPrice();\n \n /**\n * Returns the # of the items\n * @return \n */\n public int getQuantity();\n /**\n * Returns the item type\n * @return ItemCategory\n */\n public ItemCategory getCategory();\n}",
"public Item(int id, String name, String description, ItemType type, double weight, boolean isPickupable, boolean isDropable) {\r\n\t\tthis.id = id;\r\n\t\tthis.name = name;\r\n\t\tthis.description = description;\r\n\t\tthis.type = type;\r\n\t\tthis.pickupable = isPickupable;\r\n\t\tthis.dropable = isDropable;\r\n\t\tthis.weight = weight;\r\n\t\tthis.usable = null;\r\n\t}"
] | [
"0.74889183",
"0.74304515",
"0.73897463",
"0.7254247",
"0.7222338",
"0.71574444",
"0.70594865",
"0.70084774",
"0.7002719",
"0.6900186",
"0.68882185",
"0.6857278",
"0.6854874",
"0.68323946",
"0.68323946",
"0.6820762",
"0.6729604",
"0.67050254",
"0.6651645",
"0.6630842",
"0.6596239",
"0.65830487",
"0.65533787",
"0.6545756",
"0.65322924",
"0.6517287",
"0.6498096",
"0.6491408",
"0.6482351",
"0.6467125",
"0.64410937",
"0.63919926",
"0.6385358",
"0.6357001",
"0.63545746",
"0.63420326",
"0.6330457",
"0.6286355",
"0.62741196",
"0.62562853",
"0.62514037",
"0.62423486",
"0.6225151",
"0.62162477",
"0.6207508",
"0.6200502",
"0.61888444",
"0.6167381",
"0.61644155",
"0.6162617",
"0.6156859",
"0.61539334",
"0.61533946",
"0.6141549",
"0.6138334",
"0.6135558",
"0.6123498",
"0.61218655",
"0.611596",
"0.6112985",
"0.6106576",
"0.6098747",
"0.60913503",
"0.60633653",
"0.604871",
"0.60365385",
"0.6023591",
"0.60175496",
"0.6013882",
"0.6009592",
"0.60077435",
"0.5991767",
"0.5986929",
"0.5975074",
"0.5968338",
"0.5965828",
"0.5946772",
"0.594519",
"0.5939152",
"0.5933882",
"0.5932064",
"0.5932005",
"0.5924726",
"0.59230185",
"0.59188265",
"0.5917505",
"0.5908186",
"0.5897048",
"0.5895758",
"0.5895721",
"0.589553",
"0.5882582",
"0.58759713",
"0.5871766",
"0.58695775",
"0.5864746",
"0.58429253",
"0.5836682",
"0.5836682",
"0.5828625",
"0.5823597"
] | 0.0 | -1 |
Calculate how many words have that given value | public int[] numSmallerByFrequency(String[] queries, String[] words) {
int[] fsWords = new int[11], queryResults = new int[queries.length];
for (int i = 0; i < queries.length; i++) queryResults[i] = fs(queries[i]);
for (int i = 0; i < words.length; i++) fsWords[fs(words[i])]++;
// Iterate all the results to get how many words have the bigger number
// Given the relation is <, we only need to account for the ones that have a bigger result
int tmp;
for (int i = 0; i < queries.length; i++) {
// Store the target value
tmp = queryResults[i];
// Update the results
queryResults[i] = 0;
for (int j = tmp + 1; j < fsWords.length; j++) queryResults[i] += fsWords[j];
}
return queryResults;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int count(String word);",
"public int count(){\r\n\t\tint sum = 0;\r\n for(Integer value: words.values()){\r\n sum += value;\r\n }\r\n return sum;\r\n\t}",
"int totalWords();",
"int count(String s) {\r\n\t\tif (m_words.containsKey(s)) {\r\n\t\t\treturn m_words.get(s);\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"private double countWordFrequencyScore(Page page, String[] queryWords) {\n double score = 0;\n for (String word : queryWords) {\n int wordId = this.pb.getIdForWord(word);\n for (double pageWordId : page.getWords()) {\n if (wordId == pageWordId) score++;\n }\n }\n\n return score;\n }",
"int countByExample(WdWordDictExample example);",
"public Map<String, Integer> countWordsComputeIfPresent(String passage, String... strings) {\n\n Map<String, Integer> wordCounts = new HashMap<>();\n Arrays.stream(strings).forEach(s -> wordCounts.put(s, 0));\n Arrays.stream(passage.split(\" \")).forEach(word ->\n wordCounts.computeIfPresent(word, (key, val) -> val + 1));//word,\n return wordCounts;\n\n }",
"public int getNumWords() {\n // TODO: count the number of distinct words,\n // ie. the number of non-null counter objects.\n int count = 0;\n for (int i = 0; i < counters.length; i++){\n if (counters[i] != null) {\n count++;\n }\n }\n return count;\n }",
"public double getCount(String word1, String word2) {\n double count = 0;\n // YOUR CODE HERE\n if (KnownWord(word1) && KnownWord(word2)) {\n count = bi_grams[NDTokens.indexOf(word1)][NDTokens.indexOf(word2)];\n } else {\n count = smooth ? 1 : 0;\n }\n return count;\n }",
"private int numEnglishWords(String str) {\n int numWords = 0;\n String[] strings = str.split(\" \");\n for (String word : strings) {\n if (english.contains(word)) {\n numWords ++;\n }\n }\n return numWords;\n }",
"public int countOfKnownWord() {\n\t\tint count = 0;\t\t\n\t\ttry {\n \t\t\tClass.forName(DRIVER);\n \t\t} catch (ClassNotFoundException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t}\t\t\n\t\ttry ( Connection con = DriverManager.getConnection(URL, USER, PW)) {\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tString sql;\n\t\t\tsql = \"SELECT count(*) countWordLevel from \" + tbl_USER_DIC + \" WHERE \" + Constants.FLD_KNOW + \" = \" + Constants.WORD_KNOWN + \";\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\tcount = rs.getInt(\"countWordLevel\");\n\t\t\t}\n\t\t\t\n\t stmt.close();\n\t con.close();\n\t\t} catch(Exception e) {\n\t\t\tlogger.info(\"fail to open mysql\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn count;\t\n\t}",
"public int cardinality() {\n\t\tint counter = 0;\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\twhile (i.hasNext()) {\n\t\t\tRunningLengthWord localrlw = i.next();\n\t\t\tif (localrlw.getRunningBit()) {\n\t\t\t\tcounter += wordinbits * localrlw.getRunningLength();\n\t\t\t}\n\t\t\tfor (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n\t\t\t\tcounter += Long.bitCount(i.buffer()[i.dirtyWords() + j]);\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public static int countWords(String word, ArrayList<String> s){\n\t\tint n = 0;\n\t\tfor(String w : s){\n\t\t\tif(w.equals(word)){\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\t\treturn n;\n\t}",
"public int getNumWords() {\n return wordMap.get(\"TOTAL_WORDS\").intValue();\n }",
"public int countOccurrences(String word) {\n\t\tint i = 0;\n\t\tfor (int j = 0; j < wordList.size(); j++) {\n\t\t\tif (wordList.get(j).equals(word)) {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\treturn i;\n\t\t// TODO Add your code here\n\t}",
"private void getWordCounts() {\n Map<String, List<String>> uniqueWordsInClass = new HashMap<>();\n List<String> uniqueWords = new ArrayList<>();\n\n for (ClassificationClass classificationClass : classificationClasses) {\n uniqueWordsInClass.put(classificationClass.getName(), new ArrayList<>());\n }\n\n for (Document document : documents) {\n String[] terms = document.getContent().split(\" \");\n\n for (String term : terms) {\n if (term.isEmpty()) {\n continue;\n }\n if (!uniqueWords.contains(term)) {\n uniqueWords.add(term);\n }\n\n for (ClassificationClass docClass : document.getClassificationClasses()) {\n if (!uniqueWordsInClass.get(docClass.getName()).contains(term)) {\n uniqueWordsInClass.get(docClass.getName()).add(term);\n }\n if (totalWordsInClass.containsKey(docClass.getName())) {\n this.totalWordsInClass.put(docClass.getName(), this.totalWordsInClass.get(docClass.getName()) + document.getFeatures().get(term));\n } else {\n this.totalWordsInClass.put(docClass.getName(), document.getFeatures().get(term));\n }\n }\n }\n }\n\n this.totalUniqueWords = uniqueWords.size();\n }",
"public int scoreOf(String word) {\n int len = word.length();\n if (!contains(word) || len <= 2) return 0;\n else if (len == 3 || len == 4) return 1;\n else if (len == 5) return 2;\n else if (len == 6) return 3;\n else if (len == 7) return 5;\n return 11;\n }",
"public int numWords(int length) {\r\n int numOfLength = 0;\r\n \r\n //Check amt. of words in this dictionary that are == to length input\r\n \tfor (int word = 0; word < dictionary.size(); word++) {\r\n \tif (dictionary.get(word).length() == length)\r\n \t\tnumOfLength++;\r\n }\r\n \treturn numOfLength;\r\n }",
"int getGrammarMatchCount();",
"public int scoreOf(String word) {\n\t\tString noU = stripU(word);\n\t\treturn tst.contains(noU) ? tst.get(noU) : 0;\n\t}",
"public int count( String hotWord ){\r\n String x = hotWord.toLowerCase();\r\n //If the word is a hotword then get the count and return it\r\n if(words.containsKey(x)){\r\n return words.get(x);\r\n }\r\n //If not, then return -1\r\n else{\r\n return -1;\r\n }\r\n\t}",
"public int numWordsOfLength(int len){\n int n=0;\n for(int i=0;i<size();i++)\n if(get(i).length()==len)n++;\n return n;\n }",
"static int countOccurrences(String str, String word) \r\n\t\t{\n\t\t String a[] = str.split(\" \");\r\n\t\t \r\n\t\t // search for pattern in a\r\n\t\t int count = 0;\r\n\t\t for (int i = 0; i < a.length; i++) \r\n\t\t {\r\n\t\t // if match found increase count\r\n\t\t if (word.equals(a[i]))\r\n\t\t count++;\r\n\t\t }\r\n\t\t \r\n\t\t return count;\r\n\t\t}",
"public int getWordCount() {\n\t\treturn 10;\n\t}",
"public int size(String word) {\n\t\treturn contains(word) ? invertedIndex.get(word).size() : 0;\n\t}",
"long countByExample(WordSchoolExample example);",
"private int countVals( String val )\r\n\t{\r\n\t\treturn 0;\r\n\t}",
"public int countOfUnknownWord() {\n\t\tint count = 0;\t\t\n\t\ttry {\n \t\t\tClass.forName(DRIVER);\n \t\t} catch (ClassNotFoundException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t}\t\t\n\t\ttry ( Connection con = DriverManager.getConnection(URL, USER, PW)) {\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tString sql;\n\t\t\tsql = \"SELECT count(*) countWordLevel from \" + tbl_USER_DIC + \" WHERE \" + Constants.FLD_KNOW + \" = \" + Constants.WORD_UNKNOWN + \";\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\tcount = rs.getInt(\"countWordLevel\");\n\t\t\t}\n\t\t\t\n\t stmt.close();\n\t con.close();\n\t\t} catch(Exception e) {\n\t\t\tlogger.info(\"fail to open mysql\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn count;\t\n\t}",
"@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }",
"public int getWordsQuantity(){\n\t\treturn counter;\n\t}",
"public int getCount(String word) {\n // TODO: pattern this after the count() function.\n // Make sure to return 0 for words you haven't seen before.\n if(word.equals(\"\")){\n return(0);\n }\n\n for (int i=0; i < counters.length; i++) {\n if (counters[i] != null) {\n if (counters[i].wordMatches(word)) {\n return (counters[i].getCount());\n }\n }\n }\n return(0);\n }",
"public int numWords(int length) {\r\n return 0;\r\n }",
"int getWordCount() {\r\n return entrySet.size();\r\n }",
"public int numMatches() {\n int count = 0;\n for (WordPair pair : allPairs) {\n if (pair.getFirst() == pair.getSecond())\n count++;\n }\n return count;\n }",
"int getStrValuesCount();",
"private double countWordLocationScore(Page page, String[] queryWords) {\n double score = 0;\n boolean wasFound = false;\n\n for (String word : queryWords) {\n int queryWordId = this.pb.getIdForWord(word);\n for (int i = 0; i < page.getWords().size(); i++) {\n if (page.getWords().get(i) == queryWordId) {\n score += i;\n wasFound = true;\n break;\n }\n }\n\n if (!wasFound) {\n score += 100000;\n } else {\n wasFound = false;\n }\n }\n return score;\n }",
"public int scoreOf(String word) {\n if (dictionary.contains(word)) {\n switch (word.length()) {\n case 0:\n case 1:\n case 2:\n return 0;\n case 3:\n case 4:\n return 1;\n case 5:\n return 2;\n case 6:\n return 3;\n case 7:\n return 5;\n default:\n return 11;\n }\n } else {\n return 0;\n }\n }",
"public static int countWords(final List<String> tokens) {\n\tint nWords = 0;\n\n\tfor (final String token : tokens) {\n\t if (!StringUtils.isComposedOf(token, ALL_DELIMS)) {\n\t\tnWords++;\n\t }\n\t}\n\n\treturn nWords;\n }",
"private static int countSyllables(String word) {\r\n\t\tint count = 0;\r\n\t\tword = word.toLowerCase();\r\n\r\n\t\tif (word.length()>0 && word.charAt(word.length() - 1) == 'e') {\r\n\t\t\tif (silente(word)) {\r\n\t\t\t\tString newword = word.substring(0, word.length()-1);\r\n\t\t\t\tcount = count + countit(newword);\r\n\t\t\t} else {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcount = count + countit(word);\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' ||\n word.charAt(i) == 'i' ||\n word.charAt(i) == 'u' ||\n word.charAt(i) == 'e' ||\n word.charAt(i) == 'o') {\n jumlah_vokal++;\n }\n }\n return jumlah_vokal;\n }",
"public static int countWords(String text) throws UIMAException { \n JCas jCas = JCasFactory.createJCas();\n jCas.setDocumentText(text);\n jCas.setDocumentLanguage(\"en\");\n initEngines();\n\n runPipeline(jCas, segmenter); \n \n int cnt = 0; \n for (Token tok : select(jCas, Token.class)) {\n String token = tok.getCoveredText();\n if (token.matches(\"\\\\p{Alpha}*\")) cnt++;\n }\n \n return cnt;\n }",
"@Test\n public void countNumberOfWords() {\n final long count = 0; //TODO\n\n assertEquals(20, count);\n }",
"public Map<String, Integer> wordCount(String[] strings) {\n Map <String, Integer> map = new HashMap();\n int counter = 1;\n for (String s: strings){\n if (map.containsKey(s)){\n counter = map.get(s);\n map.put(s, counter + 1);\n }else{\n counter = 1;\n map.put(s, counter);\n }\n }\n return map;\n}",
"public int getWordCount() {\n return totalWords;\n }",
"public int size(){\n return words.size();\n }",
"public int getWordCount(){\r\n\t\treturn wordCount;\r\n\t}",
"public int getTotalUniqueWords() {\n return totalUniqueWords;\n }",
"public int numberOfOccorrence();",
"public int numWords(int length) {\r\n \tint num = 0;\r\n \tfor (String s : words) {\r\n \t\tif (s.length() == length) {\r\n \t\t\tnum++;\r\n \t\t}\r\n \t}\r\n return num;\r\n }",
"public static int getNumWords( List<String> words ) {\n if ( words != null && ! words.isEmpty() ) \n return words.size();\n else \n return 0;\n }",
"private static Map<String, Integer> getWords(){\n\t\tMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor(Status status : statusList){\n\t\t\tStringTokenizer tokens = new StringTokenizer(status.getText());\n\t\t\twhile(tokens.hasMoreTokens()){\n\t\t\t\tString token = tokens.nextToken();\n\t\t\t\tif(!token.equals(\"RT\")){\n\t\t\t\t\tif(map.containsKey(token)){\n\t\t\t\t\t\tint count = map.get(token);\n\t\t\t\t\t\tmap.put(token, ++count);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(token, 1);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn map;\n\t}",
"static int countingValleys(int n, String s) {\n int valleyCounter =0;\n byte vorm = 0;\n int curLevel=0;\n for(int i=0;i<s.length();i++){\n String cur = s.substring(i,i+1);\n int posNeg = cur.equals(\"U\")?1:-1;\n curLevel+=posNeg;\n if(curLevel == -1 && posNeg == -1){\n valleyCounter++;\n }\n }\n return valleyCounter;\n }",
"public int getWordLength();",
"private int scoreFor(String keyword) {\n return keyword.length();\n }",
"private int getNumMatches(String word1, String word2) {\n int count = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) == word2.charAt(i)) {\n count++;\n }\n }\n \n return count;\n }",
"public void countWords(Stream<String> strStream) {\n\t\tOptional<Long> num = strStream.map((String x) -> (1L)).reduce((Long y, Long z) -> Math.addExact(y, z));\r\n\t\tnum.ifPresent(System.out::println);\r\n\t\t//Collectors.toList();\r\n\t\t\r\n\r\n\t}",
"public void countWord() {\n\t\tiniStorage();\n\t\tWordTokenizer token = new WordTokenizer(\"models/jvnsensegmenter\",\n\t\t\t\t\"data\", true);\n\t\t// String example =\n\t\t// \"Nếu bạn đang tìm kiếm một chiếc điện thoại Android? Đây là, những smartphone đáng để bạn cân nhắc nhất. Thử linh tinh!\";\n\t\t// token.setString(example);\n\t\t// System.out.println(token.getString());\n\n\t\tSet<Map.Entry<String, String>> crawlData = getCrawlData().entrySet();\n\t\tIterator<Map.Entry<String, String>> i = crawlData.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry<String, String> pageContent = i.next();\n\t\t\tSystem.out.println(pageContent.getKey());\n\t\t\tPageData pageData = gson.fromJson(pageContent.getValue(),\n\t\t\t\t\tPageData.class);\n\t\t\ttoken.setString(pageData.getContent().toUpperCase());\n\t\t\tString wordSegment = token.getString();\n\t\t\tString[] listWord = wordSegment.split(\" \");\n\t\t\tfor (String word : listWord) {\n\t\t\t\taddToDictionary(word, 1);\n\t\t\t\tDate date;\n\t\t\t\ttry {\n\t\t\t\t\tdate = simpleDateFormat.parse(pageData.getTime().substring(\n\t\t\t\t\t\t\t0, 10));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\taddToStatByDay(date, word, 1);\n\t\t\t}\n\t\t}\n\t}",
"public int expressiveWords(String S, String[] words) {\n if (S == null || S.length() == 0) return 0;\n RLE base = new RLE(S);\n int ans = 0;\n for (String w : words) {\n RLE current = new RLE(w);\n if (base.chars.size() != current.chars.size()) continue;\n boolean canExtend = true;\n for (int i = 0; i < base.chars.size(); i++) {\n if (base.chars.get(i) != current.chars.get(i)) {\n canExtend = false;\n break;\n }\n int bc = base.counts.get(i);\n int cc = current.counts.get(i);\n //base count <= 2 , or base count > 2\n if ((bc <= 2 && bc != cc) || (bc > 2 && cc > bc)) {\n canExtend = false;\n break;\n }\n }\n if (canExtend) ans++;\n }\n return ans;\n }",
"private static int num_konsonan(String word) {\n int i;\n int jumlah_konsonan = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) != 'a' &&\n word.charAt(i) != 'i' &&\n word.charAt(i) != 'u' &&\n word.charAt(i) != 'e' &&\n word.charAt(i) != 'o') {\n jumlah_konsonan++;\n }\n }\n return jumlah_konsonan;\n }",
"public void testCountWordLengths() {\n FileResource fr = new FileResource(\"data/smallHamlet.txt\");\n int[] counts = new int[31];\n countWordLengths(fr, counts);\n }",
"public Map<String, Integer> wordCount(String[] strings) {\n\n\n Map<String, Integer> mojaMapa = new HashMap<String, Integer>();\n\n for (String element : strings) {\n if (mojaMapa.containsKey(element)) {\n Integer iloscWystapienElementu = mojaMapa.get(element);\n mojaMapa.put(element, iloscWystapienElementu + 1);\n } else {\n mojaMapa.put(element, 1);\n }\n\n\n }\n return mojaMapa;\n }",
"public long getNumberOfWords() {\n return numberOfWords;\n }",
"public Map<String, Integer> findUnicalWord(ArrayList<Word> text)\n {\n String[] words=new String[text.size()];\n for(int i=0; i<text.size(); i++){\n words[i]=text.get(i).toString();\n }\n HashMap<String, Integer> myWordsCount = new HashMap<>();\n for (String s : words){\n if (myWordsCount.containsKey(s)) myWordsCount.replace(s, myWordsCount.get(s) + 1);\n else myWordsCount.put(s, 1);\n }\n\n Map<String, Integer> newWordsCount = myWordsCount\n .entrySet()\n .stream()\n .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n .collect(\n toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n LinkedHashMap::new));\n\n return newWordsCount;\n\n }",
"public int scoreOf(String word) {\n // 1. check if the word is in dictionary. dict.contains(word) is true or not\n\n // 2. calculate the score of the word\n int score = calScore(word);\n return score;\n }",
"public int checkFrequency(String diceValue)\n { \n int count = 0;\n for(Dice dice : getDiceArray())\n if(dice.getDiceString().equals(diceValue))\n count++;\n \n return count;\n }",
"public int distinctCount(){\r\n int distinct = 0;\r\n //Loop through each key in words\r\n for(String key: words.keySet()){\r\n //If they appear in the file\r\n if(words.get(key) != 0){\r\n //count it\r\n distinct++;\r\n }\r\n }\r\n return distinct;\r\n\t}",
"int size() {\r\n\t\treturn m_words.size();\r\n\t}",
"public abstract int numberOfTerms();",
"public int getWordCount() {\n return wordCount;\n }",
"int retrieveNumberOfSadKeywords(String comment)\n\t{\n\t\tint numberOfSadWordsInComment = 0;\n\n\t\tfor (String sadWord : sadWords)\n\t\t{\n\t\t\tif (comment.indexOf(sadWord) != -1)\n\t\t\t{\n\t\t\t\tnumberOfSadWordsInComment++;\n\t\t\t}\n\t\t}\n\t\treturn numberOfSadWordsInComment;\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner (System.in);\n System.out.println(\"Please enter a sentence:\");\n String sentence = sc.nextLine();\n System.out.println(numberOfWords(sentence));\n\n\n }",
"static int numCommonWords (int m, int n)\n {\n\tint numCommon = 0;\n\tfor (int j=0; j<M; j++) {\n\t if ((data[j][m] > 0) && (data[j][n] > 0)) {\n\t\tnumCommon ++;\n\t }\n\t}\n\treturn numCommon;\n }",
"private int getCount(String token, String content) {\n int index = 0;\n int count = 0;\n// String[] parts = token.split(\"\\\\s+\");\n// int size = parts.length;\n boolean hasPreview = false;\n while ((index = content.indexOf(token, index)) != -1) {\n if (!hasPreview) {\n int end = Math.min(content.length(), index + 200);\n while (end < content.length() && content.charAt(end) != ' ') {\n end++;\n }\n preview = content.substring(index, end);\n hasPreview = true;\n }\n count++;\n index += token.length();\n }\n return count;\n }",
"public static int count (String[] values, String target)\n {\n \tint count = 0;\n \t\n \tfor(String value : values)\n \t\tif(value.equals(target))\n \t\t\tcount++;\n \t\n return count; // Your TA will help you write this method in lab.\n }",
"public int countWords(String input) {\n if (input == null || input.isEmpty()) {\n return 0;\n }\n String[] words = input.split(\"\\\\s+\");\n return words.length;\n }",
"public void countWords(String path) {\n\t\n//\t\tdeclaration and initialization\n\t\tFile file = new File(path);\n\t\tString str = \"\",word = \"\";\n\t\tBufferedReader br;\n\t\tint counter = 1;\n\t\t\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t\t\n//\t\t\tReads the file lines until eof\n\t\t\twhile ((str = br.readLine()) != null) {\n\t\t\t\tword = word.concat(str);\n\t\t\t}\n\t\t\t\n//\t\t\tReplace both comma and dot with whitespace\n\t\t\tword = word.replace(',',' ');\n\t\t\tword = word.replace('.',' ');\n\t\t\t\n//\t\t\tSplit the string using space\n\t\t\tString[] words = word.split(\"\\\\s+\");\n\t\n//\t\t\tCompare the words and if they are same words increase the counter\n\t\t\tfor (int i = 0; i < words.length; i++){\n\t\t\t\tfor(int j = i+1; j < words.length; j++){\n\t\t\t\t\tif(words[i] != null && words[i].equals(words[j]) ){\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\twords[j] = null; //replace the repeated word with null\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tdisplays the count of the words\n\t\t\t\tif(words[i] != null)\n\t\t\t\tSystem.out.println(words[i]+\": \"+counter);\n\t\t\t\tcounter = 1;\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO Exception\");\n\t\t}\n\t}",
"private void countWords(String text, String ws) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8))));\n String line;\n\n // Get words and respective count\n while (true) {\n try {\n if ((line = reader.readLine()) == null)\n break;\n String[] words = line.split(\"[ ,;:.?!“”(){}\\\\[\\\\]<>']+\");\n for (String word : words) {\n word = word.toLowerCase();\n if (\"\".equals(word)) {\n continue;\n }\n if (lista.containsKey(word)){\n lista.get(word).add(ws);\n }else{\n HashSet<String> temp = new HashSet<>();\n temp.add(ws);\n lista.put(word, temp);\n }\n\n /*if (!countMap.containsKey(word)) {\n countMap.put(word, 1);\n }\n else {\n countMap.put(word, countMap.get(word) + 1);\n }*/\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n // Close reader\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Display words and counts\n /*for (String word : countMap.keySet()) {\n if (word.length() >= 3) { // Shall we ignore small words?\n //System.out.println(word + \"\\t\" + countMap.get(word));\n }\n }*/\n }",
"public int count(String word) {\n return this.wordToCount.get(word);\n }",
"public double getNormalizedCount(String word1, String word2) {\n// double normalizedCount = 0;\n// // YOUR CODE HERE\n// return normalizedCount;\n \n double normalizedCount = 0;\n // YOUR CODE HERE\n if (KnownWord(word1) && KnownWord(word2)) {\n normalizedCount = bi_grams_normalized[NDTokens.indexOf(word1)][NDTokens.indexOf(word2)];\n } else {\n if(smooth) {\n double temp = (!KnownWord(word1)) ? 0 : uni_grams[NDTokens.indexOf(word1)];\n double sum = temp+NDTokens_size;\n normalizedCount = 1/sum;\n }\n }\n return normalizedCount;\n \n }",
"@Override\n public int getNumberOfWords(int count) {\n return restOfSentence.getNumberOfWords(count + 1);\n }",
"public static float calculatePercentOfWordsFoundInText(String text, List<String> words) {\n int totalWords = words.size();\n List<String> wordsFound = new ArrayList<>();\n for (String w : words) {\n Pattern searchPattern = Pattern.compile(\".*\\\\b\" + w.toLowerCase() + \"\\\\b.*\");\n if (searchPattern.matcher(text).matches()) {\n wordsFound.add(w);\n }\n }\n return (float) (wordsFound.size() * 100 / totalWords);\n }",
"public double tf(String wordToLookFor, HashMap<String, ArrayList<Integer>> tokensHM, Document doc) {\n if (tokensHM.containsKey(wordToLookFor)) {\n double count = 0;\n String[] words = doc.generateWordList(doc.getDocument());\n if(tokensHM.get(wordToLookFor).contains(doc.getIndex())) {\n for (String word : words) {\n if (word.equals(wordToLookFor)) {\n count++;\n }\n }\n }\n return count/words.length;\n }\n else {\n return 0;\n }\n }",
"int retrieveNumberOfHappyKeywords(String comment)\n\t{\n\t\tint numberOfHappyWordsInComment = 0;\n\n\t\tfor (String happyWord : happyWords)\n\t\t{\n\t\t\tif (comment.indexOf(happyWord) != -1)\n\t\t\t{\n\t\t\t\tnumberOfHappyWordsInComment++;\n\t\t\t}\n\t\t}\n\t\treturn numberOfHappyWordsInComment;\n\t}",
"public int totalWordsTree() {\r\n\t\treturn count;\r\n\t}",
"int DF(String term) {\n for (int i = 0; i < count1; i++) {\n if (economydocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count2; i++) {\n if (educationdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count3; i++) {\n if (sportdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count4; i++) {\n if (culturedocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count5; i++) {\n if (accedentdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count6; i++) {\n if (environmntaldocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count7; i++) {\n if (foreign_affairdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count8; i++) {\n if (law_justicedocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count9; i++) {\n if (agriculture[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count10; i++) {\n if (politicsdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count12; i++) {\n if (science_technologydocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count13; i++) {\n if (healthdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count14; i++) {\n if (army[i].contains(term)) {\n df++;\n }\n }\n return df;\n }",
"public int getEntryCount() {\n return wordFrequency.size();\n }",
"public double calculatePhraseLenght(Token token) {\n\t\t\n\t\treturn new StringTokenizer(token.getLemma(), \" \").countTokens();\t\n\t}",
"private int alternateSolution(String[] words){\n String[] MORSE = new String[]{\".-\",\"-...\",\"-.-.\",\"-..\",\".\",\"..-.\",\"--.\",\n \"....\",\"..\",\".---\",\"-.-\",\".-..\",\"--\",\"-.\",\n \"---\",\".--.\",\"--.-\",\".-.\",\"...\",\"-\",\"..-\",\n \"...-\",\".--\",\"-..-\",\"-.--\",\"--..\"};\n\n HashSet<String> seen = new HashSet<>();\n for (String word: words) {\n StringBuilder code = new StringBuilder();\n for (char c: word.toCharArray())\n code.append(MORSE[c - 'a']);\n seen.add(code.toString());\n }\n\n return seen.size();\n }",
"public static int uniqueWords (String sent) {\n\n \tint counter = 0;\n \tString[] words = sent.split(\" \");\n \t\n \tif(words.length == 1){\n\t\t\tcounter = 1;\n\t\t\treturn counter;\n\t\t}\n \tfor( int i = 0; i < words.length; i++){\n\n \t\tboolean unique = true;\n \t\tfor(int j = 0; j < words.length; j++ ){\n \t\t\tif(i != j){\n \t\t\t\tif(words[i].equals(words[j])){\n \t\t\t\tunique = false;\n \t\t\t}\n \t\t\t}\n \t\t}\n \t\tif(unique == true){\n\t\t\t\tcounter++;\n\t\t\t}\n \t\t\n \t}\n \treturn counter;\n \n }",
"public int getWordCount()\n {\n return m_iWordCount;\n }",
"private static void wordCountWithMap() throws FileNotFoundException {\n Map<String, Integer> wordCounts = new HashMap<String, Integer>();\n\n Scanner input = new Scanner(new File(fileLocation));\n while (input.hasNext()) {\n String word = input.next();\n if (!wordCounts.containsKey(word)) {\n wordCounts.put(word, 1);\n } else {\n int oldValue = wordCounts.get(word);\n wordCounts.put(word, oldValue + 1);\n }\n }\n\n String term = \"test\";\n System.out.println(term + \" occurs \" + wordCounts.get(term));\n\n // loop over the map\n for (String word : wordCounts.keySet()) {\n int count = wordCounts.get(word);\n if (count >= 500) {\n System.out.println(word + \", \" + count + \" times\");\n }\n }\n\n }",
"public int getWordCount() {\n\t\treturn list.size();\n\t}",
"public int getLength() { return this.words.size(); }",
"public int numMatches();",
"public int countAllStringAppearances(List<String> stringsToCheck, String stringToContain) {\n int counter = 0;\n Pattern patternToMatch = Pattern.compile(stringToContain.toLowerCase());\n for (String currentString : stringsToCheck) {\n Matcher matcher = patternToMatch.matcher(currentString.toLowerCase());\n while (matcher.find()) {\n counter ++;\n }\n }\n return counter;\n }",
"public int countOccurencesOf(String text, String target) {\n if(text.length() > target.length()) return 0;\n\n int numberOfCompares = target.length() - text.length() + 1;\n int count = 0;\n\n for(int i = 0; i < numberOfCompares; i++) {\n String sub = target.substring(i, i + text.length());\n if(text.equals(sub)) count++;\n }\n\n return count;\n }",
"public int dotCounter(String numberWord) {\n int count = 0;\n char dot = '.';\n for (int i = 0; i < numberWord.length(); i++) {\n if (numberWord.charAt(i) == dot) count++;\n }\n return count;\n }",
"public static int totalWord(File file) throws FileNotFoundException {\r\n Scanner scan = new Scanner(file); // scanner for scanning the file\r\n int count = 0;\r\n while (scan.hasNext()) // scan until end\r\n {\r\n String word = scan.next();\r\n if (isWord(word)) // is the content is a word than increase count by 1\r\n count++;\r\n }\r\n return count;\r\n }",
"public String getWord(int value) {\n String nextWord = \"\";\n boolean found = false;\n\n for (MainNode n = mainList; n != null && !found; n = n.mainNext) {\n //System.out.println(\"wordCount: \" + n.wordCount);\n if (n.wordCount >= value) {\n nextWord = n.input;\n }\n }\n\n return nextWord;\n }",
"public static int countWords(String str) {\r\n return str.split(\" \").length;\r\n }",
"public void computeWords(){\n\n loadDictionary();\n\n CharacterGrid characterGrid = readCharacterGrid();\n\n Set<String> wordSet = characterGrid.findWordMatchingDictionary(dictionary);\n\n System.out.println(wordSet.size());\n for (String word : wordSet) {\n\t System.out.println(word);\n }\n\n // System.out.println(\"Finish scanning character grid in \" + (System.currentTimeMillis() - startTime) + \" ms\");\n }"
] | [
"0.7292214",
"0.7279832",
"0.70115936",
"0.6838094",
"0.6652144",
"0.66445947",
"0.6612559",
"0.6586799",
"0.65860003",
"0.65210986",
"0.652046",
"0.64646775",
"0.6455392",
"0.6406517",
"0.64013475",
"0.6384089",
"0.6285284",
"0.6274935",
"0.62605315",
"0.62391984",
"0.6236811",
"0.6231043",
"0.62038803",
"0.62000316",
"0.6195303",
"0.61946243",
"0.6190911",
"0.61880934",
"0.61763126",
"0.61669415",
"0.61656666",
"0.61603767",
"0.6159076",
"0.6156496",
"0.6148476",
"0.6132721",
"0.61010087",
"0.608307",
"0.6081557",
"0.6074903",
"0.6065827",
"0.60622257",
"0.60482424",
"0.60371673",
"0.6026301",
"0.60186356",
"0.6016463",
"0.6015605",
"0.6000638",
"0.59780747",
"0.5975254",
"0.59566736",
"0.5955827",
"0.59469056",
"0.5938068",
"0.59281445",
"0.59252846",
"0.5922957",
"0.5921214",
"0.5919928",
"0.5913286",
"0.5908882",
"0.5904432",
"0.5904245",
"0.58883154",
"0.58876675",
"0.5872061",
"0.5865945",
"0.58603513",
"0.5856624",
"0.58561224",
"0.5855677",
"0.5855448",
"0.5851843",
"0.5851647",
"0.58417416",
"0.5841326",
"0.583983",
"0.5833881",
"0.58217454",
"0.58109665",
"0.5809764",
"0.5804404",
"0.5796481",
"0.5792661",
"0.57820994",
"0.5774124",
"0.57637936",
"0.57625866",
"0.57615864",
"0.5758077",
"0.5746829",
"0.57450044",
"0.5740764",
"0.5732538",
"0.57315964",
"0.57247126",
"0.5724222",
"0.57240313",
"0.570141",
"0.5686938"
] | 0.0 | -1 |
Computes f(s) but only stores the value for the minimum value | public int fs(String s) {
char min = 'z', current;
int frequency = 0;
for (int i = 0; i < s.length(); i++){
current = s.charAt(i);
if (current < min) {
min = current;
frequency = 1;
} else if (current == min) frequency++;
}
return frequency;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static float min(float... fValues) {\n float result = Float.POSITIVE_INFINITY;\n for (float value : fValues) {\n if (value < result) {\n result = value;\n }\n }\n\n return result;\n }",
"public float getMinimumFloat() {\n/* 212 */ return (float)this.min;\n/* */ }",
"Double getMinimumValue();",
"public float getMinValue();",
"float xMin();",
"public float min(Collection<Float> data){\r\n return Collections.min(data);\r\n }",
"private Float minFloat(final Float previousValue, final Object transactionValue) {\n Float newValue;\n if (transactionValue instanceof Float) {\n newValue = Math.min(previousValue, (Float) transactionValue);\n } else {\n newValue = Math.min(previousValue, Float.parseFloat(transactionValue.toString()));\n }\n return newValue;\n }",
"public static float min(float [] array)\r\n\t{\r\n\t\tfloat minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValue)\r\n\t\t\t{\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValue;\r\n\t}",
"private Double getMin(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.min(d, ret);\n }\n return ret;\n }",
"public static float min(float a, float... vals) {\n\t\tfloat minVal = a;\n\t\tfor (float v : vals) {\n\t\t\tif (v < minVal) {\n\t\t\t\tminVal = v;\n\t\t\t}\n\t\t}\n\t\treturn minVal;\n\t}",
"E minVal();",
"public float _getMin()\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n return (getMinimum() / max);\r\n } else\r\n {\r\n return getMinimum();\r\n }\r\n }",
"double getMin();",
"double getMin();",
"private double getMin() {\n return Collections.min(values.values());\n }",
"public double minimum(double[][] datasetF) {\r\n\t\tint col = 0;\r\n\t\tdouble minF = Double.MAX_VALUE;\r\n\t\twhile (col != numOfDimension) {\r\n\t\t\tminF = Double.MAX_VALUE;\r\n\t\t\tfor (int i = 0; i < datasetF.length; i++) {\r\n\t\t\t\tif (datasetF[i][col] < minF)\r\n\t\t\t\t\tminF = datasetF[i][col];\r\n\t\t\t}\r\n\t\t\t// System.out.println(\"Minimum \"+col+\" = \" + minF);\r\n\t\t\tcol++;\r\n\t\t}\r\n\t\treturn minF;\r\n\t}",
"public double min(){\r\n\t\t//variable for min val\r\n\t\tdouble min = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the minimum is more than the current index, change min to that value\r\n\t\t\tif (min > this.data[i]){\r\n\t\t\t\tmin = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the minimum val\r\n\t\treturn min;\r\n\t}",
"private Point lowestFInOpen() {\n\t\tPoint lowestP = null;\n\t\tfor (Point p : openset) {\n\t\t\tif (lowestP == null) \n\t\t\t\tlowestP = p;\n\t\t\telse if (fscores.get(p) < fscores.get(lowestP))\n\t\t\t\tlowestP = p;\n\t\t}\n\t\treturn lowestP;\n\t}",
"public double getMinimumValue() { return this.minimumValue; }",
"public double min() {\n/* 305 */ Preconditions.checkState((this.count != 0L));\n/* 306 */ return this.min;\n/* */ }",
"public static float min(float [] array, boolean [] isValid)\r\n\t{\r\n\t\tfloat minValude = Float.MAX_VALUE;\r\n\t\tfor (int i = 0; i < isValid.length; i++)\r\n\t\t{\r\n\t\t\tif (isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValude && isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValude;\r\n\t}",
"private int smallestF(){\r\n int smallest = 100000;\r\n int smallestIndex = 0;\r\n int size = _openSet.size();\r\n for(int i=0;i<size;i++){\r\n int thisF = _map.get_grid(_openSet.get(i)).get_Fnum();\r\n if(thisF < smallest){\r\n smallest = thisF;\r\n smallestIndex = i;\r\n }\r\n }\r\n return smallestIndex;\r\n }",
"public static double min(double... values) {\n/* 86 */ Objects.requireNonNull(values, \"The specified value array must not be null.\");\n/* 87 */ if (values.length == 0) {\n/* 88 */ throw new IllegalArgumentException(\"The specified value array must contain at least one element.\");\n/* */ }\n/* 90 */ double min = Double.MAX_VALUE;\n/* 91 */ for (double value : values)\n/* 92 */ min = Math.min(value, min); \n/* 93 */ return min;\n/* */ }",
"private static double search(double min, double max, Function f) {\n\t\tdouble a = min;\n\t\tdouble c = max;\n\t\tdouble b = 0;\n\t\twhile (Math.abs(c - a) > MIN_DIFFERENCE) {\n\t\t\tb = (a + c) / 2;\n\t\t\tdouble fa = f.f(a);\n\t\t\tdouble fc = f.f(c);\n\t\t\t\n\t\t\tif (fa < fc) {\n\t\t\t\tc = b;\n\t\t\t} else {\n\t\t\t\ta = b;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn b;\n\t}",
"public static float min(final float[] data) {\r\n float min = Float.MAX_VALUE;\r\n for (final float element : data) {\r\n if (min > element) {\r\n min = element;\r\n }\r\n }\r\n return min;\r\n }",
"private double min(double[] vector){\n if (vector.length == 0)\n throw new IllegalStateException();\n double min = Double.MAX_VALUE;\n for(double e : vector){\n if(!Double.isNaN(e) && e < min)\n min = e;\n }\n return min;\n }",
"public static float min(float[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n float min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Float.isNaN(array[i])){\n return Float.NaN;\n }\n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public double getMinDoubleValue();",
"protected final double getMinDifference() {\r\n \r\n double difference = 0;\r\n \r\n for(int i = 0; i < this.D; i++) {\r\n difference += Math.pow(this.f.max(i)-this.f.min(i), 2)*0.001;\r\n }\r\n \r\n return difference;\r\n \r\n }",
"public double min() {\n\t\tif (count() > 0) {\n\t\t\treturn _min.get();\n\t\t}\n\t\treturn 0.0;\n\t}",
"default DiscreteDoubleMap2D pointWiseMinimum(double value) {\r\n\t\treturn (x, y) -> Math.min(this.getValueAt(x, y), value);\r\n\t}",
"public double getMinimumValue()\n {\n this.minimumValue = getMinNumber(allValues);\n this.maximumValue = getMaxNumber(allValues);\n return minimumValue;\n }",
"public final void min() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\tpush(topMostValue);\n\t\t\t} else {\n\t\t\t\tpush(secondTopMostValue);\n\t\t\t}\n\t\t}\n\t}",
"protected IExpressionValue min()throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t// Debug.println(\"ANALISING MIN FUNCTION\");\r\n\t\t\r\n\t\tIExpressionValue ret1 = null;\r\n\t\tIExpressionValue ret2 = null;\r\n\t\tmatch('(');\r\n\t\tret1 = this.expression();\r\n//\t\tmatch(';');\r\n\t\tif (look != ';' && look != ',') {\r\n\t\t\texpected(\";\");\r\n\t\t}\r\n\t\tnextChar();\r\n\t\tskipWhite();\r\n\t\tret2 = this.expression();\r\n\t\tmatch(')');\r\n\t\t/*\r\n\t\t// old code: tests which ret1/ret2 to return and test consistency. ComparisionProbabilityValue replaces it.\r\n\t\tif (!Float.isNaN(ret1)) {\r\n\t\t\tif (!Float.isNaN(ret2)) {\r\n\t\t\t\tret1 = ((ret2<ret1)?ret2:ret1);\r\n\t\t\t}\r\n\t\t} else if (!Float.isNaN(ret2)) {\r\n\t\t\treturn ret2;\r\n\t\t}\r\n\t\t*/\r\n\t\treturn new ComparisionProbabilityValue(ret1,ret2,false);\r\n\t\t\r\n\t}",
"private double min(double value1 , double value2){\n double minValue = 0.0;\n if(value1 <= value2){\n minValue = value1;\n }else{\n minValue = value2;\n }\n\n return minValue;\n }",
"public abstract int getMinimumValue();",
"private Node getLowestNode(Set<Node> openSet)\r\n {\r\n // find the node with the least f\r\n double minF = Double.MAX_VALUE;\r\n Node[] openArray = openSet.toArray(new Node[0]);\r\n\r\n Node q = null;\r\n for (int i = 0; i < openArray.length; ++i)\r\n {\r\n if (openArray[i].f < minF) \r\n {\r\n minF = openArray[i].f;\r\n q = openArray[i];\r\n }\r\n }\r\n return q;\r\n }",
"private static float m6542a(float f, float f2, float f3) {\n return Math.min(f2, Math.max(f, f3));\n }",
"public void f()\r\n {\r\n float var1 = 0.5F;\r\n float var2 = 0.125F;\r\n float var3 = 0.5F;\r\n this.a(0.5F - var1, 0.5F - var2, 0.5F - var3, 0.5F + var1, 0.5F + var2, 0.5F + var3);\r\n }",
"public double minXp(){\n\t\tmin = xp[0];\n\t\tfor(int i=1;i<xp.length;i++){\n\t\t\tif(xp[i]<min){\n\t\t\t\tmin=xp[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"public Double getMinimumValue () {\r\n\t\treturn (minValue);\r\n\t}",
"public float getMinFloat() {\n\t\treturn this.minFloat;\n\t}",
"float zMin();",
"public double getMinimum() {\n return (min);\n }",
"public T min();",
"private static final EvaluationAccessor min(EvaluationAccessor operand, EvaluationAccessor[] arguments) {\r\n EvaluationAccessor result = null;\r\n Value oVal = operand.getValue();\r\n if (oVal instanceof ContainerValue) {\r\n ContainerValue cont = (ContainerValue) oVal;\r\n IDatatype contType = ((Container) cont.getType()).getContainedType();\r\n int contSize = cont.getElementSize();\r\n \r\n if (contSize > 0) {\r\n Value rValue = null;\r\n \r\n // Determine min for number containers \r\n if (contType.isAssignableFrom(RealType.TYPE)) {\r\n // Handle min for Reals\r\n double min = (Double) cont.getElement(0).getValue();\r\n for (int i = 1; i < contSize; i++) {\r\n double tmp = (Double) cont.getElement(i).getValue();\r\n if (tmp < min) {\r\n min = tmp;\r\n }\r\n }\r\n \r\n try {\r\n rValue = ValueFactory.createValue(contType, min);\r\n } catch (ValueDoesNotMatchTypeException e) {\r\n EASyLoggerFactory.INSTANCE.getLogger(GenericNumberOperations.class, Bundle.ID)\r\n .debug(e.getMessage());\r\n }\r\n } else if (contType.isAssignableFrom(IntegerType.TYPE)) {\r\n // Handle min for Reals\r\n int min = (Integer) cont.getElement(0).getValue();\r\n for (int i = 1; i < contSize; i++) {\r\n int tmp = (Integer) cont.getElement(i).getValue();\r\n if (tmp < min) {\r\n min = tmp;\r\n }\r\n }\r\n \r\n // Create min value\r\n try {\r\n rValue = ValueFactory.createValue(contType, min);\r\n } catch (ValueDoesNotMatchTypeException e) {\r\n EASyLoggerFactory.INSTANCE.getLogger(GenericNumberOperations.class, Bundle.ID)\r\n .debug(e.getMessage());\r\n }\r\n }\r\n \r\n if (null != rValue) {\r\n result = ConstantAccessor.POOL.getInstance().bind(rValue, operand.getContext());\r\n }\r\n }\r\n }\r\n return result;\r\n }",
"public final EObject ruleMinimumFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_3=null;\r\n Token otherlv_5=null;\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_values_2_0 = null;\r\n\r\n EObject lv_values_4_0 = null;\r\n\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:3181:28: ( ( ( (lv_operator_0_0= ruleMinOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3182:1: ( ( (lv_operator_0_0= ruleMinOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3182:1: ( ( (lv_operator_0_0= ruleMinOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3182:2: ( (lv_operator_0_0= ruleMinOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3182:2: ( (lv_operator_0_0= ruleMinOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3183:1: (lv_operator_0_0= ruleMinOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3183:1: (lv_operator_0_0= ruleMinOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3184:3: lv_operator_0_0= ruleMinOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getMinimumFunctionAccess().getOperatorMinOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleMinOperator_in_ruleMinimumFunction6827);\r\n lv_operator_0_0=ruleMinOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getMinimumFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"MinOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,43,FOLLOW_43_in_ruleMinimumFunction6839); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getMinimumFunctionAccess().getLeftParenthesisKeyword_1());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3204:1: ( (lv_values_2_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3205:1: (lv_values_2_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3205:1: (lv_values_2_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3206:3: lv_values_2_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getMinimumFunctionAccess().getValuesNumberExpressionParserRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleMinimumFunction6860);\r\n lv_values_2_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getMinimumFunctionRule());\r\n \t }\r\n \t\tadd(\r\n \t\t\tcurrent, \r\n \t\t\t\"values\",\r\n \t\tlv_values_2_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3222:2: (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )*\r\n loop43:\r\n do {\r\n int alt43=2;\r\n int LA43_0 = input.LA(1);\r\n\r\n if ( (LA43_0==20) ) {\r\n alt43=1;\r\n }\r\n\r\n\r\n switch (alt43) {\r\n \tcase 1 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3222:4: otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) )\r\n \t {\r\n \t otherlv_3=(Token)match(input,20,FOLLOW_20_in_ruleMinimumFunction6873); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_3, grammarAccess.getMinimumFunctionAccess().getCommaKeyword_3_0());\r\n \t \r\n \t }\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3226:1: ( (lv_values_4_0= ruleNumberExpression ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3227:1: (lv_values_4_0= ruleNumberExpression )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3227:1: (lv_values_4_0= ruleNumberExpression )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3228:3: lv_values_4_0= ruleNumberExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getMinimumFunctionAccess().getValuesNumberExpressionParserRuleCall_3_1_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleNumberExpression_in_ruleMinimumFunction6894);\r\n \t lv_values_4_0=ruleNumberExpression();\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.getMinimumFunctionRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"values\",\r\n \t \t\tlv_values_4_0, \r\n \t \t\t\"NumberExpression\");\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\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop43;\r\n }\r\n } while (true);\r\n\r\n otherlv_5=(Token)match(input,44,FOLLOW_44_in_ruleMinimumFunction6908); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_5, grammarAccess.getMinimumFunctionAccess().getRightParenthesisKeyword_4());\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 }",
"int min();",
"public static float waveDataGetLowestValue(ArrayList<Float> wave){\r\n float lowestWaveValue = Collections.min(wave);\r\n return lowestWaveValue;\r\n\r\n }",
"public static double min(double[] array) {\n\t\tif (array.length==0) return Double.POSITIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.min(re, array[i]);\n\t\treturn re;\n\t}",
"public static double min(double a, double... vals) {\n\t\tdouble minVal = a;\n\t\tfor (double v : vals) {\n\t\t\tif (v < minVal) {\n\t\t\t\tminVal = v;\n\t\t\t}\n\t\t}\n\t\treturn minVal;\n\t}",
"protected ValuePosition getMinimum() {\n\t\t// Calcule la position et la durée d'exécution de la requête la plus courte dans le tableau des requêtes\n\t\tValuePosition minimum = new ValuePosition();\n\t\tminimum.position = 0;\n\t\tfor(int pos=0; pos<requests.length; pos++) {\n\t\t\tRequest request = requests[pos];\n\t\t\tif(request == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minimum.value == null || request.getElapsedTime() < minimum.value) {\n\t\t\t\tminimum.position = pos;\n\t\t\t\tminimum.value = request.getElapsedTime();\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"private double min(double a, double b) {\n if (a > b) {\n return b;\n }\n return a;\n }",
"java.math.BigDecimal getWagerMinimum();",
"public double getMinValue() {\n double min = Double.POSITIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] < min)\n min = data[i][j];\n }\n }\n return min;\n }",
"double getMin() {\n\t\t\treturn value_min;\n\t\t}",
"public double getMinimum()\n {\n return Math.min(first, second);\n }",
"public double min() {\n return min(0.0);\n }",
"public T findMin();",
"public double minValue() {\n return 0;\r\n }",
"public double getMinimumDouble() {\n/* 201 */ return this.min;\n/* */ }",
"public int GetMinVal();",
"float getXStepMin();",
"public abstract Vector4fc min(IVector4f v);",
"public double[] getMin(){\n double[] min = new double[3];\n for (Triangle i : triangles) {\n double[] tempmin = i.minCor();\n min[0] = Math.min( min[0], tempmin[0]);\n min[1] = Math.min( min[1], tempmin[1]);\n min[2] = Math.min( min[2], tempmin[2]);\n }\n return min;\n }",
"public double getMinimumX () {\n return minimumX;\n }",
"java.math.BigDecimal getSingleBetMinimum();",
"private double getMin() {\n return min;\n }",
"public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }",
"java.math.BigDecimal getMultipleBetMinimum();",
"public static int MIN_VALUE(State state){\n if(TERMINAL_TEST(state)){\n //System.out.println(\"Found a terminal state on min\\n:\"+state);\n return UTILITY(state);\n }\n if(SUCCESSOR(state).size()==0){\n return UTILITY(state);\n }\n int v = positiveInf;\n for(State s:SUCCESSOR(state)){\n v = Math.min(v, MAX_VALUE(s));\n }\n return v;\n }",
"private float getMinX(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float minX = Float.POSITIVE_INFINITY;\n for (float [] point : points) {\n minX = Math.min(minX, point [0]);\n } \n return minX;\n }",
"public static double getMin(double[] array)\r\n\t{\r\n\t\tdouble min = Double.POSITIVE_INFINITY;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (min > array[i])\r\n\t\t\t\tmin = array[i];\r\n\t\treturn min;\r\n\t}",
"int getXMin();",
"public static double mindouble(double ... numbers) {\r\n double min = numbers[0];\r\n for (int i=1 ; i<numbers.length ; i++) {\r\n min = (min <= numbers[i]) ? min : numbers[i];\r\n }\r\n return min;\r\n}",
"java.math.BigDecimal getFractionalMinimum();",
"private double getMinNumber(ArrayList<Double> provinceValues)\n {\n Double min = 999999999.0;\n\n for (Double type : provinceValues)\n {\n if (type < min)\n {\n min = type;\n }\n }\n return min;\n }",
"int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the first term in the array --> first term should be min if\n\t\t// sorted\n\t\tint x = array[0];\n\t\treturn x;\n\t}",
"private static Vertex lowestFInOpen(List<Vertex> openList) {\n\t\tVertex cheapest = openList.get(0);\n\t\tfor (int i = 0; i < openList.size(); i++) {\n\t\t\tif (openList.get(i).getF() < cheapest.getF()) {\n\t\t\t\tcheapest = openList.get(i);\n\t\t\t}\n\t\t}\n\t\treturn cheapest;\n\t}",
"@Override\n\tpublic T min() {\n\t\treturn val;\n\t}",
"private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }",
"public void minimum()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmin=cost[i][j];\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 Float getT1B11Xfmin() {\r\n return t1B11Xfmin;\r\n }",
"public T getMin ();",
"private double getLowest()\n {\n if (currentSize == 0)\n {\n return 0;\n }\n else\n {\n double lowest = scores[0];\n for (int i = 1; i < currentSize; i++)\n {\n if (scores[i] < lowest)\n {\n scores[i] = lowest;\n }\n }\n return lowest;\n }\n }",
"private void regularMinDemo() {\n int min = numbers[0];\n for(int i = 1; i < numbers.length; i++) {\n if (numbers[i] < min) min = numbers[i];\n }\n System.out.println(min);\n }",
"public K min();",
"public double getMinS() {\n return u[0];\n }",
"public static double min(double[] array) { \r\n \r\n double minNum = array[0];\r\n for(int i = 0; i < array.length; i++) {\r\n if(minNum > array[i]) {\r\n minNum = array[i];\r\n }\r\n }\r\n return minNum;\r\n }",
"public void _setMin(float min)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMinimum((int) (min * 100));\r\n } else\r\n {\r\n setMinimum((int) min);\r\n }\r\n }",
"private <T extends Number> T computeMin(final Collection<T> inputCollection) {\n\r\n\t\tT res = null;\r\n\r\n\t\tif (!inputCollection.isEmpty())\r\n\t\t\tfor (final T t : inputCollection)\r\n\t\t\t\tif (res == null || t.longValue() < res.longValue())\r\n\t\t\t\t\tres = t;\r\n\r\n\t\treturn res;\r\n\t}",
"public float getminTemp() {\n Reading minTempReading = null;\n float minTemp = 0;\n if (readings.size() >= 1) {\n minTemp = readings.get(0).temperature;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).temperature < minTemp) {\n minTemp = readings.get(i).temperature;\n }\n }\n } else {\n minTemp = 0;\n }\n return minTemp;\n }",
"private static double min(Double[] darray){\n\t\tdouble min = darray[0];\n\t\tfor ( double dd : darray){\n\t\t\tmin = Math.min(min,dd);\n\t\t}\n\t\treturn min;\n\t}",
"int minPriority(){\n if (priorities.length == 0)\n return -1;\n\n int index = 0;\n int min = priorities[index];\n\n for (int i = 1; i < priorities.length; i++){\n if ((priorities[i]!=(-1))&&(priorities[i]<min)){\n min = priorities[i];\n index = i;\n }\n }\n return values[index];\n }",
"public static double min(ExpressionContext context, List nodeset) {\n if ((nodeset == null) || (nodeset.size() == 0)) {\n return Double.NaN;\n }\n\n JXPathContext rootContext = context.getJXPathContext();\n Object min = nodeset.get(0);\n\n for (int index = 1; index < nodeset.size(); index++) {\n Object current = nodeset.get(index);\n rootContext.getVariables().declareVariable(\"min\", min);\n rootContext.getVariables().declareVariable(\"current\", current);\n\n boolean less = ((Boolean) rootContext.getValue(\"number($current) < number($min)\", Boolean.class)).booleanValue();\n\n if (less) {\n min = current;\n }\n }\n\n return (new Double(min.toString())).doubleValue();\n }",
"private static final float enforceBounds( float f ) {\n if ( f >= 0f ) {\n if ( f <= 1f ) {\n return f;\n }\n else {\n return 1f;\n }\n }\n else {\n return 0f;\n }\n }",
"static int minVal(int a, int b, int c, int d){ //minVal function evaluates the lowest value takes 4 ints and returns an int\n \n //logic: (logic table)\n //\n int[] val = new int[]{a, b, c, d}; //loads it into a array to make it easier to cycle through\n if(a == minVal(val[0], val[1])){//if a is smaller than b\n if (a == minVal(val[0], val[2])){// if a is smaller than c\n if(a == minVal(val[0], val[3])) //if a is smaller than d, return a\n return a;\n return val[3]; // if d is not smaller than a but a is smaller than the rest return d\n }//end if\n else if(c == minVal(val[2], val[3])) //if a is smaller than b but not smaller than c, check if c is smaller than d\n return val[2];//return c\n return val[3];// if a is smaller than b but not smaller than c, and c is not smaller than d, return d \n }//end if \n else{ //if(b == minVal(val[0], val[1])){ //if b is smaller than a\n if (b == minVal(val[1], val[2])){ //if b is smaller than c\n if(b == minVal(val[1], val[3])) //if b is smaller than d, return b\n return b;\n return val[3];// if d is not smaller than a but a is smaller than the rest return d\n }//end if\n else if(c == minVal(val[2], val[3]))//if a is smaller than b but not smaller than c, check if c is smaller than d\n return val[2];//return c\n return val[3];// if a is smaller than b but not smaller than c, and c is not smaller than d, return d \n }//end else\n \n }",
"public double getMinValue() {\r\n\t\treturn minValue;\r\n\t}",
"ComparableExpression<T> min();",
"public static void minEl1(List<Integer> list){\n int min = list.stream().reduce(Integer.MAX_VALUE, (x,y)->x<y ? x : y);\n System.out.println(min);\n }",
"public float getMin() {\n/* 3077 */ throw new RuntimeException(\"Stub!\");\n/* */ }"
] | [
"0.73924714",
"0.68360734",
"0.6811363",
"0.6710464",
"0.6693223",
"0.65120775",
"0.65041494",
"0.6482522",
"0.645696",
"0.6454514",
"0.6401724",
"0.6350237",
"0.6322008",
"0.6322008",
"0.6311846",
"0.6295656",
"0.62890273",
"0.62620556",
"0.6253509",
"0.62244314",
"0.62193567",
"0.6218678",
"0.6197374",
"0.6185925",
"0.61632663",
"0.61567676",
"0.6154184",
"0.61373156",
"0.6135196",
"0.61199695",
"0.6083174",
"0.6053656",
"0.6012254",
"0.60043395",
"0.5991049",
"0.5990178",
"0.5935069",
"0.589846",
"0.5861173",
"0.5859501",
"0.5844964",
"0.5837383",
"0.58087075",
"0.5801415",
"0.5801338",
"0.5790743",
"0.5790398",
"0.5785716",
"0.5780721",
"0.57802546",
"0.57662255",
"0.57594335",
"0.57592964",
"0.57592607",
"0.57588565",
"0.57496095",
"0.5737647",
"0.57317805",
"0.5726874",
"0.5725759",
"0.57233477",
"0.57145864",
"0.5713409",
"0.57075465",
"0.5689616",
"0.5677767",
"0.5671611",
"0.56633496",
"0.56533176",
"0.56476927",
"0.5643682",
"0.5629245",
"0.5615735",
"0.5600883",
"0.5594603",
"0.5594416",
"0.5585051",
"0.55756694",
"0.55695856",
"0.55648917",
"0.5561746",
"0.55568755",
"0.55388665",
"0.55382466",
"0.55342627",
"0.55321234",
"0.55189455",
"0.5518654",
"0.55123174",
"0.55043924",
"0.55014265",
"0.54981935",
"0.549491",
"0.54884505",
"0.5482012",
"0.548188",
"0.5473969",
"0.54736423",
"0.5462152",
"0.5461219",
"0.5460202"
] | 0.0 | -1 |
Instantiates a new User. | public User() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User() {\n log.debug(\"Create a User object\");\n }",
"public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }",
"public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }",
"User createUser();",
"public User() {}",
"public User() {}",
"public User() {}",
"public User(){}",
"public User(){}",
"public User(){}",
"public User() { }",
"private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }",
"public User() {\r\n \r\n }",
"public User() {\n }",
"public User() {\r\n\t}",
"public User() {\r\n }",
"User()\n\t{\n\n\t}",
"public User() {\r\n\r\n\t}",
"public User() {\n\t}",
"public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\n\t}",
"public User() {\n\n }",
"public User()\n\t{\n\t}",
"public User() {\n super();\n }",
"public User() {\n super();\n }",
"public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}",
"public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}",
"User createUser(UserCreationModel user);",
"public void createUser(User user);",
"public static User createUser(String id) {\n\n User user = new User();\n user.setId(id);\n\n return user;\n }",
"public DbUser() {\r\n\t}",
"protected User() {}",
"protected User() {}",
"public User(){\n }",
"public User(String name) {\n this(UUID.randomUUID().toString(), name, String.format(\"User account for %s\", name) );\n }",
"@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}",
"public void createUser(User user) {\n\n\t}",
"public static createNewUser newInstance() {\n createNewUser fragment = new createNewUser();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"User createUser(User user);",
"public User(){\n\n }",
"public User(){\n this(null, null);\n }",
"public User() {\r\n this(\"\", \"\");\r\n }",
"public void newUser(User user);",
"private User() {}",
"public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}",
"public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}",
"public User() throws InvalidUserDataException {\n this(DEFAULT_ID, DEFAULT_PASSWORD, DEFAULT_FIRST_NAME, \n DEFAULT_LAST_NAME, DEFAULT_EMAIL_ADDRESS, new Date(), \n new Date(), DEFAULT_TYPE, DEFAULT_ENABLED_STATUS);\n }",
"protected User() {\n }",
"public User(String username, String password) {\n this.userID = UUID.randomUUID();\n this.username = username;\n this.password = password;\n this.isTechAgent = false;\n }",
"public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }",
"User create(User user);",
"private User() {\n }",
"public User(String uId, String email, String password) \n\t{\n\t\tthis.userId = uId;\n\t\tthis.accDetails = AccountDetails.create(uId,email,password);\n this.credit = Credit.create(uId);\n }",
"public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }",
"public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }",
"private User createWithParameters(Map<String, String> userParameters) {\n User user = new User();\n String passHashed = BCrypt.hashpw(userParameters.get(PASSWORD_PARAMETER_NAME), BCrypt.gensalt());\n user.setUsername(userParameters.get(USERNAME_PARAMETER_NAME));\n user.setPassword(passHashed);\n user.setFirstName(userParameters.get(FIRST_NAME_PARAMETER_NAME));\n user.setLastName(userParameters.get(LAST_NAME_PARAMETER_NAME));\n user.setEmail(userParameters.get(EMAIL_PARAMETER_NAME));\n user.setPhone(userParameters.get(PHONE_PARAMETER_NAME));\n user.setAddress(userParameters.get(ADDRESS_PARAMETER_NAME));\n user.setAccount(BigDecimal.ZERO);\n user.setInitDate(LocalDate.now());\n user.setBlockedUntil(LocalDate.now());\n user.setRole(User.Role.USER);\n return user;\n }",
"public User(String firstName, String lastName, Long userid, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.userid = userid;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }",
"public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}",
"public JpaUser() {\n }",
"UserCreateResponse createUser(UserCreateRequest request);",
"public UserProfile() {}",
"private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }",
"public User() {\n\tsuper();\n}",
"User(String userID, String password, String firstName, String lastName) {\n this.userID = userID;\n this.password = password;\n this.firstName = firstName;\n this.lastName = lastName;\n }",
"public UserBuilder() {\n this.user = new User();\n }",
"@Override\n public User createFromParcel(Parcel in) {\n return new User(in);\n }",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }",
"public UserAccount() {\n\n\t}",
"public User() {\r\n // TODO - implement User.User\r\n throw new UnsupportedOperationException();\r\n }",
"public static User newInstance(String account, String password, String name, boolean isFemale) {\n User user = new User();\n user.account = account;\n user.password = password;\n user.name = name;\n user.isFemale = isFemale;\n user.createdDateTime = DateTimeUtil.getCurrentDateTime(); // Automatically generates the date & time.\n return user;\n }",
"public UserModel() throws IOException {\n userManager = new UserManager();\n }",
"public User createUser(UserDTO userDto) {\n User user = new User();\n user.setLogin(userDto.getLogin());\n user.setFirstName(userDto.getFirstName());\n user.setLastName(userDto.getLastName());\n user.setEmail(userDto.getEmail());\n if (userDto.getLangKey() == null) {\n user.setLangKey(\"en\"); // default language\n } else {\n user.setLangKey(userDto.getLangKey());\n }\n String encryptedPassword = passwordEncoder.encode(RandomUtil.generatePassword());\n user.setPassword(encryptedPassword);\n user.setResetKey(RandomUtil.generateResetKey());\n user.setResetDate(ZonedDateTime.now());\n user.setActivated(false);\n\n user.setRoles(getUserRoles(userDto));\n userRepository.save(user);\n log.debug(\"Created Information for User: {}\", user);\n return user;\n }",
"public User(Long id) {\n\t\tsuper(id, AppEntityCodes.USER);\n\t}",
"public UserAccount() {\n }",
"public User(String firstName, String lastName, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }",
"private void createUser(final String email, final String password) {\n\n }",
"public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}",
"public User() {\n this.username = \"test\";\n }",
"public UserManager() {\n }",
"public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }",
"public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}",
"public Users() {}",
"protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }",
"public AppUser() {\r\n\t\tsuper();\r\n\t}"
] | [
"0.7582088",
"0.73480594",
"0.7273225",
"0.7200439",
"0.71821743",
"0.71821743",
"0.71821743",
"0.71243304",
"0.71243304",
"0.71243304",
"0.711101",
"0.71006274",
"0.707437",
"0.70445484",
"0.70134807",
"0.70035017",
"0.6995122",
"0.6994287",
"0.6974036",
"0.69645983",
"0.69595885",
"0.69595885",
"0.69595885",
"0.6958612",
"0.69316727",
"0.69066805",
"0.6905054",
"0.6905054",
"0.68684435",
"0.68493235",
"0.68088025",
"0.68073004",
"0.6801815",
"0.6782993",
"0.67817426",
"0.67817426",
"0.67659324",
"0.6757833",
"0.6753429",
"0.6751958",
"0.67298645",
"0.6716966",
"0.6696123",
"0.6690816",
"0.6689577",
"0.66872203",
"0.66758394",
"0.6652559",
"0.66393614",
"0.6637278",
"0.6622515",
"0.6613412",
"0.6612878",
"0.66108733",
"0.66041833",
"0.65853554",
"0.6569846",
"0.6538645",
"0.65385073",
"0.65357715",
"0.6517077",
"0.64981276",
"0.64933026",
"0.6487315",
"0.6486772",
"0.6478756",
"0.6472035",
"0.6467129",
"0.6462921",
"0.64621407",
"0.64589614",
"0.645698",
"0.6455436",
"0.6454449",
"0.64539886",
"0.6452546",
"0.6445076",
"0.6444465",
"0.64360875",
"0.643585",
"0.64346457",
"0.6431079",
"0.6423939",
"0.6423929",
"0.6415369",
"0.6414354",
"0.64077675",
"0.63974744"
] | 0.69751424 | 28 |
Instantiates a new User. | public User(String name, String surname, String mail, String phone) {
this.name = name;
this.surname = surname;
this.mail = mail;
this.phone = phone;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User() {\n log.debug(\"Create a User object\");\n }",
"public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }",
"public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }",
"User createUser();",
"public User() {}",
"public User() {}",
"public User() {}",
"public User(){}",
"public User(){}",
"public User(){}",
"public User() { }",
"private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }",
"public User() {\r\n \r\n }",
"public User() {\n }",
"public User() {\r\n\t}",
"public User() {\r\n }",
"User()\n\t{\n\n\t}",
"public User() {\r\n\r\n\t}",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n\t}",
"public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\n\t}",
"public User() {\n\n }",
"public User()\n\t{\n\t}",
"public User() {\n super();\n }",
"public User() {\n super();\n }",
"public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}",
"public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}",
"User createUser(UserCreationModel user);",
"public void createUser(User user);",
"public static User createUser(String id) {\n\n User user = new User();\n user.setId(id);\n\n return user;\n }",
"public DbUser() {\r\n\t}",
"protected User() {}",
"protected User() {}",
"public User(){\n }",
"public User(String name) {\n this(UUID.randomUUID().toString(), name, String.format(\"User account for %s\", name) );\n }",
"@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}",
"public void createUser(User user) {\n\n\t}",
"public static createNewUser newInstance() {\n createNewUser fragment = new createNewUser();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"User createUser(User user);",
"public User(){\n\n }",
"public User(){\n this(null, null);\n }",
"public User() {\r\n this(\"\", \"\");\r\n }",
"public void newUser(User user);",
"private User() {}",
"public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}",
"public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}",
"public User() throws InvalidUserDataException {\n this(DEFAULT_ID, DEFAULT_PASSWORD, DEFAULT_FIRST_NAME, \n DEFAULT_LAST_NAME, DEFAULT_EMAIL_ADDRESS, new Date(), \n new Date(), DEFAULT_TYPE, DEFAULT_ENABLED_STATUS);\n }",
"protected User() {\n }",
"public User(String username, String password) {\n this.userID = UUID.randomUUID();\n this.username = username;\n this.password = password;\n this.isTechAgent = false;\n }",
"public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }",
"User create(User user);",
"private User() {\n }",
"public User(String uId, String email, String password) \n\t{\n\t\tthis.userId = uId;\n\t\tthis.accDetails = AccountDetails.create(uId,email,password);\n this.credit = Credit.create(uId);\n }",
"public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }",
"private User createWithParameters(Map<String, String> userParameters) {\n User user = new User();\n String passHashed = BCrypt.hashpw(userParameters.get(PASSWORD_PARAMETER_NAME), BCrypt.gensalt());\n user.setUsername(userParameters.get(USERNAME_PARAMETER_NAME));\n user.setPassword(passHashed);\n user.setFirstName(userParameters.get(FIRST_NAME_PARAMETER_NAME));\n user.setLastName(userParameters.get(LAST_NAME_PARAMETER_NAME));\n user.setEmail(userParameters.get(EMAIL_PARAMETER_NAME));\n user.setPhone(userParameters.get(PHONE_PARAMETER_NAME));\n user.setAddress(userParameters.get(ADDRESS_PARAMETER_NAME));\n user.setAccount(BigDecimal.ZERO);\n user.setInitDate(LocalDate.now());\n user.setBlockedUntil(LocalDate.now());\n user.setRole(User.Role.USER);\n return user;\n }",
"public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }",
"public User(String firstName, String lastName, Long userid, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.userid = userid;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }",
"public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}",
"public JpaUser() {\n }",
"UserCreateResponse createUser(UserCreateRequest request);",
"private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }",
"public UserProfile() {}",
"public User() {\n\tsuper();\n}",
"User(String userID, String password, String firstName, String lastName) {\n this.userID = userID;\n this.password = password;\n this.firstName = firstName;\n this.lastName = lastName;\n }",
"public UserBuilder() {\n this.user = new User();\n }",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }",
"@Override\n public User createFromParcel(Parcel in) {\n return new User(in);\n }",
"public UserAccount() {\n\n\t}",
"public static User newInstance(String account, String password, String name, boolean isFemale) {\n User user = new User();\n user.account = account;\n user.password = password;\n user.name = name;\n user.isFemale = isFemale;\n user.createdDateTime = DateTimeUtil.getCurrentDateTime(); // Automatically generates the date & time.\n return user;\n }",
"public User createUser(UserDTO userDto) {\n User user = new User();\n user.setLogin(userDto.getLogin());\n user.setFirstName(userDto.getFirstName());\n user.setLastName(userDto.getLastName());\n user.setEmail(userDto.getEmail());\n if (userDto.getLangKey() == null) {\n user.setLangKey(\"en\"); // default language\n } else {\n user.setLangKey(userDto.getLangKey());\n }\n String encryptedPassword = passwordEncoder.encode(RandomUtil.generatePassword());\n user.setPassword(encryptedPassword);\n user.setResetKey(RandomUtil.generateResetKey());\n user.setResetDate(ZonedDateTime.now());\n user.setActivated(false);\n\n user.setRoles(getUserRoles(userDto));\n userRepository.save(user);\n log.debug(\"Created Information for User: {}\", user);\n return user;\n }",
"public User() {\r\n // TODO - implement User.User\r\n throw new UnsupportedOperationException();\r\n }",
"public UserModel() throws IOException {\n userManager = new UserManager();\n }",
"public User(Long id) {\n\t\tsuper(id, AppEntityCodes.USER);\n\t}",
"public UserAccount() {\n }",
"public User(String firstName, String lastName, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }",
"private void createUser(final String email, final String password) {\n\n }",
"public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}",
"public User() {\n this.username = \"test\";\n }",
"public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }",
"public UserManager() {\n }",
"public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}",
"public Users() {}",
"protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }",
"public AppUser() {\r\n\t\tsuper();\r\n\t}"
] | [
"0.75807",
"0.73489875",
"0.7275648",
"0.72022533",
"0.71809304",
"0.71809304",
"0.71809304",
"0.7122721",
"0.7122721",
"0.7122721",
"0.71099246",
"0.7100796",
"0.70734364",
"0.70437044",
"0.70120513",
"0.70024514",
"0.6994129",
"0.6992871",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.69740427",
"0.6972503",
"0.6966685",
"0.6958361",
"0.6958361",
"0.6958361",
"0.69571465",
"0.6930704",
"0.69053215",
"0.69036746",
"0.69036746",
"0.6868547",
"0.6850084",
"0.68100643",
"0.68089813",
"0.6803531",
"0.67830217",
"0.6780967",
"0.6780967",
"0.6764498",
"0.675978",
"0.67568386",
"0.6754055",
"0.6728102",
"0.67183715",
"0.6694819",
"0.66895634",
"0.6688581",
"0.6687169",
"0.66743934",
"0.6652873",
"0.6640685",
"0.66393083",
"0.66217995",
"0.6614513",
"0.6614281",
"0.66110355",
"0.66028196",
"0.6587491",
"0.65716153",
"0.6540023",
"0.653877",
"0.6537919",
"0.6518841",
"0.64984846",
"0.6495472",
"0.6488183",
"0.64871097",
"0.6477146",
"0.64740723",
"0.6466316",
"0.6464565",
"0.6461961",
"0.6461352",
"0.6456988",
"0.64564306",
"0.6455225",
"0.64550227",
"0.6454417",
"0.64459515",
"0.6444767",
"0.6438954",
"0.6438525",
"0.64354765",
"0.6431775",
"0.64265585",
"0.642507",
"0.64161795",
"0.6413695",
"0.6409449",
"0.63978505"
] | 0.0 | -1 |
Instantiates a new User. | public User(String name, String surname, String mail, String phone, Role role) {
this.name = name;
this.surname = surname;
this.mail = mail;
this.phone = phone;
this.role = role;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User() {\n log.debug(\"Create a User object\");\n }",
"public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }",
"public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }",
"User createUser();",
"public User() {}",
"public User() {}",
"public User() {}",
"public User(){}",
"public User(){}",
"public User(){}",
"public User() { }",
"private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }",
"public User() {\r\n \r\n }",
"public User() {\n }",
"public User() {\r\n\t}",
"public User() {\r\n }",
"User()\n\t{\n\n\t}",
"public User() {\r\n\r\n\t}",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n\t}",
"public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\n\t}",
"public User() {\n\n }",
"public User()\n\t{\n\t}",
"public User() {\n super();\n }",
"public User() {\n super();\n }",
"public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}",
"public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}",
"User createUser(UserCreationModel user);",
"public void createUser(User user);",
"public static User createUser(String id) {\n\n User user = new User();\n user.setId(id);\n\n return user;\n }",
"public DbUser() {\r\n\t}",
"protected User() {}",
"protected User() {}",
"public User(){\n }",
"public User(String name) {\n this(UUID.randomUUID().toString(), name, String.format(\"User account for %s\", name) );\n }",
"@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}",
"public void createUser(User user) {\n\n\t}",
"public static createNewUser newInstance() {\n createNewUser fragment = new createNewUser();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"User createUser(User user);",
"public User(){\n\n }",
"public User(){\n this(null, null);\n }",
"public User() {\r\n this(\"\", \"\");\r\n }",
"public void newUser(User user);",
"private User() {}",
"public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}",
"public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}",
"public User() throws InvalidUserDataException {\n this(DEFAULT_ID, DEFAULT_PASSWORD, DEFAULT_FIRST_NAME, \n DEFAULT_LAST_NAME, DEFAULT_EMAIL_ADDRESS, new Date(), \n new Date(), DEFAULT_TYPE, DEFAULT_ENABLED_STATUS);\n }",
"protected User() {\n }",
"public User(String username, String password) {\n this.userID = UUID.randomUUID();\n this.username = username;\n this.password = password;\n this.isTechAgent = false;\n }",
"public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }",
"User create(User user);",
"private User() {\n }",
"public User(String uId, String email, String password) \n\t{\n\t\tthis.userId = uId;\n\t\tthis.accDetails = AccountDetails.create(uId,email,password);\n this.credit = Credit.create(uId);\n }",
"public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }",
"public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }",
"private User createWithParameters(Map<String, String> userParameters) {\n User user = new User();\n String passHashed = BCrypt.hashpw(userParameters.get(PASSWORD_PARAMETER_NAME), BCrypt.gensalt());\n user.setUsername(userParameters.get(USERNAME_PARAMETER_NAME));\n user.setPassword(passHashed);\n user.setFirstName(userParameters.get(FIRST_NAME_PARAMETER_NAME));\n user.setLastName(userParameters.get(LAST_NAME_PARAMETER_NAME));\n user.setEmail(userParameters.get(EMAIL_PARAMETER_NAME));\n user.setPhone(userParameters.get(PHONE_PARAMETER_NAME));\n user.setAddress(userParameters.get(ADDRESS_PARAMETER_NAME));\n user.setAccount(BigDecimal.ZERO);\n user.setInitDate(LocalDate.now());\n user.setBlockedUntil(LocalDate.now());\n user.setRole(User.Role.USER);\n return user;\n }",
"public User(String firstName, String lastName, Long userid, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.userid = userid;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }",
"public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}",
"public JpaUser() {\n }",
"UserCreateResponse createUser(UserCreateRequest request);",
"public UserProfile() {}",
"private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }",
"public User() {\n\tsuper();\n}",
"User(String userID, String password, String firstName, String lastName) {\n this.userID = userID;\n this.password = password;\n this.firstName = firstName;\n this.lastName = lastName;\n }",
"public UserBuilder() {\n this.user = new User();\n }",
"@Override\n public User createFromParcel(Parcel in) {\n return new User(in);\n }",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }",
"public UserAccount() {\n\n\t}",
"public User() {\r\n // TODO - implement User.User\r\n throw new UnsupportedOperationException();\r\n }",
"public static User newInstance(String account, String password, String name, boolean isFemale) {\n User user = new User();\n user.account = account;\n user.password = password;\n user.name = name;\n user.isFemale = isFemale;\n user.createdDateTime = DateTimeUtil.getCurrentDateTime(); // Automatically generates the date & time.\n return user;\n }",
"public UserModel() throws IOException {\n userManager = new UserManager();\n }",
"public User createUser(UserDTO userDto) {\n User user = new User();\n user.setLogin(userDto.getLogin());\n user.setFirstName(userDto.getFirstName());\n user.setLastName(userDto.getLastName());\n user.setEmail(userDto.getEmail());\n if (userDto.getLangKey() == null) {\n user.setLangKey(\"en\"); // default language\n } else {\n user.setLangKey(userDto.getLangKey());\n }\n String encryptedPassword = passwordEncoder.encode(RandomUtil.generatePassword());\n user.setPassword(encryptedPassword);\n user.setResetKey(RandomUtil.generateResetKey());\n user.setResetDate(ZonedDateTime.now());\n user.setActivated(false);\n\n user.setRoles(getUserRoles(userDto));\n userRepository.save(user);\n log.debug(\"Created Information for User: {}\", user);\n return user;\n }",
"public User(Long id) {\n\t\tsuper(id, AppEntityCodes.USER);\n\t}",
"public UserAccount() {\n }",
"public User(String firstName, String lastName, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }",
"private void createUser(final String email, final String password) {\n\n }",
"public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}",
"public User() {\n this.username = \"test\";\n }",
"public UserManager() {\n }",
"public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }",
"public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}",
"public Users() {}",
"protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }",
"public AppUser() {\r\n\t\tsuper();\r\n\t}"
] | [
"0.7582088",
"0.73480594",
"0.7273225",
"0.7200439",
"0.71821743",
"0.71821743",
"0.71821743",
"0.71243304",
"0.71243304",
"0.71243304",
"0.711101",
"0.71006274",
"0.707437",
"0.70445484",
"0.70134807",
"0.70035017",
"0.6995122",
"0.6994287",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.6974036",
"0.69645983",
"0.69595885",
"0.69595885",
"0.69595885",
"0.6958612",
"0.69316727",
"0.69066805",
"0.6905054",
"0.6905054",
"0.68684435",
"0.68493235",
"0.68088025",
"0.68073004",
"0.6801815",
"0.6782993",
"0.67817426",
"0.67817426",
"0.67659324",
"0.6757833",
"0.6753429",
"0.6751958",
"0.67298645",
"0.6716966",
"0.6696123",
"0.6690816",
"0.6689577",
"0.66872203",
"0.66758394",
"0.6652559",
"0.66393614",
"0.6637278",
"0.6622515",
"0.6613412",
"0.6612878",
"0.66108733",
"0.66041833",
"0.65853554",
"0.6569846",
"0.6538645",
"0.65385073",
"0.65357715",
"0.6517077",
"0.64981276",
"0.64933026",
"0.6487315",
"0.6486772",
"0.6478756",
"0.6472035",
"0.6467129",
"0.6462921",
"0.64621407",
"0.64589614",
"0.645698",
"0.6455436",
"0.6454449",
"0.64539886",
"0.6452546",
"0.6445076",
"0.6444465",
"0.64360875",
"0.643585",
"0.64346457",
"0.6431079",
"0.6423939",
"0.6423929",
"0.6415369",
"0.6414354",
"0.64077675",
"0.63974744"
] | 0.0 | -1 |
Instantiates a new User. | public User(int id, String name, String surname, String mail, String phone, String avatar, Role role) {
this.id = id;
this.name = name;
this.surname = surname;
this.mail = mail;
this.phone = phone;
this.avatar = avatar;
this.role = role;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User() {\n log.debug(\"Create a User object\");\n }",
"public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }",
"public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }",
"User createUser();",
"public User() {}",
"public User() {}",
"public User() {}",
"public User(){}",
"public User(){}",
"public User(){}",
"public User() { }",
"private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }",
"public User() {\r\n \r\n }",
"public User() {\n }",
"public User() {\r\n\t}",
"public User() {\r\n }",
"User()\n\t{\n\n\t}",
"public User() {\r\n\r\n\t}",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n\t}",
"public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\n\t}",
"public User() {\n\n }",
"public User()\n\t{\n\t}",
"public User() {\n super();\n }",
"public User() {\n super();\n }",
"public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}",
"public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}",
"User createUser(UserCreationModel user);",
"public void createUser(User user);",
"public static User createUser(String id) {\n\n User user = new User();\n user.setId(id);\n\n return user;\n }",
"public DbUser() {\r\n\t}",
"protected User() {}",
"protected User() {}",
"public User(){\n }",
"public User(String name) {\n this(UUID.randomUUID().toString(), name, String.format(\"User account for %s\", name) );\n }",
"@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}",
"public void createUser(User user) {\n\n\t}",
"public static createNewUser newInstance() {\n createNewUser fragment = new createNewUser();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"User createUser(User user);",
"public User(){\n\n }",
"public User(){\n this(null, null);\n }",
"public User() {\r\n this(\"\", \"\");\r\n }",
"public void newUser(User user);",
"private User() {}",
"public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}",
"public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}",
"public User() throws InvalidUserDataException {\n this(DEFAULT_ID, DEFAULT_PASSWORD, DEFAULT_FIRST_NAME, \n DEFAULT_LAST_NAME, DEFAULT_EMAIL_ADDRESS, new Date(), \n new Date(), DEFAULT_TYPE, DEFAULT_ENABLED_STATUS);\n }",
"protected User() {\n }",
"public User(String username, String password) {\n this.userID = UUID.randomUUID();\n this.username = username;\n this.password = password;\n this.isTechAgent = false;\n }",
"public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }",
"User create(User user);",
"private User() {\n }",
"public User(String uId, String email, String password) \n\t{\n\t\tthis.userId = uId;\n\t\tthis.accDetails = AccountDetails.create(uId,email,password);\n this.credit = Credit.create(uId);\n }",
"public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }",
"public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }",
"private User createWithParameters(Map<String, String> userParameters) {\n User user = new User();\n String passHashed = BCrypt.hashpw(userParameters.get(PASSWORD_PARAMETER_NAME), BCrypt.gensalt());\n user.setUsername(userParameters.get(USERNAME_PARAMETER_NAME));\n user.setPassword(passHashed);\n user.setFirstName(userParameters.get(FIRST_NAME_PARAMETER_NAME));\n user.setLastName(userParameters.get(LAST_NAME_PARAMETER_NAME));\n user.setEmail(userParameters.get(EMAIL_PARAMETER_NAME));\n user.setPhone(userParameters.get(PHONE_PARAMETER_NAME));\n user.setAddress(userParameters.get(ADDRESS_PARAMETER_NAME));\n user.setAccount(BigDecimal.ZERO);\n user.setInitDate(LocalDate.now());\n user.setBlockedUntil(LocalDate.now());\n user.setRole(User.Role.USER);\n return user;\n }",
"public User(String firstName, String lastName, Long userid, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.userid = userid;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }",
"public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}",
"public JpaUser() {\n }",
"UserCreateResponse createUser(UserCreateRequest request);",
"public UserProfile() {}",
"private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }",
"public User() {\n\tsuper();\n}",
"User(String userID, String password, String firstName, String lastName) {\n this.userID = userID;\n this.password = password;\n this.firstName = firstName;\n this.lastName = lastName;\n }",
"public UserBuilder() {\n this.user = new User();\n }",
"@Override\n public User createFromParcel(Parcel in) {\n return new User(in);\n }",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }",
"public UserAccount() {\n\n\t}",
"public User() {\r\n // TODO - implement User.User\r\n throw new UnsupportedOperationException();\r\n }",
"public static User newInstance(String account, String password, String name, boolean isFemale) {\n User user = new User();\n user.account = account;\n user.password = password;\n user.name = name;\n user.isFemale = isFemale;\n user.createdDateTime = DateTimeUtil.getCurrentDateTime(); // Automatically generates the date & time.\n return user;\n }",
"public UserModel() throws IOException {\n userManager = new UserManager();\n }",
"public User createUser(UserDTO userDto) {\n User user = new User();\n user.setLogin(userDto.getLogin());\n user.setFirstName(userDto.getFirstName());\n user.setLastName(userDto.getLastName());\n user.setEmail(userDto.getEmail());\n if (userDto.getLangKey() == null) {\n user.setLangKey(\"en\"); // default language\n } else {\n user.setLangKey(userDto.getLangKey());\n }\n String encryptedPassword = passwordEncoder.encode(RandomUtil.generatePassword());\n user.setPassword(encryptedPassword);\n user.setResetKey(RandomUtil.generateResetKey());\n user.setResetDate(ZonedDateTime.now());\n user.setActivated(false);\n\n user.setRoles(getUserRoles(userDto));\n userRepository.save(user);\n log.debug(\"Created Information for User: {}\", user);\n return user;\n }",
"public User(Long id) {\n\t\tsuper(id, AppEntityCodes.USER);\n\t}",
"public UserAccount() {\n }",
"public User(String firstName, String lastName, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }",
"private void createUser(final String email, final String password) {\n\n }",
"public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}",
"public User() {\n this.username = \"test\";\n }",
"public UserManager() {\n }",
"public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }",
"public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}",
"public Users() {}",
"protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }",
"public AppUser() {\r\n\t\tsuper();\r\n\t}"
] | [
"0.7582088",
"0.73480594",
"0.7273225",
"0.7200439",
"0.71821743",
"0.71821743",
"0.71821743",
"0.71243304",
"0.71243304",
"0.71243304",
"0.711101",
"0.71006274",
"0.707437",
"0.70445484",
"0.70134807",
"0.70035017",
"0.6995122",
"0.6994287",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.69751424",
"0.6974036",
"0.69645983",
"0.69595885",
"0.69595885",
"0.69595885",
"0.6958612",
"0.69316727",
"0.69066805",
"0.6905054",
"0.6905054",
"0.68684435",
"0.68493235",
"0.68088025",
"0.68073004",
"0.6801815",
"0.6782993",
"0.67817426",
"0.67817426",
"0.67659324",
"0.6757833",
"0.6753429",
"0.6751958",
"0.67298645",
"0.6716966",
"0.6696123",
"0.6690816",
"0.6689577",
"0.66872203",
"0.66758394",
"0.6652559",
"0.66393614",
"0.6637278",
"0.6622515",
"0.6613412",
"0.6612878",
"0.66108733",
"0.66041833",
"0.65853554",
"0.6569846",
"0.6538645",
"0.65385073",
"0.65357715",
"0.6517077",
"0.64981276",
"0.64933026",
"0.6487315",
"0.6486772",
"0.6478756",
"0.6472035",
"0.6467129",
"0.6462921",
"0.64621407",
"0.64589614",
"0.645698",
"0.6455436",
"0.6454449",
"0.64539886",
"0.6452546",
"0.6445076",
"0.6444465",
"0.64360875",
"0.643585",
"0.64346457",
"0.6431079",
"0.6423939",
"0.6423929",
"0.6415369",
"0.6414354",
"0.64077675",
"0.63974744"
] | 0.0 | -1 |
MODIFIES: this EFFECTS: add the agent into recruitment list | public void addAgent(String organization, String name) throws IOException, ImpossibleAgentException {
if (organization.equals("RhineLife") && rhineLifeAgents.contains(rhineLifeAgents.getAgent(name))) {
recruitedAgents.add(rhineLifeAgents.getAgent(name));
recruitedAgents.save(file);
} else if (organization.equals("RhodeIsland") && rhodeIslandAgent.contains(rhodeIslandAgent.getAgent(name))) {
recruitedAgents.add(rhodeIslandAgent.getAgent(name));
recruitedAgents.save(file);
} else {
throw new ImpossibleAgentException();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addEnemySheild() {\n this.enemyShield += 1;\n }",
"public void addAgent(String name)\r\n {\n \r\n }",
"private void addAgentAction(Event e) {\n AgentActionEvent event = (AgentActionEvent) e;\n int time = this.getEnvironment().getTime();\n\n this.addCycle(time);\n\n var packet = event.getPacket();\n var agentId = event.getAgent().getID();\n\n switch (event.getAction()) {\n case AgentActionEvent.PICK: {\n var action = new PacketAction(packet.getX(), packet.getY(),\n PacketAction.Mode.Pickup, agentId);\n this.historyPackets.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n case AgentActionEvent.PUT: {\n var action = new PacketAction(event.getToX(), event.getToY(),\n PacketAction.Mode.Drop, agentId);\n this.historyPackets.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n case AgentActionEvent.DELIVER: {\n var action = new PacketAction(event.getToX(), event.getToY(),\n PacketAction.Mode.Delivery, agentId);\n this.historyPackets.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n case AgentActionEvent.STEP: {\n var action = new AgentMove(event.getFromX(), event.getFromY(),\n event.getToX(), event.getToY(), agentId);\n this.historyMoves.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n }\n\n repaint();\n }",
"public void agentAdded(Simulation simulation, IAgent agent) {\n }",
"public void addAgent(Agent agent) {\n\t\tif (!agents.contains(agent)) {\n\t\t\tagents.add(agent);\n\t\t\t// the agent wants to handle the events coming from the engine\n\t\t\tengine.registerWorldUpdateHandler(agent);\n\t\t\tengine.registerPlayerActionsUpdateHandler(agent);\n\t\t\t// we (the session) want to handle actions coming from the agent\n\t\t\tagent.registerPlayerActionHandler(this);\n\t\t}\n\t}",
"public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}",
"@Override\n public void visit(final Rogue rogue) {\n rogue.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n rogue.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n // anunt magicianul de ajutorul ingerului\n rogue.getEvent().anEventHappened(rogue, this, \"help\");\n // ofer Xp jucatorului pentru a trece la nivelul urmator\n rogue.gainXp(getNewXp(rogue));\n }",
"private void addPlayerSheild() {\n this.playerShield += 1;\n }",
"@Override\n\tpublic void action() {\n\t\t_agj.addBehaviour(new RecibirDistritos(_agj));\n\t\t_agj.addBehaviour(new RecibirMonedas(_agj));\n\t}",
"public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }",
"void onAgentSelected(int agentPosition);",
"public void doItemEffect(RobotPeer robot){\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\trobot.updateEnergy(-15);\n\t\t//System.out.println(\"Poison item USED\");\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\t\n\t}",
"public void shoot(Agent agent) throws RemoteException {\n\t}",
"public void addAgent(Agent a)\n/* 86: */ {\n/* 87:139 */ this.mapPanel.addAgent(a);\n/* 88: */ }",
"@Override\n public void onReceiveItem(InventoryItem itemReceived) {\n inventory.add(itemReceived);\n }",
"private void addAdditionalEffects()\n {\n // make them fly so they do not fall from suspension\n FLYING flying = new FLYING(p, duration + 10, targetID);\n Ollivanders2API.getPlayers().playerEffects.addEffect(flying);\n additionalEffects.add(O2EffectType.FLYING);\n\n // add an immbolize effect with a duration slightly longer than this one so that they cannot move while suspended\n IMMOBILIZE immbobilize = new IMMOBILIZE(p, duration + 10, targetID);\n Ollivanders2API.getPlayers().playerEffects.addEffect(immbobilize);\n additionalEffects.add(O2EffectType.IMMOBILIZE);\n }",
"public void join(Agent agent) throws RemoteException {\nSystem.out.println(\"Em join: agent = \" + agent.toXml());\n\t\tint row = agent.getRow();\n\t\tint col = agent.getColumn();\n\t\tPoint pos = new Point(row, col);\n\t\tagents.put(agent.getName(), pos);\n\t\tSet s = (Set) agentPositions.get(pos);\n\t\ts.add(agent);\n\t\tString fileName;\n\t\tif (agent instanceof Explorer) {\n\t\t\tfileName = EXPLORER_FILE;\n\t\t} else {\n\t\t\tfileName = WUMPUS_FILE;\n\t\t}\n\t\taddImage(row, col, agent.getName(), fileName);\n\t\tsetDirection(row, col, agent.getName(), agent.getDirection());\n\t\tif (agent instanceof Wumpus) {\n\t\t\tcheckStench(row + 1, col - 1, row - 1, col + 1);\n\t\t}\n\t}",
"public synchronized void addTheWarrior(Warrior w){\n Warrior obj=(Warrior)charactersOccupiedTheLocation[0];\n while(obj!=null && w.checkMobility() && obj.checkMobility() && obj.checkIsAlive()){\n try {\n wait(1000); //1000\n } catch (InterruptedException ex) {}\n obj=(Warrior)charactersOccupiedTheLocation[0];\n }\n charactersOccupiedTheLocation[0]=w;\n }",
"public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }",
"@Override\n public void onAgentIntroduced(long agentId, LocationOnRoad currentLoc, long time) {\n agentLastAppearTime.put(agentId, time);\n agentLastLocation.put(agentId, currentLoc);\n availableAgent.add(agentId);\n }",
"@Override\n public void visit(final Pyromancer pyromancer) {\n pyromancer.getFirstAbility().\n changeAllVictimModifier(DAMAGE_MODIFIER_FOR_PYROMANCER);\n pyromancer.getSecondAbility().\n changeAllVictimModifier(DAMAGE_MODIFIER_FOR_PYROMANCER);\n // anunt magicianul de ajutorul ingerului\n pyromancer.getEvent().anEventHappened(pyromancer, this, \"help\");\n // ofer Xp jucatorului pentru a trece la nivelul urmator\n pyromancer.gainXp(getNewXp(pyromancer));\n }",
"public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n removeEnergy(decayRate);\n\n }\n else {\n // getWorld().removeObject(this);\n\n }\n \n //check the energy decay\n //change size and weight\n //\n }",
"public void addAwardKillerNotDead() {\n\t\tfor (int i = 0; i < killers.size(); i++) {\n\t\t\tif (killerHasNotDeath(killers.get(i).getName())) {\n\t\t\t\tint awards = killers.get(i).getAwardMatchWithoutDeath();\n\t\t\t\tkillers.get(i).setAwardMatchWithoutDeath(awards + 1);\n\t\t\t}\n\n\t\t}\n\t}",
"public Lunge() {\n super(SkillFactory.LUNGE, \"Lunge\", SkillDescription.lunge, 15, Pokemon.Type.BUG,\n SkillCategory.PHYSICAL, 100, 80, 1, 1.0);\n secondaryEffects.add(new AttackEffect(SecondaryEffect.Target.ENEMY, 1,\n SecondaryEffect.StatDirection.DECREASE));\n makesPhysicalContact = true;\n }",
"public void ability(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage+12;\n lm.player.setDamage(newDamage);\n }",
"public void addDamageHate(final L2Character attacker, final int damage, int aggro)\n\t{\n\t\tif (attacker == null /* || aggroList == null */)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the AggroInfo of the attacker L2Character from the aggroList of the L2Attackable\n\t\tAggroInfoHolder ai = getAggroListRP().get(attacker);\n\t\t\n\t\tif (ai == null)\n\t\t{\n\t\t\tai = new AggroInfoHolder(attacker);\n\t\t\tai.init();\n\t\t\tgetAggroListRP().put(attacker, ai);\n\t\t}\n\t\t\n\t\t// If aggro is negative, its comming from SEE_SPELL, buffs use constant 150\n\t\tif (aggro < 0)\n\t\t{\n\t\t\tai.decHate(aggro * 150 / (getLevel() + 7));\n\t\t\taggro = -aggro;\n\t\t}\n\t\t// if damage == 0 -> this is case of adding only to aggro list, dont apply formula on it\n\t\telse if (damage == 0)\n\t\t{\n\t\t\tai.incHate(aggro);\n\t\t\t// else its damage that must be added using constant 100\n\t\t}\n\t\telse\n\t\t{\n\t\t\tai.incHate(aggro * 100 / (getLevel() + 7));\n\t\t}\n\t\t\n\t\t// Add new damage and aggro (=damage) to the AggroInfo object\n\t\tai.incDmg(damage);\n\t\t\n\t\t// Set the intention to the L2Attackable to AI_INTENTION_ACTIVE\n\t\tif (getAI() != null && aggro > 0 && getAI().getIntention() == CtrlIntention.AI_INTENTION_IDLE)\n\t\t{\n\t\t\tgetAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);\n\t\t}\n\t\t\n\t\tai = null;\n\t\t// Notify the L2Attackable AI with EVT_ATTACKED\n\t\tif (damage > 0)\n\t\t{\n\t\t\tif (getAI() != null)\n\t\t\t{\n\t\t\t\tgetAI().notifyEvent(CtrlEvent.EVT_ATTACKED, attacker);\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (attacker instanceof L2PcInstance || attacker instanceof L2Summon)\n\t\t\t\t{\n\t\t\t\t\tL2PcInstance player = attacker instanceof L2PcInstance ? (L2PcInstance) attacker : ((L2Summon) attacker).getOwner();\n\t\t\t\t\t\n\t\t\t\t\tfor (final Quest quest : getTemplate().getEventQuests(Quest.QuestEventType.ON_ATTACK))\n\t\t\t\t\t{\n\t\t\t\t\t\tquest.notifyAttack(this, player, damage, attacker instanceof L2Summon);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tplayer = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (final Exception e)\n\t\t\t{\n\t\t\t\tLOGGER.error(\"\", e);\n\t\t\t}\n\t\t}\n\t}",
"public void reward(){\n setLastDrop(System.currentTimeMillis());\n collect(1);\n }",
"private void addAI(){\n\n }",
"@Override\n\tprotected void enterEffect() {\n\t\t\n\t}",
"public void prepareAgent(Agent agent) {\n\t\t\t\tRole userRole = new Role();\n\t\t\t\tuserRole.role = Roles.AGENT;\n\t\t\t\tuserRole.user = agent.user;\n\t\t\t\tagent.user.roles.add(userRole);\n\t\t\t\tEbean.save(userRole);\n\t\t\t\tLOG.info(\"Adding role as an agent\");\n\t\t\t\tuserDao.save(agent.user);\n\t\t\t\tagent.form.status = FormStatus.PAID;\n\t\t}",
"@Override\r\n\tpublic void add(Army garrison) {\r\n\t\tgarrison.addArtillery(1);\r\n\t}",
"public void addKill() {\n nDeaths++;\n }",
"protected void addAllowedArmor(Material armor) {\r\n\t\tthis.allowedArmor.add(armor);\r\n\t}",
"void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);",
"@Override\n\tpublic void onAdd() {\n\t\tsuper.onAdd();\n\n\t\tsetIdleAnimation(4527);\n\t\tsetNeverRandomWalks(true);\n\t\tsetWalkingHomeDisabled(true);\n\n\t\tthis.region = Stream.of(AbyssalSireRegion.values()).filter(r -> r.getSire().getX() == getSpawnPositionX()\n\t\t && r.getSire().getY() == getSpawnPositionY()).findAny().orElse(null);\n\n\t\tRegion region = Region.getRegion(getSpawnPositionX(), getSpawnPositionY());\n\n\t\tif (region != null) {\n\t\t\tregion.forEachNpc(npc -> {\n\t\t\t\tif (npc instanceof AbyssalSireTentacle) {\n\t\t\t\t\tif (!npc.isDead()) {\n\t\t\t\t\t\tnpc.setDead(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tList<Position> tentaclePositions = Arrays.asList(\n\t\t\t\tthis.region.getTentacleEast(),\n\t\t\t\tthis.region.getTentacleWest(),\n\t\t\t\tthis.region.getTentacleNorthEast(),\n\t\t\t\tthis.region.getTentacleNorthWest(),\n\t\t\t\tthis.region.getTentacleSouthEast(),\n\t\t\t\tthis.region.getTentacleSouthWest()\n\t\t );\n\n\t\ttentaclePositions.forEach(position -> {\n\t\t\ttentacles.add(NpcHandler.spawnNpc(5909, position.getX(), position.getY(), position.getZ()));\n\t\t});\n\n\t\tList<Position> respiratoryPositions = Arrays.asList(\n\t\t\t\tthis.region.getRespiratorySystemNorthEast(),\n\t\t\t\tthis.region.getRespiratorySystemNorthWest(),\n\t\t\t\tthis.region.getRespiratorySystemSouthEast(),\n\t\t\t\tthis.region.getRespiratorySystemSouthWest()\n\t\t );\n\n\t\trespiratoryPositions.forEach(position -> respiratorySystems.add(\n\t\t\t\tNpcHandler.spawnNpc(5914, position.getX(), position.getY(), position.getZ())));\n\t}",
"@Override\n\tprotected void fireAddEnemyMissile(String launcherId, String destination,\n\t\t\tint damage, int flyTime){\n\t\t\n\t}",
"private void addEnemies() {\n\t\tred_ghost = new Enemy();\r\n\t\tthis.add(red_ghost);\r\n\t\tenemies.add(red_ghost);\r\n\t\t\r\n\t}",
"@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }",
"public void act() \r\n {\r\n addDrone();\r\n if(droneTimer>0)\r\n {\r\n droneTimer--;\r\n }\r\n }",
"@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException 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\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\t\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}",
"@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"前置通知\");\n\t\ttarget.add();\n\t\tSystem.out.println(\"后置通知\");\n\t}",
"public void givePlayerLevelBonus() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tp.addScore(5 * (currentLevel-1));\n\t\t\t}\n\t\t}\n\t\tserver.updateHighscoreList();\n\t\tserver.addTextToLoggingWindow(\"Server gives all players level bonus\");\n\t}",
"public void applyBonusOnBird(BonusActor.Type bonusType) {\n int listSize = birdList.size() - 1;\n int bonusLevel = -1;\n if (bonusType == BonusActor.Type.BIRD_BOMB_LVL0) {// brown bomb\n bonusLevel = 0;\n } else if (bonusType == BonusActor.Type.BIRD_BOMB_LVL1) {// green bomb\n bonusLevel = 1;\n }\n// if (bonusLevel >= 0) {\n// for (int i = listSize; i >= 0; i--) {\n// if (birdList.get(i).level == bonusLevel) {\n// birdList.get(i).flyAction.restart();\n// }\n// }\n// }\n }",
"public void addActor(Actor actor) { ActorSet.addElement(actor); }",
"public void applyEffectUser(Enemy user) {\n\t\tsuper.applyEffectsUser(user);\n\t\tuser.addEnrage(enrage);\n\t}",
"public void addAgentAndPlayer(Agent agent) {\n\t\tif (!agents.contains(agent)) {\n\t\t\t// first add their player\n\t\t\tPlayer p = addPlayer(agent.getName());\n\t\t\tagentPlayers.put(agent, p);\n\t\t\t// add them as a listener\n\t\t\taddAgent(agent);\n\t\t}\n\t}",
"private void setArmor() {\n\n if (VersionChecker.currentVersionIsUnder(12, 2)) return;\n if (!ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_ARMOR)) return;\n\n eliteMob.getEquipment().setItemInMainHandDropChance(0);\n eliteMob.getEquipment().setHelmetDropChance(0);\n eliteMob.getEquipment().setChestplateDropChance(0);\n eliteMob.getEquipment().setLeggingsDropChance(0);\n eliteMob.getEquipment().setBootsDropChance(0);\n\n if (hasCustomArmor) return;\n\n if (!(eliteMob instanceof Zombie || eliteMob instanceof PigZombie ||\n eliteMob instanceof Skeleton || eliteMob instanceof WitherSkeleton)) return;\n\n eliteMob.getEquipment().setBoots(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.AIR));\n\n if (eliteMobLevel >= 12)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.LEATHER_HELMET));\n\n if (eliteMobLevel >= 14)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.LEATHER_BOOTS));\n\n if (eliteMobLevel >= 16)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS));\n\n if (eliteMobLevel >= 18)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));\n\n if (eliteMobLevel >= 20)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.CHAINMAIL_HELMET));\n\n if (eliteMobLevel >= 22)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.CHAINMAIL_BOOTS));\n\n if (eliteMobLevel >= 24)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.CHAINMAIL_LEGGINGS));\n\n if (eliteMobLevel >= 26)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.CHAINMAIL_CHESTPLATE));\n\n if (eliteMobLevel >= 28)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.IRON_HELMET));\n\n if (eliteMobLevel >= 30)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.IRON_BOOTS));\n\n if (eliteMobLevel >= 32)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.IRON_LEGGINGS));\n\n if (eliteMobLevel >= 34)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.IRON_CHESTPLATE));\n\n if (eliteMobLevel >= 36)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.DIAMOND_BOOTS));\n\n if (eliteMobLevel >= 38)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.DIAMOND_HELMET));\n\n if (eliteMobLevel >= 40)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.DIAMOND_LEGGINGS));\n\n if (eliteMobLevel >= 42)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));\n\n }",
"public static void handleLeatherMake(Player player, Item item) {\n\t\t\n\t}",
"@Override\n public void addMentor(Mentor mentor) throws AlfredException {\n this.mentorList.add(mentor);\n }",
"public void addEffect(BattleEffect btlEff) {\n effectsToApply.add(btlEff);\n effectsToRemove.add(btlEff);\n }",
"void add(Actor actor);",
"@Override\n public void applyEffect(Player player) {\n\n player.add(mResourcesGains);\n\n }",
"@Override\n public boolean addControllerAgentInfo(ControllerAgent agent) {\n return false;\n }",
"@Override\n \tpublic void addActions() {\n \t\t\n \t}",
"public void act()\n {\n if (health == 0)\n {\n this.remove();\n }\n }",
"public void OnDamage(AI ai, int aTK, float f) {\n\tif(DamagedTimer < 0.8f)\n\t\treturn;\n\tvel.x = f;\n\tvel.y = 3;\n\tDamagedTimer = 0;\n\tgrounded = false;\n\taTK -= (getDEF()*0.8f);\n\tif(aTK <= 0)\n\t\taTK = 1;\n\tHP -= aTK;\n\tInventory.CurrentInventory.dmgTxts.add(new dmgText(pos.x, pos.y+1, aTK));\n\t\n\tSoundManager.PlaySound(\"playerHurt\",3);\n\t\n\t\n}",
"@Override\n public void addDamage(Player shooter, int damage) {\n if(!this.equals(shooter) && damage > 0) {\n int num=0;\n boolean isRage = false;\n Kill lastKill = null;\n List<PlayerColor> marksToBeRemoved = marks.stream().filter(m -> m == shooter.getColor()).collect(Collectors.toList());\n damage += marksToBeRemoved.size();\n marks.removeAll(marksToBeRemoved);\n\n if (this.damage.size() < 11) { //11\n for (int i = 0; i < damage; i++)\n this.damage.add(shooter.getColor());\n num = this.damage.size();\n if (num > 10) { //10\n this.deaths++;\n this.isDead = true;\n if (num > 11) {\n isRage = true;\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n }\n if (game != null)\n game.addThisTurnKill(shooter, this, isRage);\n\n } else if (num > 5)\n this.adrenaline = AdrenalineLevel.SHOOTLEVEL;\n else if (num > 2)\n this.adrenaline = AdrenalineLevel.GRABLEVEL;\n } else if (this.damage.size() == 11 && damage > 0) { //11\n lastKill = game.getLastKill(this);\n lastKill.setRage(true);\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n if(game != null)\n game.notifyRage(lastKill);\n }\n if (game != null)\n game.notifyDamage(this, shooter, damage, marksToBeRemoved.size());\n }\n }",
"public void addDrone()\r\n {\r\n if (droneTimer==0)\r\n {\r\n getWorld().addObject(new Drone(),(int)(Math.random()*(getWorld().getWidth()-50)+25),0);\r\n droneTimer =droneDelay;\r\n getWorld().addObject(new LightGunship(),(int)(Math.random()*(getWorld().getWidth()-50)+25),0);\r\n getWorld().addObject(new HeavyGunship(),(int)(Math.random()*(getWorld().getWidth()-50)+25),0);\r\n if(droneDelay >3)\r\n {\r\n droneDelay-=2;\r\n }\r\n }\r\n }",
"public void customizeMob(LivingEntity mob, LeveledMonster leveledMonster, CreatureSpawnEvent.SpawnReason spawnReason){\n mob.getPersistentDataContainer().set(monsterIdKey, PersistentDataType.STRING, leveledMonster.getName());\n assert mob.getEquipment() != null;\n mob.getEquipment().setHelmet(leveledMonster.getHelmet());\n mob.getEquipment().setChestplate(leveledMonster.getChestPlate());\n mob.getEquipment().setLeggings(leveledMonster.getLeggings());\n mob.getEquipment().setBoots(leveledMonster.getBoots());\n mob.getEquipment().setItemInMainHand(leveledMonster.getMainHand());\n mob.getEquipment().setItemInOffHand(leveledMonster.getOffHand());\n\n mob.getEquipment().setHelmetDropChance((float) leveledMonster.getHelmetDropChance());\n mob.getEquipment().setChestplateDropChance((float) leveledMonster.getChestplateDropChance());\n mob.getEquipment().setLeggingsDropChance((float) leveledMonster.getLeggingsDropChance());\n mob.getEquipment().setBootsDropChance((float) leveledMonster.getBootsDropChance());\n mob.getEquipment().setItemInMainHandDropChance((float) leveledMonster.getMainHandDropChance());\n mob.getEquipment().setItemInOffHandDropChance((float) leveledMonster.getOffHandDropChance());\n\n if (leveledMonster.getMainHand() != null){\n mob.setCanPickupItems(false);\n }\n\n AttributeInstance attribute = mob.getAttribute(Attribute.GENERIC_MAX_HEALTH);\n assert attribute != null;\n if (mob instanceof Slime){\n Slime slime = (Slime) mob;\n attribute.setBaseValue(leveledMonster.getBaseHealth() / (16/Math.pow(slime.getSize(), 2)));\n mob.setHealth(leveledMonster.getBaseHealth() / (16/Math.pow(slime.getSize(), 2)));\n } else {\n attribute.setBaseValue(leveledMonster.getBaseHealth());\n mob.setHealth(leveledMonster.getBaseHealth());\n }\n if (leveledMonster.getDisplayName() != null){\n if (!leveledMonster.getDisplayName().equals(\"null\")){\n mob.setCustomName(leveledMonster.getDisplayName());\n mob.setCustomNameVisible(leveledMonster.isDisplayNameVisible());\n }\n }\n if (leveledMonster.isBoss()){\n String title = leveledMonster.getDisplayName();\n if (leveledMonster.getDisplayName() == null){\n title = Utils.chat(\"&c&lBoss\");\n } else if (leveledMonster.getDisplayName().equals(\"null\")){\n title = Utils.chat(\"&c&lBoss\");\n }\n Utils.createBossBar(Main.getInstance(), mob, title, BarColor.RED, BarStyle.SOLID, Main.getInstance().getConfig().getInt(\"boss_bar_view_distance\"));\n }\n\n for (String key : leveledMonster.getAbilities()){\n Ability instantAbility = AbilityManager.getInstance().getInstantAbilities().get(key);\n if (instantAbility != null){\n instantAbility.execute(mob, null, new CreatureSpawnEvent(mob, spawnReason));\n }\n Ability runningAbility = AbilityManager.getInstance().getRunningAbilities().get(key);\n if (runningAbility != null){\n runningAbility.execute(mob, null, new CreatureSpawnEvent(mob, spawnReason));\n }\n }\n }",
"public org.biocatalogue.x2009.xml.rest.Agent addNewAgent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.Agent target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.Agent)get_store().add_element_user(AGENT$0);\r\n return target;\r\n }\r\n }",
"public void createInventoryReward() {\n if (inventoryEntityToRetrieve == null) {\n try {\n inventoryEntityToRetrieve = RandomBenefitModel.getInventoryRewards(application, encounter, characterVM.getDistance());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }",
"void updateEnemies() {\n getEnemies().forEach(e -> {\n if (!e.isAlive()) {\n e.die();\n SoundPlayer.play(SoundPlayer.enemyDestroyed);\n }\n });\n objectsInMap.removeIf(o -> o instanceof Enemy && !(((Enemy) o).isAlive()));//Removing Dead Enemies\n getEnemies().forEach(e -> e.setTarget(objectsInMap.stream().filter(p -> p.identifier.contains(\"PlayerTank0.\") &&\n p.isBlocking && ((Tank) p).isVisible()).collect(Collectors.toList())));//Giving Possible target to enemies to decide\n }",
"private void attacherReactions() {\n\t\tMailListeCtrl reception = new MailListeCtrl(this);\n\t\t\n\t\tnouveau.addActionListener(reception);\n\t\t\n\t\tsupprimer.addActionListener(reception);\n\t\t\n\t\tretour.addActionListener(reception);\n\t\t\n\t\tliste.addMouseListener(reception);\n\t}",
"public void updateArmorModifier(int p_184691_1_) {\n if (!this.world.isRemote) {\n this.getAttribute(Attributes.ARMOR).removeModifier(COVERED_ARMOR_BONUS_MODIFIER);\n if (p_184691_1_ == 0) {\n this.getAttribute(Attributes.ARMOR).applyPersistentModifier(COVERED_ARMOR_BONUS_MODIFIER);\n this.playSound(SoundEvents.ENTITY_SHULKER_CLOSE, 1.0F, 1.0F);\n } else {\n this.playSound(SoundEvents.ENTITY_SHULKER_OPEN, 1.0F, 1.0F);\n }\n }\n\n this.dataManager.set(PEEK_TICK, (byte)p_184691_1_);\n }",
"public void addActor(){\n actorProfileList.add(new ActorProfile());\n }",
"@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker, final boolean awake)\n\t{\n\t\t/*\n\t\t * if ((this instanceof L2SiegeGuardInstance) && (attacker instanceof L2SiegeGuardInstance)) //if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.EffectType.CONFUSION)!=null)) return; if ((this instanceof L2MonsterInstance)&&(attacker instanceof\n\t\t * L2MonsterInstance)) if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.EffectType.CONFUSION)!=null)) return;\n\t\t */\n\t\t\n\t\tif (isRaid() && attacker != null && attacker.getParty() != null && attacker.getParty().isInCommandChannel() && attacker.getParty().getCommandChannel().meetRaidWarCondition(this))\n\t\t{\n\t\t\tif (firstCommandChannelAttacked == null) // looting right isn't set\n\t\t\t{\n\t\t\t\tsynchronized (this)\n\t\t\t\t{\n\t\t\t\t\tif (firstCommandChannelAttacked == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfirstCommandChannelAttacked = attacker.getParty().getCommandChannel();\n\t\t\t\t\t\tif (firstCommandChannelAttacked != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommandChannelTimer = new CommandChannelTimer(this);\n\t\t\t\t\t\t\tcommandChannelLastAttack = System.currentTimeMillis();\n\t\t\t\t\t\t\tThreadPoolManager.getInstance().scheduleGeneral(commandChannelTimer, 10000); // check for last attack\n\t\t\t\t\t\t\tfirstCommandChannelAttacked.broadcastToChannelMembers(new CreatureSay(0, Say2.PARTYROOM_ALL, \"\", \"You have looting rights!\")); // TODO: retail msg\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\telse if (attacker.getParty().getCommandChannel().equals(firstCommandChannelAttacked)) // is in same channel\n\t\t\t{\n\t\t\t\tcommandChannelLastAttack = System.currentTimeMillis(); // update last attack time\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * // CommandChannel if(commandChannelTimer == null && isRaid() && attacker != null) { if(attacker.isInParty() && attacker.getParty().isInCommandChannel() && attacker.getParty().getCommandChannel().meetRaidWarCondition(this)) { firstCommandChannelAttacked = attacker.getParty().getCommandChannel();\n\t\t * commandChannelTimer = new CommandChannelTimer(this, attacker.getParty().getCommandChannel()); ThreadPoolManager.getInstance().scheduleGeneral(_commandChannelTimer, 300000); // 5 min firstCommandChannelAttacked.broadcastToChannelMembers(new CreatureSay(0, Say2.PARTYROOM_ALL, \"\",\n\t\t * \"You have looting rights!\")); } }\n\t\t */\n\t\tif (isEventMob)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Add damage and hate to the attacker AggroInfo of the L2Attackable aggroList\n\t\tif (attacker != null)\n\t\t{\n\t\t\taddDamage(attacker, (int) damage);\n\t\t}\n\t\t\n\t\t// If this L2Attackable is a L2MonsterInstance and it has spawned minions, call its minions to battle\n\t\tif (this instanceof L2MonsterInstance)\n\t\t{\n\t\t\tL2MonsterInstance master = (L2MonsterInstance) this;\n\t\t\t\n\t\t\tif (this instanceof L2MinionInstance)\n\t\t\t{\n\t\t\t\tmaster = ((L2MinionInstance) this).getLeader();\n\t\t\t\t\n\t\t\t\tif (!master.isInCombat() && !master.isDead())\n\t\t\t\t{\n\t\t\t\t\tmaster.addDamage(attacker, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (master.hasMinions())\n\t\t\t{\n\t\t\t\tmaster.callMinionsToAssist(attacker);\n\t\t\t}\n\t\t\t\n\t\t\tmaster = null;\n\t\t}\n\t\t\n\t\t// Reduce the current HP of the L2Attackable and launch the doDie Task if necessary\n\t\tsuper.reduceCurrentHp(damage, attacker, awake);\n\t}",
"public void act() \r\n {\r\n // Add your action code here.\r\n espacio esp=(espacio)getWorld();\r\n Actor act=getOneIntersectingObject(nave.class);//Cuando la nave tome el poder \r\n if(act!=null)\r\n {\r\n for(int i=1;i<=10;i++)//incrementa el poder mediante el metodo solo 1s disparos\r\n esp.poder.incrementar();\r\n getWorld().removeObject(this);\r\n Greenfoot.playSound(\"Poder.wav\");\r\n }\r\n \r\n }",
"public void addPlayer(HeroClass newJob){job.add(newJob);}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tuiInterceptor.addItem(5);\n\t\t\t}",
"@Override\n public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix) \n {\n if (item.itemID == mod_TFmaterials.RubyPickaxe.itemID)\n {\n \t//player.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n \tplayer.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n }\n }",
"public void gettingAttacked(HitByBulletEvent e) {\r\n\t\tif (gotTarget) {\r\n\t\t\tfor (int i = 0; i < enemyTracker.getEnemyList().size(); i++) {\r\n\t\t\t\tif (enemyTracker.getEnemyList().get(i).getName().equals(e.getName()) && (!e.getName().equals(radarTarget.getName()))) {\r\n\t\t\t\t\t\tmrRobot.sendMessage(5, \"2\");\r\n\t\t\t\t\t\tradarTarget = enemyTracker.getEnemyList().get(getIndexForEnemy(e.getName()));\r\n\t\t\t\t\t\ttargetTracking.get(getIndexForName(mrRobot.getName())).updateTarget(radarTarget);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n public void applyAttributes() {\r\n super.applyAttributes();\r\n getEntity().setColor(color);\r\n getEntity().setOwner(MbPets.getInstance().getServer().getPlayer(getOwner()));\r\n getEntity().setAgeLock(true);\r\n\r\n if (isBaby) {\r\n getEntity().setBaby();\r\n } else {\r\n getEntity().setAdult();\r\n }\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_ATTACK_WOLF);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_FOLLOW_CARAVAN);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.TRADER_LLAMA_DEFEND_WANDERING_TRADER);\r\n }",
"public void collect() {\n\t\tthis.getOwnerArea().unregisterActor(this);\n\t\t\n\t}",
"@Override\n\tpublic void onAddToLocalList(Player player) {\n\t\tsuper.onAddToLocalList(player);\n\n\t\tif (phase == AbyssalSirePhase.SLEEPING || phase == AbyssalSirePhase.AWAKE) {\n\t\t\tgetEventHandler().addEvent(this, new CycleEvent<Entity>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void execute(CycleEventContainer<Entity> container) {\n\t\t\t\t\tcontainer.stop();\n\n\t\t\t\t\tif (phase == AbyssalSirePhase.SLEEPING) {\n\t\t\t\t\t\tsetIdleAnimation(4527);\n\t\t\t\t\t} else if (phase == AbyssalSirePhase.AWAKE) {\n\t\t\t\t\t\tsetIdleAnimation(4529);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void stop() {\n\n\t\t\t\t}\n\t\t\t}, 2);\n\t\t}\n\t}",
"private void freeAgent() {\n }",
"public static void appendRedemption(Player player) {\n\t\tdouble heal = (player.getMaxPrayer() * 2.5) / 10;\n\t\tplayer.gfx0(436);\n\t\tplayer.prayer = 0;\n\t\tplayer.constitution += heal;\n\t\tplayer.sendMessage(\"Healed \" + heal);\n\t\tplayer.getPA().refreshSkill(3);\n\t\tplayer.getPA().refreshSkill(5);\n\t}",
"@Override\n\tpublic void effectAdded(Effect effect) {\n\t}",
"public void agentEscaped(Simulation simulation, IAgent agent) {\n }",
"public void setAgent(String agent)\n {\n this.agent = agent;\n }",
"public void fireOnItemAddedToInventoryCommands();",
"@Override\n public void applyEffect(Battle battle, Cell cell, Account player, int activeTime) {\n /* if (activeTime != -1)\n return;\n ManaItemBuff manaItemBuff = new ManaItemBuff(player, 1);\n manaItemBuff.setTurnCounter(-5);\n manaItemBuff.castBuff();\n player.getOwnBuffs().add(manaItemBuff);*/\n }",
"public void act()\r\n {\n \r\n if (Background.enNum == 0)\r\n {\r\n length = Background.length;\r\n width = Background.width;\r\n getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n \r\n //long lastAdded2 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long seconds = curTime3 / 1000;\r\n //sleep = 3;\r\n //try {\r\n //TimeUnit.SECONDS.sleep(sleep);\r\n //} catch(InterruptedException ex) {\r\n //Thread.currentThread().interrupt();\r\n //}\r\n //Greenfoot.delay(3);\r\n //long curTime3 = System.currentTimeMillis();\r\n //long secs2 = curTime3 / 1000;\r\n //long curTime4;\r\n //long secs3;\r\n //do\r\n //{\r\n //getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n //curTime4 = System.currentTimeMillis();\r\n //secs3 = curTime3 / 1000;\r\n //} while (curTime4 / 1000 < curTime3 / 1000 + 3);\r\n //if (System.currentTimeMillis()/1000 - 3 >= secs2)\r\n //{\r\n //do\r\n //{\r\n pause(3000);\r\n Actor YouWon;\r\n YouWon = getOneObjectAtOffset(0, 0, YouWon.class);\r\n World world;\r\n world = getWorld();\r\n world.removeObject(this);\r\n Background.xp += 50;\r\n Background.myGold += 100;\r\n if (Background.xp >= 50 && Background.xp < 100){\r\n Background.myLevel = 2;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 100 && Background.xp < 200){\r\n Background.myLevel = 3;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 200 && Background.xp < 400){\r\n Background.myLevel = 4;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 400 && Background.xp < 800){\r\n Background.myLevel = 5;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 800 && Background.xp < 1600){\r\n Background.myLevel = 6;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 1600 && Background.xp < 3200){\r\n Background.myLevel = 7;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 3200 && Background.xp < 6400){\r\n Background.myLevel = 8;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 6400 && Background.xp < 12800){\r\n Background.myLevel = 9;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 12800){\r\n Background.myLevel = 10;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n }\r\n //curTime3 = System.currentTimeMillis();\r\n //secs2 = curTime3 / 1000;\r\n //index2++;\r\n //Greenfoot.setWorld(new YouWon());\r\n //lastAdded2 = curTime3;\r\n //}\r\n //} while (index2 <= 0);\r\n }\r\n }",
"private void repaired() { //active\n activate();\n this.damageState = DamageState.DAMAGED;\n this.setCurrentLife(this.maxLife / REPAIR_LIFE_FACTOR);\n }",
"@Override\n public void visit(final Wizard wizard) {\n wizard.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_WIZARD);\n wizard.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_WIZARD);\n // anunt magicianul de ajutorul ingerului\n wizard.getEvent().anEventHappened(wizard, this, \"help\");\n // ofer Xp jucatorului pentru a trece la nivelul urmator\n wizard.gainXp(getNewXp(wizard));\n }",
"@Override\n\tpublic void onDamage(WorldObj obj, Items item) {\n\n\t\tif(is_stunned) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint dmg = (int) item.type.ATK;\n\t\t\n\t\tOnScreenText.AddText(\"\"+dmg, bounds.x , bounds.y + 1.1f);\n\t\t\n\t\tvelX = obj.direction * 5;\n\t\tvelY = 5;\n\t\tgrounded = false;\n\t\t\n\t\tHP -= dmg;\n\t\t\n\n\t\tstun_counter = 0;\n\t\t\n\t\tif(HP <= 0 && !isDead) {\n\t\t\tonDeath();\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void addInformation(ItemStack is, EntityPlayer player, List l, boolean b){\n\t\tl.add(\"This staff is magical!\");\n\t}",
"public void getEnemyBattleEffects(Enemy enemy) {\n try {\n Ability chosenAbility = enemy.getLastUsableAbility().clone();\n ArrayList<Entity> players = new ArrayList<>();\n players.add(playerInCombat);\n addEffect(enemy.parse(chosenAbility,players,true));\n } catch (InsufficientResourceException ignored) {\n ;\n }\n }",
"public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }",
"void addAction(Action a) {\n ensureNotFrozen();\n ineligibleActions.add(a);\n }",
"public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }",
"@Override\n public void touchedBy(Creature c) {\n\n }",
"public void buffDeBuff(Pokemon agent, Moves move, Pokemon patient){\n double modifier = 1;\n if(move.getCategory().equalsIgnoreCase(\"buff\")||move.getCategory().equalsIgnoreCase(\"debuff\")) {\n System.out.println(agent.getName() + \" used \" + move.getName());\n }\n switch(move.getBuffDebuffType()){\n case \"Attack\":\n if(patient.getAttackInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getAttackInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setAttackInteger(patient.getAttackInteger()+move.getBuffDebuffInteger());\n System.out.println(patient.getName() + \"'s attack\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getAttackInteger());\n patient.setBattleAttack((int) (patient.getAttack()*modifier));\n break;\n case \"Defense\":\n if(patient.getDefenseInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getDefenseInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setDefenseInteger(patient.getDefenseInteger()+move.getBuffDebuffInteger());\n System.out.println(patient.getName() + \"'s defense\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getDefenseInteger());\n patient.setBattleDefense((int) (patient.getDefense()*modifier));\n break;\n case \"SpecAttack\":\n if(patient.getSpecialAttackInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getSpecialAttackInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setSpecialAttackInteger(patient.getSpecialAttackInteger()+move.getBuffDebuffInteger());\n System.out.println(patient.getName() + \"'s special attack\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getSpecialAttackInteger());\n patient.setBattleSpecialAttack((int) (patient.getSpecialAttack()*modifier));\n break;\n case \"SpecDefense\":\n if(patient.getSpecialDefenseInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getSpecialDefenseInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setSpecialDefenseInteger(patient.getSpecialDefenseInteger()+move.getBuffDebuffInteger());\n System.out.println(patient.getName() + \"'s special defense\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getSpecialAttackInteger());\n patient.setBattleSpecialDefense((int) (patient.getSpecialDefense()*modifier));\n break;\n case \"Speed\":\n if(patient.getSpeedInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getSpeedInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setSpeedInteger((patient.getSpeedInteger()+move.getBuffDebuffInteger()));\n System.out.println(patient.getName() + \"'s speed\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getSpeedInteger());\n patient.setBattleSpeed((int) (patient.getSpeed()*modifier));\n break;\n case \"Evasion\":\n if(patient.getEvasionInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getEvasionInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setSpeedInteger((patient.getEvasionInteger()+move.getBuffDebuffInteger()));\n System.out.println(patient.getName() + \"'s evasion\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = evasionConverter(patient.getEvasionInteger());\n patient.setBattleEvasion((int) (patient.getEvasion()*modifier));\n break;\n case \"Accuracy\":\n if(patient.getAccuracyInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getAccuracyInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setAccuracyInteger((patient.getAccuracyInteger()+move.getBuffDebuffInteger()));\n System.out.println(patient.getName() + \"'s accuracy\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = accuracyConverter(patient.getAccuracyInteger());\n patient.setBattleAccuracy((int) (patient.getAccuracy()*modifier));\n break;\n\n }\n }",
"public void dispara()\r\n {\r\n BulletEnemy bala = new BulletEnemy();\r\n getWorld().addObject(bala,getX(),getY()+25);\r\n }",
"public void updatAttackArmies(){\n\t\t\n\t\tfinal String s = attackToComboBox.getSelectedItem().toString();\n\t\tCountry country = MainPlayScreen.this.game.getBoard().getCountryByName(s);\n\t\t\t\n\t\tfinal int armies = MainPlayScreen.this.game.countryArmies.get(country);\n\t\tSystem.out.println(s + \" Defender Armies: \" + armies);\n\t\t\n\t\tif( armies == 1){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t}// end of if statement\n\t\t\n\t\telse if( armies == 2){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\t\n\t\t} // end of else if statement\n\t\t\n\t\telse{\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\tnumberOfArmies[5].addItem(3);\n\t\t\t\n\t\t}// end of else statement\n\t\tnumberOfArmies[5].repaint();\n\t}",
"public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}",
"public void reinforceAction(){\n\t\tint u = MainPlayScreen.this.game.getCurrentPlayer().getUnplacedArmies();\n\t\t\n\t\tif( u == 0){\n\t\t\tnumberOfArmies[1].removeAllItems();\n\t\t}\t// end of if statement\n\t\t\n\t\telse{\t\t\t\t\t\n\t\t\tnumberOfArmies[1].removeAllItems();\n\t\t\tfor( int i = 1; i <= u; i++){\n\t\t\t\tSystem.out.print(i);\n\t\t\t\t\n\t\t\t\tnumberOfArmies[1].addItem(i);\n\t\t\t\t\n\t\t\t}// end of else\n\t\t} // end of else\n\t\t\n\t\tnumberOfArmies[1].repaint();\n\t}",
"@Override\n public void applyItem() {\n Player player;\n if (Battle.getRunningBattle().getTurn() % 2 == 1)\n player = Battle.getRunningBattle().getPlayer2();\n else\n player = Battle.getRunningBattle().getPlayer1();\n\n if (player.getInGameCards().size() == 0)\n return;\n Random random = new Random();\n int randomIndex = random.nextInt(player.getInGameCards().size());\n while (!(getPlayer().getInGameCards().get(randomIndex) instanceof Warrior)) {\n randomIndex = random.nextInt(getPlayer().getInGameCards().size());\n }\n\n Buff buff = new PoisonBuff(1, true);\n buff.setWarrior((Warrior) player.getInGameCards().get(randomIndex));\n Battle.getRunningBattle().getPassiveBuffs().add(buff);\n }",
"@Override\n public void tick() {\n if (!this.world.isRemote) {\n if (this.angler == null) {\n this.remove();\n return;\n }\n this.setFlag(6, this.isGlowing());\n }\n this.baseTick();\n age++;\n\n if (this.world.isRemote) {\n int i = this.getDataManager().get(cau_ent);\n\n if (i > 0 && this.caughtEntity == null) {\n this.caughtEntity = this.world.getEntityByID(i - 1);\n MinecraftForge.EVENT_BUS.post(new HookReturningEvent(this));\n }\n } else {\n ItemStack itemstack = this.angler.getHeldItemMainhand();\n\n if (age > 80 || !this.angler.isAlive() || itemstack.getItem() != Items.ITEM_GRAB_HOOK || this.getDistanceSq(this.angler) > 4096.0D) {\n this.remove();\n this.angler.fishingBobber = null;\n return;\n }\n }\n\n if (this.caughtEntity != null && this.angler != null) {\n pullEntity();\n return;\n }\n if (this.inGround) {\n if(hasGrappling && this.angler != null){\n pullUser();\n }else{\n this.remove();\n }\n return;\n }\n\n // In the air\n ++this.ticksInAir;\n if (this.ticksInAir == 20) {\n setReturning();\n }\n if (!this.world.isRemote) {\n boolean caughtSomething = checkCollision();\n if(caughtSomething){\n return;\n }\n\n if (this.isReturning) {\n Vector3d target = this.angler.getPositionVec().add(0, this.angler.getEyeHeight(), 0);\n Vector3d v = target.subtract(this.getPositionVec());\n if (v.length() < 3D) {\n this.remove();\n return;\n }\n v = v.normalize().scale(speed).subtract(0, 0.1, 0);\n this.setMotion(v);\n }\n }\n\n this.move(MoverType.SELF, this.getMotion());\n this.setPosition(this.getPosX(), this.getPosY(), this.getPosZ());\n }",
"public void kill(){\n agent.kill();\n killed=true;\n LinkedList<Object> list = new LinkedList<>();\n queue.add(list);\n }",
"public void onLaunch(LivingEntity player, List<String> lore) {\r\n }",
"public void addQueuedPassenger(){\n this._queuedPassengers +=1;\n }"
] | [
"0.6565704",
"0.63146496",
"0.6085708",
"0.6035928",
"0.5886422",
"0.58718866",
"0.58214927",
"0.58042145",
"0.5757134",
"0.5707338",
"0.5691005",
"0.5689119",
"0.5684998",
"0.56628454",
"0.553926",
"0.5511186",
"0.5503316",
"0.549293",
"0.54666656",
"0.5455413",
"0.5450361",
"0.5418745",
"0.54061615",
"0.5386392",
"0.5382892",
"0.5381324",
"0.53747725",
"0.5365038",
"0.5361865",
"0.53607917",
"0.53482175",
"0.53478044",
"0.53465873",
"0.534001",
"0.53324336",
"0.5327458",
"0.5324453",
"0.53141636",
"0.5310705",
"0.5306398",
"0.53041124",
"0.52982247",
"0.52955204",
"0.52945143",
"0.52818435",
"0.5273892",
"0.52634275",
"0.5238843",
"0.5223993",
"0.52236766",
"0.5209124",
"0.5197212",
"0.51942235",
"0.5191786",
"0.51879907",
"0.5187688",
"0.5183718",
"0.517686",
"0.5173078",
"0.51676434",
"0.5167563",
"0.5166986",
"0.5164632",
"0.5163199",
"0.5160977",
"0.5155046",
"0.5149367",
"0.5147585",
"0.5147553",
"0.51464295",
"0.5144757",
"0.5142667",
"0.51418746",
"0.5140218",
"0.51384807",
"0.51370275",
"0.51365274",
"0.513141",
"0.5124927",
"0.51234585",
"0.5123325",
"0.5122349",
"0.5116583",
"0.51127553",
"0.51038116",
"0.5097471",
"0.5096332",
"0.50959504",
"0.5095893",
"0.5093356",
"0.50925905",
"0.50832623",
"0.5073613",
"0.507053",
"0.50647014",
"0.50632167",
"0.506258",
"0.5058141",
"0.5056963",
"0.5048245",
"0.50472367"
] | 0.0 | -1 |
MODIFIES: this EFFECTS: return the information of the agent searched | public void searchAgent(String name) throws ImpossibleAgentException {
if (rhineLifeAgents.contains(rhineLifeAgents.getAgent(name))) {
Agent a = rhineLifeAgents.getAgent(name);
a.getInfo();
} else if (rhodeIslandAgent.contains(rhodeIslandAgent.getAgent(name))) {
Agent a1 = rhodeIslandAgent.getAgent(name);
a1.getInfo();
} else {
throw new ImpossibleAgentException();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Agent getAgent();",
"public void show( Agent agent, Percept percept );",
"void onAgentSelected(int agentPosition);",
"ReagentSearch getReagentSearch();",
"public String getAgentName ()\n {\n return agentName;\n\n }",
"public void doSearch(){\n boolean possible=currPlanet.searchForArtifact();\n if(possible==true){\n System.out.println(\"the spaceship \"+this.name+\" found an artifact!\");\n numberOfArtifacts=numberOfArtifacts+1;\n \n }else{\n System.out.println(\"the spaceship \"+ this.name+\" did not find an artifact\");\n }\n //Call the getDamageTaken method on the current planet to find out how much damage the spaceship took while \n //performing the search\n double damageTaken=currPlanet.getDamageTaken();\n //Print a message saying that the spaceship took that much damage\n String damageStr = String.format(\"%1$.2f\", damageTaken);\n System.out.println(\"The spaceship \"+this.name+\" took \"+damageStr+\" damage while searching for an artifact on \"+currPlanet.getName());\n //Subtract the damage from the current health of the spaceship\n currentHealth=currentHealth-damageTaken;\n String currHealth=String.format(\"%1$.2f\", currentHealth);\n System.out.println(\"Name: \"+this.name+\" Current Health: \"+currHealth+\" Artifacts: \"+this.numberOfArtifacts);\n //If the current health is below zero, print a message that the spaceship explodes\n if(currentHealth<0){\n System.out.println(\"The spaceship \"+this.name+\" explodes\");\n }\n }",
"private String getAgentLista() {\n return agentLista;\n }",
"public String getAgent() {\n return agent;\n }",
"@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}",
"@Override\r\n\tpublic List<Map<String, Object>> agentOriginal(String agentname) {\n\t\treturn agentMapper.agentOriginal(agentname);\r\n\t}",
"public String getAgent() {\n return this.agent;\n }",
"public String getAgent() {\r\n\t\treturn agent;\r\n\t}",
"public List<Agent> findAgentsActifs() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') ORDER BY A.personne.name\");\n List<Agent> list = q.getResultList();\n return list;\n }",
"@Override\n public String getEntLS() {\n return \"Enemies\";\n }",
"public List<Agent> findAgentsInterne() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') AND A.lastDirection IN(SELECT D.code FROM Direction D WHERE D.internExtern=?1) ORDER BY A.personne.name\");\n q.setParameter(1, InterneExterne.Interne);\n List<Agent> list = q.getResultList();\n return list;\n }",
"protected abstract Simulate collectAgentData ();",
"public Integer getAgent() {\r\n return agent;\r\n }",
"protected void setup() {\n\t\tSystem.out.println(\" Searching \" + getAID().getName() + \"starts\");\n\t\taddBehaviour(new WakerBehaviour(this, 1000) {\n\t\t\tprotected void handleElapsedTimeout() {\n\t\t\t\t// perform operation X\n\t\t\t\tDFAgentDescription template = new DFAgentDescription();\n\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\tsd.setType(\"Cloth adviser\");\n\t\t\t\ttemplate.addServices(sd);\n\t\t\t\ttry {\n\t\t\t\t\tDFAgentDescription[] resultOfAdviser = DFService.search(myAgent, template);\n\t\t\t\t\tadviser= resultOfAdviser[0].getName();\n\t\t\t\t} catch (FIPAException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tACLMessage recMessage = blockingReceive();\n\t\t\t\tif (recMessage != null) {\n\t\t\t\t\tString senderName = recMessage.getSender().getName();\n\t\t\t\t\tSystem.out.println(getName()+\" receive message from \" + senderName);\n\t\t\t\t\tString rec = recMessage.getContent();\n\t\t\t\t\tSystem.out.println(\"receive message is \" + rec);\n\t\t\t\t\tACLMessage sendMessage = new ACLMessage(ACLMessage.INFORM);\n\t\t\t\t\tsendMessage.setContent(rec);\n\t\t\t\t\tsendMessage.addReceiver(adviser);\n\t\t\t\t\tsend(sendMessage);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"null exception\");\n\t\t\t\t\tblock();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void actionPerformed(final ActionEvent evt)\n {\n final String txt = searchBox.getText();\n\n /* Only do something if they user has entered some text */\n if (!txt.trim().isEmpty())\n {\n Actor u = new Actor(txt);\n\n /* Create our GetParameter to do the search */\n GetParameter gp = new GetParameter(u.getKey(), u.getType());\n\n /* Now lets search for content */\n JSocialKademliaStorageEntry val = null;\n try\n {\n val = ConnectionAddPanel.this.systemObjects.getDataManager().get(gp);\n u = (Actor) new Actor().fromSerializedForm(val.getContent());\n ConnectionAddPanel.this.setResult(u);\n }\n catch (ContentNotFoundException | IOException ex)\n {\n System.err.println(\"Ran into a prob when searching for person. Message: \" + ex.getMessage());\n }\n\n if (val != null)\n {\n\n }\n }\n }",
"@Override\r\n\tpublic List<Map<String, Object>> agentActive() {\n\t\treturn agentMapper.agentActive();\r\n\t}",
"public RobotInfo senseRobotInfo(Robot r) throws GameActionException;",
"public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }",
"public void agentEscaped(Simulation simulation, IAgent agent) {\n }",
"@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException 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\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\t\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}",
"public ArrayList<Literal> lookAround(String agName){\r\n\t\tperceptModel = MapEnv.model;\r\n\t\tArrayList<Literal> lookArr = new ArrayList<Literal>();\r\n\t\tint \t id \t \t = perceptModel.getAgentID(agName);\r\n\t\tLocation lplayer \t = perceptModel.getAgPos(id); \r\n\t\tif(agName != null){\r\n\t\t\t/** Searching direct neighbours to the Agent's location*/\r\n\t\t\tfor(int y = -1; y <= 1; y++){\r\n\t\t\t\tfor(int x = -1; x <= 1; x++){\r\n\t\t\t\t\tif(!(x == 0 && y == 0)){\r\n\t\t\t\t\t\tLocation l = new Location(lplayer.x + x, lplayer.y + y);\r\n//\t\t\t\t\t\tSystem.out.println(\"Player 1 Loc: (\" + lplayer.x + \",\" + lplayer.y + \"):: See Loc (\" + l.x + \",\" + l.y + \")\");\r\n\t\t\t\t\t\tif(perceptModel.getAgAtPos(l) != -1){\r\n\t\t\t\t\t\t\tint agt = perceptModel.getAgAtPos(l);\r\n\t\t\t\t\t\t\tString plyr = perceptModel.getAgName(agt);\r\n\t\t\t\t\t\t\t/** Detects and adds nearby agents flagholder status perception */\r\n\t\t\t\t\t\t\tif(perceptModel.flag.agentCarrying == perceptModel.getAgentID(plyr)){\r\n\t\t\t\t\t\t\t\tLiteral nfh = Literal.parseLiteral(\"flagholder(\" + plyr + \")\");\r\n\t\t\t\t\t\t\t\tlookArr.add(nfh);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tLiteral np = Literal.parseLiteral(\"close(\" + plyr + \")\"); \r\n\t\t\t\t\t\t\t\tlookArr.add(np);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/** Searching an single space further in the cardinal directions*/\r\n\t\t\tfor(int y = -2; y <= 2; y+=4){\r\n\t\t\t\tfor(int x = -2; x <= 2; x+=4){\r\n\t\t\t\t\tLocation l = new Location(lplayer.x + x, lplayer.y + y);\r\n\t//\t\t\t\tSystem.out.println(\"Player Loc: (\" + lplayer.x + \",\" + lplayer.y + \"):: See Loc (\" + l.x + \",\" + l.y + \")\");\r\n\t\t\t\t\tif(perceptModel.getAgAtPos(l) != -1 ){\r\n\t\t\t\t\t\tint \tagt = perceptModel.getAgAtPos(l);\r\n\t\t\t\t\t\tString plyr = perceptModel.getAgName(agt);\r\n\t\t\t\t\t\t/** Detects and adds nearby agents flagholder status perception */\r\n\t\t\t\t\t\tif(perceptModel.flag.agentCarrying == perceptModel.getAgentID(plyr)){\r\n\t\t\t\t\t\t\tLiteral nfh = Literal.parseLiteral(\"flagholder(\" + plyr + \")\");\r\n\t\t\t\t\t\t\tlookArr.add(nfh);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tLiteral np = Literal.parseLiteral(\"close\" + plyr + \")\"); \r\n\t\t\t\t\t\t\tlookArr.add(np);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/** Returns completed ArrayList */ \r\n\t\t\treturn lookArr;\r\n\t\t} else return null;\r\n\t}",
"protected int extraHits(Conveyer info, Combatant striker, Combatant victim) {\n return 0;\n }",
"public void action() {\n try {\n //System.out.println(\"LoadAgent\"+neighId[i]);\n DFAgentDescription template = new DFAgentDescription();\n ServiceDescription sd = new ServiceDescription();\n sd.setName(\"DSO agent\");\n template.addServices(sd);\n DFAgentDescription[] result = DFService.search(myAgent, template);\n AgentAIDs[0] = result[0].getName();\n sd.setName(\"PV Agent\");\n template.addServices(sd);\n result = DFService.search(myAgent, template);\n AgentAIDs[2] = result[0].getName();\n sd.setName(\"Load Agent\");\n template.addServices(sd);\n result = DFService.search(myAgent, template);\n AgentAIDs[3] = result[0].getName();\n\n } catch (FIPAException ex) {\n Logger.getLogger(CurtailAgent.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n //initializa GUI and add listeners\n appletVal = new SetCellValues();\n appletVal.playButton.addActionListener(new listener());\n appletVal.playButton.setEnabled(true);\n appletVal.resetButton.addActionListener(new listener());\n appletVal.resetButton.setEnabled(true);\n //operate microgrid\n addBehaviour(operate);\n\n }",
"public void doItemEffect(RobotPeer robot){\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\trobot.updateEnergy(-15);\n\t\t//System.out.println(\"Poison item USED\");\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\t\n\t}",
"void keywordsMenuItem_actionPerformed(ActionEvent e) {\n\n Class<?> customizerClass = filterAgent.getCustomizerClass();\n\n if (customizerClass == null) {\n trace(\"Error can't find FilterAgent customizer class\");\n return;\n }\n\n // found a customizer, now open it\n Customizer customizer = null;\n\n try {\n customizer = (Customizer) customizerClass.newInstance();\n } catch (Exception exc) {\n System.out.println(\"Error opening customizer - \" + exc.toString());\n return; // bail out\n }\n Point pos = this.getLocation();\n JDialog dlg = (JDialog) customizer;\n\n dlg.setLocation(pos.x + 20, pos.y + 20);\n customizer.setObject(filterAgent);\n dlg.show();\n\n }",
"public void getEnemyBattleEffects(Enemy enemy) {\n try {\n Ability chosenAbility = enemy.getLastUsableAbility().clone();\n ArrayList<Entity> players = new ArrayList<>();\n players.add(playerInCombat);\n addEffect(enemy.parse(chosenAbility,players,true));\n } catch (InsufficientResourceException ignored) {\n ;\n }\n }",
"java.lang.String getAgentName();",
"public Agent getAgent() {\n\t\treturn agent;\n\t}",
"protected AID searchWaiterAgent(String service_name) {\r\n\t\t\r\n\t\tAID waiterAgent = null;\r\n\t\tDFAgentDescription template = new DFAgentDescription();\r\n\t\tServiceDescription sd = new ServiceDescription();\r\n\t\tsd.setType(service_name);\r\n\t\ttemplate.addServices(sd);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tDFAgentDescription[] result = DFService.search(this, template);\r\n\t\t\t\r\n\t\t\tif (result.length == 1) {\r\n\t\t\t\twaiterAgent = result[0].getName();\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\tgetAID().getName()\r\n\t\t\t\t\t\t+ \" found waiter \"\r\n\t\t\t\t\t\t+ waiterAgent.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn waiterAgent;\r\n\t}",
"@Override\n protected void performActionResults(Action targetingAction) {\n PhysicalCard finalTarget = action.getPrimaryTargetCard(targetGroupId);\n\n // Perform result(s)\n action.appendEffect(\n new FindMissingCharacterEffect(action, finalTarget, false));\n }",
"@Override\n\tpublic String attack(Entity e) {\n\t\tRandom rand = new Random();\n\t\tint randomDamage = rand.nextInt(4); \n\t\te.takeDamage(randomDamage);\n\t\treturn \"hits \" + e.getName() + \" for \" + randomDamage + \" damage \";\n\t}",
"public Entity getDamageDealer();",
"@Override\n public String menuDescription(Actor actor) {\n return \"Dinosaur dies\";\n }",
"public void setAgent(String agent)\n {\n this.agent = agent;\n }",
"@Override\n public String performSpecialEffect() {\n this.health += HEALTH_STEAL_AMOUNT;\n return \"The vampire stole a bit of health after it attacked.\";\n }",
"@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }",
"public void buffDeBuff(Pokemon agent, Moves move, Pokemon patient){\n double modifier = 1;\n if(move.getCategory().equalsIgnoreCase(\"buff\")||move.getCategory().equalsIgnoreCase(\"debuff\")) {\n System.out.println(agent.getName() + \" used \" + move.getName());\n }\n switch(move.getBuffDebuffType()){\n case \"Attack\":\n if(patient.getAttackInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getAttackInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setAttackInteger(patient.getAttackInteger()+move.getBuffDebuffInteger());\n System.out.println(patient.getName() + \"'s attack\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getAttackInteger());\n patient.setBattleAttack((int) (patient.getAttack()*modifier));\n break;\n case \"Defense\":\n if(patient.getDefenseInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getDefenseInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setDefenseInteger(patient.getDefenseInteger()+move.getBuffDebuffInteger());\n System.out.println(patient.getName() + \"'s defense\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getDefenseInteger());\n patient.setBattleDefense((int) (patient.getDefense()*modifier));\n break;\n case \"SpecAttack\":\n if(patient.getSpecialAttackInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getSpecialAttackInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setSpecialAttackInteger(patient.getSpecialAttackInteger()+move.getBuffDebuffInteger());\n System.out.println(patient.getName() + \"'s special attack\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getSpecialAttackInteger());\n patient.setBattleSpecialAttack((int) (patient.getSpecialAttack()*modifier));\n break;\n case \"SpecDefense\":\n if(patient.getSpecialDefenseInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getSpecialDefenseInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setSpecialDefenseInteger(patient.getSpecialDefenseInteger()+move.getBuffDebuffInteger());\n System.out.println(patient.getName() + \"'s special defense\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getSpecialAttackInteger());\n patient.setBattleSpecialDefense((int) (patient.getSpecialDefense()*modifier));\n break;\n case \"Speed\":\n if(patient.getSpeedInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getSpeedInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setSpeedInteger((patient.getSpeedInteger()+move.getBuffDebuffInteger()));\n System.out.println(patient.getName() + \"'s speed\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = integerConverter(patient.getSpeedInteger());\n patient.setBattleSpeed((int) (patient.getSpeed()*modifier));\n break;\n case \"Evasion\":\n if(patient.getEvasionInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getEvasionInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setSpeedInteger((patient.getEvasionInteger()+move.getBuffDebuffInteger()));\n System.out.println(patient.getName() + \"'s evasion\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = evasionConverter(patient.getEvasionInteger());\n patient.setBattleEvasion((int) (patient.getEvasion()*modifier));\n break;\n case \"Accuracy\":\n if(patient.getAccuracyInteger()==-6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be lowered any further!\"); }\n if(patient.getAccuracyInteger()==6){\n System.out.println(patient.getName() + \"'s \" + move.getBuffDebuffType() + \" can't be raised any further!\"); }\n patient.setAccuracyInteger((patient.getAccuracyInteger()+move.getBuffDebuffInteger()));\n System.out.println(patient.getName() + \"'s accuracy\" + buffDebuffMessage(move.getBuffDebuffInteger()));\n modifier = accuracyConverter(patient.getAccuracyInteger());\n patient.setBattleAccuracy((int) (patient.getAccuracy()*modifier));\n break;\n\n }\n }",
"public interface Agent {\n void search(String keyword,Result<List<LyricCandidate>> callback);\n void topLyric(Result<List<Lyric>> callback);\n void lyric(String url,Result<Lyric> callback);\n}",
"@Override\r\n\tpublic List<Map<String, Object>> saleCapability(String agentname) {\n\t\treturn agentMapper.saleCapability(agentname);\r\n\t}",
"public void infect() {\n\t\tPlagueAgent current = this;\n\t\tif (!current.infected) {\n\t\t\tfor (PlagueAgent a : plagueWorld.getNeighbors(current, 5)) {\n\t\t\t\tif (a.infected) {\n\t\t\t\t\tint luck = Utilities.rng.nextInt(100);\n\t\t\t\t\tif (luck < plagueWorld.VIRULENCE) {\n\t\t\t\t\t\tthis.infected = true;\n\t\t\t\t\t\tplagueWorld.newInfection();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tplagueWorld.changed();\n\t}",
"protected String method_4193() {\r\n String[] var10000 = field_3418;\r\n return \"mob.enderdragon.hit\";\r\n }",
"private meterMaidPerception getPerceptions() {\n\t\t\r\n\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\r\n\t\tACLMessage msg = receive(mt);\r\n\t\tif (msg != null && msg.getContent() != null) {\r\n\t\t\tString[] perceptions = msg.getContent().split(\";\");\r\n\t\t\tif (perceptions.length < 2)\r\n\t\t\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t\t\tcar = perceptions[1];\r\n\t\t\tif (CAR_PASSED_ON_RED_SIGN.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_IGNORED_RED_SIGN;\r\n\t\t\telse if (CAR_IN_ZEBRA_CROSSING.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_STOP_ON_ZEBRA_CROSSING;\r\n\t\t}\r\n\t\t\r\n\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t}",
"public GameList getSearchResult(){ return m_NewSearchResult;}",
"@Override\n\tprotected void enterEffect() {\n\t\t\n\t}",
"public void onScannedRobot(ScannedRobotEvent e)\n {\n BadBoy en = (BadBoy)enemies.get(e.getName());\n \n if(en == null){\n en = new BadBoy();\n enemies.put(e.getName(), en);\n }\n \n \n en.hp = true;\n en.energy = e.getEnergy();\n en.pos = hallarPunto(myPos, e.getDistance(), getHeadingRadians() + e.getBearingRadians());\n \n // normal target selection: the one closer to you is the most dangerous so attack him\n //si no le queda vida al objetivo actual CHANGE TARGET m8\n \n if(!objetivo.hp || e.getDistance() < myPos.distance(objetivo.pos)) {\n objetivo = en;\n }\n \n \n }",
"public void toSelectingAttackTarget() {\n }",
"@Override\n public String menuDescription(Actor actor) {\n return actor + \" visits store\";\n }",
"private void searchMenu(){\n\t\t\n\t}",
"protected Entity findPlayerToAttack() {\n/* 339 */ double var1 = 8.0D;\n/* 340 */ return getIsSummoned() ? null : this.field_70170_p.func_72890_a(this, var1);\n/* */ }",
"@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }",
"public void addAgent(String name)\r\n {\n \r\n }",
"public void result(EnemyInfo[] enemies) {\r\n\t\t//nothing. This robot does not care about results.\r\n\t}",
"public void setAgent(String agent) {\n this.agent = agent;\n }",
"public void setAgent(String agent) {\n this.agent = agent;\n }",
"org.beangle.security.session.protobuf.Model.Agent getAgent();",
"public void getAttackedByDarknessMagicBook(IEquipableItem item){item.strongAttackTo(this.getOwner());}",
"public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}",
"@Override\n\tpublic String menuDescription(Actor actor) {\n\t\treturn actor + \" says \" + speach;\n\t}",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatMEN();\n\t\t\t}\n\t\t}",
"@Override\r\n\tpublic void searchObjectListener(ActionEvent e) {\n\t\t\r\n\t}",
"void ponderhit();",
"public String getAgentName() {\n return agentName;\n }",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}",
"public ArrayList<Effect> getEnemyEffects(int index){\n return enemyController.seeEnemyEffect(index);\n }",
"List<AgentReference> getCurrentAgents();",
"@Override\r\n\tpublic void recieveHit() {\n\t\tif(armour <= 0) {\r\n\t\t\tSystem.out.println(\"Enemy Destroyed\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdouble calculateHitDamage = shot * basicDamage;\r\n\t\t\tif(calculateHitDamage == armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy Armour Destroyed!!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage > armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy is Dead!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage < armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy not detroyed!! \\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Current Enemy life: \"+ armour);\r\n\t\t}\r\n\t}",
"private void enemyEncounter()\n {\n currentEnemies = currentRoom.getEnemies();\n \n if(currentEnemies.size() > 0)\n {\n for(Enemy e : currentEnemies)\n {\n System.out.println(\"\\n\" + \"A \" + e.getName() + \" stares menacingly!\" + \"\\n\");\n enemyName = e.getName();\n \n }\n enemyPresent = true;\n clearExits();\n }\n else{\n setExits(); \n }\n }",
"private int findBidders() {\r\n try {\r\n agents = new ArrayList<AMSAgentDescription>();\r\n //definisce i vincoli di ricerca, in questo caso tutti i risultati\r\n SearchConstraints searchConstraints = new SearchConstraints();\r\n searchConstraints.setMaxResults(Long.MAX_VALUE);\r\n //tutti gli agenti dell'AMS vengono messi in un array\r\n AMSAgentDescription [] allAgents = AMSService.search(this, new AMSAgentDescription(), searchConstraints);\r\n //scorre la lista degli agenti trovati al fine di filtrare solo quelli di interesse\r\n for (AMSAgentDescription a: allAgents) {\r\n //aggiunge l'agente partecipante all'ArrayList se e' un partecipante\r\n if(a.getName().getLocalName().contains(\"Participant\")) {\r\n agents.add(a);\r\n } \r\n }\r\n } catch (Exception e) {\r\n System.out.println( \"Problema di ricerca dell'AMS: \" + e );\r\n e.printStackTrace();\r\n }\r\n return agents.size();\r\n }",
"public String getAgentsName()\n {\n return this.agentsName;\n }",
"@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}",
"public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatDEX();\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void act() {\n\n\t\t//Location symbol of a Droid (Stack Overflow 2010)\n\t\tchar locationSymbol = this.world.getEntityManager().whereIs(this).getSymbol();\n\t\t\n\t\t//Begin act\n\t\tsay(describeLocation());\t\t\n\t\t\n\t\t//Check for the lose condition that R2 is disassembled\n\t\t//If R2's HP is <=0\n\t\tif (this.isDead())\n\t\t{\n\t\t\t//If R2 is disassembled\n\t\t\tif(this.getIsDisassembled())\n\t\t\t{\n\t\t\t\t//Is the symbol of the disassembled Droid is R2's\n\t\t\t\tif(this.getSymbol().contains(\"{R2}\"))\n\t\t\t\t{\n\t\t\t\t\t//Message stating R2 was disassembled\n\t\t\t\t\tthis.messageRenderer.render(\"\\n\\nR2-D2 has been disassembled!\");\n\t\t\t\t\t\n\t\t\t\t\t//Scheduler schedules the loss\n\t\t\t\t\tscheduler.lossSchedule(this.messageRenderer);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//If a Droid is immobile (Dead)\n\t\tif (this.getIsImmobile() == true) {\n\t\t\tsay(this.getShortDescription() + \" is immobile. \");\n\t\t\t\t\t\t\n\t\t\tif(this.getOwner() != null)\n\t\t\t{\n\t\t\t\tsay(\"Owned. checking in owners follow list\");\n\t\t\t\t\n\t\t\t\tString thisDroidNoBraces = this.getSymbol().substring(1, this.getSymbol().length()-1);\n\n\t\t\t\tint indexofDroid = this.getOwner().getFollowerList().indexOf(thisDroidNoBraces);\n\t\t\t\t\n\t\t\t\tif (this.getOwner().getFollowerList().get(indexofDroid).equals(thisDroidNoBraces))\n\t\t\t\t{\n\t\t\t\t\tsay(\"Removing\");\n\t\t\t\t\tthis.getOwner().getFollowerList().remove(thisDroidNoBraces);\n\t\t\t\t\tthis.getOwner().getFollowerListSWActors().remove(this);\n\t\t\t\t\tthis.setOwner(null);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If a Droid is mobile and human controlled\n\t\telse if (this.humanControlled == true) {\n\t\t\t\n\t\t\t//Following Owner - since humancontrolled.\n\t\t\t\n\t\t\t\n\t\t\tif (isDead()) \n\t\t\t{\n\t\t\t\tthis.setIsImmobile(true);\n\t\t\t\treturn;\n\t\t\t} \n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\t//Get owners' location\n\t\t\t\tSWLocation ownerloc = this.world.getEntityManager().whereIs(this.getOwner());\n\t\t\t\t\n\t\t\t\t//Set Droids' position to owners' location (follow)\n\t\t\t\tthis.world.getEntityManager().setLocation(this, ownerloc);\n\t\t\t\t\n\t\t\t\t//Take damage if moving to the Badlands\n\t\t\t\tif (locationSymbol == 'b') { //IF the Droid is at the Badlands\n\t\t\t\t\tint NewHP = this.getHitpoints() - 2;\t//Take 2 from the Droids' health\n\t\t\t\t\tthis.setHitpoints(NewHP);\n\t\t\t\t\n\t\t\t\t\tsay(this.getShortDescription() + \" has lost health by moving into the Badlands!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tselfHeal();\n\t\t\t}\t\n\t\t} \n\t\t\n\t\t//C-3PO Droid specific act ()code\n\t\telse if (this.getSymbol() == \"C3\") {\n\t\t\t\n\t\t\t//Double precision number to represenet C-3PO's chance of speaking\n\t\t\tdouble c3Speak = Math.random();\n\t\t\t\n\t\t\t//10% chance of occuring a 0.9 or above\n\t\t\tif (c3Speak >= 0.9) {\n\t\t\t\t//Call C-3PO speak method (he talks!)\n\t\t\t\tc3POSpeaks();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//R2-D2 Repair droid specific act() code\n\t\telse if (this.getSymbol() == \"R2\") {\n\t\t\t\n\t\t\tthis.messageRenderer.render(\"R2 DISS: \" + this.isDisassembled);\n\t\t\t\n\t\t\t//Describe who R2 can see\n\t\t\t//get the contents of the location\n\t\t\tList<SWEntityInterface> r2contents = this.world.getEntityManager().contents(this.world.getEntityManager().whereIs(this));\n\t\t\t\n\t\t\t//and describe the contents\n\t\t\tif (r2contents.size() > 1) { // if it is equal to one, the only thing here is R2, so there is nothing to report\n\t\t\t\tfor (SWEntityInterface r2entity : r2contents) {\n\t\t\t\t\tif (r2entity.getSymbol().contains(\"D\")) { // If R2 comes across a Droid (Stack Overflow 2010)\n\t\t\t\t\t\tsay(this.getShortDescription() + \" has come accross a Droid!\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Cast target entity as a Droid for checking what it needs from R2\n\t\t\t\t\t\tDroid targetr2 = (Droid) r2entity;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//R2 attempts to disassemble the Droid if its immobile\n\t\t\t\t\t\tif (targetr2.isImmobile && targetr2.isDisassembled == false) {\n\t\t\t\t\t\t\tDisassemble r2diss = new Disassemble(r2entity, messageRenderer);\n\t\t\t\t\t\t\tscheduler.schedule(r2diss, this, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//R2 tries to repair a droid who is immobile and disassembled\n\t\t\t\t\t\telse if (targetr2.isImmobile && targetr2.isDisassembled) {\n\t\t\t\t\t\t\tif (this.getItemCarried() != null) {\n\t\t\t\t\t\t\t\tRepair r2rep = new Repair(r2entity, messageRenderer);\n\t\t\t\t\t\t\t\tscheduler.schedule(r2rep, this, 1);\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//R2 attempts to Heal a Droid if active and not disassembled\n\t\t\t\t\t\telse if (targetr2.isDisassembled == false && targetr2.isImmobile == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tHealDroid r2heal = new HealDroid(r2entity, messageRenderer);\n\t\t\t\t\t\t\tscheduler.schedule(r2heal, this, 1);\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\t\t\t\n\t\t\t//Heals himself if he can\n\t\t\t\n\t\t\tHealDroid droidHealR2 = new HealDroid(this, messageRenderer);\n\t\t\tscheduler.schedule(droidHealR2, this, 1);\n\t\t\t\n\t\t\t//R2 moves\n\t\t\tDirection R2Direction = this.getDroidPatrol().getNext();\n\t\t\tsay(getShortDescription() + \" moves \" + R2Direction);\n\t\t\tMove myMove = new Move(R2Direction, messageRenderer, world);\n\n\t\t\tscheduler.schedule(myMove, this, 1);\n\t\n\t\t}\n\t\t\n\t\t//If a Droid is not immobile, and not human controlled (roaming)\n\t\telse {\t\n\t\t\t\n\t\t\t//Picking up an oil can\n\t\t\t//Get contents of the current location\n\t\t\tList<SWEntityInterface> contents = this.world.getEntityManager().contents(this.world.getEntityManager().whereIs(this));\n\t\t\t\n\t\t\t//and describe the contents\n\t\t\tif (contents.size() > 1) { // if it is equal to one, the only thing here is this Player, so there is nothing to report\n\t\t\t\tfor (SWEntityInterface entity : contents) {\n\t\t\t\t\tif (entity != this) { // don't include self in scene description\n\t\t\t\t\t\tif (entity.getSymbol() == \"x\") {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//The Droid is standing over a oil can. Does it pick it up?\n\t\t\t\t\t\t\tif (Math.random() > 0.5){ //Half a chance...\n\t\t\t\t\t\t\t\tsay(this.getShortDescription() + \" decided to pick up \" + entity.getShortDescription());\n\t\n\t\t\t\t\t\t\t\t//Droid takes the oil can. Scheduler implements the Take.\n\t\t\t\t\t\t\t\tTake droidTakes = new Take(entity, messageRenderer);\n\t\t\t\t\t\t\t\tscheduler.schedule(droidTakes, this, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse { //The Droid passes over the oil can.\n\t\t\t\t\t\t\t\tsay(this.getShortDescription() + \" decided not to pick up\" + entity.getShortDescription());\n\t\t\t\t\t\t\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\t\n\t\t\t\n\t\t\tif (Math.random() > 0.8){\n\t\t\t\trandomMovement();\n\t\t\t}\n\t\t\t\n\t\t\t//If a Roaming Droid is at the Badlands, they lose health\n\t\t\t\n\t\t\tif (locationSymbol == 'b') { //IF the Droid is at the Badlands\n\t\t\t\tint NewHP = this.getHitpoints() - 2;\t//Take 2 from the Droids' health\n\t\t\t\tthis.setHitpoints(NewHP);\n\t\t\t\n\t\t\t\tsay(this.getShortDescription() + \" has lost health by moving into the Badlands!\");\n\t\t\t}\n\t\t\t\n\t\t\t/*Self healing\n\t\t\tImplementation that if a Droids' health gets below half, they will attempt to heal themselves IF they \n\t\t\tare carrying an oil can\n\t\t\t*/\n\t\t\tselfHeal();\n\t\t\t\n\t\t\t\n\t\t}\t\n\t}",
"public List<Agent> listAgentNotMappedwithDevice();",
"public int giveDamage();",
"public String getAgentContactor() {\n return agentContactor;\n }",
"@Override\n\t\tpublic String answeredBy(Actor actor) {\n\t\t\treturn GoogleResultPage.SEARCH_BAR.resolveFor(actor).waitUntilVisible().getValue();\n\t\t}",
"int aggroHitTimer(IGeneticMob geneticMob, EntityLiving attacker);",
"private void getAI(){\n\n }",
"private static void checkForEnemies() throws GameActionException {\n //No need to hijack code for structure\n if (rc.isWeaponReady()) {\n // basicAttack(enemies);\n HQPriorityAttack(enemies, attackPriorities);\n }\n \n //Old splash damage code\n //Preserve because can use to improve current splash damage code\n //But not so simple like just checking directions, since there are many more \n //locations to consider hitting.\n /*if (numberOfTowers > 4) {\n //can do splash damage\n RobotInfo[] enemiesInSplashRange = rc.senseNearbyRobots(37, enemyTeam);\n if (enemiesInSplashRange.length > 0) {\n int[] enemiesInDir = new int[8];\n for (RobotInfo info: enemiesInSplashRange) {\n enemiesInDir[myLocation.directionTo(info.location).ordinal()]++;\n }\n int maxDirScore = 0;\n int maxIndex = 0;\n for (int i = 0; i < 8; i++) {\n if (enemiesInDir[i] >= maxDirScore) {\n maxDirScore = enemiesInDir[i];\n maxIndex = i;\n }\n }\n MapLocation attackLoc = myLocation.add(directions[maxIndex],5);\n if (rc.isWeaponReady() && rc.canAttackLocation(attackLoc)) {\n rc.attackLocation(attackLoc);\n }\n }\n }//*/\n \n }",
"public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }",
"@EventHandler\n void OnEntityDeath(EntityDeathEvent e){\n Entity killer = e.getEntity().getKiller();\n int exp = e.getDroppedExp();\n if(killer instanceof Player){\n GuildMCFunctions functions = new GuildMCFunctions();\n functions.spawnExperiencesInfos((Player) killer, exp);\n }\n\n }",
"void doEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 87 */ if ((!target.isMailBox() && !target.isSpringFilled() && !target.isPuppet() && \n/* 88 */ !target.isUnenchantedTurret() && !target.isEnchantedTurret()) || (target\n/* 89 */ .hasDarkMessenger() && !target.isEnchantedTurret())) {\n/* */ \n/* 91 */ performer.getCommunicator().sendNormalServerMessage(\"The spell fizzles.\", (byte)3);\n/* */ return;\n/* */ } \n/* 94 */ if (target.isUnenchantedTurret() || target.isEnchantedTurret()) {\n/* */ \n/* 96 */ int spirit = Zones.getSpiritsForTile(performer.getTileX(), performer.getTileY(), performer.isOnSurface());\n/* 97 */ String sname = \"no spirits\";\n/* 98 */ int templateId = 934;\n/* 99 */ if (spirit == 4) {\n/* */ \n/* 101 */ templateId = 942;\n/* 102 */ sname = \"There are plenty of air spirits at this height.\";\n/* */ } \n/* 104 */ if (spirit == 2) {\n/* */ \n/* 106 */ templateId = 968;\n/* 107 */ sname = \"Some water spirits were closeby.\";\n/* */ } \n/* 109 */ if (spirit == 3) {\n/* */ \n/* 111 */ templateId = 940;\n/* 112 */ sname = \"Earth spirits are everywhere below ground.\";\n/* */ } \n/* 114 */ if (spirit == 1) {\n/* */ \n/* 116 */ sname = \"Some nearby fire spirits are drawn to your contraption.\";\n/* 117 */ templateId = 941;\n/* */ } \n/* 119 */ if (templateId == 934) {\n/* */ \n/* 121 */ performer.getCommunicator().sendAlertServerMessage(\"There are no spirits nearby. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* 125 */ if (target.isUnenchantedTurret()) {\n/* */ \n/* 127 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* 128 */ target.setTemplateId(templateId);\n/* 129 */ target.setAuxData(performer.getKingdomId());\n/* */ }\n/* 131 */ else if (target.isEnchantedTurret()) {\n/* */ \n/* 133 */ if (target.getTemplateId() != templateId) {\n/* */ \n/* 135 */ performer.getCommunicator().sendAlertServerMessage(\"The nearby spirits ignore your contraption. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* 140 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* */ } \n/* */ } \n/* */ \n/* 144 */ ItemSpellEffects effs = target.getSpellEffects();\n/* 145 */ if (effs == null)\n/* 146 */ effs = new ItemSpellEffects(target.getWurmId()); \n/* 147 */ SpellEffect eff = effs.getSpellEffect(this.enchantment);\n/* 148 */ if (eff == null) {\n/* */ \n/* 150 */ performer.getCommunicator().sendNormalServerMessage(\"You summon nearby spirits into the \" + target\n/* 151 */ .getName() + \".\", (byte)2);\n/* */ \n/* 153 */ eff = new SpellEffect(target.getWurmId(), this.enchantment, (float)power, 20000000);\n/* 154 */ effs.addSpellEffect(eff);\n/* 155 */ Server.getInstance().broadCastAction(performer\n/* 156 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 157 */ .getName() + \".\", performer, 5);\n/* 158 */ if (!target.isEnchantedTurret()) {\n/* 159 */ target.setHasCourier(true);\n/* */ \n/* */ }\n/* */ }\n/* 163 */ else if (eff.getPower() > power) {\n/* */ \n/* 165 */ performer.getCommunicator().sendNormalServerMessage(\"You frown as you fail to summon more spirits into the \" + target\n/* 166 */ .getName() + \".\", (byte)3);\n/* */ \n/* 168 */ Server.getInstance().broadCastAction(performer.getName() + \" frowns.\", performer, 5);\n/* */ }\n/* */ else {\n/* */ \n/* 172 */ performer.getCommunicator().sendNormalServerMessage(\"You succeed in summoning more spirits into the \" + this.name + \".\", (byte)2);\n/* */ \n/* */ \n/* 175 */ eff.improvePower(performer, (float)power);\n/* 176 */ if (!target.isEnchantedTurret())\n/* 177 */ target.setHasCourier(true); \n/* 178 */ Server.getInstance().broadCastAction(performer\n/* 179 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 180 */ .getName() + \".\", performer, 5);\n/* */ } \n/* */ }",
"private void searchFunction() {\n\t\t\r\n\t}",
"@EventHandler\n\tpublic void attackMobs(EntityDamageByEntityEvent e) {\n\t\tMessages messagesConfig = plugin.getMsgs();\n\n\t\tif (e.getCause().equals(EntityDamageEvent.DamageCause.PROJECTILE)) { //Just my magic code w(o.o)w\n\t\t\treturn;\n\t\t}else if (e.getDamager() instanceof Player) {\n\t\t\tPlayer p = (Player) e.getDamager();\n\t\t\tItemStack pInv = p.getInventory().getItemInMainHand();\n\n\t\t\tif (!pInv.getType().name().contains(\"SWORD\") && !pInv.getType().name().contains(\"AXE\")) {\n\t\t\t\tif (!(e.getEntity() instanceof Chicken)) {\n\t\t\t\t\te.setCancelled(true);\n\n\t\t\t\t\tif (canSendMessage(p.getUniqueId()))\n\t\t\t\t\t\tp.sendMessage(StringUtil.inColor(messagesConfig.getCantHitWithoutSword()));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Agent findById(String id);",
"public void gettingAttacked(HitByBulletEvent e) {\r\n\t\tif (gotTarget) {\r\n\t\t\tfor (int i = 0; i < enemyTracker.getEnemyList().size(); i++) {\r\n\t\t\t\tif (enemyTracker.getEnemyList().get(i).getName().equals(e.getName()) && (!e.getName().equals(radarTarget.getName()))) {\r\n\t\t\t\t\t\tmrRobot.sendMessage(5, \"2\");\r\n\t\t\t\t\t\tradarTarget = enemyTracker.getEnemyList().get(getIndexForEnemy(e.getName()));\r\n\t\t\t\t\t\ttargetTracking.get(getIndexForName(mrRobot.getName())).updateTarget(radarTarget);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void onOtherInfoToolCard(int id, Match match);",
"public Agent getAgent(String agentId) {\n return agentMap.get(agentId);\n }",
"public void action() throws Exception {\n // Cop move to another place\n move();\n\n // Search for agents nearby\n ArrayList<Position> occupiedNeighbor = this.getPosition().getOccupiedNeighborhood();\n ArrayList<Agent> arrestList = new ArrayList<>();\n for (Position neighbor : occupiedNeighbor) {\n Person person = neighbor.getOccupiedPerson();\n String className = person.getClass().getName();\n // if this is a agent and is active\n if (className.equals(Person.AGENT)) {\n if (((Agent) person).isActive()) {\n arrestList.add((Agent) person);\n }\n }\n }\n\n // If there at least one agent nearby\n if (0 != arrestList.size()) {\n // Randomly pick active agent to jail\n Random random = new Random();\n int maxIndex = arrestList.size();\n int randomIndex = random.nextInt(maxIndex);\n Agent arrestAgent = arrestList.get(randomIndex);\n int jailTerm = random.nextInt(getPersonEnvironment().getMaxJailTerm());\n arrestAgent.beArrested(jailTerm, this);\n }\n }",
"public FieldActorDescriptor[] getHighlightedActors()\n {\n Object[] objs = list.getSelectedValues();\n FieldActorDescriptor[] result = new FieldActorDescriptor[objs.length];\n for(int i=0; i<objs.length; i++)\n {\n result[i] = (FieldActorDescriptor) objs[i];\n }\n\n return result;\n }"
] | [
"0.5640873",
"0.5622202",
"0.55857587",
"0.55117476",
"0.54672533",
"0.5442278",
"0.5441461",
"0.54182065",
"0.5412159",
"0.53771704",
"0.5320571",
"0.53068054",
"0.5301455",
"0.52742296",
"0.52363104",
"0.52269",
"0.52091825",
"0.51823705",
"0.5166157",
"0.5149849",
"0.51283556",
"0.512308",
"0.5121581",
"0.5117981",
"0.509773",
"0.50880563",
"0.5082797",
"0.50546736",
"0.50520265",
"0.5046308",
"0.504514",
"0.50382227",
"0.50283706",
"0.50118905",
"0.5008382",
"0.50074434",
"0.5006258",
"0.49938387",
"0.4977604",
"0.497715",
"0.4967534",
"0.49607667",
"0.49599886",
"0.49521282",
"0.49499875",
"0.4936639",
"0.4934959",
"0.4922751",
"0.49221674",
"0.49197525",
"0.49163675",
"0.49145487",
"0.49121982",
"0.4908793",
"0.4904814",
"0.48992965",
"0.4895072",
"0.4895072",
"0.4890073",
"0.48861504",
"0.48692763",
"0.48676082",
"0.48609233",
"0.4857031",
"0.48562527",
"0.48548034",
"0.48480952",
"0.48480952",
"0.48480952",
"0.48480952",
"0.48480952",
"0.48445114",
"0.48426783",
"0.48333958",
"0.48240417",
"0.48134437",
"0.4808579",
"0.4798151",
"0.4789664",
"0.47825608",
"0.47767287",
"0.47705552",
"0.47699067",
"0.47669592",
"0.47667846",
"0.47665036",
"0.47640258",
"0.4759406",
"0.47575897",
"0.47567526",
"0.47522983",
"0.47510493",
"0.47468555",
"0.47434804",
"0.4741529",
"0.47409332",
"0.4733503",
"0.47325006",
"0.47308877",
"0.4728485"
] | 0.57964593 | 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.