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
Returns the user ID of this job.
@Override public long getUserId() { return model.getUserId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Long getUserId() {\n\t\treturn user.getKey().getId();\n\t}", "public long getUserId() {\n return instance.getUserId();\n }", "public Long getUserId() {\n return this.user.getId();\n }", "public int getUserID() {\n return userID_;\n }", "public int getUs...
[ "0.7619021", "0.75707775", "0.7497865", "0.74758935", "0.74758935", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.7475837", "0.74483216",...
0.7317178
49
Returns the user uuid of this job.
@Override public String getUserUuid() { return model.getUserUuid(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getUserUuid() {\n\t\treturn _changesetEntry.getUserUuid();\n\t}", "@Override\n\tpublic String getUserUuid();", "@Override\n\tpublic String getUserUuid();", "@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _userTracker.getUserUuid();\n\t}", "@Override\n\tpublic ja...
[ "0.73139626", "0.710971", "0.710971", "0.7106472", "0.6943747", "0.69030875", "0.6889007", "0.6871404", "0.6807605", "0.68020433", "0.67798597", "0.6773014", "0.6737846", "0.6737846", "0.6737846", "0.6714223", "0.6696517", "0.66872424", "0.6660705", "0.6660705", "0.66525173",...
0.7505426
2
Returns the uuid of this job.
@Override public String getUuid() { return model.getUuid(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toString...
[ "0.70453066", "0.70227474", "0.6954186", "0.69322914", "0.6783266", "0.6743318", "0.6743318", "0.67277074", "0.67277074", "0.67095166", "0.67095166", "0.67095166", "0.67095166", "0.67095166", "0.67095166", "0.67095166", "0.67095166", "0.67095166", "0.67095166", "0.66993654", ...
0.64440495
41
Returns the wall time of this job.
@Override public String getWallTime() { return model.getWallTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getCurrentWallClockTime() {\n return System.currentTimeMillis() - startWallClockTime;\n }", "public long getEndWallClockTime() {\n return endWallClockTime;\n }", "@Override\n\tpublic String getUsedWalltime() {\n\t\treturn model.getUsedWalltime();\n\t}", "public long wallMicros...
[ "0.7395889", "0.71618134", "0.6974787", "0.67946756", "0.6437104", "0.6420391", "0.63785183", "0.6326036", "0.6256498", "0.62558043", "0.6214682", "0.6195904", "0.6185128", "0.61822367", "0.61740124", "0.6166671", "0.6161874", "0.6158276", "0.6153155", "0.6153155", "0.6153155...
0.77702624
0
Returns the working dir of this job.
@Override public String getWorkingDir() { return model.getWorkingDir(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String workingDirectory() {\n\t\treturn workingDir.getAbsolutePath();\n\t}", "public File getWorkingDir() {\n return workingDir;\n }", "public File getWorkingDir() {\n return workingDir;\n }", "public File getWorkingParent()\n {\n return validatePath(ServerSettings.getInstan...
[ "0.8214441", "0.7851062", "0.7851062", "0.7422081", "0.7420504", "0.73495686", "0.73345935", "0.72712463", "0.72070044", "0.70683134", "0.70533013", "0.7050151", "0.7040594", "0.70158195", "0.70059633", "0.6962101", "0.6950751", "0.68361354", "0.68166065", "0.6791467", "0.678...
0.7855633
1
Returns true if this job is reserve results.
@Override public boolean isReserveResults() { return model.isReserveResults(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean getReserveResults() {\n\t\treturn model.getReserveResults();\n\t}", "public boolean isSetTotalResults()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(TOTALRESULTS$4) != null;\n }\n }", ...
[ "0.74361116", "0.64053535", "0.63578886", "0.6292908", "0.6287727", "0.61488366", "0.61308974", "0.6062245", "0.60151905", "0.6013532", "0.60028434", "0.5999976", "0.59720534", "0.5901075", "0.588719", "0.58779854", "0.5877548", "0.5872172", "0.5844648", "0.5827095", "0.58270...
0.8266317
0
Sets the after any of this job.
@Override public void setAfterAny(String afterAny) { model.setAfterAny(afterAny); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setAfterLast(Wrapper afterLast)\n {\n\n }", "public void setAfterOperations(List<Operation> after){\n\n if (after == null){\n this.after = null;\n }\n else{\n if (this.after != null){\n this.after.clear();\n }\n...
[ "0.6992854", "0.67329776", "0.66540784", "0.66540784", "0.65886563", "0.65333766", "0.6482124", "0.6412798", "0.61195976", "0.611021", "0.6095591", "0.6082264", "0.6040166", "0.6039345", "0.5932266", "0.59152365", "0.59112376", "0.5899964", "0.58974415", "0.5895174", "0.58904...
0.6074052
12
Sets the after ok of this job.
@Override public void setAfterOk(String afterOk) { model.setAfterOk(afterOk); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void afterDone() {\n }", "public void afterDone() {\n }", "public void setAfterResult(Integer afterResult) {\r\n this.afterResult = afterResult;\r\n }", "public void setAfterReason(String afterReason) {\r\n this.afterReason = afterReason;\r\n }", "protected void after( bool...
[ "0.659558", "0.659558", "0.65272695", "0.6137661", "0.6083764", "0.5943218", "0.589885", "0.58915764", "0.58855855", "0.58805317", "0.58767635", "0.5857395", "0.579164", "0.5744367", "0.57356226", "0.5729476", "0.57161456", "0.57150614", "0.5697448", "0.5660266", "0.56572", ...
0.73543996
0
Sets the cluster ID of this job.
@Override public void setClusterId(long clusterId) { model.setClusterId(clusterId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setClusterId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n clusterId_ = value;\n onChanged();\n return this;\n }", "public Builder setClusterId(\n java.lang.String value) {\n if (value...
[ "0.7534046", "0.7534046", "0.7534046", "0.7534046", "0.7534046", "0.7534046", "0.7509203", "0.7408647", "0.68274885", "0.6740818", "0.67386395", "0.6611031", "0.6611031", "0.6556382", "0.6556382", "0.6556382", "0.6556382", "0.6556382", "0.6556382", "0.65505654", "0.65458995",...
0.7348968
8
Sets the command of this job.
@Override public void setCommand(String command) { model.setCommand(command); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setCommand(String command)\n {\n Command = command;\n }", "public void setCommand(String command) {\n _command = command;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public void setCommand(String command)\r\n\t{\r\n\t\tthi...
[ "0.7489166", "0.7462535", "0.7323114", "0.72960544", "0.7289756", "0.7272611", "0.7256112", "0.7220978", "0.7163377", "0.7159801", "0.70155954", "0.69741184", "0.68987393", "0.68886244", "0.66701883", "0.6582092", "0.63491374", "0.6333822", "0.6304072", "0.62667483", "0.61614...
0.70667464
10
Sets the company ID of this job.
@Override public void setCompanyId(long companyId) { model.setCompanyId(companyId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n public void setCompanyId(long companyId) {\n _partido...
[ "0.7819046", "0.7819046", "0.7819046", "0.7819046", "0.7810482", "0.78036386", "0.7712576", "0.7712576", "0.7712576", "0.7712576", "0.7712576", "0.76817864", "0.7678782", "0.7611484", "0.7581229", "0.7567298", "0.7567298", "0.7555966", "0.7531399", "0.7531399", "0.74344313", ...
0.7485027
22
Sets the complete date of this job.
@Override public void setCompleteDate(Date completeDate) { model.setCompleteDate(completeDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCompletedDate(Date value) {\n this.completedDate = value;\n }", "public void setCompleteTime(Date completeTime) {\n this.completeTime = completeTime;\n }", "public void CompleteTask() {\n\t\tCompletionDate = new Date();\n\t}", "public void setDoneDate(Date doneDate) {\n ...
[ "0.7210147", "0.6834678", "0.6802496", "0.64381236", "0.64381236", "0.64381236", "0.64381236", "0.6387579", "0.62499124", "0.6221622", "0.6219175", "0.6219073", "0.6151171", "0.60793793", "0.60659486", "0.60532296", "0.5986198", "0.59837335", "0.595063", "0.595063", "0.595063...
0.78553843
0
Sets the create date of this job.
@Override public void setCreateDate(Date createDate) { model.setCreateDate(createDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCreateDate(Date date);", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "void setCreateDate(final Date creationD...
[ "0.76730865", "0.7442652", "0.7417502", "0.7417502", "0.74064296", "0.73716193", "0.7307997", "0.7287018", "0.7283154", "0.7283154", "0.7283154", "0.7256375", "0.7256375", "0.72334063", "0.7231326", "0.7228305", "0.72221524", "0.7216752", "0.7216752", "0.7216752", "0.7216752"...
0.7163654
44
Sets the eligible time of this job.
@Override public void setEligibleTime(String eligibleTime) { model.setEligibleTime(eligibleTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSettleTime(Date settleTime) {\n this.settleTime = settleTime;\n }", "public void xsetRequestedTime(org.apache.xmlbeans.XmlDateTime requestedTime)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDat...
[ "0.59628415", "0.5952331", "0.5951223", "0.58550894", "0.5852084", "0.58023024", "0.5787915", "0.5719069", "0.5658428", "0.5639137", "0.56140804", "0.56069154", "0.5604504", "0.5598978", "0.55967206", "0.5583528", "0.5569638", "0.55503774", "0.5545624", "0.5534841", "0.551816...
0.7035608
0
Sets the environment vars of this job.
@Override public void setEnvironmentVars(String environmentVars) { model.setEnvironmentVars(environmentVars); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setEnvironment(Properties properties);", "public void setEnvironment(Map<String, String> environment);", "private void setupEnvironment(Execute exe) {\r\n String[] environment = env.getVariables();\r\n if (environment != null) {\r\n for (int i = 0; i < environment.length; i++) {\r...
[ "0.6944551", "0.69156504", "0.6803051", "0.66602206", "0.64663583", "0.64593565", "0.64491427", "0.6419441", "0.61822945", "0.6180724", "0.5988397", "0.5981072", "0.5866715", "0.57662725", "0.574716", "0.5716116", "0.5695236", "0.5683795", "0.5680435", "0.5630704", "0.5619390...
0.6633887
4
Sets the group ID of this job.
@Override public void setGroupId(long groupId) { model.setGroupId(groupId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGroupID(int groupID) {\n this.groupID = groupID;\n }", "public void setGroup(String group) throws InvalidIDException {\r\n\t\tif (group == null) { return; }\r\n\r\n\t\tif (Arrays.binarySearch(Projects.GROUPS, group) < 0) {\r\n\t\t\tthrow new InvalidIDException(\"Attempt to insert an inva...
[ "0.7081918", "0.6955477", "0.6932693", "0.69014585", "0.6852215", "0.67563784", "0.66780156", "0.6619902", "0.6593351", "0.6555423", "0.65329254", "0.6497138", "0.6478629", "0.6478629", "0.6478629", "0.6478629", "0.6478629", "0.6478629", "0.64405096", "0.6437366", "0.6437366"...
0.67220604
8
Sets the job ID of this job.
@Override public void setJobId(long jobId) { model.setJobId(jobId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }", "public void setJob(Job jobNum){\n job = jobNum;\n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n ...
[ "0.7282479", "0.68161815", "0.6710942", "0.6656964", "0.6564363", "0.6452335", "0.6365043", "0.6342081", "0.6290289", "0.62719744", "0.6263944", "0.6256616", "0.6224137", "0.62035084", "0.6183142", "0.61656106", "0.61656106", "0.61656106", "0.61628014", "0.61626333", "0.61500...
0.6421484
6
Sets the job name of this job.
@Override public void setJobName(String jobName) { model.setJobName(jobName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setJobName(String jobName);", "public JobBuilder name(String name) {\r\n job.setName(name);\r\n return this;\r\n }", "public void setJobName(String jobName) {\n this.jobName = jobName;\n }", "public void setJobName(String jobName) {\n this.jobName = jobName;\n }", ...
[ "0.8390688", "0.75413394", "0.74714315", "0.74714315", "0.74714315", "0.7290595", "0.7158091", "0.67002124", "0.6658934", "0.65987206", "0.65595114", "0.65595114", "0.6556634", "0.6556634", "0.6556634", "0.6556634", "0.6552834", "0.6541053", "0.65359086", "0.6524007", "0.6521...
0.77130514
1
Sets the job status of this job.
@Override public void setJobStatus(int jobStatus) { model.setJobStatus(jobStatus); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setJobStatus(Integer jobStatus) {\n this.jobStatus = jobStatus;\n }", "public void setStatus(JobStatus status);", "public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }", "public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus...
[ "0.769927", "0.76732546", "0.76007074", "0.76007074", "0.7552295", "0.6950676", "0.67752856", "0.67309844", "0.6729566", "0.67006075", "0.6654908", "0.66513586", "0.66264653", "0.6582362", "0.6577502", "0.65721214", "0.65721214", "0.65721214", "0.65721214", "0.65517956", "0.6...
0.7699152
1
Sets the log file name of this job.
@Override public void setLogFileName(String logFileName) { model.setLogFileName(logFileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLogFile(String filename) throws IOException {\n\t\tlogger.setLogfilePrefix(filename);\n\t}", "public void setLogfile( String logfilename )\n {\n // guard\n {\n if( this.isopen() )\n {\n log.warn( \"Changing logfilename while logfile has already...
[ "0.7161571", "0.7102467", "0.67327476", "0.6722113", "0.6673068", "0.65427923", "0.6485559", "0.6415535", "0.63652015", "0.63639325", "0.6301062", "0.62151027", "0.62107974", "0.6199421", "0.6146406", "0.61327183", "0.6131331", "0.60831493", "0.60780174", "0.6031932", "0.6020...
0.6820129
2
Sets the modified date of this job.
@Override public void setModifiedDate(Date modifiedDate) { model.setModifiedDate(modifiedDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setModified(Date modified) {\r\n\t\tthis.modified = modified;\r\n\t}", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "@Ove...
[ "0.7662366", "0.7609469", "0.7609469", "0.7609469", "0.7517835", "0.7517835", "0.74788105", "0.7462981", "0.745298", "0.745298", "0.7430807", "0.7426682", "0.7426682", "0.7424982", "0.73740387", "0.7327875", "0.73162144", "0.72348434", "0.72203606", "0.7184217", "0.7155406", ...
0.7213804
21
Sets the nodes of this job.
@Override public void setNodes(int nodes) { model.setNodes(nodes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNodes( Nodes nodes )\n {\n this.nodes = nodes;\n }", "public abstract void setNodes();", "public void setNodes(final List<Nodes> nds) {\n this.nodes = nds;\n }", "public void setNodes(ZVNode[] nodes) {\r\n if (this.nodes != null) {\r\n for (int i = 0; i...
[ "0.7365191", "0.7289872", "0.71456933", "0.6427866", "0.6249869", "0.6210865", "0.60586876", "0.6020115", "0.59651446", "0.58466136", "0.5844542", "0.582184", "0.5818921", "0.581217", "0.57809997", "0.5750414", "0.5663918", "0.56582904", "0.5632222", "0.56147146", "0.55573326...
0.67921615
3
Sets the primary key of this job.
@Override public void setPrimaryKey(long primaryKey) { model.setPrimaryKey(primaryKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void set...
[ "0.72192377", "0.72192377", "0.72192377", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555", "0.72051555"...
0.6848441
39
Sets the processors per node of this job.
@Override public void setProcessorsPerNode(int processorsPerNode) { model.setProcessorsPerNode(processorsPerNode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobBuilder processorsPerNode(int processorsPerNode) {\r\n job.setProcessorsPerNode(processorsPerNode);\r\n return this;\r\n }", "@Override\n\tpublic int getProcessorsPerNode() {\n\t\treturn model.getProcessorsPerNode();\n\t}", "public static void setAvailableProcessors(int availableProc...
[ "0.7949498", "0.6677037", "0.6212428", "0.54735655", "0.544575", "0.538326", "0.5135022", "0.50981694", "0.5077636", "0.50722307", "0.5070517", "0.50700855", "0.50501496", "0.50270826", "0.50253487", "0.49392593", "0.4921983", "0.4906076", "0.49032134", "0.48612413", "0.48612...
0.8152205
0
Sets the queued date of this job.
@Override public void setQueuedDate(Date queuedDate) { model.setQueuedDate(queuedDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Date getQueuedDate() {\n\t\treturn model.getQueuedDate();\n\t}", "public synchronized final void setQueued(boolean qd) {\n\t\tsetFlag(RequestQueued, qd);\n\t}", "@Override\n\tpublic void setRequestedDate(java.util.Date requestedDate) {\n\t\t_dmGtStatus.setRequestedDate(requestedDate);\n\t}"...
[ "0.6448119", "0.6110976", "0.59140843", "0.5743268", "0.57398444", "0.5721314", "0.57072073", "0.56484365", "0.5648238", "0.5648238", "0.5648238", "0.5648238", "0.5645474", "0.56398064", "0.56352735", "0.56052554", "0.5592331", "0.55834484", "0.5544626", "0.55430627", "0.5537...
0.82006013
0
Sets the queue name of this job.
@Override public void setQueueName(String queueName) { model.setQueueName(queueName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setQueueName(java.lang.String queueName) {\n this.queueName = queueName;\n }", "void setJobName(String jobName);", "public java.lang.String getQueueName() {\n return queueName;\n }", "java.lang.String getQueueName();", "@Override\n protected String getQueueName() {return ...
[ "0.7701729", "0.6997121", "0.6606329", "0.6553608", "0.6489624", "0.6417152", "0.6370393", "0.6325218", "0.63121986", "0.61640155", "0.61507857", "0.6150307", "0.61417115", "0.6138545", "0.6097635", "0.6064033", "0.6052449", "0.60500675", "0.60489285", "0.60489285", "0.604892...
0.7723953
0
Sets the reference files of this job.
@Override public void setReferenceFiles(String referenceFiles) { model.setReferenceFiles(referenceFiles); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFileRef() { this.fileRef = fileRef; }", "public void addReference(FileSet reference) {\n referenceFilesets.add(reference);\n }", "public void setFiles(ArrayList<BatchFileModel> value) {\n this.files = value;\n }", "public void setClasspathRef(Reference r) {\n if (isR...
[ "0.6877506", "0.62725097", "0.5819792", "0.5661121", "0.5524483", "0.5502692", "0.5460239", "0.54492474", "0.5444056", "0.5426743", "0.54037106", "0.5356679", "0.53302664", "0.532412", "0.5307264", "0.530101", "0.52729636", "0.5272935", "0.5262901", "0.52588046", "0.52581847"...
0.7289369
0
Sets whether this job is reserve results.
@Override public void setReserveResults(boolean reserveResults) { model.setReserveResults(reserveResults); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isReserveResults() {\n\t\treturn model.isReserveResults();\n\t}", "@Override\n\tpublic boolean getReserveResults() {\n\t\treturn model.getReserveResults();\n\t}", "public void setReserved(boolean reserved) {\n this.reserved = reserved;\n }", "public void setAvalible(bool...
[ "0.71422434", "0.6276158", "0.58864546", "0.56721103", "0.55836535", "0.55569625", "0.5465146", "0.54447585", "0.5424583", "0.5387629", "0.53186333", "0.5312037", "0.5287311", "0.52826494", "0.528066", "0.521707", "0.51891315", "0.5185376", "0.51781833", "0.5162833", "0.51624...
0.8069882
0
Sets the run type of this job.
@Override public void setRunType(String runType) { model.setRunType(runType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setRunType(java.lang.String runType) {\n\t\t_scienceApp.setRunType(runType);\n\t}", "public void setJobType(int value) {\n this.jobType = value;\n }", "@Override\n\tpublic String getRunType() {\n\t\treturn model.getRunType();\n\t}", "public RunType runType() {\n retu...
[ "0.7433232", "0.66073686", "0.62516606", "0.6135228", "0.60879254", "0.6084861", "0.6084861", "0.5994927", "0.5968897", "0.59018886", "0.58980614", "0.5856527", "0.58443296", "0.58443296", "0.58443296", "0.58394086", "0.58172", "0.580354", "0.5797618", "0.57790303", "0.577119...
0.7732848
0
Sets the solver exe of this job.
@Override public void setSolverExe(String solverExe) { model.setSolverExe(solverExe); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getSolverExe() {\n\t\treturn model.getSolverExe();\n\t}", "@Override\n\tpublic void setExeFileName(java.lang.String exeFileName) {\n\t\t_scienceApp.setExeFileName(exeFileName);\n\t}", "public void setExecutable(String executable);", "void setStartUpExe(String s);", "public Proble...
[ "0.6806845", "0.57538545", "0.53047913", "0.5086328", "0.49992868", "0.49167967", "0.49106297", "0.48532116", "0.4825152", "0.47921595", "0.47829124", "0.475138", "0.47048342", "0.47021633", "0.4659804", "0.46251217", "0.45927152", "0.45839882", "0.45788", "0.45479953", "0.45...
0.7954253
0
Sets the start date of this job.
@Override public void setStartDate(Date startDate) { model.setStartDate(startDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStartDate(Date start)\r\n {\r\n this.startDate = start;\r\n }", "public void setStartDate(java.util.Date value);", "public void setStartDate(Date value)\n {\n validateStartDate(value);\n setAttributeInternal(STARTDATE, value);\n \n }", "public void setStartDate(Date sta...
[ "0.7426373", "0.737883", "0.7341845", "0.72039264", "0.71927667", "0.7175752", "0.71617943", "0.71617943", "0.71396023", "0.71373796", "0.7104937", "0.7104937", "0.7104937", "0.7092438", "0.7089692", "0.7089692", "0.70843655", "0.70843655", "0.70605606", "0.70605606", "0.7051...
0.71956784
4
Sets the status of this job.
@Override public void setStatus(int status) { model.setStatus(status); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStatus(JobStatus status);", "public JobBuilder status(String status) {\r\n job.setStatus(status);\r\n return this;\r\n }", "@Override\n\tpublic void setJobStatus(int jobStatus) {\n\t\tmodel.setJobStatus(jobStatus);\n\t}", "public void setStatus(long status) {\r\n this.s...
[ "0.8112081", "0.76502407", "0.7529879", "0.746156", "0.74287134", "0.74059516", "0.7390933", "0.7383425", "0.7355347", "0.733403", "0.733403", "0.733403", "0.733403", "0.7308599", "0.7256061", "0.7256061", "0.7228828", "0.72259593", "0.72020173", "0.7194895", "0.7194895", "...
0.0
-1
Sets the submit args of this job.
@Override public void setSubmitArgs(String submitArgs) { model.setSubmitArgs(submitArgs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getSubmitArgs() {\n\t\treturn model.getSubmitArgs();\n\t}", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setArgs(java.lang.String value) {\n validate(fields()[3], value);\n this.args = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public v...
[ "0.61693233", "0.6118221", "0.58962935", "0.58214545", "0.58214545", "0.5639328", "0.5611723", "0.5490382", "0.53886986", "0.51676005", "0.5074724", "0.5056256", "0.5034585", "0.50144935", "0.49826056", "0.4976548", "0.4924696", "0.49143258", "0.49093348", "0.49092793", "0.48...
0.7346116
0
Sets the submit ID of this job.
@Override public void setSubmitId(String submitId) { model.setSubmitId(submitId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setSubmissionId(long submissionId) {\n\t\tmodel.setSubmissionId(submissionId);\n\t}", "public void setSubmit_user_id(Integer submit_user_id) {\n this.submit_user_id = submit_user_id;\n }", "@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}", "...
[ "0.63683015", "0.63014203", "0.6232529", "0.62277234", "0.61908746", "0.60998034", "0.5990755", "0.5775995", "0.5773981", "0.560726", "0.55765104", "0.55081624", "0.54777557", "0.5363374", "0.5340957", "0.52904934", "0.5270882", "0.5255688", "0.52153844", "0.5205582", "0.5148...
0.7528594
0
Sets the title of this job.
@Override public void setTitle(String title) { model.setTitle(title); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitle_(String title_) {\n this.title_ = title_;\n }", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle( String title ) {\n\t\t_title = title;\n\t}", "public void setTitle(String title) {\r\n _title = title;\r\n }",...
[ "0.78850806", "0.78539383", "0.7853908", "0.7849395", "0.7838706", "0.7838706", "0.7838706", "0.7838706", "0.7838706", "0.78173274", "0.78173274", "0.7807611", "0.7803448", "0.7801913", "0.7800664", "0.7800664", "0.7799892", "0.7799548", "0.77944195", "0.77911794", "0.7791129...
0.7423658
90
Sets the used cpu time of this job.
@Override public void setUsedCpuTime(String usedCpuTime) { model.setUsedCpuTime(usedCpuTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCPUTime() {\r\n\t\t\tthis.CPUTime = 0;\r\n\t\t}", "public void setTimes(long startCpuTime, long startSystemTime) {\r\n this.startCpuTime = startCpuTime;\r\n this.startSystemTime = startSystemTime;\r\n }", "public void setUsedtime(Float usedtime) {\n this.usedt...
[ "0.7117351", "0.6846629", "0.68015903", "0.6560292", "0.6499962", "0.6233231", "0.61537737", "0.6099088", "0.6073904", "0.6062986", "0.5960271", "0.5930861", "0.5886309", "0.58452487", "0.5833385", "0.58033824", "0.58003044", "0.5760923", "0.5738479", "0.5710771", "0.56639856...
0.7819563
0
Sets the used memory of this job.
@Override public void setUsedMemory(String usedMemory) { model.setUsedMemory(usedMemory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMemorySize() { }", "public void setUsedSpace(Long usedSpace) {\n this.usedSpace = usedSpace;\n }", "public JobBuilder memoryPerNode(String memoryPerNode) {\r\n job.setMemoryPerNode(memoryPerNode);\r\n return this;\r\n }", "public void setMemory(int systemMemorySize)...
[ "0.7147148", "0.67998874", "0.63539255", "0.628161", "0.61815935", "0.608494", "0.6032323", "0.59989667", "0.5919539", "0.5829622", "0.5778266", "0.5728846", "0.5728846", "0.56645924", "0.5643626", "0.55945593", "0.5587189", "0.5556018", "0.5553009", "0.55528635", "0.54785585...
0.6762688
2
Sets the used walltime of this job.
@Override public void setUsedWalltime(String usedWalltime) { model.setUsedWalltime(usedWalltime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setWallTime(String wallTime) {\n\t\tmodel.setWallTime(wallTime);\n\t}", "public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }", "public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterfa...
[ "0.6549828", "0.61582434", "0.61305094", "0.6084459", "0.6014611", "0.5916012", "0.5848529", "0.58442634", "0.58440053", "0.5786906", "0.5724223", "0.572084", "0.56823415", "0.56341755", "0.55668324", "0.55487126", "0.55246025", "0.54906464", "0.54797184", "0.54704434", "0.54...
0.75912154
0
Sets the user ID of this job.
@Override public void setUserId(long userId) { model.setUserId(userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setIdUser(int value) {\n this.idUser = value;\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_userSync.setUserId(userId...
[ "0.7683027", "0.7592934", "0.7494575", "0.7278326", "0.7264358", "0.7177693", "0.7158668", "0.7138874", "0.7131839", "0.7131839", "0.70696425", "0.7063194", "0.7048196", "0.7047168", "0.704008", "0.704008", "0.704008", "0.704008", "0.70139706", "0.7012581", "0.70092857", "0...
0.69238317
28
Sets the user uuid of this job.
@Override public void setUserUuid(String userUuid) { model.setUserUuid(userUuid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserUuid(String userUuid);", "public void setUserUuid(String userUuid);", "public void setUserUuid(String userUuid);", "public void setUserUuid(String userUuid);", "@Override\n\tpublic void setUserUuid(String userUuid);", "@Override\n\tpublic void setUserUuid(String userUuid);", "@Overri...
[ "0.75934917", "0.75934917", "0.75934917", "0.75934917", "0.75112253", "0.75112253", "0.7465948", "0.7427048", "0.7318441", "0.7273325", "0.7164328", "0.7108201", "0.71069515", "0.7057005", "0.70249754", "0.68994844", "0.6747486", "0.6482689", "0.6318156", "0.62632936", "0.624...
0.7436479
9
Sets the uuid of this job.
@Override public void setUuid(String uuid) { model.setUuid(uuid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUuid(String uuid);", "public void setUuid(String uuid);", "public void setUuid(String uuid);", "@Override\n\tpublic void setUuid(String uuid);", "public void setUuid(UUID uuid);", "public void setUuid(String uuid)\n {\n this.uuid = uuid;\n }", "public void setUUID(UUID uuid) {\n ...
[ "0.7469996", "0.7469996", "0.7469996", "0.72754323", "0.7256502", "0.7228349", "0.7181114", "0.71470124", "0.71470124", "0.71470124", "0.71470124", "0.7106433", "0.70680165", "0.7038055", "0.7016092", "0.7016092", "0.7016092", "0.7016092", "0.7016092", "0.70100975", "0.701009...
0.69029546
28
Sets the wall time of this job.
@Override public void setWallTime(String wallTime) { model.setWallTime(wallTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void writeWallTime(Writer wr) throws IOException {\n\t\tObject walltime = getSpec().getAttribute(\"maxwalltime\");\n\t\tif (walltime != null) {\n\t\t\twr.write(\"#SBATCH --time=\"\n\t\t\t\t\t+ WallTime.normalize(walltime.toString(), \"pbs-native\")\n\t\t\t\t\t+ '\\n');\n\t\t}\n\t}", "public void setTim...
[ "0.6296953", "0.61099625", "0.5890217", "0.5883053", "0.58613414", "0.58613414", "0.58613414", "0.58613414", "0.584596", "0.58177847", "0.5788189", "0.57751405", "0.57701135", "0.57701135", "0.57701135", "0.57457167", "0.5744392", "0.5742918", "0.5742918", "0.5742918", "0.574...
0.7450616
0
Sets the working dir of this job.
@Override public void setWorkingDir(String workingDir) { model.setWorkingDir(workingDir); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWorkingDir(File workingDir) {\n this.workingDir = workingDir;\n }", "public void setWorkingDir(File workingDir) {\n this.workingDir = workingDir;\n }", "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "void setWorkingDirect...
[ "0.74929255", "0.74929255", "0.72286606", "0.70340234", "0.69730645", "0.6821791", "0.6704518", "0.66658384", "0.6525749", "0.6457101", "0.64409316", "0.63980967", "0.620224", "0.6195509", "0.6195509", "0.61210173", "0.6062981", "0.6035112", "0.5983342", "0.5952459", "0.58916...
0.716408
3
TODO Autogenerated method stub
@Override public void onImageLoadedSuccess(String url, Bitmap bitmap,ZLMovie movie, int imageType, ImageView imgView) { if(bitmap==null && movie!=null){ bitmap = BitmapFactory.decodeByteArray(movie.getMovieData(), 0, movie.getMovieData().length); } if(url == PlazaListImageView.this.url){ imgView.setImageBitmap(bitmap); } }
{ "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 onImageLoadProgress(String url, int imageType,ImageView imgView, int loaded, int total) { drawProgress(loaded,total); }
{ "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
Asserts that the execution of consumer throws an exception of the specific class.
public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) { assertThrows(consumer, exceptionClass, ex -> { }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n try {\n consumer.accept(null);\n } catch (final CompletionException completionEx) {\n final Throwable ex = completionEx.getCause();\n if (ex.getClass()...
[ "0.73354197", "0.72402024", "0.69650537", "0.6805045", "0.67729276", "0.662129", "0.6219039", "0.60806525", "0.6060323", "0.60510844", "0.5915686", "0.58446693", "0.58271015", "0.5816575", "0.5778458", "0.575248", "0.57181644", "0.5699392", "0.56629276", "0.5653994", "0.56447...
0.7352833
0
Asserts that the execution of consumer throws an exception of the specific class.
public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass, final String message) { assertThrows(consumer, exceptionClass, ex -> { }, message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n assertThrows(consumer, exceptionClass, ex -> {\n });\n }", "public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n try {\n ...
[ "0.73529667", "0.7335362", "0.72398454", "0.696542", "0.6774592", "0.66217554", "0.6220063", "0.6079813", "0.606205", "0.6052916", "0.59141755", "0.58447516", "0.582652", "0.5815717", "0.5779362", "0.5753496", "0.5717353", "0.5700016", "0.56616646", "0.5653899", "0.5645655", ...
0.6804898
4
Asserts that the execution of consumer throws an exception of the specific class.
public static <T> void assertThrows( final Consumer<Void> consumer, final Class<T> exceptionClass, final Consumer<T> assertExceptionProperties) { assertThrows(consumer, exceptionClass, assertExceptionProperties, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n assertThrows(consumer, exceptionClass, ex -> {\n });\n }", "public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n try {\n ...
[ "0.73529667", "0.7335362", "0.72398454", "0.6804898", "0.6774592", "0.66217554", "0.6220063", "0.6079813", "0.606205", "0.6052916", "0.59141755", "0.58447516", "0.582652", "0.5815717", "0.5779362", "0.5753496", "0.5717353", "0.5700016", "0.56616646", "0.5653899", "0.5645655",...
0.696542
3
Asserts that the execution of consumer throws an exception of the specific class.
@SuppressWarnings("unchecked") private static <T> void assertThrows( final Consumer<Void> consumer, final Class<T> exceptionClass, final Consumer<T> assertExceptionProperties, final String message) { final String normalizedMessage = null == message ? "" : String.format("[%s]: ", message); try { consumer.accept(null); } catch (final Exception ex) { if (exceptionClass.isAssignableFrom(ex.getClass())) { assertExceptionProperties.accept((T) ex); return; } Assert.fail(String.format("%sunexpected exception of type %s was thrown: '%s'", normalizedMessage, ex.getClass(), ex.getMessage())); } Assert.fail(String.format("%sexpected exception of type %s was not thrown", normalizedMessage, exceptionClass)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n assertThrows(consumer, exceptionClass, ex -> {\n });\n }", "public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n try {\n ...
[ "0.7351521", "0.7334193", "0.6964372", "0.68037903", "0.6773751", "0.66217923", "0.62206954", "0.6081665", "0.60626453", "0.6052734", "0.59154004", "0.5846108", "0.58268255", "0.5816073", "0.57805264", "0.57531667", "0.57183504", "0.5701236", "0.56615084", "0.56545216", "0.56...
0.7239074
2
Asserts that the execution of consumer throws a completion exception wrapping an exception of the specific class.
public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) { try { consumer.accept(null); } catch (final CompletionException completionEx) { final Throwable ex = completionEx.getCause(); if (ex.getClass() == exceptionClass) { return; } Assert.fail(String.format("unexpected exception of type %s was thrown", ex.getClass())); } Assert.fail(String.format("expected exception of type %s was not thrown", exceptionClass)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n assertThrows(consumer, exceptionClass, ex -> {\n });\n }", "OOPExpectedException expect(Class<? extends Exception> expected);", "@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all ...
[ "0.6509256", "0.62733823", "0.62239534", "0.61939543", "0.60417235", "0.58993495", "0.5818325", "0.5742876", "0.5628149", "0.5391673", "0.5358445", "0.52772504", "0.52720195", "0.52681804", "0.52467763", "0.52329576", "0.5229506", "0.52096593", "0.520818", "0.5199855", "0.519...
0.77662766
0
Method responsible for washing if the obj is in appropriate state
public void wash() { synchronized (this) { LOGGER.info("{}:Actual machine state:{}", Thread.currentThread().getName(), getWashingMachineState()); if (WashingMachineState.WASHING.equals(washingMachineState)) { LOGGER.error("ERROR:Cannot wash if the machine has already been washing"); return; } washingMachineState = WashingMachineState.WASHING; } LOGGER.info("{}:Doing the washing", Thread.currentThread().getName()); try { Thread.sleep(50); } catch (Exception e) { e.printStackTrace(); } endWashing(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isObjectHeld() { return objHeld; }", "private void backObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToBack();\n }\n\t}", "protected abstract List breakOutOfStateStack();", "@SuppressWarnings(\"unchecked\")\n public boolean stillExists(Object obj) {\n...
[ "0.6152809", "0.5984031", "0.57728326", "0.57497233", "0.568355", "0.5661265", "0.5589849", "0.5583067", "0.5516354", "0.5439958", "0.5429789", "0.5422563", "0.5420227", "0.53938437", "0.53849494", "0.53795683", "0.53704304", "0.5363342", "0.53072304", "0.52981555", "0.529170...
0.51734424
29
Method responsible of ending the washing by changing machine state
private synchronized void endWashing() { washingMachineState = WashingMachineState.ENABLE; LOGGER.info("{}:Washing complete.", Thread.currentThread().getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void wash() {\n synchronized (this) {\n LOGGER.info(\"{}:Actual machine state:{}\", Thread.currentThread().getName(),\n getWashingMachineState());\n if (WashingMachineState.WASHING.equals(washingMachineState)) {\n LOGGER.error(\"ERROR:Cannot wash if...
[ "0.72432506", "0.678401", "0.6646419", "0.6640341", "0.66003996", "0.66003996", "0.66003996", "0.66003996", "0.65967876", "0.6535463", "0.6476627", "0.64743316", "0.64685833", "0.64534223", "0.63657355", "0.6314545", "0.63083255", "0.63039654", "0.62991196", "0.62658036", "0....
0.8549731
0
/ Constructor destination: the destination address sendPort: the sendPort number myPort: the myPort
Client(String destination, int sendPort, int myPort, String myIP) { this.destination = destination; this.sendPort = sendPort; this.myPort = myPort; this.myIP = myIP; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getDestinationPort();", "int getDestinationPort();", "Integer destinationPort();", "public Receiver(String ip_1, int port_1, String ip_2, int port_2, routingTableClass routingTableObject1) {\r\n\t\treceive_port = port_1;\r\n\t\treceive_ip = ip_1;\r\n\t\tsend_port = port_2;\r\n\t\tsend_ip = ip_2;\r\n\t\tt...
[ "0.6847186", "0.6847186", "0.6798193", "0.672229", "0.65893704", "0.65275073", "0.64896184", "0.64896184", "0.6434479", "0.6318585", "0.6282945", "0.61799765", "0.61389714", "0.6120661", "0.6115845", "0.60171753", "0.5958359", "0.590497", "0.590497", "0.5899336", "0.5866847",...
0.7607452
0
To start the dialog
public boolean start() { // try to connect to the destination try { socket = new Socket(this.destination, this.sendPort); } // if it failed not much I can so catch(Exception ec) { display("Error connecting to destination: " + this.destination + "\n\t\t" + ec); return false; } display("Connection accepted " + socket.getInetAddress() + ":" + socket.getPort()); /* Creating both Data Stream */ try { sInput = new ObjectInputStream(socket.getInputStream()); sOutput = new ObjectOutputStream(socket.getOutputStream()); } catch (IOException eIO) { display("Exception creating new Input/output Streams: " + eIO); return false; } // creates the Thread to listen from the destination new ListenFromdestination().start(); // Send our myPort to the destination this is the only message that we // will send as a String. All other messages will be ChatMessage objects try { String username = myIP + " " + myPort; sOutput.writeObject(username); } catch (IOException eIO) { display("Exception doing login : " + eIO); disconnect(); return false; } // success we inform the caller that it worked return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onStart() {\n pDialog.show();\n }", "DialogResult show();", "@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }", "public void start() {\n dialogCo...
[ "0.76467586", "0.72553414", "0.7105938", "0.7099855", "0.7090959", "0.70747495", "0.70530486", "0.69580734", "0.6935034", "0.69314045", "0.6925784", "0.69130665", "0.6883782", "0.68705004", "0.6864612", "0.68189806", "0.6812552", "0.6803837", "0.6764944", "0.6756483", "0.6732...
0.0
-1
To send a message to the console
private void display(String msg) { String msgF = "\tClient- " + msg + "\n\n >> "; System.out.print(msgF); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void sendToConsole(String message) {\n if (message == null) {\n throw new IllegalArgumentException(\"Message cannot be null\");\n }\n if (Loader.queueMessages) {\n MessageQueue.console.add(message);\n } else {\n sendMessageInternal(Loader.c...
[ "0.74030375", "0.7266407", "0.7097701", "0.7040922", "0.69464064", "0.69409394", "0.68856746", "0.67703855", "0.67416775", "0.6740349", "0.6723361", "0.6681138", "0.6680669", "0.66772527", "0.6661131", "0.6641001", "0.6639117", "0.66200536", "0.6614042", "0.6569617", "0.65405...
0.0
-1
To send a message to the destination
public void sendMessage(ChatMessage msg) { try { sOutput.writeObject(msg); } catch(IOException e) { System.out.print("\n\tException writing to destination: \n\t\t" + e + "\n\tIf error persists, terminate connection and reconnect."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void send(String destination, String message, String identifier){\n return;\n }", "public void sendTo(P2PUser dest, Object msg) throws IOException;", "void sendTo(String from, String to, String m_id);", "public void send(Address from, String message);", "public void send(Message msg);", ...
[ "0.76843965", "0.744713", "0.73067015", "0.7299582", "0.7260845", "0.7153931", "0.71294373", "0.7002915", "0.68835384", "0.68776566", "0.68715376", "0.6858663", "0.6841837", "0.68405396", "0.6794776", "0.6769302", "0.6757579", "0.673262", "0.6726033", "0.67232084", "0.6721928...
0.688831
8
When something goes wrong Close the Input/Output streams and disconnect not much to do in the catch clause
public void disconnect() { try { if(sInput != null) sInput.close(); } catch(Exception e) {} // not much else I can do try { if(sOutput != null) sOutput.close(); } catch(Exception e) {} // not much else I can do try{ if(socket != null) socket.close(); } catch(Exception e) {} // not much else I can do }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void close()\r\n {\r\n try \r\n {\r\n if(out != null) out.close();\r\n }\r\n catch(Exception e) {\r\n \r\n }\r\n try \r\n {\r\n if(in != null) in.close();\r\n }\r\n\r\...
[ "0.69861495", "0.69168425", "0.6874262", "0.6816552", "0.6803257", "0.67782015", "0.67631066", "0.6615842", "0.6597322", "0.6576875", "0.65406895", "0.65375805", "0.6528358", "0.6521107", "0.64252096", "0.64215755", "0.63688964", "0.63572574", "0.6353259", "0.6349115", "0.633...
0.7084255
0
define a bean for ViewResolver
@Bean public ViewResolver viewResolver() { InternalResourceViewResolver viewResolver = new InternalResourceViewResolver(); viewResolver.setPrefix("/WEB-INF/view/"); viewResolver.setSuffix(".jsp"); return viewResolver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Bean\n\tpublic ViewResolver viewResolver() {\n\t\tInternalResourceViewResolver resolver = new InternalResourceViewResolver();\n\t\tresolver.setPrefix(\"/WEB-INF/views/\");\n\t\tresolver.setSuffix(\".jsp\");\n\t\tresolver.setExposeContextBeansAsAttributes(true);\n\t\treturn resolver;\n\t}", "@Bean\n\tpublic View...
[ "0.7566506", "0.75319886", "0.7456525", "0.7302111", "0.7244388", "0.71981287", "0.7081641", "0.6783893", "0.67544574", "0.65368843", "0.6498252", "0.61960363", "0.6159581", "0.61336267", "0.60701513", "0.6068618", "0.606033", "0.59950227", "0.5958072", "0.5767576", "0.574727...
0.71900445
6
helper method to convert string properties to int
private int getIntProperty(String propName) { return Integer.parseInt(Objects.requireNonNull(env.getProperty(propName))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Integer getIntegerProperty(Dictionary<?, ?> properties,\n String propertyName) {\n Integer value = null;\n try {\n String s = Tools.get(properties, propertyName);\n value = isNullOrEmpty(s) ? value : Integer.parseInt(s)...
[ "0.72224396", "0.71049947", "0.7020834", "0.699975", "0.6922135", "0.68439114", "0.68167233", "0.67750496", "0.6711509", "0.66832626", "0.66153085", "0.6579474", "0.65526235", "0.6519194", "0.6506678", "0.64870906", "0.648595", "0.6421706", "0.64151603", "0.6322379", "0.62634...
0.6434251
17
setup transaction manager based on entity manager factory
@Bean @Autowired public JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) { JpaTransactionManager txManager = new JpaTransactionManager(); txManager.setEntityManagerFactory(entityManagerFactory); return txManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Bean\n\tpublic JpaTransactionManager transactionManager() {\n\t\tJpaTransactionManager transactionManager = new JpaTransactionManager();\n\t\ttransactionManager.setEntityManagerFactory(entityManagerFactory().getObject());\n\t\treturn transactionManager;\n\t}", "@Bean\n public PlatformTransactionManager trans...
[ "0.7246276", "0.7018551", "0.70041233", "0.69024533", "0.6902266", "0.6898758", "0.6880541", "0.68154633", "0.6808137", "0.67593473", "0.66646403", "0.6631139", "0.65481377", "0.652252", "0.6457364", "0.6450784", "0.6437998", "0.64349306", "0.6430578", "0.6409356", "0.6397755...
0.6968561
3
Creates new form FrmMain
public FrmMain() { initComponents(); setLocationRelativeTo(this); setExtendedState(JFrame.MAXIMIZED_BOTH); try { Communication.getInstance(); lblKonekcija.setText("Uspesno ste povezani na server!"); } catch (Exception ex) { ex.printStackTrace(); lblKonekcija.setText("Niste povezani na server. Doslo je do greske. "+ex.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private FrmMainForm() {\n }", "public FrmMainVIEW() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "FORM createFORM();", "public MainForm() {\n initComponents();\n ...
[ "0.79298407", "0.7170307", "0.71328", "0.7114715", "0.711288", "0.70025796", "0.70025796", "0.70025796", "0.6974922", "0.692342", "0.6852149", "0.6852149", "0.68201154", "0.67261714", "0.6691188", "0.66607136", "0.6642099", "0.6614641", "0.65890616", "0.65816003", "0.6555839"...
0.6360476
27
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() { jMenuBar2 = new javax.swing.JMenuBar(); jMenu2 = new javax.swing.JMenu(); jMenu3 = new javax.swing.JMenu(); jPanel2 = new javax.swing.JPanel(); lblKonekcija = new javax.swing.JLabel(); lblPozadina = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jmiKreirajClana = new javax.swing.JMenuItem(); jmiPrikaziSve = new javax.swing.JMenuItem(); jmiStatistike = new javax.swing.JMenuItem(); jMenu4 = new javax.swing.JMenu(); jmiKreirajTakmicenje = new javax.swing.JMenuItem(); jmiKreirajTakmicara = new javax.swing.JMenuItem(); jmiRezultatTakmicenja = new javax.swing.JMenuItem(); jmiPrikaziTakmicare = new javax.swing.JMenuItem(); jMenu5 = new javax.swing.JMenu(); jmiKreirajPolaganje = new javax.swing.JMenuItem(); jmiRezultatPolaganja = new javax.swing.JMenuItem(); jMenu6 = new javax.swing.JMenu(); jmiKreirajTim = new javax.swing.JMenuItem(); jmiPogledajSveTimove = new javax.swing.JMenuItem(); jMenu2.setText("File"); jMenuBar2.add(jMenu2); jMenu3.setText("Edit"); jMenuBar2.add(jMenu3); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel2.setBackground(new java.awt.Color(255, 255, 255)); lblKonekcija.setFont(new java.awt.Font("Segoe UI", 0, 36)); // NOI18N lblKonekcija.setForeground(new java.awt.Color(20, 34, 89)); lblKonekcija.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); lblPozadina.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(lblKonekcija, javax.swing.GroupLayout.DEFAULT_SIZE, 606, Short.MAX_VALUE) .addContainerGap()) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(164, 164, 164) .addComponent(lblPozadina, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(185, 185, 185)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(lblPozadina, javax.swing.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE) .addGap(18, 18, 18) .addComponent(lblKonekcija, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE) .addGap(29, 29, 29)) ); jMenuBar1.setBackground(new java.awt.Color(20, 34, 89)); jMenuBar1.setPreferredSize(new java.awt.Dimension(258, 40)); jMenu1.setForeground(new java.awt.Color(255, 255, 255)); jMenu1.setText("Clan"); jmiKreirajClana.setBackground(new java.awt.Color(20, 34, 89)); jmiKreirajClana.setForeground(new java.awt.Color(255, 255, 255)); jmiKreirajClana.setText("Kreiraj"); jMenu1.add(jmiKreirajClana); jmiPrikaziSve.setBackground(new java.awt.Color(20, 34, 89)); jmiPrikaziSve.setForeground(new java.awt.Color(255, 255, 255)); jmiPrikaziSve.setText("Prikazi sve"); jMenu1.add(jmiPrikaziSve); jmiStatistike.setBackground(new java.awt.Color(20, 34, 89)); jmiStatistike.setForeground(new java.awt.Color(255, 255, 255)); jmiStatistike.setText("Statistike clanova"); jMenu1.add(jmiStatistike); jMenuBar1.add(jMenu1); jMenu4.setForeground(new java.awt.Color(255, 255, 255)); jMenu4.setText("Takmicenje"); jmiKreirajTakmicenje.setBackground(new java.awt.Color(20, 34, 89)); jmiKreirajTakmicenje.setForeground(new java.awt.Color(255, 255, 255)); jmiKreirajTakmicenje.setText("Kreiraj takmicenje"); jMenu4.add(jmiKreirajTakmicenje); jmiKreirajTakmicara.setBackground(new java.awt.Color(20, 34, 89)); jmiKreirajTakmicara.setForeground(new java.awt.Color(255, 255, 255)); jmiKreirajTakmicara.setText("Kreiraj takmicara"); jMenu4.add(jmiKreirajTakmicara); jmiRezultatTakmicenja.setBackground(new java.awt.Color(20, 34, 89)); jmiRezultatTakmicenja.setForeground(new java.awt.Color(255, 255, 255)); jmiRezultatTakmicenja.setText("Unesi rezultate takmicenja"); jMenu4.add(jmiRezultatTakmicenja); jmiPrikaziTakmicare.setBackground(new java.awt.Color(20, 34, 89)); jmiPrikaziTakmicare.setForeground(new java.awt.Color(255, 255, 255)); jmiPrikaziTakmicare.setText("Prikazi sve takmicare"); jMenu4.add(jmiPrikaziTakmicare); jMenuBar1.add(jMenu4); jMenu5.setForeground(new java.awt.Color(255, 255, 255)); jMenu5.setText("Polaganje"); jmiKreirajPolaganje.setBackground(new java.awt.Color(20, 34, 89)); jmiKreirajPolaganje.setForeground(new java.awt.Color(255, 255, 255)); jmiKreirajPolaganje.setText("Kreiraj polaganje"); jMenu5.add(jmiKreirajPolaganje); jmiRezultatPolaganja.setBackground(new java.awt.Color(20, 34, 89)); jmiRezultatPolaganja.setForeground(new java.awt.Color(255, 255, 255)); jmiRezultatPolaganja.setText("Dodaj rezultate polaganja"); jMenu5.add(jmiRezultatPolaganja); jMenuBar1.add(jMenu5); jMenu6.setForeground(new java.awt.Color(255, 255, 255)); jMenu6.setText("Timovi"); jmiKreirajTim.setBackground(new java.awt.Color(20, 34, 89)); jmiKreirajTim.setForeground(new java.awt.Color(255, 255, 255)); jmiKreirajTim.setText("Kreiraj tim"); jMenu6.add(jmiKreirajTim); jmiPogledajSveTimove.setBackground(new java.awt.Color(20, 34, 89)); jmiPogledajSveTimove.setForeground(new java.awt.Color(255, 255, 255)); jmiPogledajSveTimove.setText("Pogledaj sve timove"); jMenu6.add(jmiPogledajSveTimove); jMenuBar1.add(jMenu6); setJMenuBar(jMenuBar1); 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(0, 0, 0) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(0, 0, 0)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(0, 0, 0) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(1, 1, 1)) ); 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.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.6945...
0.0
-1
End of variables declaration//GENEND:variables
public JMenuItem getJmiKreirajClana() { return jmiKreirajClana; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
TODO Autogenerated method stub
public void createemployee(Employeee em) { employeerepo.save(em); }
{ "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 updateemployee(Employeee em) { employeerepo.save(em); }
{ "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 List<Employeee> findAll(Class c) { return employeerepo.findAll(); }
{ "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 Optional<Employeee> findById(int id) { return employeerepo.findById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public Optional<Employeee> findByUuid(String uuid) { return employeerepo.findByUuid(uuid); }
{ "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 delete(Employeee em) { employeerepo.delete(em); }
{ "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
Spring Data JPA repository for the StudentClassLog entity.
@SuppressWarnings("unused") @Repository public interface StudentClassLogRepository extends JpaRepository<StudentClassLog, Long>, JpaSpecificationExecutor<StudentClassLog> { List<StudentClassLog> findByStudent_Id(Long studentId); @Query(nativeQuery = true, value = "select count(0) as studentClassLogCount from student_class_log where arrangement_id = :1") Integer getStudentClassLogCount(Long arrangementId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface StudentRepository extends JpaRepository<Student,Long> {\n}", "public interface StudentRepository extends CrudRepository<Student, Long> {\n}", "@Repository\npublic interface RimsMmsLogRepository extends CrudRepository<RimsMmsLog, Long> {\n}", "public interface StudentRepository e...
[ "0.6526937", "0.64219964", "0.6239784", "0.6228862", "0.6223319", "0.6222138", "0.61192125", "0.60900664", "0.6031969", "0.59735304", "0.5940359", "0.58677894", "0.5800995", "0.5741723", "0.57396585", "0.56471854", "0.5631774", "0.56290257", "0.56198925", "0.5609086", "0.5596...
0.6731727
0
rooftype er bare en string. ku evt laves om til et object
public static List<String> getAllRoofTypes() throws UserException { List<String> rooftypeList = new ArrayList<>(); try (Connection connection = database.connect()) { String sql = "SELECT * FROM fog.roof_types;"; try (PreparedStatement ps = connection.prepareStatement(sql)) { ResultSet rs = ps.executeQuery(); while (rs.next()) { String roofType = rs.getString("roof_type"); rooftypeList.add(roofType); } return rooftypeList; } catch (SQLException ex) { throw new UserException(ex.getMessage()); } } catch (SQLException | UserException ex) { throw new UserException("Connection to database could not be established"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String toString(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case INTEGER:\n return ((Integer)o).toString();\n\n case LONG:\n return ((Long)o).toString();\n\n case FLOAT:\n return...
[ "0.65540904", "0.6385517", "0.6370062", "0.62401664", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.6193416", "0.61665535", "0.6105405", "0.60287625", "0.60287625"...
0.0
-1
assumption: A1 and A2 are not null no duplication in A2
public int[] sortSpecial(int[] A1, int[] A2) { Integer[] intergerArray = toIntegerArray(A1); Arrays.sort(intergerArray, new MyComparator(A2)); toIntArray(intergerArray, A1); return A1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static <F> /*@ pure @*/ boolean elem_equals(F item1,\n F item2) {\n return (item1 != null && item1.equals(item2))\n\t || (item1 == null && item2 == null);\n }", "boolean hasIsEquivalent();", "public void testValidateSubjectPrimaryAssocia...
[ "0.5472529", "0.5447679", "0.53439176", "0.5330596", "0.5244934", "0.52163684", "0.5209989", "0.52035975", "0.5182203", "0.51772255", "0.51594394", "0.50915945", "0.508827", "0.5082743", "0.507262", "0.5068839", "0.5066444", "0.5044716", "0.50421816", "0.5038874", "0.5035691"...
0.0
-1
Scanner sc= new Scanner(System.in); Menu driven> adding a book, removin a book, etc
public static void main(String[] args) { Book book1 =new Book(1,100,"java"); System.out.println(book1); book1.setBook_price(300); System.out.println(book1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tHashMap<String,Book> hM = IOUtils.restoreBooks(\"BooksCollection\");\n\t\tboolean exitLoop = false;\n\t\t\n\t\twhile(!exitLoop) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"-----Books collection menu-----\");\n\t\t\t\tSystem.ou...
[ "0.7556952", "0.7065338", "0.705215", "0.7006513", "0.69542104", "0.6920529", "0.6861422", "0.6732239", "0.6645394", "0.6631543", "0.6415537", "0.64127916", "0.6358322", "0.6218229", "0.6205846", "0.62021774", "0.61754066", "0.61184186", "0.6045091", "0.6033886", "0.60291725"...
0.0
-1
Unions the sets of the respective elements.
public void union(T x, T y) { assert (_parents.containsKey(x)); assert (_parents.containsKey(y)); x = find(x); y = find(y); if (x == y) { return; } int xRank = _ranks.get(x); int yRank = _ranks.get(y); if (xRank < yRank) { _parents.put(x, y); } else if (xRank > yRank) { _parents.put(y, x); } else { _parents.put(y, x); _ranks.put(x, xRank + 1); } _numSets--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZYSet<ElementType> union(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n result.add(e);\n }\n for(ElementType e :otherSet){\n result.add(e);\n }\n \n return result;\n }", "private static <T> Set<T> union(...
[ "0.6964539", "0.65230095", "0.64634013", "0.64076525", "0.63998276", "0.63869214", "0.6332843", "0.62917084", "0.6217623", "0.62167335", "0.6191543", "0.61444634", "0.6139014", "0.6112075", "0.60976493", "0.60634685", "0.6018944", "0.60059625", "0.5985777", "0.5927037", "0.59...
0.0
-1
Finds the set an element belongs to, performing path compression along the way.
public T find(T element) { assert (_parents.containsKey(element)); T parent = _parents.get(element); if (parent != element) { parent = find(parent); _parents.put(element, parent); } return parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node findSet(Node node ){\n Node parent = node.parent;\n //it means no one is parent\n if( parent == node ){\n return parent;\n }\n //do compression\n node.parent = findSet( parent );\n return node.parent;\n }", "private Node<E> findSet(Node<E...
[ "0.65559745", "0.57946944", "0.5686626", "0.55104995", "0.547881", "0.5439609", "0.543271", "0.53818816", "0.5348766", "0.53243685", "0.5243741", "0.5235932", "0.5201003", "0.51457274", "0.5120091", "0.51188457", "0.5107066", "0.51014537", "0.5098897", "0.50918245", "0.508229...
0.0
-1
LandModifiersFactory factory = LandModifiersFactory.getInstance();
@Override public int damageCalculator(final Heroes enemy, final Heroes hero) { float landModifier; int firstAbilityDamage; int secondAbilityDamage; if (enemy.getLocation().equals("V")) { landModifier = factory.getLandModifiers("V"); } else { landModifier = LandModifiersFactory.getNoModifiers(); } firstAbilityDamage = Math.round(landModifier * (factory.getAllDamages("fireblast") + hero.getLevel() * factory.getAllLevelDamages("fireblast"))); secondAbilityDamage = Math.round(landModifier * (factory.getAllDamages("ignite") + hero.getLevel() * factory.getAllLevelDamages("ignite"))); //retin damage-ul fara modificatori in caz ca adversarul este wizard enemy.setDamageReceived(firstAbilityDamage + secondAbilityDamage); firstAbilityDamage = Math.round(firstAbilityDamage * hero.getRaceModifiers1(enemy.getTypeOfHero())); secondAbilityDamage = Math.round(secondAbilityDamage * hero.getRaceModifiers2(enemy.getTypeOfHero())); //ii setez damage overtime enemy.setIgniteOvertimeDamage(2); return firstAbilityDamage + secondAbilityDamage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Factory {\n LeiFeng createLeiFeng();\n}", "private IWorld worldCreator(){\n if (gameWorld == GameWorld.NORMAL) return\n new Normal();\n else return\n new Nether();\n }", "AttackImpactFactory getAttackImpactFactory();", "Sticker.Factory getSti...
[ "0.6290724", "0.6051664", "0.60216403", "0.6000509", "0.5899137", "0.5844051", "0.5788023", "0.577988", "0.57562953", "0.5745632", "0.57453376", "0.5742706", "0.57282615", "0.5718282", "0.57161826", "0.5714824", "0.5709709", "0.56946355", "0.5667844", "0.56577295", "0.5647131...
0.0
-1
Programmer can add customer without knowing the implementation of addCustomer method.
public static void main(String[] args) { CustomerRecords customerRecords = new CustomerRecords(); customerRecords.addCustomer(new Customer("Swapnil")); customerRecords.addCustomer(new Customer("Deva")); customerRecords.addCustomer(new Customer("Prashant")); // Now we need list of all customers to be printed out. Map<String, Customer> records = customerRecords.getCustomers(); System.out.println("Customer Records " + records); // But we have escaping reference of map having customer records. // Programmer can clear all the records accidently with escaped reference of customer records map. // Escaping references may lead system to inconsistency. records.clear(); System.out.println("Escaped customer records reference test " + customerRecords.getCustomers()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void addCustomer(customer customer) {\n\n }", "public boolean addCustomer(CustomerBean customer);", "public boolean addCustomer(Customer customer) throws DatabaseOperationException;", "private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConne...
[ "0.802739", "0.7938199", "0.787156", "0.7809706", "0.7763907", "0.77033293", "0.7598484", "0.757874", "0.75442433", "0.75144446", "0.74603623", "0.74243313", "0.7354336", "0.72719395", "0.72691774", "0.72624373", "0.72258896", "0.71291137", "0.710161", "0.70838875", "0.705440...
0.0
-1
source type: NavigatorConcurrentHardware flags: Object (32768) declared in: tsd/browser/lib.es6.d.ts at pos 733367
@JsType(isNative=true, namespace=JsPackage.GLOBAL, name="Object") public interface NavigatorConcurrentHardware { /* Methods */ /** * inherited from (js.browser.NavigatorConcurrentHardware) */ @JsProperty(name = "hardwareConcurrency") Number getHardwareConcurrency(); /** * inherited from (js.browser.NavigatorConcurrentHardware) */ @JsProperty(name = "hardwareConcurrency") void setHardwareConcurrency(@DoNotAutobox Number value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface MSNavigatorDoNotTrack\n{\n\n /*\n Methods\n */\n /** \n * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152))\n * TE Signature : S(confirmSiteSpecificTrackingException,P(d152))\n * \...
[ "0.55527735", "0.49592173", "0.4952837", "0.4939221", "0.48416436", "0.48303854", "0.48094627", "0.47915128", "0.47816637", "0.47746634", "0.47666964", "0.47491306", "0.47469944", "0.47423488", "0.47244677", "0.47195888", "0.47167975", "0.47067076", "0.4696849", "0.46752888", ...
0.56393164
0
/ Methods inherited from (js.browser.NavigatorConcurrentHardware)
@JsProperty(name = "hardwareConcurrency") Number getHardwareConcurrency();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hardwareResources() {\n\t\tSystem.out.println(\"I am the Hardware implemented through Multiple inheritence in Desktop class\");\r\n\r\n\t}", "public void hardwareResources() {\n\t\t\r\n\t}", "@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface NavigatorConcurrentHa...
[ "0.62540513", "0.5791117", "0.57338214", "0.56519157", "0.54933643", "0.5490152", "0.5341364", "0.5335837", "0.52989364", "0.52113086", "0.51666766", "0.51467866", "0.51231503", "0.5082365", "0.50779086", "0.50113255", "0.5004964", "0.49899557", "0.4962806", "0.49267602", "0....
0.51554716
11
keeps track of the next empty space in the array arr constructor
public CalculatorUtil(){ value = ""; decimalUsed = false; arr = new String[20]; tail = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void test() {\n\t\tint i = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[++i] = 0;\n\t\tprintArray(arr);\n\t\ti = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[i++] = 0;\n\t\tprintArray(arr);\n\t\t\n\t}", "public SuperArray() { \n \t_data = new Comparable[10];\n \t_lastPos = -1; //flag to indicate no last...
[ "0.6489205", "0.62408924", "0.6142566", "0.59379923", "0.5891897", "0.5882482", "0.58306336", "0.5819967", "0.5806389", "0.5721125", "0.57100946", "0.5690317", "0.5641604", "0.562594", "0.56083584", "0.55977416", "0.55970806", "0.55787355", "0.5567523", "0.55669814", "0.55633...
0.0
-1
setter and getter methods
public String getValue(){ return this.value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "String setValue();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public void setdat()\n {\n }", "@Override\n public void get() {}", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "public void get() {\n }", "public abstract void...
[ "0.69148004", "0.6894207", "0.650436", "0.6456427", "0.63813746", "0.6367311", "0.62834966", "0.62599576", "0.6249823", "0.623669", "0.6204832", "0.6188973", "0.6188973", "0.61540455", "0.6138265", "0.61323977", "0.6110242", "0.61005723", "0.6094278", "0.60873", "0.6077639", ...
0.0
-1
instance methods computes the answer
protected float compute(){ float result = 0f; String[] post = in2post(this.arr); result = post2ans(post); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getResult()\n { \n return answer;\n }", "public abstract double calcular();", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}", "@Override\n public double getResult()\n {\n ...
[ "0.75582165", "0.7169709", "0.70561886", "0.70196915", "0.70018667", "0.695924", "0.69411105", "0.68533105", "0.6838927", "0.67403877", "0.668928", "0.667351", "0.6672507", "0.6647723", "0.6609153", "0.65725076", "0.6568225", "0.6548795", "0.6532739", "0.6528541", "0.6500649"...
0.6743906
9
adds an operator and the value preceding it to the array
protected void operation(String operator){ if (this.tail<2){ this.arr[tail++] = this.value; this.arr[tail++] = operator; } else{ if (this.peek() != ")"){ this.arr[this.tail++] = this.value; } this.arr[this.tail++] = operator; } this.value=""; // reset tracking variables this.decimalUsed = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void appendOperator(String operator){\n if(validateExp(currentExp)){\n currentExp+=operator;\n calculationResult.onExpressionChange(currentExp,true);\n count++;\n }\n }", "public void addOperator(Operator op) {\r\n\t\telements.add(op);\r\n\t}", "private ...
[ "0.67138284", "0.6673343", "0.65556073", "0.65191066", "0.63323045", "0.628534", "0.6133547", "0.59196967", "0.5828757", "0.5816752", "0.58059865", "0.5791508", "0.5750339", "0.5725532", "0.5705889", "0.56813", "0.5670184", "0.5656298", "0.561137", "0.5602449", "0.5556336", ...
0.7243665
0
static methods converts an array from infix to postfix notation
protected String[] in2post(String[] a){ String[] result = new String[20]; int resCount = 0; Stack<String> stack = new Stack<String>(); String s; for (int i=0 ; i<(tail) ; i++) { s = a[i]; switch (s) { case "/": case "*": case "-": case "+": while (!stack.isEmpty() && Prec(s) <= Prec(stack.peek())) { result[resCount++] = stack.pop(); } stack.push(s); break; case "(": stack.push(s); break; case ")": while (!stack.isEmpty() && stack.peek() != "(") { result[resCount++] = stack.pop(); } stack.pop(); //pop the open parentheses break; default: //by this point assume it is a number result[resCount++] = s; } } // pop all the operators from the stack while (!stack.isEmpty()){ result[resCount++] = stack.pop(); } tail = resCount; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String[] infixToPostfix(String[] infix) {\n\n // a list for the resulting postfix expression\n List<String> postfix = new ArrayList<String>();\n\n // a stack for implementing the conversion\n Stack<String> operatorStack = new Stack<String>();\n\n // check the length...
[ "0.7861875", "0.68152773", "0.67434895", "0.6675808", "0.6622604", "0.6616683", "0.6569146", "0.65452677", "0.65417725", "0.65058416", "0.6449714", "0.64366287", "0.6395759", "0.6340964", "0.63270116", "0.63189816", "0.6308311", "0.6223523", "0.6171168", "0.61688393", "0.6104...
0.6466999
10
a utility function to return precedence of a given operator (higher returned value means higher precedence)
static int Prec(String s){ switch (s) { case "+": case "-": return 1; case "*": case "/": return 2; } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPrecedence(char operator) {\n switch (operator) {\n case '+':\n case '-':\n return 1;\n case '*':\n case '/':\n return 2;\n case '^':\n return 3;\n }\n\n return -1;\n }", "pri...
[ "0.81549954", "0.8123206", "0.80692077", "0.79984623", "0.7880535", "0.7794648", "0.77525246", "0.7642094", "0.7642094", "0.7512285", "0.7500053", "0.74614316", "0.74220353", "0.74220353", "0.7370423", "0.727422", "0.7262538", "0.72554713", "0.7136439", "0.7078337", "0.669666...
0.0
-1
calculates the answer from postfix notation
protected float post2ans(String[] a){ Stack<Float> stack=new Stack<>(); float result = 0f; String s; for (int i=0 ; i<(tail) ; i++){ boolean notNum = true; s = a[i]; switch (s){ case"/": case"*": case"+": case"-": break; default: // by here assume number stack.push(toFloat(s)); notNum = false; } if(notNum){ float val2 = stack.pop(); float val1 = stack.pop(); switch(s){ case"+": stack.push(val1+val2); break; case"-": stack.push(val1-val2); break; case"/": stack.push(val1/val2); break; case"*": stack.push(val1*val2); break; } } } return stack.pop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CustomQueue<String> evaluatePostFix(CustomQueue<String>postfix){\r\n CustomStack<String> numberStack = new CustomStack();\r\n CustomQueue<String> result = new CustomQueue();\r\n \r\n while (postfix.isEmpty() == false){\r\n String value = postfix.remove();\r\n ...
[ "0.7669654", "0.73439085", "0.7287396", "0.72569305", "0.7117909", "0.7109864", "0.6957115", "0.69458205", "0.69389075", "0.693418", "0.69294024", "0.6848306", "0.68413424", "0.6809616", "0.68028575", "0.6767349", "0.6739025", "0.6664814", "0.6655083", "0.6612063", "0.6572012...
0.0
-1
converts a String to a float
protected float toFloat(String s){ return Float.parseFloat(s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static float toFloat (String string) {\n return Float.valueOf(string).floatValue();\n }", "public Float convertStringToFloat(String s ) {\n\t\t\treturn Float.valueOf(s);\n\t\t}", "public static float StringToFloat(String StringValue){\n Float floatee;\n floatee = Float.valueOf...
[ "0.8481587", "0.8309727", "0.80932236", "0.7722442", "0.758974", "0.7522806", "0.74754995", "0.74320173", "0.7346439", "0.7042728", "0.69959223", "0.69882655", "0.6968638", "0.6958185", "0.69002134", "0.689307", "0.687276", "0.6813455", "0.67812586", "0.6737648", "0.66356945"...
0.8375211
1
Loads a given properties file
public static Properties load(File file) { try { if (file != null && file.exists()) { return load(new FileInputStream(file)); } } catch (Exception e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n ...
[ "0.7925995", "0.7773492", "0.7722111", "0.76807976", "0.7678702", "0.7646186", "0.7555788", "0.75380623", "0.75283957", "0.7518393", "0.7477665", "0.7454759", "0.742565", "0.7411438", "0.7384508", "0.7293903", "0.72878134", "0.725391", "0.7201719", "0.71834433", "0.71581304",...
0.6351738
92
counting the number of player by reading each line of the inputfile
public static int numberofplayers (String filename) throws IOException { int countplayer = 0; LineNumberReader L1= new LineNumberReader(new FileReader(filename));// reading the lines by using line reader while ((L1.readLine())!=null) {}; // reading the line while its not null countplayer = L1.getLineNumber(); // number of lines equals the number of player L1.close(); return countplayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int countLines(String inputFileName) {\n int count = 0;\n Path path = Paths.get(inputFileName);\n try {\n Scanner sc = new Scanner(path);\n while (sc.hasNextLine()) {\n sc.nextLine();\n count++;\n }\n sc.c...
[ "0.6901034", "0.67680186", "0.6713807", "0.6386238", "0.62369776", "0.6209128", "0.61135995", "0.607545", "0.60700554", "0.60644275", "0.60444677", "0.6025495", "0.60209614", "0.60198903", "0.6015971", "0.6014369", "0.59640676", "0.59556246", "0.59068435", "0.5902737", "0.590...
0.7654461
0
iterating through the array to find the highest value
public static float[] Findingleader(boolean[] ineligible,float[] stat, int numberofplayer) { float first,second,third; // initializing to negative number, so even a zero can be the leader value first=second=third = -100; for (int a = 0; a<numberofplayer; a++) // loops till a is less than numofplayer { if ((first<stat[a]||first==stat[a])&& ineligible[a] != true)// if stat is higher or same as first, and the stat is not empty { if(first==stat[a]) { // ignore the tie because the second value will be same as the first value } else { third = second; // previous second value becomes third second = first; // previous fisrt value becomes second now first = stat[a]; // replace the first value with stat[a] } } else if((second<stat[a]||second==stat[a])&& ineligible[a] != true) { // if stat is higher than or equal to second value if(second==stat[a]) { // ignoring the tie } else { third = second; // previous second value is now assigned to third second = stat[a]; // second is replaced by the value of stat[a] } } else if((third<stat[a]||third==stat[a])&& ineligible[a] != true) { // if stat is higher than or equal the third value if(third==stat[a]) { // ignoring the tie value } else { third = stat[a]; // third value is now replaced by the stat[a] } } } float []top3value = {first,second,third}; // using array to return more than 1 value return top3value; // top3value array }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T findHighest(){\n T highest = array[0];\n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()>highest.doubleValue())\n {\n highest = array[i];\n } \n }\n return highest;\n }", "int max() {\...
[ "0.83687705", "0.8034786", "0.78930014", "0.7850081", "0.7818939", "0.78182685", "0.7758851", "0.7750125", "0.7743717", "0.7739349", "0.7686719", "0.7682112", "0.7627739", "0.76038307", "0.75886244", "0.7578975", "0.752548", "0.75163555", "0.7493152", "0.74923074", "0.7395398...
0.0
-1
iterating through the array to find the lowest value
public static float[] FindingKleader(boolean[] ineligible, float[] kstat, int numberofplayer) { float first,second,third; first=second=third = Float.POSITIVE_INFINITY; // assigned positive infinity so any integer lower than infinity can be assigned to leader value for (int a = 0; a<numberofplayer; a++) // for number of players { if ((first>kstat[a]||first==kstat[a]) && ineligible[a] != true)// if stat exists and the stat is equal to or greater than first { if(first==kstat[a]) { // do nothing if the stat is same fisrt value } else { // if not tie third = second; // previous second value is assigned to third second = first; // previous first value is now assigned to second first = kstat[a]; // value of the stat is now assigned to first } } else if((second>kstat[a]||second==kstat[a]) && ineligible[a] != true) { if(second==kstat[a]) { } else { third = second;// previous second value is assigned to third second = kstat[a]; // value of second is stat } } else if((third>kstat[a]||third==kstat[a]) && ineligible[a] != true) { if(third==kstat[a]) { } else { third = kstat[a]; // value of third is replace by the value of stat } } } float[] top3kleader = {first,second,third}; return top3kleader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }...
[ "0.8458062", "0.812835", "0.81244195", "0.8086573", "0.79237276", "0.7892053", "0.7825355", "0.7818337", "0.7810177", "0.77952415", "0.7703595", "0.7671368", "0.7651772", "0.76509553", "0.76348686", "0.7603415", "0.76010346", "0.75039023", "0.75007737", "0.749842", "0.7491761...
0.0
-1
iterating through the array to find the name that matches with the leader value
public static String[] displayleader(boolean[] ineligible, String[] name, float []top3, float[] stat, int numberofplayer) { String top1name,top2name,top3name; top1name = top2name = top3name = ""; // initialize null value of all names int top1counter,top2counter,top3counter; top1counter = top2counter = top3counter = 0; // initialize 0 to all counters String top1namearray[] = new String[50]; // arrays to hold top3 names String top2namearray[] = new String[50]; String top3namearray[] = new String[50]; int a,b,c; a=b=c= 0; for (int i=0;i<numberofplayer;i++) { if (top3[0]==stat[i] && ineligible[i] != true) { // if the value of top1 equals the stat of player if (top1counter < 1) { // if the first place is only one person top1namearray[a]=name[i]; // putting in array to sort top1name=name[i]; // assign name to top1name array a++; } else { top1namearray[a]=name[i]; // if there is more than one person with the top1 value top1name = top1name + ", " + name[i];//if there is more than one leader, it prints out the names of the leader with comma between. a++; } top1counter++; } if (top3[1]==stat[i] && ineligible[i] != true) { // if the value of top2 equals the stat of player if (top2counter < 1) { top2namearray[b]=name[i]; top2name=name[i]; b++; } else { top2namearray[b]=name[i]; top2name = top2name + ", " + name[i];//if there is more than one leader, it prints out the names of the leader with comma between. b++; } top2counter++; } if (top3[2]==stat[i] && ineligible[i] != true) {// if the value of top1 equals the stat of player if (top3counter < 1) { top3namearray[c]=name[i]; top3name=name[i]; c++; } else { top3namearray[c]=name[i]; top3name = top3name + ", " + name[i];//if there is more than one leader, it prints out the names of the leader with comma between. c++; } top3counter++; } } sortname(top1namearray);// sorting the names of top1players in alphabetical order sortname(top2namearray);// sorting the names of top2players in alphabetical order sortname(top3namearray);// sorting the names of top3players in alphabetical order int q =1; if(top1counter >1) { top1name = top1namearray[0];} // reassigning name of top 1 value in alphabetical order if there is more than one while (top1namearray[q]!=null&&top1counter!=1) { // while there is more than 1 player with top1value and while top1name is not null top1name = top1name + ", " + top1namearray[q]; //inserting comma between names q++; } q=1; if(top2counter >1) { top2name = top2namearray[0];}// reassigning name of top 1 value in alphabetical order if there is more than one while (top2namearray[q]!=null&&top2counter!=1) { // while there is more than 1 player with top2value and while top2name is not null top2name = top2name + ", " + top2namearray[q]; //inserting comma between names q++; } q=1; if(top3counter >1) { top3name = top3namearray[0];}// reassigning name of top 1 value in alphabetical order if there is more than one while (top3namearray[q]!=null&&top3counter!=1) { // while there is more than 1 player with top3value and while top3name is not null top3name = top3name + ", " + top3namearray[q]; //inserting comma between names q++; } if(numberofplayer ==1) {top2name = null; top3name = null;} // if there is only one player top2 and top3 does not exist else if (numberofplayer==2&&top1counter<2) {top3name =null;} // if there is only 2 players top3 is null else if(numberofplayer==2&&top1counter>1) {top2name =null;top3name=null;} // if there is 2 players but 2players have tie value then top2 and top3 is null else if(top1counter>2) {top2name=null;top3name=null;} // if there is more than 2 ties with top1value, top2 and top3 does not exist else if(top2counter>1||top1counter>1) {top3name=null;} // if there is more than one top1 or top2, then top3 does not exist String []top3names = {top1name,top2name,top3name}; return top3names; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void findLeader(Integer[] array) {\n Map<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < array.length; i++) {\n // Map key -> value from input array\n Integer key = array[i];\n // Map value -> occurrences number\n Integer count...
[ "0.6191353", "0.6034115", "0.5837665", "0.5809467", "0.5646967", "0.5645374", "0.56399256", "0.5563684", "0.5459743", "0.54443383", "0.543971", "0.5434605", "0.54293054", "0.5383404", "0.5376418", "0.53573114", "0.5342759", "0.53166676", "0.5276489", "0.52702606", "0.5259597"...
0.5702807
4
TODO Autogenerated method stub hay que decirle cuantas veces encontro el numero y en que posicion se encuentra
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String switchNumeriPosizioni(int numero, String pariOrDispari) {\n\t\tString valoreCorrispondente = \"\";\n\t\tswitch (numero) {\n\t\tcase 0:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"0\";\n\t\t\t} else valoreCorrispondente = \"1\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\...
[ "0.6716628", "0.65991664", "0.6502587", "0.64850676", "0.64142627", "0.64139104", "0.6385199", "0.6342088", "0.62823385", "0.62823385", "0.61955786", "0.6194174", "0.6186208", "0.6182573", "0.616128", "0.6140776", "0.6129222", "0.6047135", "0.60407203", "0.6030762", "0.598025...
0.0
-1
Parses a string and returns a Comparator.
private Comparator parseString(final String val) { Comparator ret = null; for (Comparator comp : Comparator.values()) { if (comp.toParseString().equals(val)) { ret = comp; break; } } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Comparator parse(final String value) {\n\t\treturn GREATER_THAN.parseString(value);\n\t}", "public abstract int compare(String s1, String s2) throws NumberFormatException, ParseException;", "public static SortOrder fromString(String s) {\n\t\treturn EnumUtil.fromString(SortOrder.class, s, ASCENDI...
[ "0.70414084", "0.59867126", "0.5854648", "0.53877515", "0.5321768", "0.5241755", "0.5026431", "0.491475", "0.4906323", "0.48888654", "0.48811927", "0.4868003", "0.48525622", "0.48490724", "0.4832845", "0.4827353", "0.48042017", "0.47699448", "0.47698325", "0.4756923", "0.4754...
0.7640588
0
Parse a string and return the value.
public static Comparator parse(final String value) { return GREATER_THAN.parseString(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T parse(String value);", "public IValuable parse(String value);", "private static Expr parseValue(String string) {\r\n\t\tif (string.isEmpty()) return null;\r\n\r\n\t\tchar first = string.charAt(0);\r\n\t\tif (first != '\"' && first != '-' && isReserved(first)) {\r\n\t\t\treturn new ExprUnary(Operator.g...
[ "0.76286364", "0.7598958", "0.7038453", "0.69914407", "0.6939282", "0.68986297", "0.68537503", "0.68074524", "0.68043625", "0.67478526", "0.6745522", "0.67340726", "0.6666951", "0.66292506", "0.6614557", "0.65527385", "0.6538725", "0.6494053", "0.6474893", "0.6414112", "0.640...
0.0
-1
Converts a persisted int to the matching enumeration value.
public static Comparator convert(final int value) { return GREATER_THAN.convertInt(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IntType asInt(){\n return TypeFactory.getIntType(this.toInt(this.getValue()));\n }", "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "public static Enum forInt(int i)\n ...
[ "0.65546733", "0.6329271", "0.6329271", "0.6329271", "0.63290554", "0.6326245", "0.62984127", "0.6291835", "0.6224506", "0.6157369", "0.60374755", "0.58669215", "0.58209604", "0.57324", "0.5708113", "0.57054484", "0.57045823", "0.56786084", "0.56463504", "0.56163895", "0.5604...
0.0
-1
which value of the variable this is. Constructor
public Value( String inName, Variable inVar, int inIndex ) { _var = inVar; _name = inName; _index = inIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Value() {\n\t}", "@Override\n\tpublic int getVarThisFlag() {\n\t\treturn heldObj.getVarThisFlag();\n\t}", "int getValue() {\r\n switch (this) {\r\n case Boolean:\r\n return BOOLEAN;\r\n case Number:\r\n return NUMBER;\r\n ...
[ "0.63849103", "0.63377786", "0.623435", "0.62048554", "0.6152668", "0.6105615", "0.60850084", "0.60795283", "0.60689855", "0.605577", "0.6051572", "0.60293835", "0.60132027", "0.5982251", "0.59588873", "0.5955112", "0.5937717", "0.5937696", "0.5932526", "0.58661413", "0.58637...
0.0
-1
setRelation these two variable are positively related. Throws if no matrix for this variable.
public void setRelation( Value inValue ) throws Exception { if (getVariable() == inValue.getVariable()) return; try { RelationMatrix mat = _var.getMatrixForVariable( inValue._var ); mat.setRelation( this, inValue ); } catch (Exception ex) { throw ex; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNoRelation( Value inValue )\n throws Exception\n {\n if (getVariable() == inValue.getVariable())\n return;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue._var );\n mat.setNoRelation( this, inValue );\n }\n ca...
[ "0.64770323", "0.5888681", "0.5759072", "0.56793636", "0.5538333", "0.5512412", "0.5509315", "0.549629", "0.54401946", "0.5368749", "0.53543043", "0.52638924", "0.52210957", "0.5216324", "0.5213097", "0.5184685", "0.51455545", "0.51040775", "0.50993556", "0.50821626", "0.5074...
0.66563946
0
setNoRelation these two variable are negatively related. Throws if no matrix for this variable.
public void setNoRelation( Value inValue ) throws Exception { if (getVariable() == inValue.getVariable()) return; try { RelationMatrix mat = _var.getMatrixForVariable( inValue._var ); mat.setNoRelation( this, inValue ); } catch (Exception ex) { throw ex; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Relation getNegation();", "public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}", "void unsetFurtherRelations();", "public void setRelation( Value inValue )\n throws Exception\n {\n if (getVariab...
[ "0.62181586", "0.5809172", "0.5732355", "0.57304895", "0.57009554", "0.5533986", "0.542021", "0.53390884", "0.5299182", "0.52883714", "0.52793145", "0.525139", "0.5246064", "0.5164577", "0.512739", "0.51148576", "0.50882185", "0.5044892", "0.5044247", "0.50436544", "0.5026217...
0.7466858
0
getRelation Return the relation between these two values. Throws if no matrix for this variable.
public int getRelation( Value inValue ) throws Exception { // identity relation if (this == inValue) return RelationMatrix.YES; // two values of the same variable are unrelated if (getVariable() == inValue.getVariable()) return RelationMatrix.NO; try { RelationMatrix mat = _var.getMatrixForVariable( inValue.getVariable() ); return mat.getRelation( this, inValue ); } catch (Exception ex) { throw ex; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract RelationDeclaration getRelation();", "public String getRelation() {\n return relation;\n }", "public String get_relation() {\n\t\treturn relation;\n\t}", "public Relation getRelation(String relationName);", "@Nullable\n public RelationInfo relation() {\n return relation;...
[ "0.7169527", "0.6835736", "0.6571766", "0.646206", "0.64199764", "0.6401627", "0.62520754", "0.5914669", "0.5862167", "0.5842854", "0.57764024", "0.5752385", "0.57344764", "0.56953794", "0.569194", "0.56724733", "0.56284225", "0.5613646", "0.559387", "0.5582803", "0.5554476",...
0.7210842
0