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
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent arg0) { }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
{ "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
what happens when item is selected
private void selectItem(int position) { if(position==0){ Intent myIntent= new Intent(this, ConnectActivity.class); startActivity(myIntent);} if(position==1){ Intent myIntent= new Intent(this, ShowActivity.class); startActivity(myIntent);} if(positi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void itemSelected(boolean selected);", "@Override\r\n\tpublic void itemSelectedAtIndexPath(IndexPath path) {\n\r\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public ...
[ "0.77156514", "0.73974776", "0.7318584", "0.7318584", "0.7269051", "0.7269051", "0.72131974", "0.72092694", "0.72092694", "0.71961886", "0.71961886", "0.7181738", "0.7160741", "0.7137329", "0.71307284", "0.7096378", "0.7089037", "0.70865774", "0.7084864", "0.70826834", "0.706...
0.0
-1
/ JADX WARNING: type inference failed for: r3v0, types: [io.reactivex.functions.Function, io.reactivex.functions.Function, io.reactivex.Scheduler>] / JADX WARNING: Unknown variable types count: 1 / Code decompiled incorrectly, please refer to instructions dump.
static io.reactivex.Scheduler applyRequireNonNull(io.reactivex.functions.Function<java.util.concurrent.Callable<io.reactivex.Scheduler>, io.reactivex.Scheduler> r3, java.util.concurrent.Callable<io.reactivex.Scheduler> r4) { /* java.lang.Object r0 = apply(r3, r4) io.reactivex.Scheduler r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void m55608a(@org.jetbrains.annotations.NotNull com.tinder.pushnotifications.usecase.NotifyPushServer.NotifyReason r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = \"request\";\n kotlin.jvm.internal.C...
[ "0.6411002", "0.6239618", "0.60781354", "0.5783936", "0.5712291", "0.5612804", "0.5470487", "0.54524076", "0.54410267", "0.52607036", "0.52404547", "0.51889324", "0.5154098", "0.51410633", "0.5137739", "0.51298964", "0.5126723", "0.5120217", "0.5114673", "0.5112502", "0.50763...
0.63448024
1
/ this synchronized is very very important
public synchronized void printVal(int val) { while (true) System.out.println(3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void synchronize(){ \r\n }", "@Override\n public void sync(){\n }", "public boolean synchronize() {\n\t\treturn false;\n\t}", "void contentsSynchronized();", "@Override\r\n\tpublic boolean isSynchronized() {\n\t\treturn false;\r\n\t}", "@Override\n public void callSync() {\n\n }"...
[ "0.7060326", "0.7011418", "0.66289437", "0.6389787", "0.6317581", "0.6177943", "0.61424434", "0.6131885", "0.6026336", "0.5949302", "0.5920461", "0.5910247", "0.5904106", "0.5904106", "0.5903196", "0.5883641", "0.58795756", "0.58675575", "0.5864168", "0.58634365", "0.5862332"...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { synchronized (this) { while (true) { System.out.println(1); } } }
{ "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
Get administratively enables or disables this instance.
public Boolean isEnable() { return enable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getEnabled();", "boolean getEnabled();", "boolean getEnabled();", "java.lang.String getEnabled();", "public Boolean getEnable() {\n return this.enable;\n }", "public Boolean getEnable() {\n return enable;\n }", "public Boolean getEnable() {\n\t\treturn enable;\n\t}", "publ...
[ "0.6571398", "0.6571398", "0.6571398", "0.6391092", "0.6387205", "0.63211393", "0.6305413", "0.62925166", "0.6182009", "0.6171032", "0.61365646", "0.6111711", "0.6102252", "0.60314983", "0.60097855", "0.60097855", "0.60051507", "0.59925115", "0.5949388", "0.59305865", "0.5926...
0.5779985
31
Set administratively enables or disables this instance.
public void setEnable(Boolean enable) { this.enable = enable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdmin(boolean value) {\r\n this.admin = value;\r\n }", "public boolean setEnabled(boolean enable);", "protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n ...
[ "0.6419561", "0.6231104", "0.6221474", "0.6174647", "0.6041686", "0.60346705", "0.6023364", "0.5994099", "0.5994099", "0.5994099", "0.5994099", "0.59853876", "0.59833944", "0.59608835", "0.59608835", "0.5891265", "0.5809258", "0.5769246", "0.5749548", "0.57445645", "0.5717302...
0.54428387
58
Set administratively enables or disables this instance.
public RequestCategory withEnable(Boolean enable) { this.enable = enable; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdmin(boolean value) {\r\n this.admin = value;\r\n }", "public boolean setEnabled(boolean enable);", "protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n ...
[ "0.64202017", "0.6230282", "0.6220962", "0.61749375", "0.6040816", "0.60338485", "0.60228777", "0.5993359", "0.5993359", "0.5993359", "0.5993359", "0.59853965", "0.59836406", "0.59602296", "0.59602296", "0.58912253", "0.5808758", "0.57698286", "0.57492757", "0.5744762", "0.57...
0.0
-1
Get an RCAT is a string that represents a request category used for policy enforcement.
public String getRcaT() { return rcaT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTermcat() {\r\n return (String) getAttributeInternal(TERMCAT);\r\n }", "String category();", "public String toString() {\n\t\treturn category;\n\t}", "public String getCat() {\n\t\treturn this.cat;\n\t}", "public String getPrmCategCode() {\n return (String)getAttributeInte...
[ "0.62388015", "0.61127704", "0.59855664", "0.5954132", "0.5906601", "0.5849044", "0.5804648", "0.5746176", "0.5727682", "0.5660293", "0.5660293", "0.56263953", "0.55973506", "0.5596143", "0.55854934", "0.5548908", "0.55428934", "0.55243367", "0.55243367", "0.5444974", "0.5425...
0.4895319
92
Set an RCAT is a string that represents a request category used for policy enforcement.
public void setRcaT(String rcaT) { this.rcaT = rcaT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTermcat(String value) {\r\n setAttributeInternal(TERMCAT, value);\r\n }", "public RequestCategory withRcaT(String rcaT) {\n\t\tthis.rcaT = rcaT;\n\t\treturn this;\n\t}", "public void setR_Category_ID (int R_Category_ID);", "public void setSSRCategory(int value) {\n this.ssrCat...
[ "0.62376547", "0.6064466", "0.5985839", "0.57382256", "0.5590899", "0.55172133", "0.5488471", "0.5432416", "0.5395583", "0.5386914", "0.5363053", "0.533856", "0.5291229", "0.5275972", "0.52280945", "0.52086484", "0.5192944", "0.519166", "0.5132005", "0.51147157", "0.50812215"...
0.5137215
18
Set an RCAT is a string that represents a request category used for policy enforcement.
public RequestCategory withRcaT(String rcaT) { this.rcaT = rcaT; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTermcat(String value) {\r\n setAttributeInternal(TERMCAT, value);\r\n }", "public void setR_Category_ID (int R_Category_ID);", "public void setSSRCategory(int value) {\n this.ssrCategory = value;\n }", "public void setCategory(String newCategory) {\n category = newCate...
[ "0.62376547", "0.5985839", "0.57382256", "0.5590899", "0.55172133", "0.5488471", "0.5432416", "0.5395583", "0.5386914", "0.5363053", "0.533856", "0.5291229", "0.5275972", "0.52280945", "0.52086484", "0.5192944", "0.519166", "0.5137215", "0.5132005", "0.51147157", "0.50812215"...
0.6064466
1
Get the tolerable duration, in seconds, that a request of the given RCAT category can be pending in SAF handling when a request from an M2M Application does not specify a tolerable delay. A value of 1 represents an infinite duration.
public Integer getTolerableDelay() { return tolerableDelay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic int durationToWait() {\n\t\t\t\treturn getCarType() == 2 ? 60000 : 15000;\n\t\t\t}", "public Long tolerationSeconds() {\n return this.tolerationSeconds;\n }", "com.google.protobuf.Duration getDowntimeJailDuration();", "public RequestCategory withTolerableDelay(Integer tolera...
[ "0.58032846", "0.5797339", "0.54450387", "0.54081976", "0.53265405", "0.5301249", "0.52483296", "0.52463317", "0.5215989", "0.5162968", "0.5137315", "0.5119957", "0.5059756", "0.5047375", "0.5044296", "0.50219494", "0.5021018", "0.50148785", "0.4988717", "0.4988717", "0.49808...
0.54350066
3
Set the tolerable duration, in seconds, that a request of the given RCAT category can be pending in SAF handling when a request from an M2M Application does not specify a tolerable delay. A value of 1 represents an infinite duration.
public void setTolerableDelay(Integer tolerableDelay) { this.tolerableDelay = tolerableDelay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RequestCategory withTolerableDelay(Integer tolerableDelay) {\n\t\tthis.tolerableDelay = tolerableDelay;\n\t\treturn this;\n\t}", "@Override\n\t\t\tpublic int durationToWait() {\n\t\t\t\treturn getCarType() == 2 ? 60000 : 15000;\n\t\t\t}", "public void setDuration(int val){this.duration = val;}", "void...
[ "0.59987193", "0.53285116", "0.5289776", "0.525282", "0.5219209", "0.5175498", "0.5173651", "0.5164048", "0.5161432", "0.51308835", "0.5125955", "0.5104281", "0.5065499", "0.50332385", "0.50026435", "0.50026435", "0.4957363", "0.48850134", "0.4876889", "0.48653302", "0.485808...
0.55037856
1
Set the tolerable duration, in seconds, that a request of the given RCAT category can be pending in SAF handling when a request from an M2M Application does not specify a tolerable delay. A value of 1 represents an infinite duration.
public RequestCategory withTolerableDelay(Integer tolerableDelay) { this.tolerableDelay = tolerableDelay; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTolerableDelay(Integer tolerableDelay) {\n\t\tthis.tolerableDelay = tolerableDelay;\n\t}", "@Override\n\t\t\tpublic int durationToWait() {\n\t\t\t\treturn getCarType() == 2 ? 60000 : 15000;\n\t\t\t}", "public void setDuration(int val){this.duration = val;}", "void setDuration(int duration);",...
[ "0.55021256", "0.53253984", "0.5288518", "0.5251609", "0.52179974", "0.51750344", "0.5171708", "0.51618314", "0.51586765", "0.5130629", "0.5124162", "0.51033723", "0.50651366", "0.5031526", "0.500176", "0.500176", "0.49551558", "0.4884279", "0.4874525", "0.48644763", "0.48571...
0.5998225
0
Get the threshold of maximum number of pending requests permitted to be held for a specified RCAT. A value of 0 indicates that the request should be transmitted immediately.
public Long getThresh() { return thresh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMaxCalls();", "Integer backlogCapacity();", "public Double getLargestReceiveSuccessRequestThroughput()\r\n {\r\n return largestReceiveSuccessRequestThroughput;\r\n }", "private int getMaxReconsumeTimes() {\n if (this.defaultMQPushConsumer.getMaxReconsumeTimes() == -1) {\n ...
[ "0.61607194", "0.6148196", "0.60834277", "0.59926647", "0.5964878", "0.5912669", "0.590471", "0.590276", "0.5895033", "0.58672696", "0.5803713", "0.5793208", "0.57905847", "0.5790331", "0.57681555", "0.5753824", "0.5733468", "0.57185715", "0.57073337", "0.56657445", "0.566537...
0.0
-1
Set the threshold of maximum number of pending requests permitted to be held for a specified RCAT. A value of 0 indicates that the request should be transmitted immediately.
public void setThresh(Long thresh) { this.thresh = thresh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "public void setMaxConns(int value) {\n this.maxConns = value;\n }", "public void requestEviction(int cMaximum);", "public Builder setMaximumCapacity(int value) {\n \n maximumC...
[ "0.64486724", "0.5918475", "0.59134525", "0.58123076", "0.5791994", "0.5781036", "0.57141596", "0.5639214", "0.56083083", "0.56019884", "0.55754054", "0.5563907", "0.5548095", "0.5543602", "0.5482801", "0.5481647", "0.5471165", "0.5461871", "0.5449814", "0.54483056", "0.54286...
0.0
-1
Set the threshold of maximum number of pending requests permitted to be held for a specified RCAT. A value of 0 indicates that the request should be transmitted immediately.
public RequestCategory withThresh(Long thresh) { this.thresh = thresh; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "public void setMaxConns(int value) {\n this.maxConns = value;\n }", "public void requestEviction(int cMaximum);", "public Builder setMaximumCapacity(int value) {\n \n maximumC...
[ "0.644995", "0.5917882", "0.5912952", "0.5811967", "0.57906926", "0.5780796", "0.57158333", "0.563904", "0.56072336", "0.56045544", "0.5573818", "0.5562865", "0.55472004", "0.55456555", "0.5482019", "0.5480768", "0.5469345", "0.54639506", "0.5452063", "0.5445913", "0.5428298"...
0.0
-1
Get the list is a prioritized set of Access Networks where the preference of using an Access Network is based on order of the list items with the lowest order list item as the most preferred Access Network.
public Collection<String> getRankedANList() { if (this.rankedANList == null){ this.rankedANList=new ArrayList<>();} return rankedANList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "NetworkCapabilities getNetworkCapabilities() {\n int size;\n NetworkCapabilities result = new NetworkCapabilities();\n boolean z = false;\n result.addTransportType(0);\n ArrayList<String> apnTypes = new ArrayList();\n for (ApnContext apnContext : this.mApnContexts.keySet()...
[ "0.5289297", "0.5050329", "0.49313262", "0.4911239", "0.48699898", "0.48628226", "0.48495582", "0.48100194", "0.4789684", "0.4724959", "0.46920395", "0.46766546", "0.46587428", "0.46362177", "0.45575944", "0.4557288", "0.4545473", "0.45374295", "0.45198542", "0.45165217", "0....
0.47181278
10
Set the list is a prioritized set of Access Networks where the preference of using an Access Network is based on order of the list items with the lowest order list item as the most preferred Access Network.
public void setRankedANList(Collection<String> rankedANList) { this.rankedANList = rankedANList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeNetwork() {\n if (DataHelper.isNull(searchDTO.getNetwork())) {\n //If no Network is set we have to see which network applies for this user\n this.searchDTO.setNetwork(obtainCurrentUserNetwork());\n }\n }", "private void initializeTrustedList() {\n\n ...
[ "0.5123806", "0.5024981", "0.48273867", "0.4804583", "0.4797867", "0.4758366", "0.47429663", "0.4711693", "0.47045255", "0.46788922", "0.46471107", "0.46300533", "0.45847794", "0.45779625", "0.457776", "0.45462814", "0.45239228", "0.4512515", "0.45102718", "0.449178", "0.4478...
0.47300407
7
Set the list is a prioritized set of Access Networks where the preference of using an Access Network is based on order of the list items with the lowest order list item as the most preferred Access Network.
public RequestCategory withRankedANList(String string) { getRankedANList().add(string); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeNetwork() {\n if (DataHelper.isNull(searchDTO.getNetwork())) {\n //If no Network is set we have to see which network applies for this user\n this.searchDTO.setNetwork(obtainCurrentUserNetwork());\n }\n }", "private void initializeTrustedList() {\n\n ...
[ "0.5121202", "0.5023334", "0.4825949", "0.48047578", "0.47982705", "0.47590667", "0.47438556", "0.47310647", "0.47134268", "0.4704756", "0.4678282", "0.46480453", "0.46327505", "0.45870128", "0.4578655", "0.45776016", "0.4547963", "0.45256948", "0.45140436", "0.45134264", "0....
0.0
-1
It would be faster if we use the array to memorize the char frequency;
public String minWindow(String s, String t) { String res = ""; if (t.length() > s.length()) return res; Map<Character, Integer> dict = new HashMap<>(); int count=t.length(); for (char ch : t.toCharArray()) { dict.put(ch, dict.getOrDefault(ch,0)+1); } i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int[] buildFrequencyTable(String s)\n{\n int[] table = new int [Character.getNumericValue('z') - Character.getNumericValue('a') + 1];\n for (char c : s.toCharArray())\n {\n int x = getCharNumber(c);\n if (x != -1) table[x]++;\n }\n return table;\n}", "private void RecalculateCharDist...
[ "0.7123012", "0.7103299", "0.6793126", "0.66329515", "0.6527571", "0.65241355", "0.65076584", "0.648403", "0.6414739", "0.64070356", "0.6350026", "0.6340337", "0.63300335", "0.62695354", "0.6265364", "0.6236783", "0.6175745", "0.61611974", "0.61324835", "0.6116514", "0.608566...
0.0
-1
Create a new neural language model with N1 context words, M size word representations, H size hidden vector, and V size vocabulary size
public Network(int N, int M, int H, int V){ E = new LinkedHashMap<Integer,DoubleMatrix>(); for(int i = 0; i < V; i++){ DoubleMatrix v = DoubleMatrix.zeros(M, 1); initMatrixRandom(v); E.put(i, v); } W = new DoubleMatrix[N-1]; for(int i = 0; i < W.length; i++){ W[i] = DoubleMatrix.zeros(H, M); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HDPModel getModel() {\n HDPModelBuilder builder = new HDPModelBuilder(numberOfTopics, totalNumberOfWords);\n for (int k = 0; k < numberOfTopics; k++) {\n for (int w = 0; w < sizeOfVocabulary; w++) {\n builder.addTopicWordCount(k, w, wordCountByTopicAndTerm[k][w]);\n ...
[ "0.5855542", "0.5712062", "0.56370986", "0.5559653", "0.5484044", "0.54182476", "0.5329372", "0.5292922", "0.52360827", "0.5179502", "0.51340216", "0.51220614", "0.5084875", "0.5084733", "0.5061007", "0.5048025", "0.5020509", "0.5015905", "0.5015385", "0.5006912", "0.50012946...
0.0
-1
Initialise the matrix with random normally distributed values
public void initMatrixRandom(DoubleMatrix m){ for(int i = 0; i < m.rows; i++) for(int j = 0; j < m.columns; j++) m.put(i, j, randomValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initMatrix() {\n\t\ttry {\n\t\t\tRandom random = new Random();\n\t\t\tfor (int row=0; row<_numRows; ++row) {\n\t\t\t\tfor (int column=0; column<_numColumns; ++column) {\n\t\t\t\t\t// generate alive cells, with CHANCE_OF_ALIVE chance\n\t\t\t\t\tboolean value = (random.nextInt(100) < CHANCE_OF_ALIVE);\n...
[ "0.69478065", "0.6702655", "0.6323627", "0.62835807", "0.6145962", "0.595755", "0.59169406", "0.59039193", "0.5894495", "0.5857536", "0.5856368", "0.58536357", "0.58220917", "0.5786677", "0.57715946", "0.57686436", "0.5742967", "0.5742967", "0.57124436", "0.56972885", "0.5689...
0.6716472
1
A helper function for generating a normally distributed random value
public double randomValue(){ return _randomValue() + _randomValue() + _randomValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double randn(){\r\n\t\t//* http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html\r\n\t\t//RandomNumber rnd = new RandomNumber(System.currentTimeMillis());\r\n\t\t//return rnd.normal();\r\n\t\treturn rnd.nextGaussian();\r\n\t\t//return 0;\r\n\t}", "public float gaussianRandom() {\n\t\treturn (...
[ "0.76634926", "0.70782214", "0.7059548", "0.6899315", "0.6885558", "0.6835547", "0.67849094", "0.6607904", "0.64997745", "0.64927393", "0.6491856", "0.6439919", "0.6361747", "0.63323027", "0.630071", "0.62860113", "0.62454605", "0.62405527", "0.6222701", "0.62158537", "0.6208...
0.60353243
31
Calculates the output probabilities of all words, and returns the log probability (in base 10) of the correct word.
public double feedForward(List<Integer> context, Integer nextWord){ // TODO: implement the feedforward activation process return -10000.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test2 (List<List<String>> sentences) {\n double totalLogProb = 0;\n double totalNumTokens = 0;\n for (List<String> sentence : sentences) {\n totalNumTokens += sentence.size();\n double sentenceLogProb = sentenceLogProb2(sentence);\n totalLogProb += ...
[ "0.71076477", "0.681295", "0.6608435", "0.6484906", "0.62216187", "0.6215903", "0.6192051", "0.6174297", "0.61305624", "0.60717946", "0.5859442", "0.5850505", "0.5810984", "0.5805826", "0.5781817", "0.57678723", "0.5717903", "0.5717546", "0.56585056", "0.56583536", "0.5654869...
0.0
-1
Using the output vector the system calculated in the feedForward function, this function now needs to calculate error derivatives across the network and update the weights for W, Wout and E.
public void backProp(List<Integer> context, Integer nextWord, double alpha){ // TODO: implement backpropagation }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void backwardCalculation(double[] trainingOutput) {\n\t\tfor (int i = 0; i < numberOfOutputs; i++) {\n\t\t\terrorOutput[i] = output[i] * (1 - output[i]) * (trainingOutput[i] - output[i]);\n\t\t}\n\n\t\t// computer error at every hidden node\n\t\tfor (int i = 0; i < numberOfMiddle; i++) {\n\t\t\tdouble sum ...
[ "0.68845934", "0.6380964", "0.6338177", "0.6316022", "0.6315563", "0.62738585", "0.6216751", "0.6200954", "0.6180498", "0.61556125", "0.6135404", "0.61298054", "0.60964787", "0.6059467", "0.6033076", "0.5982131", "0.5938101", "0.59315157", "0.5920313", "0.5908132", "0.5899703...
0.0
-1
Perform the gradient check on the backprop implementation
public static void gradientCheck(){ List<Integer> context = Arrays.asList(1, 2, 3); Integer nextWord = 5; Network network = new Network(4, 20, 30, 40); double epsilon = 0.0001; double alpha = 0.1; int i = 1, j = 12; double originalValue = network.E.get(i).get(j, 0); network.E.get(i).put(j, 0, o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void verifyGradient(Instance instance,\r\n\t\t\tMap<Integer, Double> mpFeatureIdToGradient) {\r\n\t\tdouble before = getObjectiveFunctionValueForSingleInstanceOriginal(instance);\r\n\t\tfor (int featureId : mpFeatureIdToGradient.keySet()) {\r\n\t\t\tdouble delta = param.gradientVerificationDelta;\r\n\t\t\t...
[ "0.69652015", "0.6588957", "0.64950675", "0.6318016", "0.60232943", "0.5967998", "0.59228104", "0.5834867", "0.5824204", "0.5815341", "0.57865536", "0.5719061", "0.5693136", "0.5643774", "0.55852866", "0.55613816", "0.5440196", "0.53961915", "0.53841", "0.5369686", "0.5360792...
0.734022
0
This will build the sort clause. At present it supports only one param (1st)
public static JsonArray buildSort(String[] sortParams) { JsonArray sortArray = new JsonArray(); for (String param : sortParams) { String order = "asc"; if (param.startsWith(Constants.HYPHEN)) { param = param.substring(1); order = "desc"; } JsonObject sortObject = new JsonObject(); s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Sort asc(QueryParameter parameter);", "Sort desc(QueryParameter parameter);", "OrderByClause createOrderByClause();", "OrderByClauseArg createOrderByClauseArg();", "private DBObject buildSortSpec(final GetObjectInformationParameters params) {\n\t\tfinal DBObject sort = new BasicDBObject();\n\t\tif (params....
[ "0.75634336", "0.68594795", "0.67994404", "0.67938286", "0.6742503", "0.6667226", "0.66263115", "0.6616304", "0.66087073", "0.6537316", "0.650014", "0.6457589", "0.6425041", "0.63327146", "0.62569976", "0.61934024", "0.61691713", "0.6139815", "0.6067875", "0.6062326", "0.6057...
0.6294605
14
Sends message to given address, with given title and content
public void sendMsg(String address, String title, String content);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendMail(String address, String content) {\n }", "public void send(Address from, String message);", "public abstract void send(String data, String toAddress);", "public void sendMessage(String content, String toUser) throws IOException, BadLocationException{\r\n\t\tdataSending.sendMessage(cont...
[ "0.7290522", "0.6924511", "0.67030054", "0.6531404", "0.651106", "0.64461887", "0.6444167", "0.6430403", "0.63408023", "0.63031", "0.62896657", "0.6194059", "0.6154452", "0.6150533", "0.6144897", "0.6080728", "0.6076449", "0.6061209", "0.6027413", "0.6001156", "0.5998739", ...
0.9107185
0
TODO Use my noise
public static @NotNull Image genNoiseWhite(int width, int height, double factor) { Color.Buffer pixels = Color.malloc(ColorFormat.RGBA, width * height); Random random = new Random(); for (int i = 0, n = width * height; i < n; i++) pixels.put(i, random.nextDouble() < factor ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink ...
[ "0.6488574", "0.6425282", "0.63332796", "0.6199816", "0.6183697", "0.6152466", "0.6124789", "0.6081928", "0.59939843", "0.59937423", "0.59171516", "0.588145", "0.58596987", "0.58524966", "0.58491826", "0.58364564", "0.5835778", "0.5808904", "0.57405454", "0.57383394", "0.5730...
0.0
-1
TODO Use my noise
public static @NotNull Image genNoisePerlin(int width, int height, int offsetX, int offsetY, double scale) { Color.Buffer pixels = Color.malloc(ColorFormat.RGBA, width * height); for (int j = 0; j < height; j++) { for (int i = 0; i < width; i++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink ...
[ "0.6488574", "0.6425282", "0.63332796", "0.6199816", "0.6183697", "0.6152466", "0.6124789", "0.6081928", "0.59939843", "0.59937423", "0.59171516", "0.588145", "0.58596987", "0.58524966", "0.58491826", "0.58364564", "0.5835778", "0.5808904", "0.57405454", "0.57383394", "0.5730...
0.0
-1
TODO Use my noise
public static @NotNull Image genNoiseCellular(int width, int height, int tileSize) { Color.Buffer pixels = Color.malloc(ColorFormat.RGBA, width * height); Random random = new Random(); int seedsPerRow = width / tileSize; int seedsPerCol = height / tileSize; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink ...
[ "0.6489156", "0.6425995", "0.633323", "0.6199022", "0.6183338", "0.6152377", "0.61242193", "0.60823864", "0.59944785", "0.59939986", "0.5916151", "0.5881513", "0.5859648", "0.5852069", "0.5850201", "0.5837779", "0.5835436", "0.58099973", "0.5742614", "0.5738286", "0.57301134"...
0.0
-1
Unloads the data in this image.
public void delete() { if (this.data != null) { this.data.free(); this.data = null; } this.width = 0; this.height = 0; this.mipmaps = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unloaded(){\n\t\tloaded=false;\n\t}", "void unsetValueSampledData();", "public void unLoad() {\n try{\n deInitialize();\n iMenu.unLoad();\n }catch(Exception e){\n Logger.loggerError(\"Menu canvas unload Error\"+e.toString());\n }\n }", "pub...
[ "0.65172243", "0.64430356", "0.6209442", "0.60370624", "0.6026142", "0.60237837", "0.6006943", "0.5983662", "0.59408814", "0.59356076", "0.5925269", "0.5920383", "0.5905751", "0.5897025", "0.5882582", "0.5865132", "0.5824402", "0.5817466", "0.5811024", "0.57384413", "0.573013...
0.62818384
2
Exports this image to file. If specified, then the mipmaps will be exported to separate files if the image has them.
public boolean export(@NotNull String fileName, boolean withMipmaps) { if (this.data == null) return false; String extension = getExtension(fileName); ByteBuffer buffer = this.data.toBuffer(); buffer.limit(this.width * this.height * this.format.sizeof); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeToImage() {\n imageWriter.writeToImage();\n }", "public void writeToImage() {\r\n\t\t_imageWriter.writeToImage();\r\n\t}", "public void exportPuzzle () {\r\n fileManager.exportPuzzle (puzzle);\r\n }", "private void appendTextures(ZipOutputStream out) throws IOException {\n\t\tf...
[ "0.58813405", "0.5793027", "0.5637652", "0.5616936", "0.5611436", "0.5512046", "0.5452124", "0.5311157", "0.529988", "0.5262108", "0.5194467", "0.5093886", "0.5024297", "0.49196684", "0.49087116", "0.48885575", "0.4846917", "0.483618", "0.48271242", "0.48071367", "0.48035467"...
0.64424086
0
Exports this image to file.
public boolean export(@NotNull String fileName) { return export(fileName, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeToImage() {\n imageWriter.writeToImage();\n }", "public void writeToImage() {\r\n\t\t_imageWriter.writeToImage();\r\n\t}", "@FXML public void saveToFile()throws java.io.IOException {\n Highgui.imwrite( this.originalImagePath, this.image );\n System.out.println(\"Saving\...
[ "0.74523395", "0.7415175", "0.6945819", "0.6901474", "0.6901392", "0.658972", "0.6577365", "0.6477454", "0.63372314", "0.61432827", "0.6133306", "0.61272347", "0.6125889", "0.6104008", "0.6080992", "0.6072301", "0.59629166", "0.5956791", "0.59331536", "0.59114957", "0.5909468...
0.0
-1
Utility Functions Convert image data to desired format Mipmap data will be lost.
public @NotNull Image reformat(ColorFormat format) { if (format != ColorFormat.GRAY && format != ColorFormat.GRAY_ALPHA && format != ColorFormat.RGB && format != ColorFormat.RGBA) {throw new UnsupportedOperationException("invalid format: " + format);} if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Bitmap convertToMutable(Bitmap imgIn) {\n try {\n //this is the file going to use temporally to save the bytes.\n // This file will not be a imageView, it will store the raw imageView data.\n File file = new File(Environment.getExternalStorageDirectory() + File.separator + \"temp.tm...
[ "0.55706245", "0.5517017", "0.5444865", "0.53232265", "0.5262187", "0.5238578", "0.51885", "0.5167108", "0.5158316", "0.5106747", "0.5081657", "0.4993196", "0.49686748", "0.49685073", "0.49671087", "0.4966355", "0.49643737", "0.4928195", "0.490172", "0.49009496", "0.4892272",...
0.0
-1
Generate all mipmap levels for a provided image NOTE 1: Supports POT and NPOT images NOTE 2: image.data is scaled to include mipmap levels NOTE 3: Mipmaps format is the same as base image
public @NotNull Image genMipmaps() { if (this.data != null) { // TODO - LWJGL-ify int mipCount = 1; // Required mipmap levels count (including base level) int mipWidth = this.width; // Base image width int mipHeight = this.height; // Base ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native boolean levelImage(String levels) throws MagickException;", "public void createImageSet() {\n\t\t\n\t\t\n\t\tString image_folder = getLevelImagePatternFolder();\n \n String resource = \"0.png\";\n ImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource)...
[ "0.58233744", "0.555582", "0.5543614", "0.546479", "0.52992535", "0.52537316", "0.52510226", "0.5205754", "0.5205447", "0.5200339", "0.5171981", "0.5073422", "0.506367", "0.50588167", "0.4992657", "0.49729383", "0.49683535", "0.49676946", "0.49675956", "0.4924006", "0.4874260...
0.74496454
0
Crop an image to area defined by a rectangle Mipmap data will be lost.
public @NotNull Image crop(int x, int y, int width, int height) { if (this.data != null) { validateRect(x, y, width, height); Color.Buffer output = Color.malloc(this.format, width * height); long srcPtr = this.data.address(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native MagickImage cropImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "public static BufferedImage cropImage(BufferedImage img, Rectangle bounds)\n\t{\n\t\tBufferedImage dest = img.getSubimage(bounds.x, bounds.y, bounds.width, bounds.height);\n\t\treturn dest; \n\t}", "private void cropImage...
[ "0.7130381", "0.67658496", "0.67375314", "0.6407373", "0.63544434", "0.63427454", "0.63246214", "0.62885416", "0.62187743", "0.6216118", "0.6199108", "0.61617845", "0.6151268", "0.6150247", "0.61327267", "0.6087626", "0.603978", "0.60225886", "0.6017626", "0.5970345", "0.5961...
0.64363366
3
Convert image to POT (poweroftwo)
public @NotNull Image toPOT(@NotNull Colorc fill) { // Calculate next power-of-two values // NOTE: Just add the required amount of pixels at the right and bottom sides of image... int potWidth = (int) Math.pow(2, Math.ceil(Math.log(this.width) / Math.log(2))); int potHeight = (int) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean translateImageToText();", "private String ConvertImagenTexto(Bitmap imagenpro) {\n ByteArrayOutputStream espacio = new ByteArrayOutputStream();\n imagenpro.compress(Bitmap.CompressFormat.JPEG,100,espacio);\n byte[] imagen = espacio.toByteArray();\n String imagenAstring ...
[ "0.55649096", "0.5350051", "0.53304666", "0.5277065", "0.5186151", "0.5163378", "0.5135969", "0.503843", "0.5002752", "0.4987604", "0.4963655", "0.49606407", "0.49143142", "0.48910815", "0.4885245", "0.48560703", "0.48479494", "0.4841581", "0.48309702", "0.48112237", "0.48057...
0.55965036
0
Quantize the image by decreasing the bits per pixels to the values specified.
public @NotNull Image quantize(int rBpp, int gBpp, int bBpp, int aBpp) { if (this.data != null) { Color.Buffer pixels = Objects.requireNonNull(getColorData()); this.data.free(); // free old image data this.format = ColorFormat.RGBA; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public @UInt32 int getQuantizationBits();", "public static int offsetBits_quality() {\n return 48;\n }", "protected void reduceBitmapMode(BufferedImage img, int xoffs, int yoffs) {\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histograms = new Map[(img.getWidth() + 7) / 8];\n \...
[ "0.5573085", "0.53353304", "0.5242637", "0.51383597", "0.5041641", "0.50192505", "0.4957123", "0.49354258", "0.4909599", "0.48757094", "0.48533675", "0.48307005", "0.4812074", "0.48104256", "0.4805515", "0.4801556", "0.4765041", "0.47362292", "0.47290415", "0.47019294", "0.46...
0.49027967
9
Dither image data (FloydSteinberg dithering) Mipmap data will be lost.
public @NotNull Image dither(int rBpp, int gBpp, int bBpp, int aBpp) { if (this.data != null) { Color.Buffer pixels = Objects.requireNonNull(getColorData()); this.data.free(); // free old image data this.format = ColorFormat.RGBA; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void dither();", "void dither();", "int[][][] ditheringImage(int[][][] imageArray, int height, int width);", "@Override\n public void setDither(boolean dither) {\n patternDrawable.setDither(dither);\n super.setDither(dither);\n }", "public @NotNull Image flipH()\n {\n if (this...
[ "0.64630455", "0.64630455", "0.64196175", "0.6126515", "0.55990404", "0.5588918", "0.5463629", "0.53691036", "0.5319125", "0.5303451", "0.52866834", "0.52536416", "0.5236294", "0.52249384", "0.5161377", "0.51298475", "0.51185644", "0.50660765", "0.5044299", "0.4995609", "0.49...
0.55387455
6
Flips this image vertically. Mipmap data will be lost.
public @NotNull Image flipV() { if (this.data != null) { if (this.mipmaps > 1) Image.LOGGER.warning("Image manipulation only applied to base mipmap level"); Color.Buffer output = Color.malloc(this.format, this.width * this.height); long s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flipVertical() {\n\t\t\tthis.data = flipGridVertical(data);\n\t\t\tcomputeHashes();\n\t\t}", "public void flipV() {\r\n int tmp, sym;\r\n for (int col = 0; col < pixels.length; ++col) {\r\n for (int row = 0; row < pixels[col].length / 2; ++row) {\r\n // find th...
[ "0.7230693", "0.72085613", "0.7048189", "0.67737776", "0.6584952", "0.6505118", "0.64456934", "0.64367086", "0.64167273", "0.6397538", "0.6344496", "0.6274758", "0.62010217", "0.61883426", "0.6119559", "0.6113863", "0.6054396", "0.6052101", "0.6048686", "0.6041786", "0.602693...
0.7045616
3
Flips this image horizontally. Mipmap data will be lost.
public @NotNull Image flipH() { if (this.data != null) { if (this.mipmaps > 1) Image.LOGGER.warning("Image manipulation only applied to base mipmap level"); if (this.format != ColorFormat.RGBA) { Color.Buffer output = Color.malloc(this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapD...
[ "0.67610556", "0.64542675", "0.6453264", "0.639316", "0.6072418", "0.60189945", "0.59343934", "0.5881711", "0.585844", "0.58137286", "0.5738235", "0.57060176", "0.5693743", "0.5651657", "0.5630142", "0.55748504", "0.5529685", "0.5498218", "0.5474971", "0.545889", "0.5432554",...
0.5546565
16
Rotates this image 90 degrees clockwise. Mipmap data will be lost.
public @NotNull Image rotateCW() { if (this.data != null) { if (this.mipmaps > 1) Image.LOGGER.warning("Image manipulation only applied to base mipmap level"); Color.Buffer output = Color.malloc(this.format, this.width * this.height); lon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rotate() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\ttmp_grid[i][j] = squares[i][j];\n\t\t\t// copy back rotated 90 degrees\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[j][i] = tmp_grid[i][3-j];\n \n ...
[ "0.67872846", "0.6719662", "0.66683483", "0.6658961", "0.6654887", "0.6650214", "0.6627556", "0.6552559", "0.65494585", "0.65053517", "0.6472391", "0.64637077", "0.6449866", "0.6413659", "0.6407631", "0.6402604", "0.6384034", "0.63559854", "0.63510776", "0.62930876", "0.62575...
0.667917
2
Rotates this image 90 degrees counterclockwise. Mipmap data will be lost.
public @NotNull Image rotateCCW() { if (this.data != null) { if (this.mipmaps > 1) Image.LOGGER.warning("Image manipulation only applied to base mipmap level"); Color.Buffer output = Color.malloc(this.format, this.width * this.height); lo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public @NotNull Image rotateCW()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n...
[ "0.68205875", "0.6582094", "0.65624326", "0.65607566", "0.6545998", "0.65011865", "0.6500177", "0.6475113", "0.64222676", "0.64119554", "0.6402128", "0.63884026", "0.637564", "0.6359911", "0.63278556", "0.6278411", "0.62656885", "0.6251913", "0.6248097", "0.6236647", "0.61857...
0.68228906
0
Drawing Functions TODO Create Rectangle/Shape2d Versions
public void clear(Colorc color) { if (this.data != null) this.data.forEach(c -> c.set(color)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Shapes draw ( );", "public void draw(){\n\t\t int startRX = 100;\r\n\t\t int startRY = 100;\r\n\t\t int widthR = 300;\r\n\t\t int hightR = 300;\r\n\t\t \r\n\t\t \r\n\t\t // start points on Rectangle, from the startRX and startRY\r\n\t\t int x1 = 0;\r\n\t\t int y1 = 100;\r\n\t\t int x2 = 200;\r\n\...
[ "0.743644", "0.738167", "0.7160798", "0.71203256", "0.7046356", "0.7045262", "0.7020533", "0.7011047", "0.69875115", "0.6975945", "0.6975752", "0.69028676", "0.69005984", "0.68456507", "0.68224597", "0.6812861", "0.68084794", "0.6787097", "0.6786883", "0.67771995", "0.6773619...
0.0
-1
A validator that delegates to a collection of other validators to validate an object.
public interface IAggregateValidator extends IValidator { /** * Gets a map of names to instances of the validators used by this validator. * FIXME: this operation is Eclipse-specific. Move it to an interface * in com.choicemaker.cm.validation.eclipse * @return a non-null, but possibly empty map of name to del...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public <T> List<ObjectError> validate(T dto, Validator validator) {\n DataBinder binder = getDataBinder(dto, validator);\n binder.validate();\n return getValidationErrors(binder.getBindingResult());\n }", "public void validate(Object value) throws FailedValidationException\...
[ "0.6372948", "0.6058083", "0.5916532", "0.590117", "0.58680964", "0.5829342", "0.58170044", "0.5769207", "0.5752377", "0.55970764", "0.5577065", "0.5555033", "0.5540765", "0.5520433", "0.5481543", "0.54782546", "0.5451584", "0.5402087", "0.53984994", "0.5381298", "0.5381298",...
0.5439891
17
Gets a map of names to instances of the validators used by this validator. FIXME: this operation is Eclipsespecific. Move it to an interface in com.choicemaker.cm.validation.eclipse
public Map getValidatorMap();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getValidators()\r\n {\r\n return m_validators;\r\n }", "List<FormValidator> getValidators();", "public List<Validator> getValidators() {\n return Collections.unmodifiableList(validators);\n }", "public IValidator[] getValidators();", "public String[] getValidatorNames...
[ "0.70024717", "0.6952873", "0.6902611", "0.6894871", "0.67893183", "0.66997457", "0.6385738", "0.6083203", "0.58523595", "0.5812104", "0.56491566", "0.54684323", "0.54375625", "0.5314673", "0.5292902", "0.5282293", "0.5264063", "0.5252955", "0.51907736", "0.5146373", "0.51109...
0.71959466
0
Gets the plugin names of the validators used by this validator. FIXME: this operation is Eclipsespecific. Move it to an interface in com.choicemaker.cm.validation.eclipse
public String[] getValidatorNames();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getPluginNames() {\n\t\tList<String> pluginNames = new ArrayList<String>();\n\t\tfor (Plugin plugin : pluginManager.getPlugins(Plugin.class)) {\n\t\t\tif (StringUtils.isEmpty(plugin.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpluginNames.add(plugin.getName().trim());\n\t\t}\n\t\treturn plu...
[ "0.6969469", "0.6640481", "0.6399122", "0.63221663", "0.621367", "0.6114746", "0.6080746", "0.58773047", "0.5861151", "0.5735063", "0.56072235", "0.5578562", "0.55071807", "0.5483548", "0.5471386", "0.54676896", "0.5464017", "0.54457134", "0.54240954", "0.53479487", "0.531657...
0.7038495
0
Gets the validators used by this validator.
public IValidator[] getValidators();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Validator> getValidators() {\n return Collections.unmodifiableList(validators);\n }", "public String[] getValidators()\r\n {\r\n return m_validators;\r\n }", "List<FormValidator> getValidators();", "public List<ModelValidator> getDetailedValidators() {\n return detailedV...
[ "0.8155027", "0.7908102", "0.76333797", "0.7320084", "0.7119788", "0.65063256", "0.6294904", "0.6183695", "0.6174121", "0.60408103", "0.6008198", "0.6008198", "0.6008198", "0.5966167", "0.5924303", "0.5822002", "0.5663331", "0.5607449", "0.55546224", "0.55513823", "0.5538572"...
0.75122446
3
/ parse user input to two part: command eg: user, pw, dir variable eg: username, filename
public void setUserinput(String userinput){ String[] inputs = userinput.split(" "); if(inputs.length > 1){ this.userinput_var = inputs[1]; } this.userinput_command = inputs[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void parseCommandLineArgs(String[] args) {\r\n // parse username/password;\r\n for(int i = 0; i < args.length; i++) {\r\n if(args[i].equals(\"-u\")) {\r\n username = args[i+1];\r\n }\r\n if(args[i].equals(\"-p\")) {\r\n password = args[i+1];\r\n }\r\n }\r\n \...
[ "0.68117076", "0.6441856", "0.62724495", "0.62475234", "0.6192336", "0.6114934", "0.6026296", "0.58955383", "0.5893219", "0.5883881", "0.585425", "0.5836883", "0.57967293", "0.57961273", "0.5788738", "0.5788002", "0.5754625", "0.5733012", "0.57310843", "0.571904", "0.5705054"...
0.59176326
7
/ map user input to ftp command
public void buildMap(){ this.map = new HashMap<String, String>(); map.put("user", "user"); map.put("pw", "pass"); map.put("quit", "quit"); map.put("features", "feat"); map.put("cd", "cwd"); map.put("dir", "list"); map.put("get", "retr"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFTPcommand(){\n String temp = this.map.get(this.userinput_command).toString().toUpperCase() +\n ( (this.userinput_var == null)? \"\" : \" \" + this.userinput_var );\n\n this.userinput_var = null;\n return temp;\n }", "public void processUserInput(Stri...
[ "0.6753235", "0.61266696", "0.6102813", "0.58472216", "0.5789162", "0.57557034", "0.56441265", "0.5606026", "0.5592744", "0.55157906", "0.5509956", "0.54875416", "0.5457425", "0.5376909", "0.53123456", "0.53073376", "0.53058606", "0.5214858", "0.52125907", "0.5200604", "0.519...
0.0
-1
/ check whether command needs extra data connection; return true if it does, otherwise false
public boolean specialCommand(String userinput){ return (userinput.equals("get")) || (userinput.equals("dir")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isDataConnectionAsDesired();", "boolean hasCommand();", "boolean hasCommand();", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "p...
[ "0.7299585", "0.6699166", "0.6699166", "0.6552978", "0.6529703", "0.64871585", "0.6470575", "0.6450616", "0.64162356", "0.63374496", "0.62812674", "0.627844", "0.6268275", "0.6172985", "0.61457855", "0.61150604", "0.59633255", "0.5929302", "0.5926193", "0.5920607", "0.5905469...
0.0
-1
/ check whether user input belongs to a valid command; return true if it does, otherwise false
public boolean commandExist(String userinput){ return this.map.containsKey(userinput.split(" ")[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean commands(String userInput) {\n\t\tboolean isCmdValid = false;\n\t\tList<String> validCommands = new ArrayList<>();\n\t\tvalidCommands.add(\"rules\");\n\t\tvalidCommands.add(\"giveall\");\n\t\t\n\t\t// Find if command is valid\n\t\tfor (String cmd: validCommands) {\n\t\t\tif (userInput.equalsI...
[ "0.78494656", "0.77524096", "0.76761085", "0.75341207", "0.7321052", "0.72290295", "0.7211447", "0.7211447", "0.7201226", "0.71527785", "0.71374106", "0.712861", "0.7122108", "0.7075023", "0.7064993", "0.706035", "0.69872797", "0.6983796", "0.6967479", "0.69578487", "0.695776...
0.7112906
13
/ return ftp command
public String getFTPcommand(){ String temp = this.map.get(this.userinput_command).toString().toUpperCase() + ( (this.userinput_var == null)? "" : " " + this.userinput_var ); this.userinput_var = null; return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean execute(FTPClient client) throws SocketException, IOException;", "public static final String getCommand(final FTPCommand command) {\n return command.command();\n }", "public String getFileTransferServer();", "public static void main(String [] args) throws IOException //added this line\n ...
[ "0.5927398", "0.57910305", "0.5761216", "0.5654345", "0.56482303", "0.55643576", "0.55049014", "0.5480499", "0.5280572", "0.5251641", "0.52223253", "0.5166895", "0.51639265", "0.51326054", "0.5119901", "0.5065551", "0.5047971", "0.5023427", "0.50079143", "0.49924722", "0.4957...
0.65539074
0
TODO Autogenerated method stub
public static void main(String[] args) { Metho Method = new Metho(); Time Time = new Time(); Constructor Const = new Constructor(); MonthDay Date = new MonthDay(22,01,1999); BirthReference Refer = new BirthReference("Mateus", Date); FinalAreaCalc Circle = new FinalAreaCalc(); String sample = "This is an...
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Encrypt() will process a string as input, build and return a resulting encrypted version of the input string.
private static String encrypt(String str) { String result = ""; /* STEP 1: remove spaces */ str = str.replaceAll("\\s+", ""); /* STEP 2: calculate dimensions */ double dim = Math.sqrt(str.length()); int rows = (int) Math.floor(dim); int columns = (int) Math.cei...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String encrypt(String input) {\n \n StringBuilder sb = new StringBuilder(input);\n \n for (int i=0; i< sb.length(); i++) {\n char encrypted = encrypt(sb.charAt(i));\n sb.setCharAt(i, encrypted);\n }\n \n return sb.toString();\n }", ...
[ "0.7446393", "0.7266147", "0.704699", "0.67633516", "0.6728752", "0.6708503", "0.66935915", "0.6623936", "0.6513223", "0.64872354", "0.6461843", "0.64016443", "0.63823193", "0.6359961", "0.6277998", "0.6255144", "0.62161785", "0.6211081", "0.61795986", "0.6177616", "0.6173939...
0.558672
48
Use wordnet to induce synonyms. Use the synset relations
private static List<String> induceSynonims(String word) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void addAllSynset(ArrayList<String> synsets, String chw, IDictionary dictionary) {\n\t\tWordnetStemmer stemmer = new WordnetStemmer(dictionary);\n\t\tchw = stemmer.findStems(chw, POS.NOUN).size()==0?chw:stemmer.findStems(chw, POS.NOUN).get(0);\n\t\t\n\t\tIIndexWord indexWord = dictionary.getIndexWor...
[ "0.70553553", "0.7005798", "0.6661012", "0.6593528", "0.6583588", "0.6492693", "0.6431627", "0.63908017", "0.6351848", "0.6329908", "0.6317089", "0.61855215", "0.61753905", "0.61698085", "0.6163139", "0.6152639", "0.61287355", "0.6120794", "0.6103239", "0.6099475", "0.6089946...
0.5693848
45
FIXME: how to implement?
public void filterBy(Map<String, List<String>> queryMap) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void getExras() {\n...
[ "0.57258755", "0.5722925", "0.57130426", "0.565459", "0.5607843", "0.5595222", "0.55532455", "0.5502495", "0.54554427", "0.5433953", "0.540684", "0.53967947", "0.53852034", "0.53852034", "0.5370665", "0.5339407", "0.5334167", "0.53265315", "0.531918", "0.53055227", "0.5295119...
0.0
-1
this.i = in.readInt(); this.s = (String) in.readObject();
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n in.defaultReadObject();\n company = in.readUTF();\n // Just for test static member\n company = \"pica8_from_serialization\";\n password = encryptor.xor(in.readUTF());\n }", "private ...
[ "0.70164853", "0.690437", "0.67536163", "0.6683802", "0.6660507", "0.6626726", "0.65418035", "0.65146995", "0.644296", "0.6416477", "0.6416477", "0.6362086", "0.63367414", "0.6311576", "0.6265365", "0.6251602", "0.62274647", "0.6223713", "0.6217546", "0.6208432", "0.61750984"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int numero; char opc = ' '; for (int i = 1; i <= 1000; i++) { System.out.println("Digite um numero: "); numero = sc.nextInt(); System.out.println("Deseja continuar?"); opc = sc.next().charAt(0); if(opc == '...
{ "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
Special handling for client update packets
public void readClient(CompoundTag tag) { load(tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void receivedUpdateFromServer();", "@Override\n\tpublic void updateClient() {\n\t\t\n\t}", "private void sendUpdateConnectionInfo() {\n\n }", "@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}", "public interface ClientUpdateListener {\n\n /**\n * This method notify the...
[ "0.7425878", "0.68982375", "0.6572485", "0.65106475", "0.64580363", "0.64388573", "0.63993657", "0.63919866", "0.6365731", "0.6351667", "0.62941", "0.62046385", "0.6115909", "0.61006534", "0.6094722", "0.6087314", "0.60851276", "0.6076161", "0.6060747", "0.60448784", "0.60173...
0.0
-1
Special handling for client update packets
public CompoundTag writeClient(CompoundTag tag) { saveAdditional(tag); return tag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void receivedUpdateFromServer();", "@Override\n\tpublic void updateClient() {\n\t\t\n\t}", "private void sendUpdateConnectionInfo() {\n\n }", "@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}", "public interface ClientUpdateListener {\n\n /**\n * This method notify the...
[ "0.7425878", "0.68982375", "0.6572485", "0.65106475", "0.64580363", "0.64388573", "0.63993657", "0.63919866", "0.6365731", "0.6351667", "0.62941", "0.62046385", "0.6115909", "0.61006534", "0.6094722", "0.6087314", "0.60851276", "0.6076161", "0.6060747", "0.60448784", "0.60173...
0.0
-1
Add scooter park boolean.
public boolean addScooterPark(Park park){ try(CallableStatement callStmt = getConnection().prepareCall("{ call add_park(?,?,?,?) }")) { callStmt.setLong(1, park.getnCharginsSlot()); callStmt.setLong(2,park.getnParkingsSlot()); callStmt.setLong(3,SCOOTER_PARK_TYPE_ID); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParking(java.lang.Boolean value);", "boolean isSetSpokes();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isParking();", "boolean isSetParlay();", "public void setPrimHasRun(Boolean bool){\n primHasRun = bool;\n }", "public boolean isParked() {\r\n\t\ti...
[ "0.6423056", "0.5850461", "0.5817602", "0.5641446", "0.5590449", "0.5581433", "0.5566363", "0.5506043", "0.5486574", "0.54064626", "0.5383909", "0.5374663", "0.53644943", "0.5269714", "0.52500004", "0.52321243", "0.5223646", "0.5223646", "0.5223646", "0.5180355", "0.51580995"...
0.66713524
0
Add drone park boolean.
public boolean addDronePark(Park park){ try(CallableStatement callStmt = getConnection().prepareCall("{ call add_park(?,?,?,?) }")) { callStmt.setLong(1, park.getnCharginsSlot()); callStmt.setLong(2,park.getnParkingsSlot()); callStmt.setLong(3,DRONE_PARK_TYPE_ID); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParking(java.lang.Boolean value);", "protected boolean drillVertex() {\n return drillVertex;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isParking();", "boolean isSetParlay();", "public boolean addScooterPark(Park park){\n try(CallableStatement cal...
[ "0.6669776", "0.5983147", "0.5903885", "0.5731496", "0.5645356", "0.56286764", "0.5614938", "0.55613375", "0.54629284", "0.54564977", "0.5386385", "0.53648365", "0.5360686", "0.53402215", "0.53022885", "0.5283964", "0.52774805", "0.5272427", "0.52637166", "0.52569026", "0.525...
0.6449367
1
Remove park by id boolean.
public boolean removeParkById(long idPark) { try(CallableStatement callStmt = getConnection().prepareCall("{ call remove_park_by_id(?) }")) { callStmt.setLong(1, idPark); callStmt.execute(); closeAll(); return true; } catch (SQLException e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean removeObject(PointLatLng point, String id);", "boolean remove (I id);", "void remove(K id);", "boolean removeObject(String id);", "boolean excluir(long id);", "public void delete(K id);", "void delete(K id);", "void delete(K id);", "boolean removeObject(Circle circle, String id);", "Boole...
[ "0.6530396", "0.65092754", "0.64097095", "0.6398837", "0.6032703", "0.6025428", "0.5957416", "0.5957416", "0.59173864", "0.59164315", "0.58834904", "0.5825397", "0.57797354", "0.5768732", "0.57359225", "0.5720322", "0.5716916", "0.5712104", "0.570708", "0.570708", "0.56710345...
0.64701426
2
Is park exists by id boolean.
public boolean isParkExistsById(long idPark) { try(CallableStatement callStmt = getConnection().prepareCall("{ ? = call is_park_exists_by_id(?) }")) { callStmt.registerOutParameter(1, OracleTypes.CURSOR); callStmt.setLong(2, idPark); callStmt.execute(); ResultSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasParkingId();", "boolean hasParkingId();", "boolean hasParkingId();", "public boolean exists(String id);", "boolean exists(PK id);", "boolean exists(Integer id);", "public boolean isExist(Serializable id);", "boolean existsByNameAndId(String name, int id);", "public boolean exists( Intege...
[ "0.76394457", "0.76394457", "0.76394457", "0.706092", "0.70336384", "0.69242877", "0.6813224", "0.6752218", "0.66508514", "0.65562075", "0.65562075", "0.6554009", "0.6553192", "0.65219843", "0.6448677", "0.6448677", "0.6448677", "0.6448677", "0.6448677", "0.6448677", "0.64486...
0.7378449
3
Gets last park created.
public long getLastParkCreated() { try(CallableStatement callStmt = getConnection().prepareCall("{ ? = call get_last_park_created() }")) { callStmt.registerOutParameter(1, OracleTypes.CURSOR); callStmt.execute(); ResultSet rSet = (ResultSet) callStmt.getObject(1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Checkpoint lastCheckpoint(){\n if(!checkpointRecordFile.exists()){\n return null;\n }\n return lastCheckpoint(rootDir);\n }", "public GPoint getLastPoint() {\n\t\treturn (points.size() > 0) ? points.get(points.size() - 1) : null;\n\t}", "public Epoch getLastEpoch() {\n...
[ "0.5645027", "0.56005275", "0.5532153", "0.54711187", "0.54545903", "0.5434724", "0.5433039", "0.54313093", "0.5409472", "0.5402508", "0.5400554", "0.5366663", "0.5340793", "0.53395015", "0.53319216", "0.5331647", "0.53305876", "0.5320356", "0.530909", "0.5308872", "0.5301362...
0.6903149
0
Constructor de Traduccion con parametros
public Traduccion(Date fecha, String descripcion, Boolean completa, String texto, Parrafo parrafo, Idioma idioma) { super(fecha, descripcion, completa); this.idioma = idioma; this.parrafo = parrafo; this.texto = texto; // TODO Auto-generated constructor stub }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Trabajador() {\n\t\tsuper();\n\t}", "public AntrianPasien() {\r\n\r\n }", "public TTau() {}", "public TCubico(){}", "public MessageTran() {\n\t}", "public Pasien() {\r\n }", "public Transportista() {\n }", "public Trabajador(String nombre, String apellidos, String id, String email,\n\...
[ "0.7408739", "0.698846", "0.67313695", "0.6640271", "0.6625329", "0.66069883", "0.65869004", "0.6498683", "0.64779127", "0.6455248", "0.63805324", "0.6315534", "0.63090694", "0.62899977", "0.6280719", "0.6249772", "0.62266916", "0.6188898", "0.6167434", "0.6166706", "0.613238...
0.5905452
77
Informa cual es el idioma original del documento que se esta traduciendo
public Idioma getIdiomaOriginal() { return this.getParrafo().getDocumento().getIdioma(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String prepareLegalDocuments();", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLog...
[ "0.58213246", "0.5740964", "0.56391305", "0.5594356", "0.55802673", "0.5578257", "0.5525768", "0.5524442", "0.5503575", "0.5479145", "0.5411552", "0.5396907", "0.53891015", "0.53891015", "0.53891015", "0.5351877", "0.5327395", "0.5325618", "0.5264705", "0.5235051", "0.5222795...
0.67067796
0
String url = getString(R.string.image_url)+contents.get(ExoPlayerVideoHandler.getInstance().getIndex()).getPath360(); ExoPlayerVideoHandler exoPlayerVideoHandler = ExoPlayerVideoHandler.getInstance(); /player = ExoPlayerVideoHandler.getInstance() .prepareExoPlayerForUri(this, Uri.parse(url), (SimpleExoPlayerView) exoPl...
private void initiatePlayer() { ExoPlayerVideoHandler.getInstance().initiateLoaderController( this, loadingImage, exoPlayerView, ExoPlayerVideoHandler.getInstance().getVideoResolution()!=null?ExoPlayerVideoHandler.getInstance().getVideoResolution()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializePlayer() {\n // Create a default TrackSelector\n mainHandler = new Handler();\n BandwidthMeter bandwidthMeter = new DefaultBandwidthMeter();\n\n TrackSelection.Factory videoTrackSelectionFactory =\n new AdaptiveTrackSelection.Factory(bandwidthMeter)...
[ "0.67979974", "0.66707283", "0.65247923", "0.64813656", "0.63907915", "0.6365307", "0.6349919", "0.6311973", "0.6298991", "0.6262729", "0.61925423", "0.61713994", "0.6162165", "0.6152529", "0.6079044", "0.60471994", "0.60464567", "0.60306233", "0.59929353", "0.5975626", "0.59...
0.6690628
1
////////////////// Initialization // //////////////////
@Override @Before public void before() { super.before(); usersSearchByLastNameUrl = rootUrl + "/users/search/findByLastName"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n\n\t}", "public void init() {\n \n }", "private void initialize() {\n\t\t\n\t}", "public void init() {\r\n\r\n\t}", "private void init() {\n }", "private void init() {\n\n\n\n }", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() ...
[ "0.83307284", "0.8175234", "0.81164145", "0.81097454", "0.81038177", "0.80858636", "0.8059301", "0.8059301", "0.8059301", "0.8046115", "0.8027132", "0.8021678", "0.8012151", "0.8012151", "0.8012151", "0.8012151", "0.80039454", "0.80039454", "0.79942095", "0.79818213", "0.7980...
0.0
-1
/////////////////////////////////////// Users Search By Last Name URL Tests // ///////////////////////////////////////
@Test public void usersSearchByLastName_DELETE() { lastResponse = given().delete(usersSearchByLastNameUrl); assertMethodNotAllowedResponse(HttpMethod.DELETE, usersSearchByLastNamePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User search_userinfo(String user_name);", "public String searchLastNameUI() {\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++++++\");\n console.promptForPrintPrompt(\" + PLEASE ENTER LAST NAME TO SEARCH BY +\");\n console.pro...
[ "0.62433684", "0.61311466", "0.60526097", "0.60526097", "0.60408497", "0.59779674", "0.5961255", "0.59378767", "0.5928636", "0.5920084", "0.58994156", "0.58994156", "0.58609426", "0.58313227", "0.578152", "0.5762342", "0.5751063", "0.5717793", "0.5695794", "0.5659525", "0.565...
0.54166585
46
1 = blessed = 1 entry 2 = 99poblems = 2 entries
@Test public void testGetAllByTags() { int size = dao.getSitesByHashTag(1).size(); assertEquals(1, size); size = dao.getSitesByHashTag(2).size(); assertEquals(2, size); size = dao.getSitesByHashTag(-1).size(); assertEquals(0, size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getRetainedEntries(final boolean valid) {\n if (otherCheckForSingleItem(mem_)) { return 1; }\n final int preLongs = extractPreLongs(mem_);\n final int curCount = (preLongs == 1) ? 0 : extractCurCount(mem_);\n return curCount;\n }", "private void createBitStremMap(){\n ...
[ "0.5995832", "0.56113225", "0.55932456", "0.5589662", "0.55360305", "0.5533854", "0.5502017", "0.547834", "0.5464608", "0.5425887", "0.5420328", "0.5400365", "0.53912294", "0.53848535", "0.53702354", "0.5333937", "0.53311485", "0.52287805", "0.52228135", "0.52191556", "0.5204...
0.0
-1
Client to retrieve exoplanet catalogue
public interface CatalogueClient { List<Exoplanet> getCatalogue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getCatalog(String myURl) throws IOException{\r\n InputStream inputStreamFromServer = null;\r\n String responseAsString = null;\r\n try {\r\n //Creates and configures the HttpURLConnection\r\n URL url = new URL(myURl);\r\n ...
[ "0.5871291", "0.5689298", "0.5689298", "0.56828517", "0.56492746", "0.55824375", "0.5571718", "0.5571152", "0.5407667", "0.5366001", "0.52356297", "0.52261627", "0.5196408", "0.5184646", "0.51809925", "0.5180153", "0.51593035", "0.5152966", "0.5138634", "0.51328653", "0.51167...
0.678983
0
we will handle the attachment
@Override public boolean neverAttach() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getAttachment() {\n\treturn attachment;\n }", "@Override\n public void completed(Integer result, String attachment)\n {\n log.info(\"Successful read!\");\n }", "@Override\r\n\t\t\tpublic void run() ...
[ "0.65622234", "0.6333947", "0.627988", "0.6234155", "0.6228958", "0.62228715", "0.61808735", "0.617283", "0.6164297", "0.6133342", "0.61039764", "0.6091694", "0.6082682", "0.6078785", "0.60652274", "0.60346377", "0.6011026", "0.5996583", "0.59906554", "0.59517306", "0.5943109...
0.0
-1
Called by generated sub class
protected void register(String widgetClass, Invoker creator) { creators.put(widgetClass, creator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private ProcessedDyna...
[ "0.65762925", "0.6568232", "0.65438753", "0.64578533", "0.645766", "0.6425571", "0.6348814", "0.62868077", "0.6267674", "0.6257034", "0.62552893", "0.6230297", "0.62194824", "0.62194824", "0.620607", "0.6191075", "0.61882555", "0.61882555", "0.617091", "0.61631", "0.61592597"...
0.0
-1
/======================================== Constructors ======================================== Construct a customized recommender model with the given data.
public CustomRecommender(int uc, int ic, double max, double min) { /* ===================== * COMMENT FOR AUTHORS * ===================== * Please make sure that all your custom member variables * are correctly initialized in this stage. * If you added new variables in "Common Variables" section above...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Recommender buildRecommender(DataModel dataModel) \n\t throws TasteException {\n\t \tUserSimilarity userSim=new PearsonCorrelationSimilarity(dataModel);\n\t \tUserNeighborhood nbh = new NearestNUserNeighborhood(10, userSim, dataModel);\n\t \t\t\treturn new Generi...
[ "0.73647815", "0.72415006", "0.687413", "0.64726406", "0.6341262", "0.60112154", "0.5673699", "0.56089205", "0.55726266", "0.5437203", "0.5421927", "0.5407787", "0.5398718", "0.5370841", "0.53501797", "0.5349512", "0.5348809", "0.5333561", "0.5267912", "0.5238461", "0.5225192...
0.6014307
5
/======================================== Model Builder ======================================== Build a model with the given data and algorithm.
public void buildModel(SparseMatrix rm) { rateMatrix = rm; /* ===================== * COMMENT FOR AUTHORS * ===================== * Using the training data in "rm", you are supposed to write codes to learn your model here. * If your method is memory-based one, you may leave the model as rateMatrix i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void build(ClassifierData<U> inputData);", "DataGenModel()\n {\n }", "DataModel createDataModel();", "public void buildModel() {\n }", "Build_Model() {\n\n }", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model...
[ "0.6594065", "0.6348369", "0.6248028", "0.61992896", "0.61216426", "0.60210377", "0.59218925", "0.58133876", "0.5771144", "0.57311064", "0.5647922", "0.5595435", "0.55729085", "0.5555742", "0.553497", "0.553497", "0.553497", "0.553497", "0.553497", "0.553497", "0.553497", "...
0.55255437
21
/======================================== Prediction ======================================== Evaluate the designated algorithm with the given test data.
public EvaluationMetrics evaluate(SparseMatrix testMatrix) { SparseMatrix predicted = new SparseMatrix(userCount+1, itemCount+1); for (int u = 1; u <= userCount; u++) { int[] testItems = testMatrix.getRowRef(u).indexList(); if (testItems != null) { SparseVector predictedForUser = new SparseVector(item...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int predict(double[] testingData);", "public void evaluate(String sampleFile, String featureDefFile, int nFold, float tvs, String modelDir, String modelFile) {\n/* 854 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 855 */ List<List<RankList>> validationData = new ArrayLis...
[ "0.74771196", "0.7038689", "0.6959411", "0.6948934", "0.6843137", "0.67486155", "0.6691618", "0.6681547", "0.6610312", "0.64823276", "0.6433801", "0.6388129", "0.63324136", "0.6312765", "0.6251026", "0.62247676", "0.6184394", "0.6181158", "0.6166545", "0.61627805", "0.6128133...
0.5653073
89
Creation of the savedState and loading of XML
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // Assigning of the images inside the XML arm = (ImageView) findViewById(R.id.armsImg); ear = (ImageView) findViewById(R.id.earsImg); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }", "@Override\r\n protected XMLSave createXMLSave() {\r\n prepareSave...
[ "0.7214627", "0.64567494", "0.6385921", "0.6278955", "0.6077513", "0.60729665", "0.60708165", "0.6029285", "0.60173815", "0.6013792", "0.5985862", "0.5983309", "0.59466076", "0.59393597", "0.58424354", "0.5836029", "0.577223", "0.5765557", "0.5765164", "0.574713", "0.5701031"...
0.0
-1
Create outState that holds the HashMap after changing to a new orientation
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putSerializable("hm", (Serializable) hm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onSaveInstanceState(Bundle outState) {\n if (mMap != null) {\n outState.putParcelable(KEY_CAMERA_POSITION, mMap.getCameraPosition());\n outState.putParcelable(KEY_LOCATION, currentLocation);\n String KEY_TAB_INDEX = \"tab_index\";\n o...
[ "0.6406531", "0.6233034", "0.6228899", "0.6058819", "0.59632283", "0.5920703", "0.5920703", "0.5920703", "0.591787", "0.59059095", "0.59014964", "0.5861135", "0.58270013", "0.5744083", "0.5682073", "0.5667482", "0.56573415", "0.5628438", "0.5613629", "0.5600917", "0.5590653",...
0.62330115
2
Function to check if checkboxes are clicked and change the Img accordingly
public void onCheckboxClicked(View view) { // Check if the checkbox is checked boolean checked = ((CheckBox) view).isChecked(); // Case for every possible checkbox switch(view.getId()) { case R.id.arms: // If checked makes ImgView visible and puts item in Ha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.green_jersey:\n if (checked){\n mJerseyImageView.setImageResource(R.drawable.g...
[ "0.74533504", "0.7381062", "0.6347855", "0.62978333", "0.62930894", "0.6288196", "0.6274842", "0.6240183", "0.6222663", "0.61450887", "0.61126935", "0.6110491", "0.61029816", "0.581781", "0.58037955", "0.5783825", "0.57676965", "0.5736549", "0.5727028", "0.57090557", "0.56895...
0.6509661
2
Constructs a new object with given JDBC template.
public DressDaoJdbc(NamedParameterJdbcTemplate jdbcTemplate) { this.jdbcTemplate = jdbcTemplate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "public void setTemplate(JdbcTemplate template) {\n\t\tthis.template = template;\n\t}", "public T create(T object) throws SQLException;", "@Autowired\n public ConsoleDaoJdbcTemplateImpl(JdbcTemplate jdbc...
[ "0.64434075", "0.6027336", "0.5864106", "0.58422285", "0.58190686", "0.58190686", "0.58190686", "0.57467586", "0.5689277", "0.5653322", "0.55705166", "0.5490102", "0.5489728", "0.54782027", "0.54664904", "0.54319406", "0.5400676", "0.5378978", "0.5374004", "0.5349321", "0.534...
0.636273
1
Finds dress by ID.
@Override public Optional<Dress> findById(Integer dressId) { LOGGER.debug("Find dress by ID {}", dressId); SqlParameterSource namedParameters = new MapSqlParameterSource(DRESS_ID, dressId); List<Dress> dresses = jdbcTemplate .query(findByIdSql, namedParameters...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Doctor findById(int id);", "public static Adage find(int id) {\n\tAdage adage = null;\n\tfor (Adage a : adages) {\n\t if (a.getId() == id) {\n\t\tadage = a;\n\t\tbreak;\n\t }\n\t}\t\n\treturn adage;\n }", "@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}", "private static Person findPer...
[ "0.6720157", "0.66951895", "0.6638803", "0.6633083", "0.6624849", "0.65506387", "0.641194", "0.63865155", "0.6302173", "0.62637615", "0.6256245", "0.6207953", "0.6180502", "0.6148253", "0.6147843", "0.6132764", "0.611633", "0.61106867", "0.6027068", "0.5985859", "0.5984699", ...
0.7168877
0
Saves the dress to a data source.
@Override public Integer create(Dress dress) { LOGGER.debug("Create new dress {}", dress); if (isNameAlreadyExist(dress)) { throw new IllegalArgumentException( "Dress with the same name is already exists in DB."); } SqlParameterSource namedParameters ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveData() {\n\t\tdataSaver.save(data);\n\t}", "private void saveData() {\n }", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "public void save() {\t\n\t\n\t\n\t}", "@Override\n\tpublic void saveDataSource() {\n\t\tsaveServerOffline();\n\t}", "public void saveData()...
[ "0.6063408", "0.60104245", "0.5813506", "0.580833", "0.5704215", "0.5689312", "0.5676244", "0.5676244", "0.5676244", "0.56188685", "0.5588433", "0.5585552", "0.5545281", "0.5538718", "0.55252075", "0.54971886", "0.54971886", "0.54971886", "0.54971886", "0.54970264", "0.546228...
0.0
-1
Updates an existing dress with a new object.
@Override public Integer update(Dress dress) { LOGGER.debug("Update dress {}", dress); if (isNameAlreadyExist(dress)) { throw new IllegalArgumentException( "Dress with the same name is already exists in DB."); } Map<String, Object> namedParameters = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Adress updateAdress(Adress adress) {\n\t\treturn em.merge(adress);\r\n\t}", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "D update(D dto);", "public Address update(Address entity);", "void update(Seller obj);", "void update(Seller obj);", "@Override\r\n\tpublic void up...
[ "0.62566805", "0.59963673", "0.5963297", "0.5909789", "0.5848197", "0.5848197", "0.58384424", "0.5822151", "0.57395136", "0.57021195", "0.565042", "0.5641122", "0.5614609", "0.5590357", "0.55751204", "0.55592394", "0.55409837", "0.55023324", "0.54856277", "0.54688656", "0.544...
0.660019
0
Deletes dress from data source.
@Override public Integer delete(Integer dressId) { LOGGER.debug("Delete dress with id = {}", dressId); if (isDressHasRents(dressId)) { throw new UnsupportedOperationException( "This dress has orders and cannot be removed."); } SqlParameterSource named...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delData();", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "@Override\r\n\tpublic boolean delSource(int res...
[ "0.6539361", "0.6259312", "0.61989784", "0.61217004", "0.60785776", "0.6075391", "0.60602194", "0.6048967", "0.5987209", "0.5969715", "0.58158684", "0.5795331", "0.5794519", "0.5789591", "0.57691664", "0.57629937", "0.57522607", "0.5750595", "0.5718705", "0.56921405", "0.5692...
0.61379033
3
Checks if the name of the dress is already exist.
@SuppressWarnings("ConstantConditions") @Override public Boolean isNameAlreadyExist(Dress dress) { LOGGER.debug("is name exists - {}", dress); MapSqlParameterSource parameterSource = new MapSqlParameterSource(); if (dress.getDressId() == null) { parameterSource.addValue(DRESS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isExist(String name) {\n\t\treturn false;\n\t}", "private void ensureNameExists(String name) throws BadFileException {\n\t\tif (name.equals(\"OuterWalls\") || boardItemMap.containsKey(name)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthrow new BadFileException(name + \" name does not exist ye...
[ "0.691964", "0.64166975", "0.63755417", "0.6325582", "0.6276639", "0.62439364", "0.61373645", "0.61316764", "0.61255187", "0.60420495", "0.60405946", "0.60381776", "0.6022024", "0.60172707", "0.60172707", "0.60172707", "0.60172707", "0.60172707", "0.60172707", "0.60172707", "...
0.7764639
0
Checks if the dress with a given ID has orders.
@SuppressWarnings("ConstantConditions") @Override public Boolean isDressHasRents(Integer dressId) { LOGGER.debug("is dress id={} has rents", dressId); return jdbcTemplate.queryForObject(dressOrdersSql, new MapSqlParameterSource(DRESS_ID, dressId), Integer.class) >...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean checkOrderNotAcceptedYet(int idOrder);", "public boolean isExists(String orderId);", "boolean hasOrderId();", "boolean hasOrderId();", "public boolean isRunningOrderExist(int iID){\n\t\treturn hmRunningOrder.containsKey(iID);\n\t}", "public boolean isExecutedOrderExist(int iID){\n\t\treturn hmExe...
[ "0.71365064", "0.69322294", "0.64809114", "0.64809114", "0.6371883", "0.63213617", "0.63198686", "0.61036986", "0.6038921", "0.6034458", "0.6023731", "0.5940864", "0.58500993", "0.5810251", "0.57568944", "0.5743764", "0.57293606", "0.57041353", "0.57003975", "0.5635387", "0.5...
0.62758034
7
Use Jama package to invert matrix.
public Driver(){ this.D = Parameters.numberOfDocuments; this.K = Parameters.numberOfTopics; this.V = Parameters.sizeOfVocabulary; this.oldAlpha = new double[this.K]; this.newAlpha = new double[this.K]; this.hessian = new double[this.K][this.K]; this.gradient = new double[this.K]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JamMatrix invert() {\n RealMatrix apacheUT = decomposition.getUT();\n RealMatrix apacheV = decomposition.getV();\n RealMatrix apacheDinv = getApacheDinv();\n\n return JamMatrix.wrap(apacheV.multiply(apacheDinv.multiply(apacheUT)).getData());\n }", "public static Matrix ...
[ "0.7058909", "0.69921196", "0.68320936", "0.657796", "0.6572723", "0.6470449", "0.6337791", "0.624794", "0.6168735", "0.6167877", "0.6145299", "0.6124837", "0.60772425", "0.60662717", "0.6063777", "0.59709835", "0.59510005", "0.5935766", "0.5919535", "0.5868522", "0.58615845"...
0.0
-1
The convergence test takes the biggest difference between the old and the new vector and return true if that difference is below some threshold or if the number of iterations exeeded the maximum number allowed
public void setNewAlpha(){ retrieveAlpha(); retrieveReducerOutput(); double[] alphaVectorUpdate = new double[K]; double[] alphaGradientVector = new double[K]; double[] alphaHessianVector = new double[K]; double[] alphaVector = oldAlpha.clone(); double[] alphaSufficientStatistics = rDelta; int alph...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean convergenceTest(int iteration) throws IOException {\n\t\tfs = FileSystem.get(conf);\n\t\tPath data = new Path(dataPath + (iteration - 1) + \".seq\");\n\n\t\tSequenceFile.Reader reader = new SequenceFile.Reader(fs, path, conf);\n\t\tIntWritable key = new IntWritable();\n\t\tDoubleWritable value = new...
[ "0.62177205", "0.60853755", "0.593133", "0.57881224", "0.57327175", "0.5666033", "0.565645", "0.5588042", "0.5574351", "0.5487377", "0.5481054", "0.54545", "0.54318696", "0.5420688", "0.5419151", "0.5394058", "0.536709", "0.5355524", "0.5333948", "0.52728844", "0.52463377", ...
0.0
-1
TODO Here we need to write the result of the previous computation to the alpha file.
public void writeNewAlpha(){ FileSystemHandler.writeVector(Parameters.pathToAlphas, this.newAlpha); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNewAlpha(){\n\n\t\tretrieveAlpha();\n\t\tretrieveReducerOutput();\n\t\t\n\t\tdouble[] alphaVectorUpdate = new double[K];\n\t\tdouble[] alphaGradientVector = new double[K];\n\t\tdouble[] alphaHessianVector = new double[K];\n\n\t\tdouble[] alphaVector = oldAlpha.clone();\n\t\tdouble[] alphaSufficientS...
[ "0.64113957", "0.58586806", "0.57869166", "0.5635263", "0.5448267", "0.5428702", "0.5372357", "0.53663707", "0.5326905", "0.52655154", "0.5233504", "0.51248795", "0.51202327", "0.5110529", "0.51069945", "0.51063514", "0.51023054", "0.5091691", "0.50841767", "0.5082497", "0.50...
0.6496023
0
Created by songqiaolin on 2017/5/28.
public interface StudyStarScoreService { StudyStarScoreDo getStarScore(Long lessonId, Integer type); void setStarScore(Long lessonId, Integer type, Integer score); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final voi...
[ "0.6175086", "0.6083951", "0.5852385", "0.5811765", "0.5811765", "0.58027554", "0.57898384", "0.5745007", "0.5740644", "0.5706344", "0.5685952", "0.56680965", "0.5657357", "0.5638348", "0.5631986", "0.5624363", "0.5622997", "0.5619107", "0.5617458", "0.5571755", "0.5569443", ...
0.0
-1
Test of readBoolean method, of class ByteArray.
@Test public void testReadWriteBoolean() { System.out.println("readBoolean"); ByteArray instance = new ByteArray(); instance.writeBoolean(true, 0); instance.writeBoolean(false, 1); instance.writeBoolean(true, instance.compacity()); assertEquals(true,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean readBoolean() throws IOException {\n\t\treturn ( (_buff.get() & 0xFF) != 0 );\n\t}", "String byteOrBooleanRead();", "boolean readBoolean();", "public abstract boolean read_boolean();", "abstract protected boolean read();", "public byte[] readRawBool() throws IOException {\...
[ "0.77869034", "0.7525603", "0.75208384", "0.74391276", "0.72857124", "0.7118813", "0.6906351", "0.69012046", "0.6844053", "0.682264", "0.6804094", "0.6690298", "0.6641258", "0.6534401", "0.6516068", "0.6498863", "0.64810115", "0.64265424", "0.6396606", "0.6364722", "0.6295121...
0.78840196
0
Test of readShort method, of class ByteArray.
@Test public void testReadWriteShort() { System.out.println("readShort"); ByteArray instance = new ByteArray(); instance.writeShort((short) 12, 0); instance.writeShort((short) 15, 2); instance.writeShort((short) 13, instance.compacity()); assertEqual...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "short readShort() throws IOException;", "abstract int readShort(int start);", "short readShort();", "public short readShort() throws IOException;", "public abstract short read_short();", "private int getShort() {\n shortBuffer.rewind();\n archive.read(shortBuffer);\n ...
[ "0.78828895", "0.7779585", "0.76805747", "0.7659965", "0.7642507", "0.7121425", "0.7105496", "0.70617", "0.7001037", "0.699436", "0.6940048", "0.6906571", "0.68627596", "0.6848715", "0.6794594", "0.66991585", "0.6665139", "0.6554044", "0.65160215", "0.64888084", "0.64775634",...
0.80293584
0
Test of readInt method, of class ByteArray.
@Test public void testReadWriteInt() { System.out.println("readInt"); ByteArray instance = new ByteArray(); instance.writeInt(12, 0); instance.writeInt(1234, 4); instance.writeInt(13, instance.compacity()); assertEquals(12, instance.readInt(0)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int readInt();", "public int readInt() throws IOException;", "int readInt() throws IOException;", "public void testToInt(){\t\t\r\n\t\tassertEquals(fIntToTest, ByteUtil.byteArrayToInt(fIntToTestByteArray));\r\n\t}", "abstract int readInt(int start);", "int readInt();", "private static int readIn...
[ "0.75508744", "0.7506736", "0.7473555", "0.7360468", "0.73205227", "0.72769195", "0.71859086", "0.67575693", "0.66572624", "0.6574897", "0.6501611", "0.6494305", "0.6483901", "0.6439552", "0.63578975", "0.633947", "0.6315079", "0.6179011", "0.6176423", "0.6172848", "0.6157396...
0.7506063
2
Test of readLong method, of class ByteArray.
@Test public void testReadWriteLong() { System.out.println("readLong"); ByteArray instance = new ByteArray(); instance.writeLong(12, 0); instance.writeLong(12345678, 8); instance.writeLong(13, instance.compacity()); assertEquals(12, instance.readLong...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long readLong() throws IOException;", "public long readLong() throws IOException;", "public abstract int read_long();", "long readLong();", "private synchronized long readLong(int len) throws IOException {\n\t\tread(bytes, len);\n\t\treturn readLong(bytes, 0, len);\n\t}", "public abstract long ...
[ "0.7754086", "0.7552178", "0.7509418", "0.74263453", "0.7249162", "0.7098889", "0.69285816", "0.6925501", "0.6880697", "0.6818726", "0.67910856", "0.67692494", "0.67093015", "0.6643347", "0.6641937", "0.66151553", "0.66042966", "0.6550096", "0.65366", "0.65217805", "0.6516471...
0.7840849
0
Test of insert method, of class ByteArray.
@Test public void testInsert() { System.out.println("insert"); ByteArray instance = new ByteArray(); instance.writeInt(12, 0); instance.writeInt(15, 4); instance.writeInt(13, instance.compacity()); instance.insert("hello".getBytes(), 4); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testInsertSome() {\n System.out.println(\"insertSome\");\n ByteArray instance = new ByteArray();\n \n instance.writeInt(12, 0);\n instance.writeInt(15, 4);\n instance.writeInt(13, instance.compacity());\n \n instance.insertSome(\"hello\...
[ "0.8190232", "0.7174425", "0.62313914", "0.62291163", "0.6174947", "0.6133715", "0.6120054", "0.6084757", "0.60832214", "0.6074259", "0.5988667", "0.5985159", "0.5977033", "0.595825", "0.5945167", "0.5945167", "0.59201974", "0.59150034", "0.59125304", "0.58974266", "0.5869827...
0.8567876
0