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
return minimum value in array
public static double getMin(double[] array) { double min = Double.POSITIVE_INFINITY; for (int i = 0; i < array.length; i++) if (min > array[i]) min = array[i]; return min; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }...
[ "0.8258345", "0.8235842", "0.8206324", "0.81420803", "0.8139456", "0.8030514", "0.8023208", "0.8000933", "0.7977515", "0.79550433", "0.79449433", "0.79378635", "0.7874683", "0.780895", "0.77605677", "0.7745962", "0.773721", "0.7696803", "0.7643702", "0.7601886", "0.75965637",...
0.79994476
8
return index of maximum value in array
public static int getMinIndex(double[] array) { double min = Double.POSITIVE_INFINITY; int minIndex = 0; for (int i = 0; i < array.length; i++) if (min > array[i]) { min = array[i]; minIndex = i; } return minIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getIndexOfMax(double[] array){\n\n int largest = 0;\n for ( int i = 1; i < array.length; i++ )\n {\n if ( array[i] > array[largest] ) largest = i;\n }\n return largest;\n\n }", "private int maxIndex(int[] values){\n int curMaxIndex = 0;\n ...
[ "0.8491328", "0.8191792", "0.81650126", "0.8074583", "0.7982504", "0.7862536", "0.785015", "0.7734283", "0.7668454", "0.76619464", "0.76464134", "0.7639457", "0.7633786", "0.7618259", "0.75976264", "0.7591709", "0.75806844", "0.75755584", "0.7567648", "0.75409913", "0.7525043...
0.0
-1
TODO I don't know correctly mean normalization
public static void normalization(double[] array) { double sum = Σ(array); if (sum == 0 || array.length == 0) return; for (int i = 0; i < array.length; i++) array[i] = array[i] / sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void normalize() {\n // YOUR CODE HERE\n String w1, w2;\n for (int i = 0; i < row; i++) {\n w1 = NDTokens.get(i);\n for (int j = 0; j < column; j++) {\n w2 = NDTokens.get(j);\n if(smooth) {\n bi_grams_normalized[NDTo...
[ "0.68159056", "0.6622086", "0.65804726", "0.65162367", "0.6391303", "0.63813645", "0.6349556", "0.6332682", "0.6262885", "0.62061256", "0.6187069", "0.61762047", "0.61583906", "0.6132098", "0.6118648", "0.6102996", "0.6083297", "0.60616475", "0.60416585", "0.60342383", "0.603...
0.5859815
46
returns String that contains all data in array. it is likely toString() method
public static String toString(double[] array) { String str = "[ "; for (int i = 0; i < array.length; i++) str += String.valueOf(array[i]) + " "; return str + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn Arrays.toString(data);\n\t}", "@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n...
[ "0.8657636", "0.85958254", "0.85550153", "0.85541713", "0.8466541", "0.84621257", "0.84189713", "0.8348402", "0.8292712", "0.82229847", "0.81696725", "0.8148786", "0.81439054", "0.8080732", "0.8037397", "0.80146796", "0.7997889", "0.7943237", "0.7920312", "0.78717774", "0.786...
0.7010501
79
returns String that contains all data in array. it is likely toString() method
public static String toString(boolean[] array) { String str = "[ "; for (int i = 0; i < array.length; i++) if (array[i]) str += "1" + ""; else str += "0" + ""; return str + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn Arrays.toString(data);\n\t}", "@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n...
[ "0.8657636", "0.85958254", "0.85550153", "0.85541713", "0.8466541", "0.84621257", "0.84189713", "0.8348402", "0.8292712", "0.82229847", "0.81696725", "0.8148786", "0.81439054", "0.8080732", "0.8037397", "0.80146796", "0.7997889", "0.7943237", "0.7920312", "0.78717774", "0.786...
0.0
-1
returns String that contains all data in array. it is likely toString() method
public static String toString(String format, int[] array) { String str = "[ "; for (int i = 0; i < array.length; i++) str += String.format(format, array[i]) + " "; return str + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn Arrays.toString(data);\n\t}", "@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n...
[ "0.8658066", "0.85963506", "0.8556182", "0.8554783", "0.84678346", "0.84634256", "0.84197086", "0.83498305", "0.82933545", "0.8223137", "0.8171434", "0.8150009", "0.8144831", "0.80820537", "0.80373776", "0.80150104", "0.79986745", "0.79443073", "0.7921216", "0.7871728", "0.78...
0.0
-1
returns String that contains all data in array. it is likely toString() method
public static String toString(String format, double[] array) { String str = "[ "; for (int i = 0; i < array.length; i++) str += String.format(format, array[i]) + " "; return str + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn Arrays.toString(data);\n\t}", "@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n...
[ "0.86575735", "0.85960174", "0.85548025", "0.8554292", "0.8466717", "0.846176", "0.84193736", "0.8348719", "0.8292632", "0.8223549", "0.8169842", "0.8148907", "0.81441617", "0.8081132", "0.80377865", "0.8014697", "0.7997775", "0.79433995", "0.79208976", "0.7871564", "0.787018...
0.0
-1
Instantiates a new NAT action.
public NATAction(NATActionType NATAction, ConditionClause transformation) { super(transformation); this.NATAction = NATAction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Action createAction();", "Action createAction();", "Action createAction();", "public NewTunnelAction() {\r\n putValue(Action.NAME, \"New Tunnel\");\r\n putValue(Action.SMALL_ICON,\r\n new ResourceIcon(ActiveTunnelsSessionPanel.class,\r\n \"add.png\"));\r...
[ "0.63177425", "0.63177425", "0.63177425", "0.58976436", "0.5822141", "0.5814938", "0.56787014", "0.5638126", "0.5601499", "0.5599835", "0.553146", "0.5431116", "0.54291254", "0.54243314", "0.5400414", "0.5379669", "0.5371934", "0.5370237", "0.5347013", "0.5315661", "0.5280160...
0.6666064
0
Gets the NAT action.
public NATActionType getNATAction() { return NATAction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAction() {\n return action_;\n }", "public int getAction() {\n return action_;\n }", "public int getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action.get();\n\t}", "public int getAction() {\n return action;\n }", "public int ...
[ "0.690549", "0.6871654", "0.68621325", "0.68244815", "0.6706785", "0.6630043", "0.66139144", "0.66139144", "0.66139144", "0.66139144", "0.65683067", "0.65583926", "0.6528136", "0.6520208", "0.6519468", "0.64938074", "0.6470046", "0.6470046", "0.6470046", "0.64437044", "0.6405...
0.814044
0
Make sure that all static fields in C are part of C:Static
@RegionEffects("writes Static") // GOOD public void m1() { s1 = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testStaticFieldWithInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGenerat...
[ "0.63175166", "0.62108", "0.6017835", "0.5915442", "0.59148335", "0.58090216", "0.5782157", "0.57552767", "0.57464784", "0.57293147", "0.57293147", "0.5674407", "0.56692076", "0.5653387", "0.562963", "0.5591695", "0.5582432", "0.55667883", "0.5551421", "0.5549009", "0.5536644...
0.0
-1
Make sure that the static fields in C are not part of D:Static
@RegionEffects("writes test.D:Static") // BAD public void n1() { s1 = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testStaticFieldWithoutInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldNotInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacG...
[ "0.64215857", "0.6350171", "0.59694403", "0.5725606", "0.5698798", "0.5639603", "0.56357664", "0.55965304", "0.55771106", "0.5473401", "0.54393446", "0.5406546", "0.5404313", "0.540406", "0.53945357", "0.53732806", "0.53724116", "0.5348061", "0.53362435", "0.53318", "0.531574...
0.49239135
42
Make sure the fields of D are in D:Static
@RegionEffects("writes test.D:Static") public void x1() { s1 = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testReflectionStatics() {\n final ReflectionStaticFieldsFixture instance1 = new ReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n ...
[ "0.6134743", "0.60317594", "0.6014775", "0.5970687", "0.5882501", "0.57400393", "0.5728333", "0.57106125", "0.570965", "0.5688522", "0.55962634", "0.5583838", "0.55732536", "0.5570563", "0.55691946", "0.55630594", "0.55496335", "0.55018073", "0.5483812", "0.5454986", "0.54549...
0.0
-1
Make sure the fields of D are not in C:Static
@RegionEffects("writes test.C:Static") public void y1() { s1 = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "@Test\n public void testStaticFieldWithoutInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldNotInitialized.class;\n String proguardConfiguration = keepMainProguardCo...
[ "0.5916976", "0.5697873", "0.5628342", "0.5606052", "0.5582293", "0.5523345", "0.55097747", "0.54582584", "0.5404184", "0.536687", "0.5341763", "0.534146", "0.5327587", "0.5245353", "0.5243782", "0.52356946", "0.52303714", "0.52152884", "0.5201579", "0.51958007", "0.5193507",...
0.0
-1
oubtou_log : no ressources
@Override public void accept(String error) { Toast.makeText(EtudiantSemestreActivity.this, error, Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logika_rozpocznij(){\n\t}", "public void viewLogs() {\n\t}", "protected GerentePoolLog(Class ownerClass)\n {\n\t\tArquivoConfiguracaoGPP arqConf = ArquivoConfiguracaoGPP.getInstance();\n\t\t//Define o nome e a porta do servidor q serao utilizados no LOG\n\t\thostName = arqConf.getEnderecoOrbGPP...
[ "0.60967153", "0.5841219", "0.5550501", "0.5544586", "0.5538768", "0.5534319", "0.5528033", "0.5514828", "0.5503656", "0.5475037", "0.54703677", "0.544071", "0.54338604", "0.54237777", "0.5376723", "0.5315539", "0.5311691", "0.52852064", "0.5271382", "0.5252164", "0.522568", ...
0.0
-1
semestres = SemestreController.getSemestres(); / oubtou_log : onclick you need to send module id to next avtivity !!!
public void load_grid(){ RecyclerView moduleRecycler = (RecyclerView) findViewById(R.id.semestre_recycler); EtudiantSemestreRecycler adapter = new EtudiantSemestreRecycler(this, semestres); moduleRecycler.setAdapter(adapter); LinearLayoutManager manager = new LinearLayoutManager(this); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override//metodo de la interfaz ListenerSimsRefe del fragmento FragmentSimcardAutoVenta\n public void onFragmentSimsRefe(ReferenciasSims objRefSims) {\n Intent intent = new Intent(this,ActSeleccionarSimsPaquete.class);\n intent.putExtra(\"ID_REFERENCIA\",objRefSims);\n intent.putExtra(\"va...
[ "0.6257018", "0.5972999", "0.59319156", "0.59298086", "0.59237957", "0.5889679", "0.5860201", "0.58510685", "0.58301854", "0.5808693", "0.5795376", "0.5759444", "0.5747385", "0.57385737", "0.57084054", "0.57055336", "0.5674989", "0.56688666", "0.5613468", "0.56032944", "0.559...
0.0
-1
init service and load data
private void setup() { adapter = new HomeAdapter(this); linearLayoutManager = new LinearLayoutManager (this, LinearLayoutManager.VERTICAL, false); rv.setLayoutManager(linearLayoutManager); rv.setItemAnimator(new DefaultItemAnimator()); rv.setAdapter(adapter); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initService() {\r\n\t}", "private void initData() {\n requestServerToGetInformation();\n }", "public void initialize() throws Exception{\r\n\t\tfor (Constraint c:constraints){\r\n\t\t\tconstraintMap.put(c.getModel(), c);\r\n\t\t}\r\n\t\tservices.add(this);\r\n\t\t//System.out.println(\"c...
[ "0.78009725", "0.7063892", "0.6990304", "0.6955011", "0.683795", "0.68292385", "0.67968035", "0.6796462", "0.67887825", "0.6788751", "0.6730421", "0.6727341", "0.67131656", "0.67114645", "0.6710747", "0.6710747", "0.668454", "0.6678801", "0.665941", "0.66239685", "0.66234165"...
0.0
-1
No argument Constructor for objects of class Score. This is required for serialization.
public Score() { // initialize instance variables score = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Score() {\n this.date = new Date();\n this.name = null;\n this.score = 0;\n }", "public MatcherScores()\n {\n // do nothing\n }", "public Scores(int score) {\r\n this.score = score;\r\n }", "public Scoreboard() {\n\t}", "public ScoreFixer ()\r\n {\r\n }",...
[ "0.7577859", "0.72126323", "0.7185854", "0.7052847", "0.6954837", "0.68995756", "0.68959546", "0.68624306", "0.6814676", "0.6787634", "0.67440885", "0.6619511", "0.65831745", "0.65643436", "0.6525256", "0.65061873", "0.6479655", "0.64781743", "0.6462518", "0.64239794", "0.638...
0.7354439
1
getScore returns an integer value
public int getScore() { return score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getScore();", "int getScoreValue();", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public static int getScore()\n {\n return score;\n }", "public static int getScore()\n\t{\n\t\tr...
[ "0.88947815", "0.8886073", "0.87683564", "0.87683564", "0.87683564", "0.87683564", "0.8680861", "0.8654827", "0.863934", "0.85593146", "0.85593146", "0.85445374", "0.8518911", "0.85182446", "0.8486464", "0.8486464", "0.8475272", "0.8475272", "0.84473157", "0.8421312", "0.8421...
0.8315788
38
setScore sets the score to a given integer value
public void setScore(int score) { this.score = score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setScore(java.lang.Integer value);", "void setScoreValue(int scoreValue);", "void setScore(long score);", "public void setScore(int score) { this.score = score; }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n this....
[ "0.8842454", "0.87169653", "0.86743337", "0.8612619", "0.8554428", "0.8554428", "0.85225296", "0.8520987", "0.85033244", "0.8494603", "0.8494603", "0.8494603", "0.8494603", "0.84746474", "0.8443286", "0.841954", "0.8409154", "0.8390403", "0.8330504", "0.83105177", "0.82810414...
0.8579839
4
addToScore adds (or subtracts when given a negative value) the given value to the score
public void addToScore(int score) { this.score += score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addScore(int score);", "public void addScore(int score) {\n currentScore += score;\n }", "public void add_to_score(int num){\n score+=num;\n }", "public void addScore(int s) {\n setScore(getScore() + s);\n }", "public void addScore()\n {\n score += 1;\n }", "pu...
[ "0.8095613", "0.79209065", "0.75478476", "0.7407047", "0.7405549", "0.7234114", "0.7224339", "0.72027564", "0.7201731", "0.71950036", "0.7185641", "0.7182813", "0.71809596", "0.7175703", "0.7172104", "0.71312976", "0.71208405", "0.7113403", "0.7101788", "0.70595354", "0.70512...
0.81439567
0
This is the clone method for Score. It is meant to be overridden where needed by subclass methods.
@Override public Score clone() { try { return (Score)super.clone(); } catch(CloneNotSupportedException e) { throw new InternalError(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object clone() {\n return super.clone();\n }", "public Clone() {}", "public abstract Pessoa clone();", "public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }", "public abstract Object clone()...
[ "0.7190772", "0.7104908", "0.7057893", "0.6942433", "0.69378376", "0.69372576", "0.6936437", "0.6878573", "0.68687254", "0.68602765", "0.68575966", "0.68421906", "0.6836751", "0.6835406", "0.68328124", "0.68278706", "0.68259126", "0.6825228", "0.68164676", "0.6801638", "0.674...
0.8995507
0
A toString method for Score that returns a string describing the score
public String toString() { return ("Score: " + score); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String toString() {\n\t\treturn \"{\"+this.getType()+this.label+\",\"+Util.formatNum(this.score)+\"}\";\r\n\t}", "@Override\n\tpublic String toString() { \n\t\treturn name + \" \" + score;\n\t}", "@Override\n public String toString(){\n return (this.name + \" \" + this.score...
[ "0.83586645", "0.82148206", "0.8091576", "0.78728485", "0.7826518", "0.77063876", "0.7632612", "0.75909775", "0.7527683", "0.74958926", "0.74663323", "0.74583215", "0.73444086", "0.731954", "0.7273502", "0.72525805", "0.72285527", "0.7027345", "0.69832426", "0.6980628", "0.69...
0.8743333
0
A basic equals method for Score that compares score values.
public boolean equals(Object obj) { if(this == obj) { return true; //The same object } if(!(obj instanceof Score)) { return false; //Not of the same type } Score other = (Score)obj; //Compare the score of the Score object to the score of the other Score ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean equals(Object other) {\n\t\tif (!(other instanceof HighScore)) {\n\t\t\treturn false;\n\t\t}\n\t\tHighScore h = (HighScore) other;\n\t\tif (h.score == this.score) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n void equals1() {\n Student s1=new Student(\"emin...
[ "0.73039144", "0.65760255", "0.6557657", "0.6351262", "0.633652", "0.6329355", "0.62895316", "0.62895316", "0.62584025", "0.62549645", "0.6216471", "0.62047696", "0.6199613", "0.61864555", "0.6173251", "0.61504036", "0.6147578", "0.61053544", "0.6094705", "0.60903937", "0.609...
0.7122106
1
A basic hashCode method for Score, for the score field that is compared in the equals method.
public int hashCode() { int result = 17; result = 37 * result + score; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getScoreTotalDataId() == null) ? 0 : getScoreTotalDataId().hashCode());\n result = prime * result + ((getTotalScoreResultId() == null) ? 0 : getTotalScoreResultId().hashCode())...
[ "0.74935704", "0.7294779", "0.7172339", "0.7172339", "0.7172339", "0.7172339", "0.7160463", "0.712969", "0.712969", "0.712969", "0.7113435", "0.7102967", "0.7089101", "0.7082023", "0.70738965", "0.70738965", "0.706231", "0.70010793", "0.6986716", "0.69491917", "0.6911758", ...
0.8026367
0
Atividade1 exercicio = new Atividade1(); exercicio.desafio1(); Atividade2 exercicio = new Atividade2(); exercicio.desafio2(); Atividade3 exercicio = new Atividade3(); exercicio.desafio3();
public static void main(String[] args) { Atividade4 exercicio = new Atividade4(); exercicio.desafio4(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n aluno exemplo1 = new aluno();//objeto do tipo aluno\n aluno exemplo2 = new aluno();\n exemplo1.nome = \"EPAMINONDAS\";\n exemplo1.matricula = \"MAT-1\";\n exemplo1.nota = 5;\n exemplo1.anoNacimento = 2005;\n\n\n exemplo2....
[ "0.6460301", "0.64520365", "0.6347844", "0.62612367", "0.6204858", "0.61673415", "0.61444485", "0.6091321", "0.59432423", "0.5901249", "0.58895236", "0.58576995", "0.5827533", "0.58218133", "0.5807099", "0.5791756", "0.57463825", "0.5738842", "0.5724687", "0.5722412", "0.5699...
0.58748436
11
TODO Autogenerated method stub
public Object getProxy() { return getProxy(this.advised.getTargetClass().getClassLoader()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public Object getProxy(ClassLoader classLoader) { return Proxy.newProxyInstance(classLoader, this.advised.getTargetClass().getInterfaces(), this); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
this private instance variable holds an object of class keyboardInput
public void loadFile(String fileName) {//Retrieves name of file String line = null; try{ FileReader open = new FileReader(fileName); BufferedReader read = new BufferedReader(open); while((line = read.readLine()) != null) { String[] parts = line.split(" "); String part...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void keyboardInput();", "public GameInput() {\n keyboard = new Keyboard();\n mouse = new Mouse();\n mouseWheel = new MouseWheel();\n }", "public Keyboard getKeyboard() {\n return keyboard;\n }", "public abstract Object getInput ();", "public Player(Keyboard...
[ "0.73652285", "0.7185551", "0.6972753", "0.6787836", "0.67451185", "0.6736263", "0.67242396", "0.6691282", "0.66470826", "0.66253877", "0.6519842", "0.64449275", "0.64438075", "0.64145035", "0.6388001", "0.6348733", "0.6325028", "0.6313814", "0.6275774", "0.6262238", "0.62508...
0.0
-1
This instance method is the central method of our program. It sets up all we need for keyboard input later, and contains the central loop to which execution returns. It takes no parameters.
public void run() { keyboardInput = new KeyboardInput(); // we will use this object to obtain keyboard input while (true) { // endless while-loop // display the menu and get the user's choice CurrencyExchangeMenu menu = new CurrencyExchangeMenu(); // ...using the int menuChoice = menu.getChoice(k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mainLoop()\n {\n try\n {\n while (true)\n {\n System.out.print( \"\\r\\nJicos> \" );\n System.out.flush();\n\n byte[] input = new byte[1024];\n int read = -1;\n if (-1 == (read = System.in...
[ "0.71737725", "0.7074282", "0.6833713", "0.6754386", "0.6583977", "0.6566258", "0.6552709", "0.6538948", "0.6537341", "0.6510917", "0.6484569", "0.6470982", "0.643923", "0.64301884", "0.642447", "0.6403859", "0.6401658", "0.6366428", "0.63294226", "0.6316475", "0.6314073", ...
0.66107774
4
Asks user to input (string) code and tests whether code is 3 letters long. This is an instance method. Invoked by addCurrency() in CurrencyExchangeProgram. This method takes no parameters.
private String signalThreeLetters(){ System.out.print("Enter a three letter currency code (e.g., AUD, JPY, USD, EUR): "); String userInputCode = keyboardInput.getLine(); if (userInputCode.length() != 3) { System.out.println("\"" + userInputCode + "\" is not a THREE letter code. Returning to menu."); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkDigit(String code, int length) {\n int len = length - 1;\n int[] digits = new int[len];\n int digitSum = 0;\n int lastDigit;\n\n if (length == 13) {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n for (int i = 0; i < ...
[ "0.57329994", "0.55823267", "0.55532634", "0.5537916", "0.549012", "0.54746485", "0.5421977", "0.5396737", "0.5243813", "0.5187713", "0.51819086", "0.5180788", "0.5151597", "0.5151027", "0.5145972", "0.51214725", "0.5090946", "0.50733095", "0.506641", "0.50599825", "0.5059741...
0.7763627
0
This private instance method outputs a list of all currencies stored in the private instance variable currencies. The method takes no parameters.
private void listCurrencies() { // Test whether we already have currencies if (currencies == null) { // No, so complain and return System.out.println("There are currently no currencies in the system."); System.out.println("Please add at least one currency."); System.out.println(); return; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCurrencies() {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getcurrencies\");\n\t}", "List<CurrencyDTO> getCurrencies();", "@SkipValidation\n public String getAllCurrency() {\n currencyList = currencyService.getAllCurrency();\n return SUCCESS;\n }", "public List<String> r...
[ "0.7907136", "0.72539216", "0.7184228", "0.7177237", "0.6800835", "0.6676059", "0.66116256", "0.65852326", "0.59307927", "0.5920187", "0.58896273", "0.5816435", "0.5793343", "0.5697556", "0.5662829", "0.5661563", "0.565588", "0.56402636", "0.5572537", "0.55631906", "0.5542344...
0.8597004
0
This private instance method adds a currency to the private instance variable currencies. The method takes no parameters.
private void addCurrency() { String currencyCode = signalThreeLetters(); if (currencyCode == null){ return; } System.out.print("Enter the exchange rate (value of 1 " +currencyCode+ " in NZD): "); String exchangeRateStr = keyboardInput.getLine(); double exchangeRate = Do...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCurrency(String csymbol, String cname, BigDecimal crate, BigDecimal cunit) {\n CurrencyExchangeRateBean bean = new CurrencyExchangeRateBean();\n bean.setCurrencyId(csymbol);\n bean.setExchangeRate(crate);\n bean.setUnit(cunit);\n currencies.add(bean);\n }", "public void addCurrency...
[ "0.7169517", "0.7169517", "0.6682563", "0.6378934", "0.635232", "0.635232", "0.625712", "0.6124701", "0.6097335", "0.608587", "0.6072201", "0.6039362", "0.6002406", "0.59650695", "0.59305376", "0.5900615", "0.58473635", "0.5843803", "0.58151144", "0.5795265", "0.57927054", ...
0.73363084
0
Displays exchange rate of chosen currency object This is an instance method
private void showRate() { String currencyCode = signalThreeLetters(); if (currencyCode == null){ return; } //needed if-else to check if currencies is null. As currencies.getCurrencyByCode doesn't work if currencies is null if (currencies == null){ System.out.println("There...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return \"Currency: \" + name + \" - Rate: \" + rate;\n }", "public BigDecimal getExchangeRate() {\n return exchangeRate;\n }", "@SkipValidation\n public String currencyView() {\n if ((currency != null) && (currency.getHcmoCurrencyId() !=...
[ "0.7035818", "0.67331046", "0.65086424", "0.64577407", "0.64399093", "0.6407972", "0.6407019", "0.6382801", "0.63412", "0.6279151", "0.6266435", "0.62453926", "0.6233482", "0.6229092", "0.62015265", "0.61938256", "0.6189089", "0.6171701", "0.6128131", "0.61231166", "0.611356"...
0.792146
0
Displays the conversion of currency at a chosen amount This is an instance method
private void convertAmount() { System.out.println("Select the currency to convert FROM."); String currencyCodeFrom = signalThreeLetters(); if (currencyCodeFrom == null){ return; } System.out.println("Select the currency to convert TO."); String currencyCodeTo = signalThreeLetters(); if (c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SkipValidation\n public String currencyView() {\n if ((currency != null) && (currency.getHcmoCurrencyId() != null)) {\n currency = currencyService.getCurrency(currency.getHcmoCurrencyId());\n }\n return SUCCESS;\n }", "private void convert()\n {\n if (choiceBox.getVal...
[ "0.6991927", "0.6984552", "0.65963644", "0.65927553", "0.6568271", "0.6535936", "0.65208447", "0.6496852", "0.64752305", "0.6397534", "0.63716125", "0.6352744", "0.6325755", "0.6261209", "0.62424153", "0.62196034", "0.61936784", "0.61377937", "0.61183274", "0.6117916", "0.610...
0.6413816
9
Returns a list of view files whose relative path from a view directory equals the supplied relative path.
static List<PsiFile> findViewFiles(String relativePath, Project project) { PsiManager psiManager = PsiManager.getInstance(project); // If no extension is specified, it's a PHP file relativePath = PhpExtensionUtil.addIfMissing(relativePath); List<PsiFile> viewFiles = new ArrayList<>(); for (PsiFile...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List listFiles(String path);", "List<Path> getFiles();", "List<IDirectory> getSourcePath();", "public List<Path> getAllPaths();", "java.util.List<java.lang.String>\n getSourcepathList();", "public static List<String> getFiles(String path) {\n\t try {\n\t\t\tURI uri = getResource(path).toUR...
[ "0.5798651", "0.56287926", "0.56155795", "0.5397496", "0.53547263", "0.5349039", "0.531082", "0.5295767", "0.5275346", "0.5260564", "0.52495205", "0.52371335", "0.51893115", "0.51470405", "0.50896204", "0.5085489", "0.50460726", "0.50433576", "0.5014451", "0.49798182", "0.497...
0.80575246
0
There's no guarantee that this function is ever called.
@Override public void onTerminate() { super.onTerminate(); /*2012-8-3, add by bvq783 for plugin*/ if (mModel != null && mModel.getPluginHost() != null) mModel.getPluginHost().onModelDestroy(); /*2012-8-3, add end*/ unregisterReceiver(mModel); ContentResol...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public int retroceder() {\n return 0;\n }", "public final void mo51373a() {\n }", "public boolean method_4088() {\n return false;\n }", "public void method_4270...
[ "0.6598963", "0.63163215", "0.6293116", "0.6151569", "0.6126072", "0.6121868", "0.61058736", "0.60968083", "0.60677594", "0.6064049", "0.60636806", "0.6053894", "0.6047335", "0.6029823", "0.60297817", "0.6003079", "0.5971969", "0.5963108", "0.59614664", "0.59136784", "0.59046...
0.0
-1
If the database has ever changed, then we really need to force a reload of the workspace on the next load
@Override public void onChange(boolean selfChange) { mModel.resetLoadedState(false, true); mModel.startLoaderFromBackground(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext());\n \t if(!mDb.isOpen()) mDb.openRead();\n \t \n \t\t\tgetLoaderManager().restartLoader(0,null,this);\n \t\t}else mIsFirstRun = false;\n \t}", "private void updateDB() {...
[ "0.68777364", "0.6820049", "0.6631385", "0.65526175", "0.65461624", "0.63562393", "0.6304675", "0.6257151", "0.61766493", "0.61517304", "0.6113906", "0.60950667", "0.60944456", "0.6069827", "0.59673846", "0.59530085", "0.593739", "0.5923947", "0.5919771", "0.59170216", "0.589...
0.0
-1
added by amt_wangpeipei 2012/07/11 for switchui2121 begin
LauncherModel setLauncher(Launcher launcher) { mLauncher = launcher; //added by amt_wangpeipei 2012/07/11 for switchui-2121 end if (mModel != null) mModel.initialize(launcher); return mModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo4359a() {\n }", "public void mo12628c() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public void mo6081a() {\n }", "private static void cajas() {\n\t\t\n\t}", "public void mo55...
[ "0.5769379", "0.5743307", "0.5730233", "0.5727206", "0.5717504", "0.5702941", "0.56836855", "0.56811416", "0.56811416", "0.56811416", "0.56811416", "0.56811416", "0.56811416", "0.56811416", "0.5641477", "0.5638069", "0.5599141", "0.55882007", "0.55878437", "0.5558293", "0.550...
0.0
-1
added by amt_wangpeipei 2012/07/11 for switchui2121
public Launcher getLauncher(){ return mLauncher; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String m128157b(int i) {\n StringBuilder sb = new StringBuilder(\"android:switcher:\");\n sb.append(R.id.edp);\n sb.append(\":\");\n sb.append(i);\n return sb.toString();\n }", "public void mo12628c() {\n }", "public void mo55254a() {\n }", "...
[ "0.57426125", "0.56199574", "0.55962527", "0.55962527", "0.55962527", "0.55962527", "0.55962527", "0.55962527", "0.55962527", "0.5537044", "0.5515841", "0.55154663", "0.5506171", "0.55016273", "0.54710007", "0.54700065", "0.54474473", "0.5419821", "0.54014844", "0.5396971", "...
0.0
-1
Modified by e13775 at 19 June 2012 for organize apps' group
public IconCache getIconCache() { return mIconCache; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface GroupDescription {\n /**\n * Types of the group supported by ONOS.\n */\n enum Type {\n /**\n * Load-balancing among different buckets in a group.\n */\n SELECT,\n /**\n * Single Bucket Group.\n */\n INDIRECT,\n /**\n...
[ "0.5979991", "0.5966668", "0.5865149", "0.5813213", "0.5716252", "0.57105", "0.5666495", "0.56662005", "0.56180984", "0.56005156", "0.55604565", "0.5548252", "0.5543596", "0.55078524", "0.55013156", "0.547825", "0.54338956", "0.5422922", "0.5419219", "0.54058444", "0.54040194...
0.0
-1
/Added by ncqp34 at Mar28 for fake app
public FakeAppModel getFakeModel() { return mFakeModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void mo6255a() {\n }", "protected void onFirstUse() {}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }...
[ "0.565559", "0.56447005", "0.56190276", "0.56190276", "0.56190276", "0.56190276", "0.56190276", "0.56190276", "0.56190276", "0.55747145", "0.55591524", "0.54829574", "0.5476694", "0.54639775", "0.53871834", "0.53630316", "0.53570163", "0.5342895", "0.53284186", "0.5322213", "...
0.0
-1
Added by e13775 at 19 June 2012 for organize apps' group start
synchronized public AppsModel getAppsModel() { if (mAppsModel == null) { mAppsModel = new AppsModel(this); } return mAppsModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendGroupInit() {\n \t\ttry {\n \t\t\tmyEndpt=new Endpt(serverName+\"@\"+vsAddress.toString());\n \n \t\t\tEndpt[] view=null;\n \t\t\tInetSocketAddress[] addrs=null;\n \n \t\t\taddrs=new InetSocketAddress[1];\n \t\t\taddrs[0]=vsAddress;\n \t\t\tview=new Endpt[1];\n \t\t\tview[0]=myEndpt;\n \n \t\t\tGr...
[ "0.60706085", "0.5844758", "0.57266146", "0.5708995", "0.57059526", "0.5675911", "0.564616", "0.56015366", "0.55324435", "0.5500528", "0.54817945", "0.5438026", "0.5424008", "0.54171634", "0.53829", "0.5382248", "0.53777486", "0.5375927", "0.5375378", "0.5372754", "0.53700477...
0.0
-1
Log.d(TAG,"hasNavigationBar ="+mHasNavigationBar); return mHasNavigationBar;
public boolean hasNavigationBar(){ return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getShowHBar() { return _showHBar; }", "private void showNav(){\n navBar.setVisibility(View.VISIBLE);\n }", "boolean hasActionBar();", "@Override\n public boolean onPreDraw() {\n mNavigationBarView.setSystemUiVisibility(mSystemUiFlags);\n return true;\n }", "pub...
[ "0.66023517", "0.6296317", "0.6271561", "0.6203729", "0.6169151", "0.6168201", "0.61466914", "0.60620296", "0.605724", "0.6057081", "0.6029089", "0.59729946", "0.58800095", "0.5873371", "0.5810747", "0.5775544", "0.5771751", "0.5766607", "0.5752629", "0.5697692", "0.5678566",...
0.8321971
0
Added by e13775 at 19 June 2012 for organize apps' group end
public static int getLongPressTimeout() { return sLongPressTimeout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processGroup(List<ResolveInfo> rList, int start, int end, ResolveInfo ro,\r\n CharSequence roLabel) {\r\n // Process labels from start to i\r\n int num = end - start+1;\r\n if (num == 1) {\r\n // No duplicate labels. Use label for entry at start\r\n ...
[ "0.58330905", "0.5751833", "0.56474125", "0.5595468", "0.55865836", "0.55726725", "0.55372995", "0.55281115", "0.5526334", "0.5460115", "0.5453435", "0.5427753", "0.5421531", "0.542053", "0.5414136", "0.5402138", "0.53999424", "0.5391096", "0.53853047", "0.5380315", "0.537812...
0.0
-1
/2012618, add by bvq783 for switchui1547
public static boolean isEnterHomeSent() { return mSent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo12628c() {\n }", "public void mo6081a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n ...
[ "0.5781264", "0.56585985", "0.5638049", "0.5638049", "0.5638049", "0.5638049", "0.5638049", "0.5638049", "0.5638049", "0.56235385", "0.5613892", "0.55707896", "0.55504376", "0.5514722", "0.5511236", "0.5490021", "0.548733", "0.54692644", "0.5465969", "0.54584664", "0.5446951"...
0.0
-1
/2012618, add end /20120105, DJHV83 added for Data Switch
public void setDataSwitchEnable(boolean bEnable){ mDataSwitch = bEnable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo12628c() {\n }", "public void mo6081a() {\n }", "public void lagSkudd2() {\n\t}", "public void ShowData() {\t\n\t\t\t\n\t\t\tShort SR0= cpu.getR0();\n\t\t\tString strR0 = String.format(\"%16s\",Integer.toBinaryString(SR0.intValue())).replace(' ', '0');\n\t\t\tif(strR0.length()>16)...
[ "0.5528657", "0.5436786", "0.5426452", "0.5382606", "0.5381963", "0.5362309", "0.5358424", "0.529835", "0.529835", "0.529835", "0.529835", "0.529835", "0.529835", "0.529835", "0.5293751", "0.52819395", "0.5274087", "0.5269432", "0.52636635", "0.5261964", "0.52611494", "0.52...
0.0
-1
System.out.println("break"); command will not print int static = 22; error, static is RESERVED BY JAVA
public static void main(String[] args) { int static2 = 22; int _static = 22; int $tatic = 45; int staticVar = 23; int salary$ = 55; // int 1stMonthSalary = 55; --- ERROR, cannot start with number int $ = 10; int _ = 3; System.out.println("salary $ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Break createBreak();", "@Override\n public String getCommandPrefix()\n {\n return \"break\";\n }", "private void Perform_BREAK() throws RuntimeException\n {\n throw new RuntimeException(Constants.Error(Constants.BREAK_MODE));\n }", "public void breaker() \r\n\t{\n\t\t\r\n...
[ "0.62536603", "0.58148056", "0.57815284", "0.56180346", "0.5596309", "0.5414305", "0.54094434", "0.54045504", "0.53620744", "0.53171027", "0.53009707", "0.52903014", "0.5278156", "0.5248262", "0.51875764", "0.5173747", "0.5136307", "0.5122978", "0.51216525", "0.50971985", "0....
0.0
-1
Listener class for country Jlist in AddSpotView
public CountryUpdateListener(PredictorView v, Notifier m, AddSpotView s) { this.view = v; this.model = m; this.spotView = s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void valueChanged(ListSelectionEvent e) \n\t{\n\t\tif(!e.getValueIsAdjusting())\n\t\t{\n\t\t\t// gets values from your jList and added it to a list\n\t\t\tList values = spotView.getCountryJList().getSelectedValuesList();\n\t\t\tspotView.setSelectedCountry(values);\n\t\t\t\n\t\t\t//based on country selection...
[ "0.6993847", "0.6815438", "0.6449843", "0.6257576", "0.6169679", "0.6034225", "0.6006386", "0.60017526", "0.5976578", "0.59576446", "0.5937118", "0.5937118", "0.5937118", "0.5937118", "0.5937118", "0.5937118", "0.590331", "0.58997184", "0.58956355", "0.588129", "0.5851729", ...
0.61043036
5
code bellow checks if user has finished selecting countries,get selected countries
public void valueChanged(ListSelectionEvent e) { if(!e.getValueIsAdjusting()) { // gets values from your jList and added it to a list List values = spotView.getCountryJList().getSelectedValuesList(); spotView.setSelectedCountry(values); //based on country selection, state needs to be updated sp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void CountryComboSelect(){\n errorLabel.setText(\"\");\n ObservableList<Divisions> divisionsList = DivisionsImp.getAllDivisions();\n ObservableList<Divisions> filteredDivisions = FXCollections.observableArrayList();\n if (countryCombo.getValue() != null){\n int country...
[ "0.6957295", "0.68092483", "0.67360526", "0.64187247", "0.6318657", "0.62742", "0.624997", "0.6234363", "0.62317705", "0.61973625", "0.61964166", "0.61752254", "0.616398", "0.6120783", "0.61082894", "0.61018145", "0.6087642", "0.59944355", "0.5994313", "0.59628177", "0.595848...
0.53683823
88
Constructs a new hazard
public Hazard() { super("img/hazard.png"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Hazard createHazard();", "public static HazardAlert generateHazardAlert() {\n HazardAlert hazardAlert_thu = new HazardAlert(\n HazardAlert.HazardType.GENERAL, new Position(48.408880, 9.997507), 5, true\n );\n return hazardAlert_thu;\n }", "public Hazmat() {\n }", "Hu...
[ "0.8868638", "0.6097938", "0.5928956", "0.58885723", "0.5645513", "0.5644488", "0.55484474", "0.5498099", "0.5441972", "0.53501445", "0.5317472", "0.5309594", "0.5293076", "0.5268232", "0.5263402", "0.52627325", "0.5197451", "0.5194651", "0.5164809", "0.5153118", "0.513414", ...
0.66349787
1
True if given i is included in the interval
public boolean isSuperIntervalOf(Interval i){ if(i.getLeftBound()<leftbound) return false; if(i.getRightBound()>rightbound) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isInInterval(int baseIndex);", "public boolean hasNonEmptyIntersectionWith(Interval i){\n\t\t\n\t\tif (rightbound < i.leftbound)\n\t\t\treturn false;\n\t\t\n\t\tif (i.rightbound < leftbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "private boolean rangeCheck(int i){\n return i ...
[ "0.70658046", "0.67352957", "0.67007893", "0.6336571", "0.6308441", "0.62374675", "0.6086436", "0.6061093", "0.60086596", "0.59709686", "0.59698176", "0.58533496", "0.5801905", "0.5785241", "0.5753769", "0.5719331", "0.56912065", "0.5671184", "0.5654293", "0.5647743", "0.5645...
0.63518876
3
True if interval is included in given i
public boolean isSubIntervalOf(Interval i){ if(i.getLeftBound()>leftbound) return false; if(i.getRightBound()<rightbound) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isInInterval(int baseIndex);", "public boolean hasNonEmptyIntersectionWith(Interval i){\n\t\t\n\t\tif (rightbound < i.leftbound)\n\t\t\treturn false;\n\t\t\n\t\tif (i.rightbound < leftbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public boolean isSuperIntervalOf(Interval i){\n\t\t\n...
[ "0.72339296", "0.69651157", "0.6629646", "0.6489773", "0.6283347", "0.6187149", "0.6164813", "0.61634374", "0.6086143", "0.6082003", "0.60347855", "0.60043156", "0.6002273", "0.58853006", "0.5836755", "0.58290404", "0.58239484", "0.5801351", "0.5779241", "0.57117045", "0.5675...
0.6628054
3
True if given i intersects in the interval Intervals like that has a nonempty intersection [1,3][3,5]> [3,3]
public boolean hasNonEmptyIntersectionWith(Interval i){ if (rightbound < i.leftbound) return false; if (i.rightbound < leftbound) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasOverlap(int[] i1, int[] i2)\n {\n // Special case of consecutive STEP-BY-STEP intervals\n if(i1[0] <= i2[0] && i2[0] <= i1[1])\n return true;\n if(i2[0] <= i1[0] && i1[0] <= i2[1])\n return true;\n return false;\n }", "public boolean inte...
[ "0.6202186", "0.6009961", "0.5997927", "0.59864354", "0.5984022", "0.59835356", "0.5903753", "0.58512145", "0.5846228", "0.58111215", "0.5789464", "0.5784847", "0.577101", "0.5753852", "0.5736094", "0.57082725", "0.5659475", "0.5606165", "0.55797476", "0.5573834", "0.5568677"...
0.7535626
0
Assumes that are adjacent a returns an Interval
public Interval getUnionWith(Interval i){ //Assumes that are adjacent return new Interval( min(leftbound, i.getLeftBound()), max(rightbound, i.getRightBound()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Interval extends Comparable<Interval> {\n\n /**\n * Returns the start coordinate of this interval.\n * \n * @return the start coordinate of this interval\n */\n int getStart();\n\n /**\n * Returns the end coordinate of this interval.\n * <p>\n * An interval is ...
[ "0.6597918", "0.64768195", "0.6359848", "0.6238506", "0.6079829", "0.60219014", "0.5963062", "0.58903015", "0.5821645", "0.5802088", "0.57201624", "0.56591153", "0.56309795", "0.56232756", "0.5614299", "0.5614207", "0.5576366", "0.5566109", "0.5486858", "0.5476599", "0.5465",...
0.5774711
10
Returns a list with one interval if the were adjacent or with the two intervals if they were not
public List<Interval> getUnionWithList(Interval i){ List<Interval> unionList = new ArrayList<Interval>(); if (isAdjacentTo(i)){ unionList.add(new Interval( min(leftbound, i.getLeftBound()), max(rightbound, i.getRightBound()) )); } else{ unionList.add(this); unionList.add(i); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static List<Interval> merge(List<Interval> intervals) {\n intervals.sort((Interval interval1, Interval interval2) -> Integer.compare(interval1.start, interval2.start));\n\n Iterator<Interval> itr = intervals.iterator();\n\n List<Interval> result = new ArrayList<>();\n Interval first = i...
[ "0.65050244", "0.6493371", "0.60765326", "0.6043866", "0.60429025", "0.601357", "0.59568065", "0.5909563", "0.5830311", "0.58016336", "0.5779226", "0.5759306", "0.57454485", "0.5697862", "0.56805146", "0.56768286", "0.5641953", "0.5626208", "0.5625379", "0.55816466", "0.55531...
0.63783497
2
What we consider empty interval
public boolean isEmptyInterval(){ if (leftbound<0) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int compareTo(Interval o) {\n return 0;\n }", "boolean isNewInterval();", "public RealInterval() {\n\t\tlo = java.lang.Double.NEGATIVE_INFINITY;\n\t\thi = java.lang.Double.POSITIVE_INFINITY;\n\t}", "public boolean isInterval() {\n return this == Spacing.regularInterval ||...
[ "0.65566623", "0.6528194", "0.64767706", "0.6240126", "0.6229396", "0.6111725", "0.610714", "0.60818964", "0.6043115", "0.6026631", "0.59900516", "0.5945856", "0.5929007", "0.5897493", "0.5888293", "0.58366936", "0.58294654", "0.58154374", "0.5809064", "0.5774654", "0.5763991...
0.7485555
0
This method is called when the value of a VariableAttribute object changes (for the VariableAttribute object where this instance is registered as listener on variable modification).
public void variableChanged(VariableAttribute var);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void beforeVariableChanged(ProcessVariableChangedEvent arg0) {\n\n\t}", "void afterVariableChange(RuleFlowVariableChangeEvent event,\n WorkingMemory workingMemory);", "void onVariableChanged(Object... newValue);", "@Override\n \tpublic void logVarChanged(Str...
[ "0.7124331", "0.7005641", "0.6930661", "0.6891926", "0.68226516", "0.6575768", "0.6190532", "0.616483", "0.6064197", "0.604375", "0.5904939", "0.5855782", "0.5813827", "0.58051497", "0.56782836", "0.566668", "0.5661909", "0.56603944", "0.563899", "0.56371754", "0.5634355", ...
0.8316199
0
Implementation of Matcher.replaceAll differs in Android and JDK In JDK, if a group has not been captured, it is replaced with "" In android, it is replaced with the string 'null' This is annoying. Can't really be fixed without fully encapsulating the class So, rewriting replaceAll algorithm So we'll just do backref rep...
private String replaceAll(Matcher matcher, String input, String replacement) { // Process substitution string to replace group references with groups int cursor = 0; StringBuilder result = new StringBuilder(); while (cursor < replacement.length()) { char nextChar = replaceme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String replaceAll(Matcher matcher, String rep) {\n try {\n StringBuffer sb = null ; // Delay until needed\n while(matcher.find()) {\n if ( sb == null )\n sb = new StringBuffer() ;\n else {\n // Do one ...
[ "0.6135861", "0.5430943", "0.54180044", "0.5396392", "0.53557396", "0.53521174", "0.53172094", "0.52731013", "0.52237755", "0.52225745", "0.52040964", "0.5173137", "0.5160421", "0.51306957", "0.50976443", "0.5080876", "0.5058796", "0.5028218", "0.5007606", "0.49973178", "0.49...
0.60225356
1
recuperar chaveMD5 existente na tabela AD_FACILITACONS
public boolean carregarChaveMD5(final String idChaveMD5) throws Exception { boolean chave = false; final NativeSql nativeSql = new NativeSql(jdbcWrapper); nativeSql.appendSql("SELECT MD5"); nativeSql.appendSql(" FROM AD_FACILITACONS "); nativeSql.appendSql(" WHERE MD5 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.to...
[ "0.5898584", "0.5571508", "0.5438658", "0.5406914", "0.5406211", "0.5373069", "0.5315165", "0.5313389", "0.5307883", "0.53062564", "0.5290919", "0.52877724", "0.5281354", "0.52411455", "0.52228343", "0.52208483", "0.52185196", "0.5217527", "0.51997614", "0.5196696", "0.518298...
0.66876054
0
Created by XiYong Yang on 2015/5/20.
@MyBatisMapper public interface RouteFilterDao { //for api public List<RouteFilter> listRouteFilter(int userId); public List<RouteFilter> listRouteFilterIncludeModelRoute(int userId); public List<RouteFilter> listFilterRoutes(int userId); public RouteFilter getFilterRoutesByFilterId(int userId, i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@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\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@O...
[ "0.6262964", "0.6181301", "0.61094564", "0.6105594", "0.6077188", "0.6077188", "0.6064318", "0.6027788", "0.5942597", "0.59407365", "0.5895749", "0.58953893", "0.5889517", "0.58623344", "0.58552104", "0.5852819", "0.5835734", "0.58317566", "0.5798894", "0.5790222", "0.5780874...
0.0
-1
Created by robin on 2017/7/30.
public interface HeroInterface { public void saveBeauty(); public void helpPool(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n...
[ "0.61891526", "0.60775816", "0.6052281", "0.5998251", "0.5933897", "0.5900455", "0.5897906", "0.58509135", "0.58509135", "0.5796279", "0.579187", "0.57756245", "0.5770466", "0.57165223", "0.5688704", "0.5659043", "0.5658313", "0.5641457", "0.5616877", "0.5616877", "0.5616877"...
0.0
-1
metodo push que ingresa elementos al vector
@Override public void push (T operando){ miLista.add(operando); posicion++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void push(Object x) {\n\t\tthis.vector.add(x);\n\t}", "@Override\r\n\tpublic void push(String item) {\n\t\tvector.addElement(item);\r\n\t\t\r\n\t}", "public void push (E element);", "public void push(E element) {\r\n items.add(0, element);\r\n }", "public void push(E element);...
[ "0.73735297", "0.71415854", "0.6777714", "0.67419827", "0.67281353", "0.6690563", "0.6668273", "0.6668273", "0.6646086", "0.6643039", "0.6592882", "0.65263426", "0.6487283", "0.64790887", "0.6463987", "0.6433675", "0.64160204", "0.6360774", "0.630735", "0.62151396", "0.620923...
0.6482919
13
metodo po que obtine el elemento actual y resta al contador posicion
@Override public T pop (){ T elemento= (T) miLista.get(posicion-1); miLista.remove(posicion-1); posicion--; return elemento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element getElement(Position pos);", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "private void actualizarE...
[ "0.6712871", "0.654446", "0.6507775", "0.6369378", "0.62932", "0.62812126", "0.62376934", "0.62271917", "0.6194608", "0.6169908", "0.61510295", "0.6138514", "0.60761", "0.6075747", "0.6046129", "0.60300374", "0.5998229", "0.5989491", "0.5971816", "0.59585255", "0.59486675", ...
0.5685833
50
List HorseList = new ArrayList(); List Running = new ArrayList();
public static void main(String[] args) { HorseList.add(new Horse1("0번마",1)); Running.add(0); HorseList.add(new Horse1("1번마",1)); Running.add(0); HorseList.add(new Horse1("2번마",1)); Running.add(0); HorseList.add(new Horse1("3번마",1)); Running.add(0); HorseList.add(new Horse1("4번마",1)); Running.add(0);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tList<Horse>horses=new ArrayList<>();\n\t\tfor(int i=0;i<8;i++){\nHorse h =new Horse();\nhorses.add(h);\nh.start();\n\t}\n\n}", "List<Horse> getAllHorses();", "public abstract ArrayList<GameObject> fight();", "public ArrayList<PlayingCard> getHand();", "public L...
[ "0.7138328", "0.6443993", "0.608018", "0.58636206", "0.58268833", "0.5792302", "0.5755872", "0.574276", "0.56856483", "0.5666993", "0.56588954", "0.56529975", "0.5630279", "0.5627394", "0.5595617", "0.55813384", "0.5556346", "0.5543994", "0.55300254", "0.5510531", "0.5507748"...
0.6244074
2
given a String with even number character count print 2 characters in one line 01234567 for example : Gokyuzum / Go 01 ky 23 uz 45 um 67 System.out.println(name.substring(0,2)); System.out.println(name.substring(2,4)); System.out.println(name.substring(4,6)); System.out.println(name.substring(6,8)); int x = 0; System.o...
public static void main(String[] args) { // x = x + 2; // System.out.println(name.substring(x,x+2)); // x = x + 2; // System.out.println(name.substring(x,x+2)); // x = x + 2; // System.out.println(name.substring(x,x+2)); String name = "Gokyuzum"; int charCount ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n String name = \"Georgesa\";\n int charCount = name.length();\n int lastCharIndex = charCount - 1;\n\n\n // System.out.println( name.substring (0,2));\n // System.out.println( name.substring (2,4));\n // System.out.println( name.subs...
[ "0.70063394", "0.6787638", "0.63678795", "0.6311272", "0.6291495", "0.62614393", "0.6216801", "0.6199234", "0.61720645", "0.61349183", "0.6128064", "0.5977345", "0.5884568", "0.5862982", "0.5826915", "0.5770853", "0.57656884", "0.5741823", "0.5724199", "0.5704717", "0.5685096...
0.8060007
0
Utility class that is used to do AppLogging. The actual Applog is done only once with a status of either success or fail. In between the applogging name value pairs are continuously updated to indicate the current progress of the workflow.
public void appLog(int eventId, WorkAssignment workAssignment, UserInfoDocument userInfoDocument, MitchellEnvelopeDocument mitchellEnvelopeDocument) throws MitchellException { appLog(eventId, workAssignment, userInfoDocument, mitchellEnvelopeDocument, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void syncLogsAccordingly( ){\n Log.d(TAG, \"Syncing Logs to Log panel\");\n\n try{\n Log.d(TAG , \"STATUS : \"+AppInfoManager.getAppStatusEncode());\n APPORIOLOGS.appStateLog(AppInfoManager.getAppStatusEncode());}catch (Exception e){}\n AndroidNetworking.post(\"\"+...
[ "0.58677334", "0.57884294", "0.56462187", "0.55544823", "0.54810655", "0.5476934", "0.541889", "0.53920037", "0.53751415", "0.5332947", "0.5326464", "0.5320318", "0.53147095", "0.5304191", "0.52939487", "0.52326", "0.52273965", "0.519231", "0.51906025", "0.5190034", "0.518283...
0.0
-1
A function to transform the elements in ME to Event Details NV Pairs.
public void transformMEToAppLogNVPair( final MitchellEnvelopeDocument mitchellEnvelopeDocument, final EventDetails eventDetailsIn) throws MitchellException { final String METHOD_NAME = "transformMEToAppLogNVPair"; logger.entering(CLASS_NAME, METHOD_NAME); final String inputMEXML = mitche...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object[] transformProbElementToList(ProbElement pProbElement) throws Exception{\r\n\t\tObject[] vRet = new Object[3];\r\n\t\t\r\n\t\tif (pProbElement != null) {\r\n\t\t\tvRet[0] = pProbElement.getId();\r\n\t\t\tvRet[1] = pProbElement.getName();\r\n\t\t\tvRet[2] = pProbElement.getProbability();\r\n\t\t} els...
[ "0.507011", "0.4977352", "0.48851588", "0.487434", "0.4802378", "0.47374249", "0.4709239", "0.4649251", "0.46300402", "0.45996863", "0.45967525", "0.45860395", "0.4567446", "0.45571113", "0.4541425", "0.45409533", "0.45386532", "0.44979033", "0.44833222", "0.4466244", "0.4463...
0.55143666
0
A function to add AppLogging NameValue pair The type of Name value pair being added. Example file, directory etc. It should correspond to one of the types defined in "AppLoggingNVPairs" class.
public void addNVPair(final String key, final String value, final AppLoggingNVPairs appLoggingNVPairs) { // check key and value are not null if (key != null && key.length() > 0 && value != null && value.length() > 0) { // Add the pair passed in. Check the type and call the corresponding // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected AppLoggingNVPairs addTimingAndMachineApplogInfo(\n AppLoggingNVPairs appLogPairs, long startTime)\n {\n // Processing time\n\n if (startTime > 0) {\n long endTime = System.currentTimeMillis();\n double totalTime = ((endTime - startTime) / 1000.0);\n appLogPairs.addInfo(\"TotalP...
[ "0.5585952", "0.538945", "0.5348704", "0.52875745", "0.5179664", "0.5139427", "0.5032936", "0.5010002", "0.49819294", "0.49036828", "0.48941073", "0.4880878", "0.48247287", "0.4821926", "0.4807617", "0.4791765", "0.4784884", "0.4758936", "0.47461846", "0.47330928", "0.4731728...
0.77056795
0
A function to add NameValue pair in Event Details
public void addNVPairToEventDetails(final String key, final String value, final EventDetails eventDetails) { // check key and value are not null NameValuePair nv = null; if (key != null && key.length() > 0 && value != null && value.length() > 0) { // Add the pair passed in. nv = event...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Add_event_value(String v)\n {\n\n event_value = new String(v);\t\n }", "public void addEventTuple(TextView calendarName, LinearLayout eventInfo) {\r\n\t\tcalendarNameList.add(calendarName);\r\n\t\teventInfoList.add(eventInfo);\r\n\t}", "public void addDataItem(String name, E value) {\n\t\tdata...
[ "0.65960693", "0.61458904", "0.58893806", "0.5787692", "0.5635829", "0.5620295", "0.55807793", "0.55574703", "0.55380136", "0.55043375", "0.5500699", "0.54803103", "0.5451235", "0.5447572", "0.5447572", "0.5441413", "0.54269433", "0.54255074", "0.54157317", "0.5408287", "0.54...
0.7324778
0
This method adds two AppLog Info entries to the provided AppLoggingNVPairs. First is the time difference in seconds between current time and the provided startTime value. Second is the processing server name.
protected AppLoggingNVPairs addTimingAndMachineApplogInfo( AppLoggingNVPairs appLogPairs, long startTime) { // Processing time if (startTime > 0) { long endTime = System.currentTimeMillis(); double totalTime = ((endTime - startTime) / 1000.0); appLogPairs.addInfo("TotalProcessingTimeS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNVPair(final String key, final String value,\n final AppLoggingNVPairs appLoggingNVPairs)\n {\n // check key and value are not null\n if (key != null && key.length() > 0 && value != null && value.length() > 0) {\n\n // Add the pair passed in. Check the type and call the correspondin...
[ "0.59181273", "0.50854796", "0.48793337", "0.4705923", "0.46559805", "0.46343008", "0.46139795", "0.45628718", "0.45349428", "0.4514152", "0.45084253", "0.44571915", "0.4444413", "0.44366482", "0.44312087", "0.43774405", "0.43758172", "0.437357", "0.43700758", "0.43309584", "...
0.8073479
0
Loads Group and Config.
public Group getGroupFull(Long groupKey) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void importGroup ()\n {\n if (_chooser.showOpenDialog(ConfigEditor.this) == JFileChooser.APPROVE_OPTION) {\n group.load(_chooser.getSelectedFile());\n }\n _prefs.put(\"config_dir\", _chooser.getCurrentDirectory().toString());\n ...
[ "0.69813436", "0.65622455", "0.6561756", "0.64794874", "0.63367176", "0.6239785", "0.60924184", "0.6058148", "0.59510446", "0.59098595", "0.5906659", "0.5892708", "0.5867105", "0.58241343", "0.5804132", "0.5752918", "0.57303166", "0.56947744", "0.5684789", "0.56010187", "0.55...
0.0
-1
Loads Group, Config and Domain.
public Group getGroupFullWithDomain(Long groupKey) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadConfig() {\n\t}", "public void loadConfig(){\n \t\tFile configDir = this.getDataFolder();\n \t\tif (!configDir.exists())\n \t\t\tconfigDir.mkdir();\n \n \t\t// Check for existance of config file\n \t\tFile configFile = new File(this.getDataFolder().toString() + \"/config.yml\");\n \t\tconfig = Ya...
[ "0.61347985", "0.6060982", "0.60443336", "0.593952", "0.5907454", "0.59008104", "0.58965784", "0.5882911", "0.5877027", "0.57947004", "0.57817787", "0.5781178", "0.5769639", "0.575397", "0.57143736", "0.57061857", "0.5681062", "0.56758875", "0.5623914", "0.56206435", "0.56149...
0.0
-1
Loads Usergroup, Pbxuser and User.
public List<Usergroup> getUsersInGroup(Long groupKey) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadUser() {\n File dataFile = new File(getFilesDir().getPath() + \"/\" + DATA_FILE);\n\n if(dataFile.exists()) {\n loadData();\n } else { // First time CigCount is launched\n user = new User();\n }\n }", "private void loadUserData() {\n\t\tuserDa...
[ "0.6794627", "0.64940923", "0.6354315", "0.62923074", "0.6290734", "0.6183", "0.615929", "0.61261845", "0.61177325", "0.6099452", "0.60609084", "0.59291905", "0.5922677", "0.59209013", "0.5918365", "0.59039754", "0.5898345", "0.5887437", "0.5876644", "0.58261377", "0.581085",...
0.0
-1
This method is called by ProductsConnectThread.
void loadingFinished(ProductModel pm) { // System.out.println("--- Loading finished: " + pm.getId()); synchronized (loadedDbProducts) { loadedDbProducts.add(pm); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tGetProductItem();\r\n\t\t\t\t}", "public void onLevelProductChange() {\n targetWSList.clear();\n targetPROCList.clear();\n sourceWSList.clear();\n sourcePROCList.clear();\n sourcePropertyWSList.clear();\n targetProperty...
[ "0.6212643", "0.61975276", "0.60383135", "0.5941412", "0.59323424", "0.58719134", "0.58332604", "0.58088285", "0.5790195", "0.57875866", "0.57804877", "0.57553697", "0.5751546", "0.57214713", "0.57031804", "0.57006705", "0.5691708", "0.5686951", "0.5685401", "0.5662095", "0.5...
0.557341
28
Replace the existing product model by a newly created product model (reread all product model data from the persistence layer) and render the new product model.
private synchronized void refreshProductModel(String pm_id) { DocmaSession docmaSess = mainWin.getDocmaSession(); for (int i=0; i < products_listmodel.size(); i++) { ProductModel pm = (ProductModel) products_listmodel.get(i); if (pm.getId().equals(pm_id)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "@RequestMapping(valu...
[ "0.6764772", "0.6465927", "0.6314493", "0.6092781", "0.60866374", "0.60213715", "0.5992197", "0.59607023", "0.5951659", "0.59465265", "0.59218955", "0.5894846", "0.58866906", "0.5886089", "0.5876355", "0.58663434", "0.58461046", "0.58252215", "0.5803139", "0.57948387", "0.579...
0.52350736
92
Replace the existing product model by a newly created product model (reread all product model data from the persistence layer) and render the new product model.
private synchronized void refreshProductModel(ProductModel pm) { int idx = products_listmodel.indexOf(pm); if (idx >= 0) { DocmaSession docmaSess = mainWin.getDocmaSession(); // Create new model object to force GUI update ProductModel pm_updated = new Produc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "@RequestMapping(valu...
[ "0.67655134", "0.6466283", "0.63127565", "0.60931605", "0.6086685", "0.6021825", "0.5992577", "0.5960742", "0.59519434", "0.59466296", "0.5922202", "0.58951145", "0.5886867", "0.58865565", "0.5876372", "0.5867626", "0.5846863", "0.5825094", "0.5803516", "0.5794405", "0.579123...
0.5686872
27
Creates a new HTTP server at the given port.
public StaticServer(final int port) throws ConcordiaException { // Start the server. InetSocketAddress addr = new InetSocketAddress(port); try { server = HttpServer.create(addr, 0); } catch(IOException e) { throw new ConcordiaException( "There was an error starting the server.", e); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static HttpsServer createServer(String address, int port) throws Exception {\n KeyManagerFactory kmf = KeyStoreHelper.getKeyManagerFactory();\n\n SSLContext sslcontext = SSLContext.getInstance(\"SSLv3\");\n sslcontext.init(kmf.getKeyManagers(), null, null);\n\n InetSocketAddress ...
[ "0.745459", "0.7120764", "0.70297366", "0.70170045", "0.6945716", "0.68827623", "0.68383807", "0.6760816", "0.6751002", "0.66966534", "0.6688041", "0.66812116", "0.66184455", "0.6613971", "0.65672386", "0.6566095", "0.6554936", "0.6484767", "0.64617825", "0.6455339", "0.64422...
0.7110906
2
Properly shut down the server.
public void shutdown() { server.stop(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void shutdown() {\n server.stop();\n }", "void shutDownServer() throws Exception;", "public void shutDownServer() throws IOException {\r\n \t\tthis.shutDownServer(true);\r\n \t}", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, L...
[ "0.83596414", "0.8256749", "0.79590136", "0.78244454", "0.7809891", "0.7737295", "0.77049303", "0.76551676", "0.76239544", "0.7618181", "0.7610268", "0.75553477", "0.7542833", "0.753783", "0.7529899", "0.75116324", "0.7505963", "0.74895585", "0.7481671", "0.74701846", "0.7468...
0.8433105
0
Sets the desired response code.
public void setResponseCode(final int responseCode) { handler.responseCode = responseCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setResponseCode(java.lang.CharSequence value) {\n this.ResponseCode = value;\n }", "public void setResponseCode(int responseCode) {\n this.responseCode = responseCode;\n }", "public sparqles.avro.discovery.DGETInfo.Builder setResponseCode(java.lang.CharSequence value) {\n ...
[ "0.802691", "0.7909501", "0.7712303", "0.7502746", "0.73282504", "0.7320664", "0.72603005", "0.7244572", "0.7239684", "0.72026604", "0.7155048", "0.71155846", "0.7026158", "0.7019473", "0.68945867", "0.68829805", "0.68508726", "0.6792298", "0.6769077", "0.67581755", "0.672540...
0.80640686
0
Sets the desired response body.
public void setResponse(final String response) { handler.response = response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setBody(Object body) {\n\t\tsuper.setBody(body);\n\t}", "public void setBody(Object body) {\n this.body = body;\n }", "public void setResponseBody(String responseBody) {\n this.responseBody = responseBody;\n }", "public void setBody(Body body) {\n ...
[ "0.7214742", "0.70099443", "0.6997913", "0.6770455", "0.67645264", "0.67488754", "0.671159", "0.6710823", "0.6706858", "0.66868585", "0.6658837", "0.6658594", "0.66410094", "0.6562074", "0.6536637", "0.64999306", "0.64454895", "0.6408572", "0.634254", "0.6323636", "0.62647986...
0.5250729
94
Auto class visitorsprobably don't need to be overridden.
@Override public R visit(NodeList n, A argu) { R _ret = null; for (Enumeration<Node> e = n.elements(); e.hasMoreElements();) { e.nextElement().accept(this, argu); } return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public synchronized void accept(ClassVisitor cv) {\n super.accept(cv);\n }", "@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}", "@Override\n public void visitClass(@NotNull PsiClass aClass) {\n }", "Object getClass_();", "Object getClass_();", "@Override\r\n...
[ "0.7236333", "0.69032633", "0.67377967", "0.6487067", "0.6487067", "0.6384801", "0.6382866", "0.6252293", "0.6200888", "0.6179769", "0.6178483", "0.61233836", "0.6103443", "0.60346556", "0.6033455", "0.6007175", "0.6001314", "0.59754306", "0.59126645", "0.586849", "0.58565784...
0.0
-1
Usergenerated visitor methods below prologue > Prologue() nodeChoice > ( SelectQuery() | ConstructQuery() | DescribeQuery() | AskQuery() )
@Override public R visit(Query n, A argu) { R _ret = null; n.prologue.accept(this, argu); n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(SelectQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutio...
[ "0.609243", "0.6077148", "0.58067876", "0.57991505", "0.5773472", "0.5669378", "0.5630076", "0.55853754", "0.55495447", "0.5547123", "0.54733", "0.5337509", "0.53148484", "0.52960384", "0.528403", "0.52830845", "0.52830154", "0.52768064", "0.524964", "0.5191068", "0.51492107"...
0.73641604
0
nodeOptional > ( BaseDecl() )? nodeListOptional > ( PrefixDecl() )
@Override public R visit(Prologue n, A argu) { R _ret = null; n.nodeOptional.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(PropertyList n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrefixDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, arg...
[ "0.58808595", "0.57612735", "0.55354136", "0.5429582", "0.53188354", "0.51731485", "0.51597786", "0.51065654", "0.5090878", "0.5033783", "0.5028906", "0.50000364", "0.4995305", "0.49910185", "0.49630085", "0.49496973", "0.49154517", "0.4891236", "0.486765", "0.4835447", "0.48...
0.59200704
0
nodeToken > nodeToken1 >
@Override public R visit(BaseDecl n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void token(TokenNode node);", "@AutoEscape\n\tpublic String getNode_2();", "public void setNode_2(String node_2);", "Term getNodeTerm();", "@AutoEscape\n\tpublic String getNode_1();", "public interface QuotedL1Node {\n\n}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();"...
[ "0.6374211", "0.581317", "0.5707435", "0.57067865", "0.56543434", "0.5648253", "0.5552249", "0.5530768", "0.5513369", "0.54341465", "0.54341465", "0.5321393", "0.5299456", "0.528124", "0.5225912", "0.5224379", "0.5220148", "0.52033365", "0.51950675", "0.518211", "0.51412076",...
0.53087145
12
nodeToken > nodeToken1 > nodeToken2 >
@Override public R visit(PrefixDecl n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void token(TokenNode node);", "Term getNodeTerm();", "abstract Node split();", "abstract Node split();", "public interface QuotedL1Node {\n\n}", "@AutoEscape\n\tpublic String getNode_2();", "List<Node> getNode(String str);", "public void setNode_2(String node_2);", "Node[] merge(List<Node> nodeList...
[ "0.6145059", "0.5677637", "0.56600505", "0.56600505", "0.55566126", "0.5537073", "0.5448758", "0.53630143", "0.5340851", "0.5200486", "0.51558053", "0.5085834", "0.5084792", "0.5070836", "0.505062", "0.5046389", "0.5044816", "0.5017703", "0.5007184", "0.49879417", "0.49665523...
0.4938978
24
nodeToken > nodeOptional > ( | )? nodeChoice > ( ( Var() )+ | "" ) nodeListOptional > ( DatasetClause() ) whereClause > WhereClause() solutionModifier > SolutionModifier()
@Override public R visit(SelectQuery n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeListOptional.accept(this, argu); n.whereClause.accept(this, argu); n.solutionModifier.acc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu)...
[ "0.63794965", "0.61163324", "0.5921776", "0.5809663", "0.5791704", "0.5772481", "0.57223266", "0.56490624", "0.56092495", "0.55210996", "0.54840904", "0.54733855", "0.547277", "0.5434244", "0.5398167", "0.53896546", "0.537442", "0.5348031", "0.5323522", "0.5281915", "0.525248...
0.57208425
7
nodeToken > constructTemplate > ConstructTemplate() nodeListOptional > ( DatasetClause() ) whereClause > WhereClause() solutionModifier > SolutionModifier()
@Override public R visit(ConstructQuery n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.constructTemplate.accept(this, argu); n.nodeListOptional.accept(this, argu); n.whereClause.accept(this, argu); n.solutionModifier.accept(this, argu); return _...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DataNode\r\n{\r\n /** @return type name of this data node */\r\n public String get_type_name();\r\n /** @return the bits of this data node */\r\n public String get_bitsequence_value() ;\r\n \r\n /** @return size of this data in bits*/\r\n public int get_bit_size(); \r\n \r\...
[ "0.5639874", "0.5572094", "0.55224", "0.54982966", "0.5371959", "0.5367201", "0.5364531", "0.5354186", "0.53439283", "0.5322688", "0.5322682", "0.53069866", "0.52570325", "0.5241645", "0.52359706", "0.5218304", "0.51788414", "0.51491964", "0.5136436", "0.51226693", "0.5116983...
0.5706984
0
nodeToken > nodeChoice > ( ( VarOrIRIref() )+ | "" ) nodeListOptional > ( DatasetClause() ) nodeOptional > ( WhereClause() )? solutionModifier > SolutionModifier()
@Override public R visit(DescribeQuery n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeOptional.accept(this, argu); n.solutionModifier.accept(this, argu); return _ret; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu)...
[ "0.6201431", "0.5924797", "0.5899969", "0.57501996", "0.5673597", "0.550213", "0.5470634", "0.54152924", "0.5370618", "0.5350331", "0.5334729", "0.5309262", "0.5281099", "0.5259857", "0.525146", "0.5238906", "0.5233488", "0.5194583", "0.5179048", "0.51782745", "0.51671636", ...
0.5840506
3
nodeToken > nodeListOptional > ( DatasetClause() ) whereClause > WhereClause()
@Override public R visit(AskQuery n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeListOptional.accept(this, argu); n.whereClause.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new A...
[ "0.6688921", "0.66780335", "0.63620895", "0.6315981", "0.62585855", "0.61475646", "0.61392283", "0.6097466", "0.59390736", "0.5896862", "0.58467054", "0.57483095", "0.5736964", "0.5713846", "0.56375027", "0.56268895", "0.5600761", "0.5575557", "0.55130124", "0.5428083", "0.53...
0.63492787
3
nodeToken > nodeChoice > ( DefaultGraphClause() | NamedGraphClause() )
@Override public R visit(DatasetClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this...
[ "0.6603242", "0.62260854", "0.6013702", "0.57607794", "0.5513368", "0.550673", "0.5497024", "0.54595727", "0.5377641", "0.5358945", "0.5333038", "0.53183377", "0.52678597", "0.5219906", "0.5194761", "0.51587975", "0.515677", "0.51557344", "0.51340425", "0.51257044", "0.511668...
0.5432148
8
nodeToken > sourceSelector > SourceSelector()
@Override public R visit(NamedGraphClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.sourceSelector.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Node getSourceNode();", "public Node source() {\n\t\treturn _source;\n\t}", "String getSourceExpression();", "public String getSourceNode() {\n return sourceNode;\n }", "public Node source() {\n return source;\n }", "public Node getSource() {\n return this.source;\n ...
[ "0.73527545", "0.664124", "0.6525159", "0.6481107", "0.636948", "0.63054", "0.6208911", "0.5982022", "0.59795713", "0.59795713", "0.59601194", "0.59540987", "0.5934664", "0.5934664", "0.5867405", "0.5839774", "0.57582146", "0.5745391", "0.574437", "0.5722149", "0.5718164", ...
0.61397964
7
nodeOptional > ( )? groupGraphPattern > GroupGraphPattern()
@Override public R visit(WhereClause n, A argu) { R _ret = null; n.nodeOptional.accept(this, argu); n.groupGraphPattern.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GroupOrUnionGraphPattern n, A argu) {\n R _ret = null;\n n....
[ "0.7431962", "0.7064587", "0.64841866", "0.61317754", "0.58334416", "0.57915884", "0.573191", "0.56380624", "0.5594496", "0.55672187", "0.55316156", "0.5405769", "0.5316594", "0.5271418", "0.52554625", "0.51915216", "0.51559615", "0.5102344", "0.5091356", "0.50789994", "0.505...
0.58453757
4
nodeOptional > ( OrderClause() )? nodeOptional1 > ( LimitOffsetClauses() )?
@Override public R visit(SolutionModifier n, A argu) { R _ret = null; n.nodeOptional.accept(this, argu); n.nodeOptional1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(LimitOffsetClauses n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(OrderClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this...
[ "0.6178917", "0.5793557", "0.5761556", "0.553982", "0.53101575", "0.5252934", "0.52412426", "0.5219065", "0.51724243", "0.51555395", "0.5121202", "0.50802803", "0.5047953", "0.50190437", "0.5005696", "0.50023025", "0.4947592", "0.49217898", "0.48708865", "0.48501056", "0.4826...
0.4704781
32
nodeChoice > ( LimitClause() ( OffsetClause() )? | OffsetClause() ( LimitClause() )? )
@Override public R visit(LimitOffsetClauses n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(LimitClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "public final AstValidator.limit_clause_return limit_clause() throws RecognitionException {\n AstValidator.limit_...
[ "0.60069054", "0.59679097", "0.5574842", "0.54273003", "0.53797144", "0.5194217", "0.51785415", "0.5174064", "0.5174064", "0.517093", "0.5170385", "0.51392263", "0.5116084", "0.5109831", "0.50612307", "0.50524694", "0.5012888", "0.49903315", "0.49683985", "0.4961381", "0.4906...
0.69344276
0
nodeToken > nodeToken1 > nodeList > ( OrderCondition() )+
@Override public R visit(OrderClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeList.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validOrderResult() {\n TreeNode currentTreeNode = treeLeaf;\n TreeNode orderTreeNode = null;\n while (!(currentTreeNode instanceof SourceTreeNode)) {\n if (currentTreeNode instanceof OrderGlobalTreeNode) {\n orderTreeNode = currentTreeNode;\n ...
[ "0.62190706", "0.5928565", "0.58873856", "0.5690952", "0.56805843", "0.5462516", "0.5454124", "0.54509807", "0.5440885", "0.5397713", "0.53710705", "0.53683037", "0.5343998", "0.53229415", "0.53162825", "0.53162825", "0.53076863", "0.53029746", "0.53024626", "0.52765983", "0....
0.6302188
0
nodeChoice > ( ( | ) BrackettedExpression() ) | ( Constraint() | Var() )
@Override public R visit(OrderCondition n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Overrid...
[ "0.6327877", "0.6100306", "0.57161903", "0.5665153", "0.5616439", "0.5480234", "0.54705334", "0.5419993", "0.5318963", "0.53113294", "0.5301332", "0.5266095", "0.526116", "0.52517724", "0.5247323", "0.5232419", "0.520277", "0.52003396", "0.5194323", "0.5192214", "0.5182684", ...
0.47034895
65
nodeToken > nodeToken1 >
@Override public R visit(LimitClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void token(TokenNode node);", "@AutoEscape\n\tpublic String getNode_2();", "public void setNode_2(String node_2);", "Term getNodeTerm();", "@AutoEscape\n\tpublic String getNode_1();", "public interface QuotedL1Node {\n\n}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();"...
[ "0.6374211", "0.581317", "0.5707435", "0.57067865", "0.56543434", "0.5648253", "0.5552249", "0.5530768", "0.5513369", "0.54341465", "0.54341465", "0.5321393", "0.53087145", "0.5299456", "0.528124", "0.5225912", "0.5224379", "0.5220148", "0.52033365", "0.51950675", "0.518211",...
0.0
-1
nodeToken > nodeToken1 >
@Override public R visit(OffsetClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void token(TokenNode node);", "@AutoEscape\n\tpublic String getNode_2();", "public void setNode_2(String node_2);", "Term getNodeTerm();", "@AutoEscape\n\tpublic String getNode_1();", "public interface QuotedL1Node {\n\n}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();"...
[ "0.6374211", "0.581317", "0.5707435", "0.57067865", "0.56543434", "0.5648253", "0.5552249", "0.5530768", "0.5513369", "0.54341465", "0.54341465", "0.5321393", "0.53087145", "0.5299456", "0.528124", "0.5225912", "0.5224379", "0.5220148", "0.52033365", "0.51950675", "0.518211",...
0.0
-1
triplesSameSubject > TriplesSameSubject() nodeOptional > ( "." ( TriplesBlock() )? )?
@Override public R visit(TriplesBlock n, A argu) { R _ret = null; n.triplesSameSubject.accept(this, argu); n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void TriplesSameSubject(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_12(2)) {\n expression1 = VarOrTerm(stack);\n stack = PropertyListNotEmpty(expression1, stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {...
[ "0.6612344", "0.56003803", "0.5575319", "0.50902957", "0.505952", "0.4923248", "0.49211192", "0.4916841", "0.48743105", "0.48677015", "0.48347095", "0.4792952", "0.47920373", "0.47544247", "0.4748227", "0.47184804", "0.47120833", "0.46920708", "0.46800902", "0.46658063", "0.4...
0.6674143
0
nodeChoice > OptionalGraphPattern() | GroupOrUnionGraphPattern() | GraphGraphPattern() | Filter() | Bind()
@Override public R visit(GraphPatternNotTriples n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.acce...
[ "0.61412793", "0.60311884", "0.59001815", "0.58211106", "0.5668438", "0.5493821", "0.54330266", "0.53609776", "0.5346687", "0.53145576", "0.52446896", "0.52382004", "0.52283496", "0.51905376", "0.5154667", "0.5143367", "0.5135186", "0.512573", "0.51255375", "0.510132", "0.509...
0.64297956
0