query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
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(FsPa...
[ "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.4840...
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 keyN...
[ "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.4...
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\tSys...
[ "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.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 se...
[ "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.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(OutputStreamWr...
[ "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.6615982...
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 r...
[ "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.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...
[ "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.752572...
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 }...
[ "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.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(parquetWriterHandle...
[ "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.440...
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 {...
[ "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.44...
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 =...
[ "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.56342...
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 ...
[ "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.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++)...
[ "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.64474...
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...
[ "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.522726...
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 fr...
[ "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.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 fr...
[ "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.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.nextEle...
[ "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.692671...
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 flush...
[ "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.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_IN...
[ "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.5...
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}", "pu...
[ "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.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.getNa...
[ "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.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 ...
[ "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.55...
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...
[ "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.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...
[ "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.6426...
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 mIncomingI...
[ "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.5507...
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 ...
[ "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.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 ...
[ "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.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 onActivit...
[ "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.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...
[ "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.52392...
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) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
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 ...
[ "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.734530...
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 setPontosTi...
[ "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.5498357...
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(\"intervaloDe...
[ "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.564129...
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 ...
[ "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.5315...
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.printl...
[ "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.67101...
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...
[ "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.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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override 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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override 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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override 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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO 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 = fo...
[ "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.5622949...
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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void 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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void 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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void 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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
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...
[ "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.6377...
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 == nu...
[ "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.55889...
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 ...
[ "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.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 i...
[ "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.5908...
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.billdiscountofferli...
[ "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.56176...
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 ...
[ "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.648592...
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 ...
[ "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.5...
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 = (amdoc...
[ "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.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 v...
[ "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.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 ...
[ "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.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 getSuccess...
[ "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.546602...
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();", "St...
[ "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.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 Pro...
[ "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.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}...
[ "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.696...
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 ...
[ "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.6...
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 }",...
[ "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.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}",...
[ "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.66686...
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...
[ "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.71...
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\...
[ "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.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...
[ "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.67...
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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public 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 getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
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.startListeni...
[ "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.642079...
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 S...
[ "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.580652...
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 S...
[ "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.5807287...
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 S...
[ "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.5807287...
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 S...
[ "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.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 S...
[ "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.580652...
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 S...
[ "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.5807287...
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;\...
[ "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.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 S...
[ "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.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 S...
[ "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.580652...
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 S...
[ "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.5807287...
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 S...
[ "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.5807287...
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...
[ "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.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 RuntimeExce...
[ "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.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 fals...
[ "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.7802903...
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 }", "pri...
[ "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.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 g...
[ "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.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 Runtime...
[ "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.70670...
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 getCollect...
[ "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.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(Stri...
[ "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.63503...
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...
[ "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.6210...
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\tth...
[ "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.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...
[ "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.5...
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 getClusteri...
[ "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.619482...
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 ...
[ "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.659...
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...
[ "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.623681...
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 */ ret...
[ "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.6219356...
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 = ...
[ "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.695...
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 = ...
[ "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.697...
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 = ...
[ "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.69...
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 = ...
[ "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.69...
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...
[ "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.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...
[ "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.51283...
0.57964593
0