query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the package supported by this factory.
QuotePackage getQuotePackage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", ...
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606"...
0.0
-1
TODO Autogenerated method stub
@Override public void prepareHtmlDataList() { makeGCDataInfoOutputData(); makeLaunchDataInfoOutputData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void makeOutPutData(File file) { prepareHtmlDataList(); PrintWriter pw = null; int cnt = 0; try { pw = new PrintWriter(new FileOutputStream(file, true)); pw.println("******************** MainData info ********************"); pw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return packageName + " " + launchingTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return GC_cause + " " + freedObject + " " + freedByte + " " + freedLObject + " " + freedLByte + " " + percent_free + " " + current_heap_size + " " + total_memory + " " + pause_time + " " + Total_time; ...
{ "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
Position of a symbol (token) in a file, e.g. to specify where an error occurred.
public interface FilePosition { String getFileName(); int getLine(); int getColumn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void syntax_error(Symbol current_token){}", "public Symbol cur_err_token() {\r\n return this.lookahead[this.lookahead_pos];\r\n }", "@Test\n public void testGetPosition()\n {\n System.out.println(\"getPosition\");\n final File file = new File(\"src/test/data/test.example.tx...
[ "0.61726856", "0.61092347", "0.6012401", "0.59367454", "0.58744687", "0.58744687", "0.58593446", "0.58250237", "0.57888776", "0.57804596", "0.5704717", "0.566656", "0.5666514", "0.5658605", "0.56526625", "0.56390613", "0.5612203", "0.5576786", "0.5574748", "0.5572841", "0.555...
0.54834265
23
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72500116", "0.7204146", "0.71987385", "0.7180757", "0.71107906", "0.7043322", "0.7041613", "0.7015376", "0.7013112", "0.6982869", "0.69475657", "0.6941377", "0.6937569", "0.69213736", "0.69213736", "0.6892679", "0.6887231", "0.6877873", "0.68772626", "0.68644464", "0.68644...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7903837", "0.78051525", "0.77659255", "0.77268183", "0.7631446", "0.7621391", "0.75841075", "0.7530494", "0.7487704", "0.7456764", "0.7456764", "0.74384135", "0.74208015", "0.74030864", "0.7391401", "0.7386621", "0.73789454", "0.7370171", "0.73620147", "0.7355636", "0.7345...
0.0
-1
/ / / /
protected DefaultRolloverStrategy(int minIndex, int maxIndex, boolean useMax, int compressionLevel, StrSubstitutor subst) { /* 109 */ this.minIndex = minIndex; /* 110 */ this.maxIndex = maxIndex; /* 111 */ this.useMax = useMax; /* 112 */ this.compressionLevel = compressionLevel; /* 113 */ this.subst...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
/ / / / / / / / /
public RolloverDescription rollover(RollingFileManager manager) throws SecurityException { /* 124 */ if (this.maxIndex >= 0) { /* */ ZipCompressAction zipCompressAction; /* */ int fileIndex; /* 127 */ if ((fileIndex = purge(this.minIndex, this.maxIndex, manager)) < 0) { /* 128 */ r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void b...
[ "0.5532527", "0.54391015", "0.5251596", "0.52418447", "0.5150535", "0.512878", "0.50683415", "0.5066834", "0.50221753", "0.50129646", "0.50077325", "0.50051177", "0.49997202", "0.499538", "0.49736512", "0.49707893", "0.49684572", "0.49598044", "0.49381968", "0.49364173", "0.4...
0.0
-1
/ / / / / / / / / / / /
private int purgeDescending(int lowIndex, int highIndex, RollingFileManager manager) { /* 172 */ int suffixLength = 0; /* */ /* 174 */ List<FileRenameAction> renames = new ArrayList<FileRenameAction>(); /* 175 */ StringBuilder buf = new StringBuilder(); /* 176 */ manager.getPatternProcessor().f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "int getWidth() {return width;}", "double passer();", "public Integer getWidth()...
[ "0.5528886", "0.5431939", "0.5174202", "0.51505077", "0.50779986", "0.50641537", "0.505949", "0.5045117", "0.50367874", "0.5018929", "0.50050104", "0.5003042", "0.49965692", "0.49949047", "0.49851024", "0.49733686", "0.49702942", "0.49663383", "0.4953765", "0.49458998", "0.49...
0.0
-1
/ / / / / / / / / / /
private int purgeAscending(int lowIndex, int highIndex, RollingFileManager manager) { /* 266 */ int suffixLength = 0; /* */ /* 268 */ List<FileRenameAction> renames = new ArrayList<FileRenameAction>(); /* 269 */ StringBuilder buf = new StringBuilder(); /* 270 */ manager.getPatternProcessor().fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadra...
[ "0.5540745", "0.5444497", "0.5205538", "0.5182055", "0.5094161", "0.50587463", "0.5053648", "0.50452423", "0.50258267", "0.50122976", "0.5012191", "0.50119436", "0.50044477", "0.49989554", "0.49980396", "0.49847832", "0.49795863", "0.49785143", "0.4966902", "0.49588826", "0.4...
0.0
-1
/ / / / / / / / / / / / / / / /
@PluginFactory /* */ public static DefaultRolloverStrategy createStrategy(@PluginAttribute("max") String max, @PluginAttribute("min") String min, @PluginAttribute("fileIndex") String fileIndex, @PluginAttribute("compressionLevel") String compressionLevelStr, @PluginConfiguration Configuration config) { /* */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "double passer();", "public Integer getWidth(){return this.width;}", "int getWidth() {return width;}", "public void...
[ "0.5430595", "0.53330356", "0.5092637", "0.50776035", "0.50656015", "0.5061517", "0.50255305", "0.501914", "0.5013608", "0.5012112", "0.50097734", "0.49939048", "0.49924976", "0.49502665", "0.4925594", "0.4921649", "0.49190572", "0.49077547", "0.49070126", "0.49018925", "0.48...
0.0
-1
Return next character in input stream, or raise null pointer exception (on EOF)
public static char nextChar (Scanner s) throws NullPointerException { return s.findWithinHorizon(DOT, 1).charAt(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void readNextChar() throws ReaderException;", "public static int getNextChar()\r\n\r\n\t// Returns the next character on the input stream. If the end of file is reached, -1 is returned.\r\n\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn inStream.read();\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\te.printS...
[ "0.7407036", "0.73294663", "0.7154644", "0.69617206", "0.68460244", "0.6747291", "0.6737812", "0.6687668", "0.66656506", "0.66463697", "0.6625014", "0.6583557", "0.6583551", "0.65596825", "0.6547147", "0.6527457", "0.64882153", "0.6474834", "0.6451928", "0.6446389", "0.637916...
0.652373
16
end OnCreate( ... )
private void startFilterCriteria() { Log.i(TAG, "startFilterCriteria()"); FindUtilsImpl utils = new FindUtilsImpl(); Set<String> tSet = utils.getTypeSet((ArrayList<BELEvent>) eventsListFind); ArrayList<String> tList = new ArrayList<String>(cleanSet(tSet)); String str = "start FilterCriteria.class"; Log.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreate()\n {\n\n\n }", "@Override\n public void onCreate() {\n }", "@Override\n public void onCreate() {\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "protected void onCreate() {\n }", "@Overri...
[ "0.746107", "0.74602836", "0.74358845", "0.7396282", "0.7345404", "0.7258854", "0.7116282", "0.7116282", "0.71005505", "0.7095669", "0.7068107", "0.7068107", "0.70345414", "0.7011872", "0.6952203", "0.6918042", "0.69007254", "0.68873966", "0.68873966", "0.68333083", "0.677093...
0.0
-1
Remove empty strings from the list
private Set<String> cleanSet(Set<String> s){ Log.i(TAG, "cleanSet(msg)"); if (s.contains("")) { s.remove(""); }if (s.contains("etc")) { // Developers prerogative s.remove("etc"); } return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<String> removeEmptyLines(List<String> list) {\n for (int k1 = 0; k1 < list.size(); ++k1)\n {\n if (list.get(k1).isEmpty()) {\n list.remove(k1);\n }\n }\n return list;\n }", "private void removeEmptyElements(final Collection<String> ...
[ "0.74106956", "0.7229825", "0.72038794", "0.7034773", "0.6862968", "0.66025966", "0.6139685", "0.60667825", "0.60389584", "0.6027256", "0.6026761", "0.59734565", "0.596514", "0.5940624", "0.5919948", "0.5915492", "0.5878669", "0.58565587", "0.57814085", "0.5759973", "0.566852...
0.64454925
6
/ Find process: Get find criteria find in 'eventsListFind' matches and copy them 'eventsListResults' (as result(i) ) Find stack: 'Source' 'Result' 0 =eventsListFind =result0 1 =result0 =result1 2 : : to back up the stack just load source from stack index current1 so after a find operation the user can search again (goi...
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { Log.i(TAG, "onActivityResult()"); String str = "Req: "+requestCode+","+" Res: "+resultCode+","+" data: "+data; Log.e("Result from SearchActivity: ", str); String findKey = null; String findValue = null; lon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startFilterCriteria() {\n\n\t\tLog.i(TAG, \"startFilterCriteria()\");\n\n\t\tFindUtilsImpl utils = new FindUtilsImpl();\n\t\tSet<String> tSet = utils.getTypeSet((ArrayList<BELEvent>) eventsListFind);\n\t\tArrayList<String> tList = new ArrayList<String>(cleanSet(tSet));\n\n\t\tString str = \"start Filt...
[ "0.58227336", "0.57584363", "0.5719923", "0.55907714", "0.55034506", "0.5415082", "0.53982824", "0.5345212", "0.5330481", "0.53130966", "0.53042406", "0.52523696", "0.522878", "0.52237153", "0.5169322", "0.5145725", "0.5136262", "0.506659", "0.50628626", "0.50623333", "0.5061...
0.68821466
0
end onActivityResult(...) Called when an options item is clicked
@Override public boolean onOptionsItemSelected(MenuItem item) { Log.i(TAG, "onItemSelected()"); switch (item.getItemId()) { case R.id.idSearchNew: // start a new search MakeToast.makeToast(this, "start a new search", MakeToast.LEVEL_DEBUG); break; case R.id.idSearchAgain: // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n isFromResultActivity=false;\n finish();\n }", "public void optionsDone(View view) {\n int mode = modeCheckBox.isChecked() ? 1 : 0;\n Intent intent = new Intent();\n intent.putExtra(\"quizLength\"...
[ "0.7168011", "0.7123471", "0.7101548", "0.7015278", "0.70052385", "0.691801", "0.690527", "0.6890552", "0.6862676", "0.68167585", "0.6815265", "0.67176557", "0.670402", "0.6688742", "0.6677153", "0.6657796", "0.662609", "0.66151243", "0.6610933", "0.65912837", "0.6582247", ...
0.0
-1
fonction pour placer des obstacles dans le jeu
public void genererObstacle(char grille[][]){ int i; int j; Random random = new Random(); for(i=0 ;i<grille.length; i++){ int x = random.nextInt(19); int y = random.nextInt(19); for(j=0 ;j<grille.length; j++){ if(x==j) grille[i][j] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initPlateau() {\r\n\t\t// On place les obstacles\r\n\t\tint epaisseur = 20;\r\n\t\tint delta = 50;\r\n\t\tint espace = 150;\r\n\t\tobstacles.add(new Obstacle(0,0,width,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,height - epaisseur,width,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,0,epaisseur,...
[ "0.72846365", "0.6865106", "0.68318444", "0.664952", "0.6608757", "0.6590694", "0.65528643", "0.65248656", "0.6245267", "0.6220814", "0.6198683", "0.6105541", "0.60586244", "0.6038406", "0.59983826", "0.5979737", "0.59639645", "0.593264", "0.5927935", "0.59065646", "0.5891387...
0.5951151
17
fonction pour determiner si un joueur a gagner la course
public boolean aGagne(char grille[][],int x ){ boolean aGagne=false; if(grille.length==x) aGagne = true; return aGagne; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTutorial();", "boolean hasHadithChapterIntro();", "private boolean setLecture(Course course) {\n if (course.getLectures().size() > 0) {\n for (DetailedSection lecture : course.getLectures()) {\n if (canBeAdded(lecture)) {\n course.setSelectedLectur...
[ "0.65740925", "0.63917583", "0.63066", "0.618307", "0.6160966", "0.61389464", "0.60092336", "0.6008488", "0.5913496", "0.590874", "0.58864194", "0.5878571", "0.587415", "0.5869114", "0.5850177", "0.5835068", "0.5755093", "0.5741991", "0.574157", "0.570657", "0.57051575", "0...
0.0
-1
SELECT DISTINCT u FROM users u RIGHT JOIN documents d ON u.id = d.user_id
@Query(value="SELECT * FROM users WHERE (status = :status) AND (id IN (SELECT user_id FROM documents))", nativeQuery = true) Page<User> findAuthors(@Param("status") int status, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic List<DocumentDTO> getDocumentListByTeacherId(Long userId) {\n\t\t\treturn documentDAO.getDocumentListByTeacherId(userId);\r\n\t\t}", "public void getUsers() {\n CollectionReference ref = FirebaseFirestore.getInstance().collection(\"users\");\n listOfUsers = new ArrayList<>()...
[ "0.5398923", "0.5385296", "0.50306904", "0.4927502", "0.48912656", "0.48516127", "0.47823", "0.46936694", "0.46727967", "0.46659473", "0.46615338", "0.4628005", "0.462352", "0.46106488", "0.46012294", "0.4546218", "0.4545175", "0.45434555", "0.45144764", "0.45129648", "0.4511...
0.0
-1
Created by nathanmsika on 13/11/2017.
public interface DB_manager { boolean check_exist_client(Client c); ///add function content value String addclient(ContentValues client); String addmodel(ContentValues model); int addcar(ContentValues car); int addbranch(ContentValues car); void add_url_image(ContentValues contentValues)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\...
[ "0.59657705", "0.57798946", "0.5720545", "0.5695452", "0.56481445", "0.5609097", "0.560591", "0.5602103", "0.55862474", "0.55813307", "0.55813307", "0.5580264", "0.5580264", "0.5580264", "0.5580264", "0.5580264", "0.5580264", "0.554818", "0.5542784", "0.553563", "0.5522039", ...
0.0
-1
/add function content value
String addclient(ContentValues client);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.globus.swift.language.Function addNewFunction();", "private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "public boolean addFunction(Accessibility pPAccess, SubRoutine pExec...
[ "0.62357223", "0.61231536", "0.59044206", "0.5797107", "0.57524467", "0.57478064", "0.57159734", "0.56785667", "0.5675806", "0.5601942", "0.5600775", "0.55985594", "0.55915755", "0.5587797", "0.5578026", "0.5550526", "0.55225253", "0.55169237", "0.55169237", "0.5505158", "0.5...
0.0
-1
/ instance of all database
void db_all(Context context);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GraphDatabaseService GetDatabaseInstance() {\r\n\t\treturn _db;\r\n\t}", "private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook(...
[ "0.715381", "0.7057678", "0.6956365", "0.6706847", "0.6699695", "0.66959727", "0.6691323", "0.66479385", "0.6639628", "0.6617022", "0.6575066", "0.6551765", "0.64868045", "0.64855707", "0.6482147", "0.6452595", "0.6430351", "0.64021474", "0.63992953", "0.6366706", "0.63594544...
0.63458806
22
This doesn't make sense right now. Will be revisited when we implement quote
String getDisplayValue() { return symbol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getQuote();", "Quote createQuote();", "public Quotes() { }", "boolean isQuote();", "public LocalQuote\t\tgetQuote();", "@Test\n public void addsAndListsQuotes() throws Exception {\n final Base base = new DyBase(\n this.dynamo.region(), new MkSttc().counters().get(\"cnt\...
[ "0.71723", "0.7052622", "0.6726797", "0.6626044", "0.65942264", "0.6577831", "0.65420264", "0.6488976", "0.64266336", "0.64024055", "0.6351438", "0.63120025", "0.62984365", "0.62927794", "0.62738496", "0.6273651", "0.62480855", "0.6240508", "0.61848134", "0.6169402", "0.61669...
0.0
-1
Implement hashCode and equals as the plan is to use SymbolExpression as key in scope. So it must have proper hashcode and equals implementation TODO: Make symbol objects interned
@Override public int hashCode() { // TODO: Do we need null check? return symbol.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int hashCode() {\n\n if (this.hashCode == null) {\n int hashCode = this.symbol.hashCode();\n\n if (this.isLookahead) {\n hashCode *= 109;\n }\n\n this.hashCode = hashCode;\n }\n\n return this.hashCode;\n }", ...
[ "0.6614692", "0.6563599", "0.6291879", "0.62706625", "0.6148756", "0.61220056", "0.6015288", "0.599508", "0.59495425", "0.5935006", "0.59077483", "0.5887816", "0.5852156", "0.584776", "0.58068085", "0.57639307", "0.57498574", "0.57326466", "0.5684428", "0.56789297", "0.565282...
0.74818665
0
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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
1st type of method overloading the method has the same name and return type but the number of parameters has changed
public void setInfo(String inName, int inAge) { name = inName; age = inAge; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elemen...
[ "0.6712232", "0.6265107", "0.6216218", "0.61900115", "0.61320615", "0.6110381", "0.6063182", "0.6046722", "0.6033004", "0.59593123", "0.59459376", "0.5883066", "0.5861709", "0.5785834", "0.57702726", "0.5762672", "0.576111", "0.5729419", "0.57215303", "0.5719421", "0.5710422"...
0.0
-1
2nd type of overloading. the type of the parameter changed compared to the 1st one
public void setInfo(int inAge){ age = inAge; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elemen...
[ "0.6570035", "0.6256793", "0.62124974", "0.61894757", "0.6098348", "0.5990616", "0.59548277", "0.5892586", "0.58523494", "0.5764113", "0.57367474", "0.5735386", "0.5726303", "0.5714523", "0.5576255", "0.5542524", "0.5542524", "0.55248684", "0.54929745", "0.54648584", "0.54450...
0.0
-1
///////////////////////////////////////////////////////////////// // public methods ////
public TransferableObject(ObjBase obj) { this.obj = obj; }
{ "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\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public v...
[ "0.65948933", "0.6475392", "0.63615495", "0.632693", "0.62893796", "0.62046444", "0.6188225", "0.6075393", "0.6058208", "0.6040633", "0.6040633", "0.60404086", "0.60386187", "0.60386187", "0.6020168", "0.60170305", "0.6006618", "0.6004605", "0.59884095", "0.59869736", "0.5976...
0.0
-1
NAME OF THE FORMAT
@Override public String getFormat() { return "properties"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFormat();", "String getFormat();", "String getFormat();", "public String getFormat() {\n/* 206 */ return getValue(\"format\");\n/* */ }", "@Override\n public String getFormatName() throws IOException {\n return input == null? myDefaultFormat.getName() : getInfo().getFormat().get...
[ "0.8222087", "0.8222087", "0.8222087", "0.7820706", "0.7749716", "0.76816833", "0.76154673", "0.7526173", "0.75144905", "0.74909234", "0.74657255", "0.7458386", "0.74171245", "0.74171245", "0.74171245", "0.73406446", "0.7340287", "0.73301184", "0.72931194", "0.7258528", "0.72...
0.64734876
55
Matriz da somatoria total desejada e da lista de elementos a se somar.
private static int getHighestSum(List<? extends ISubsetSum> list, int n, int sum) { boolean subset[][] = new boolean[sum + 1][n + 1]; // primeira coluna toda true, pois se considera que com qualquer // conjunto se pode obter uma somatoria de 0. for (int i = 0; i <= n; i++) subset[0][i] = true; // nenhuma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTotalElements();", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre...
[ "0.6717648", "0.6328699", "0.628535", "0.6112732", "0.6105828", "0.60848624", "0.60546345", "0.60272074", "0.60159487", "0.5989778", "0.5987039", "0.5942072", "0.59224945", "0.59223825", "0.5918493", "0.58905715", "0.58877873", "0.58728725", "0.58616626", "0.58461195", "0.583...
0.0
-1
Checks if the present value is contained in the dataset or not.
public boolean isInDataset() { for (int i = 0; i < Dna.data.getStatements().size(); i++) { if (Dna.data.getStatements().get(i).getStatementTypeId() == this.getStatementTypeId() && Dna.data.getStatements().get(i).getValues().get(this.variable).equals(this.value)) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean dataExists(Data income){\r\n\t\t// Make sure the value exists in the map.\r\n\t\tif(this.data.get(income.getKeyValue()) != null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\t// end if\r\n\t}", "boolean containsValue(Object value) throws NullPointerException;", "protec...
[ "0.67773014", "0.63276595", "0.63049966", "0.62981856", "0.62829036", "0.62578356", "0.6254543", "0.62440974", "0.6239816", "0.62275016", "0.6194526", "0.619145", "0.6181696", "0.61802125", "0.6166012", "0.61623836", "0.61608785", "0.61608785", "0.6142807", "0.6142807", "0.61...
0.66878664
1
necessary for sorting purposes
public int hashCode(){ return this.id; // this.hashCode() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void sortingMemo() {\n\t\t\n\t}", "public void sort() {\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "public void sortCompetitors(){\n\t\t}", "public String doSort();", "void sort();", "void sort();", "public void radixSorting() {\n\t\t\n\t}", "@Override\r\n\tpubli...
[ "0.71459544", "0.68802094", "0.6787368", "0.672482", "0.67191595", "0.67137533", "0.67137533", "0.6661488", "0.6638789", "0.65783834", "0.65510285", "0.6504868", "0.64823455", "0.6455627", "0.64490277", "0.64403015", "0.64080495", "0.63918394", "0.63585174", "0.6351714", "0.6...
0.0
-1
how should entries be sorted in a list or table?
public int compareTo(AttributeVector av) { if (((Integer) this.getStatementTypeId()).compareTo(av.getStatementTypeId()) < 0) { return -1; } else if (((Integer) this.getStatementTypeId()).compareTo(av.getStatementTypeId()) > 0) { return 1; } else { if (this.getVariable().compareTo(av.getVariable()) < 0) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public String doSort();", "public void sort() // sort according to primary key defined in RecordTemplate\n\t{\n\t\tre...
[ "0.6524589", "0.6447077", "0.64273113", "0.6238197", "0.6231049", "0.6176123", "0.61381716", "0.61066866", "0.60535294", "0.6041715", "0.6040719", "0.60376984", "0.59970963", "0.59816396", "0.5971421", "0.5943665", "0.59412944", "0.5934361", "0.5924586", "0.5913534", "0.59038...
0.0
-1
necessary for sorting purposes
public boolean equals(AttributeVector o) { if (o == null) return false; if (this == o) return true; if (getClass() != o.getClass()) return false; return compareTo((AttributeVector) o) == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void sortingMemo() {\n\t\t\n\t}", "public void sort() {\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "public void sortCompetitors(){\n\t\t}", "public String doSort();", "void sort();", "void sort();", "public void radixSorting() {\n\t\t\n\t}", "@Override\r\n\tpubli...
[ "0.71459544", "0.68802094", "0.6787368", "0.672482", "0.67191595", "0.67137533", "0.67137533", "0.6661488", "0.6638789", "0.65783834", "0.65510285", "0.6504868", "0.64823455", "0.6455627", "0.64490277", "0.64403015", "0.64080495", "0.63918394", "0.63585174", "0.6351714", "0.6...
0.0
-1
what to do if YES is tapped
public void onClick(DialogInterface dialog, int id) { finishAffinity(); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickYes ();", "@Override\r\n\tprotected boolean onTap(int index) {\r\n\t\treturn true;\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(true);\n\t\t\t\t\n\t\t\t}", "@Override\n public boolean onSingleTapConfirmed(MotionEvent e) {\n return true;\n ...
[ "0.72822994", "0.7144665", "0.68865156", "0.68601257", "0.67965937", "0.66901183", "0.66722274", "0.66556895", "0.6629212", "0.6624538", "0.6551218", "0.65300065", "0.65127146", "0.6445134", "0.6441141", "0.6439576", "0.64240897", "0.6411579", "0.6400975", "0.6398683", "0.638...
0.0
-1
code to do on CANCEL tapped
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onCancelClicked();", "public void onCancelClick()\r\n {\r\n\r\n }", "public void clickedCancel(View view) {\n \treturnResult(Activity.RESULT_CANCELED);\n }", "void onCancelButtonPressed();", "@Override\n public void OnCancelButtonPressed() {\n }", "@...
[ "0.77066135", "0.76750195", "0.74076873", "0.73936045", "0.7323691", "0.7314351", "0.721525", "0.7194203", "0.7131224", "0.71204895", "0.71039736", "0.7061547", "0.7039041", "0.7038781", "0.7027183", "0.70265543", "0.70178145", "0.7017073", "0.7012823", "0.70059496", "0.69678...
0.0
-1
code to do on NO tapped
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onSingleTapConfirmed(MotionEvent e) {\n return false;\n }", "@Override\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Overr...
[ "0.69780266", "0.69688666", "0.6952428", "0.6861114", "0.68396926", "0.678915", "0.6663928", "0.6642443", "0.6602976", "0.655703", "0.65021557", "0.6502099", "0.6500717", "0.647756", "0.64715165", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.644011...
0.0
-1
I want the menu etc to use both the title and the cost amount
public Snacks(String snackName, BigDecimal snackCost) { this.snackName = snackName; this.snackCost = snackCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setTitle(){\n float sum = getSubSum();\n if ((sum == 0) && (subList.size() == 0)){\n //if (sum == 0) {\n String newSummary = \"No Subscriptions\";\n summaryText.setText(newSummary);\n } else {\n String newSummary = \"Monthly ...
[ "0.63313407", "0.6317473", "0.6220084", "0.62043643", "0.61672884", "0.6147984", "0.61334246", "0.6129875", "0.60569614", "0.6016636", "0.60105413", "0.60044044", "0.5986575", "0.5985364", "0.59846747", "0.5959139", "0.59496444", "0.5949218", "0.5934148", "0.5925982", "0.5921...
0.0
-1
When an items sells it will take away 1 item from the set quanity I make
public void itemsSold() { quanitySnacks--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n ...
[ "0.6699838", "0.6609171", "0.6558611", "0.6550544", "0.6510935", "0.64953953", "0.64755857", "0.6366226", "0.635446", "0.6351268", "0.634899", "0.63338745", "0.63225013", "0.6295299", "0.62910384", "0.6289274", "0.62834483", "0.6277367", "0.62542194", "0.62450856", "0.6232448...
0.7677213
0
Advance clock by specified number of millis
public void advance(long millis) { millis_ += millis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void advanceTimeTo(long millis) {\n\t\tClock clock = Clock.systemUTC();\n\t\tDuration offset = Duration.ofMillis(millis - clock.millis());\n\t\tTime.setClock(Clock.offset(clock, offset));\n\t}", "private static void advanceSystemClock(long milliseconds) {\n ShadowSystemClock.setCurrentTimeMi...
[ "0.746045", "0.67097914", "0.66697764", "0.66393894", "0.6485668", "0.647484", "0.64202183", "0.62452984", "0.62352353", "0.6195682", "0.6128737", "0.60758233", "0.60085076", "0.6003685", "0.6000383", "0.5957284", "0.5957057", "0.59407675", "0.5918009", "0.58990216", "0.58801...
0.7949918
0
TODO: To be ported
static void init() { ContainerProviderRegistry.INSTANCE.registerFactory(ROCKET_CRATE_CONTAINER, (syncId, id, player, buf) -> new RocketCrateScreenHandler(syncId, buf.readInt(), player.inventory)); ContainerProviderRegistry.INSTANCE.registerFactory(LAUNCH_PAD_CONTAINER, (syncId, id, player, buf) -> new Launc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpu...
[ "0.57207733", "0.56339276", "0.56202215", "0.5548621", "0.5526838", "0.5491578", "0.54691195", "0.54305506", "0.5387423", "0.53874147", "0.53781617", "0.53708977", "0.5366174", "0.536284", "0.536263", "0.5315175", "0.5314648", "0.5314648", "0.5305603", "0.5304074", "0.5304074...
0.0
-1
/ FSCK The UID FSCK is concerned with making sure the UID table is in a clean state. Most important are the forward mappings to UIDs as that's what's used to store time series. A clean table is below: REVERSE | FORWARD 01 > foo foo > 01 02 > bar bar > 02 The reverse map will have a unique set of UIDs but could, in erro...
@Test public void fsckNoData() throws Exception { storage.flushStorage(); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "private void checkMapKeyToNode(Affinity testAff, Affinity aff) {\n for (int i = 0; i < 10000; i++) {\n assertEquals(tes...
[ "0.5254711", "0.48664865", "0.48641762", "0.4692418", "0.46804774", "0.46166256", "0.46077508", "0.45990828", "0.45836756", "0.4582206", "0.45730808", "0.45730808", "0.45024484", "0.4464946", "0.44637746", "0.44502348", "0.44091716", "0.44065022", "0.43799606", "0.43657613", ...
0.0
-1
/ Max UID row values that are higher than the largest assigned UID for their type are OK and we just warn on them. This is usually caused by a user removing a name that they no longer need.
@Test public void fsckMetricsUIDHigh() throws Exception { // currently a warning, not an error storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(42L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void fsckMetricsUIDLow() throws Exception {\n // currently a warning, not an error\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(1L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(1, errors);\n...
[ "0.57842064", "0.57132995", "0.5486638", "0.53235984", "0.5238696", "0.5194776", "0.51777375", "0.51755893", "0.50838596", "0.5079367", "0.5079367", "0.5079367", "0.5079367", "0.5079367", "0.5079367", "0.5079367", "0.50354666", "0.5022061", "0.5011157", "0.49889088", "0.49787...
0.5967669
0
currently a warning, not an error
@Test public void fsckTagkUIDHigh() throws Exception { storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, Bytes.fromLong(42L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n ...
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895...
0.0
-1
currently a warning, not an error
@Test public void fsckTagvUIDHigh() throws Exception { storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGV, Bytes.fromLong(42L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n ...
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895...
0.0
-1
/ Max UID row values that are lower than the largest assigned UID for their type can be fixed by simply setting the max ID to the largest found UID.
@Test public void fsckMetricsUIDLow() throws Exception { // currently a warning, not an error storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(1L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(1, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getLastId() {\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n if (parseInt(remindersTable.getValueAt(i, 7).toString()) > maxId) {\n maxId = parseInt(remindersTable.getValueAt(i, 7).toString());\n }\n }\n }", "public int getMaxId() {\...
[ "0.7009102", "0.6507809", "0.64194024", "0.6287711", "0.62497497", "0.62495214", "0.61558443", "0.6151869", "0.6145574", "0.6062313", "0.60500973", "0.6048145", "0.60020787", "0.59702283", "0.5951062", "0.5933832", "0.59305394", "0.59243554", "0.5872644", "0.5872632", "0.5835...
0.0
-1
currently a warning, not an error
@Test public void fsckFIXMetricsUIDLow() throws Exception { storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(0L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, true, false); assertEquals(1, errors); errors = (Integer)fsck.invoke(null, client, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n ...
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895...
0.0
-1
/ Max UID row values that are != 8 bytes wide are bizzare. TODO a fix would be to find the max used ID for the type and store that in the max row.
@Test public void fsckMetricsUIDWrongLength() throws Exception { storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromInt(3)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(2, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getLastId() {\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n if (parseInt(remindersTable.getValueAt(i, 7).toString()) > maxId) {\n maxId = parseInt(remindersTable.getValueAt(i, 7).toString());\n }\n }\n }", "public long getMaximumLo...
[ "0.5967158", "0.5863836", "0.5773861", "0.5768137", "0.5664249", "0.565318", "0.5557341", "0.5557121", "0.5520098", "0.54902434", "0.54811794", "0.54440206", "0.54337984", "0.5429962", "0.54291147", "0.5418273", "0.5347743", "0.5346355", "0.53370917", "0.53338873", "0.5323213...
0.50554
62
/ 1 Missing Reverse Mapping Forward mapping is missing reverse: bar > 02 01 > foo foo > 01 bar > 02 FIX Restore reverse map 02 > bar. OK since 02 doesn't map to anything
@Test public void fsckMetricsMissingReverse() throws Exception { storage.flushColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, METRICS); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(1, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprivate static <ModelElem extends EObject> ModelElem reverse(Object fortranElem, ...
[ "0.60000527", "0.5766161", "0.56611115", "0.56536883", "0.5487996", "0.5454289", "0.53605336", "0.53003854", "0.52633256", "0.5255575", "0.52352977", "0.5153387", "0.51335657", "0.5133251", "0.5122126", "0.508113", "0.506863", "0.5023801", "0.500562", "0.49889055", "0.4987353...
0.0
-1
/ 2 Inconsistent Forward where a name points to a previously assigned UID THIS SHOULD NOT HAPPEN unless there's a major but or someone was messing with the UID table. Forward mapping wtf > 01 is diff than reverse 01 > foo Inconsistent forward mapping wtf > 01 vs wtf > foo / foo > 01 01 > foo foo > 01 02 > bar bar > 02 ...
@Test public void fsckMetricsInconsistentForward() throws Exception { storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 1}); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L)); int errors = (Integer)fsck.invoke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void renameMapNames () {\n if (mappingNum == 0) {\n mapNames = null;\n return;\n }\n this.mapNames = new String[mappingNum];\n for (int i = 0; i < mappingNum; i++) {\n mapNames[i] = GBSHDF5Constants.MAPBASE + this.getThreeFigureString(i);\n ...
[ "0.52703387", "0.5196832", "0.5035398", "0.49576107", "0.4942519", "0.47889587", "0.4768072", "0.47507313", "0.46815053", "0.46387318", "0.46322757", "0.45830774", "0.45737875", "0.45659414", "0.45618215", "0.4544226", "0.45350897", "0.45343238", "0.4521823", "0.45051828", "0...
0.0
-1
/ 3 Duplicate Forward (really inconsistent) where the reverse map dosen't match the name of the forward map. Forward mapping bar > 02 is diff than reverse: 02 > wtf Duplicate forward mapping bar > 02 and null > wtf Reverse mapping missing forward mapping bar > 02 01 > foo foo > 01 02 > wtf bar > 02 ^^^ FIX Restore reve...
@Test public void fsckMetricsDuplicateForward() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(2, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =crea...
[ "0.617417", "0.57750446", "0.5683127", "0.5608999", "0.54309237", "0.5384536", "0.53546983", "0.5299042", "0.52774376", "0.52774376", "0.52753705", "0.5204286", "0.51808685", "0.5131532", "0.51299447", "0.5117143", "0.51047707", "0.5096972", "0.5082688", "0.50825125", "0.5059...
0.0
-1
/ 4 Missing Forward Mapping Reverse mapping missing forward mapping bar > 02 01 > foo foo > 01 02 > bar FIX Restore forward map. OK since "bar" does not map to anything
@Test public void fsckMetricsMissingForward() throws Exception { // currently a warning, not an error storage.flushColumn("bar".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ForwardingMap() {}", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "protected ForwardingMapEntry() {}", "private void checkReverseMap() throws ApplicationException {\...
[ "0.6051785", "0.56945837", "0.5479371", "0.5473627", "0.54065704", "0.53373635", "0.52997375", "0.5244642", "0.5241108", "0.522877", "0.5140043", "0.51161027", "0.50586504", "0.5045423", "0.50137454", "0.50102174", "0.49885428", "0.49432984", "0.49432984", "0.49320182", "0.49...
0.0
-1
currently a warning, not an error
@Test public void fsckFIXMetricsMissingForward() throws Exception { storage.flushColumn("bar".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, true, false); assertEquals(0, errors); assertNull(storage.getColumn(new byte [] {0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n ...
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895...
0.0
-1
currently a warning, not an error
@Test public void fsckTagkMissingForward() throws Exception { storage.flushColumn("host".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n ...
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895...
0.0
-1
currently a warning, not an error
@Test public void fsckFIXTagkMissingForward() throws Exception { storage.flushColumn("host".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, true, false); assertEquals(0, errors); assertNull(storage.getColumn(new byte [] {0, 0, 1}, NAME_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n ...
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895...
0.0
-1
currently a warning, not an error
@Test public void fsckTagvMissingForward() throws Exception { storage.flushColumn("web01".getBytes(MockBase.ASCII()), ID_FAMILY, TAGV); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n ...
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895...
0.0
-1
currently a warning, not an error
@Test public void fsckFIXTagvMissingForward() throws Exception { storage.flushColumn("web01".getBytes(MockBase.ASCII()), ID_FAMILY, TAGV); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, true, false); assertEquals(0, errors); assertNull(storage.getColumn(new byte [] {0, 0, 1}, NAME...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n ...
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895...
0.0
-1
/ 5 Inconsistent Reverse Mapping Inconsistent reverse mapping 03 > foo vs 01 > foo / foo > 01 01 > foo foo > 01 02 > bar bar > 02 03 > foo ^^^ FIX Delete 03 reverse map. OK since nothing maps to 02.
@Test public void fsckMetricsInconsistentReverse() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, METRICS, "foo".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L)); int errors = (Integer)fsck.invo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "@Override\r\n public NavigableMap<K, V> descendingMap() {\n return null;\r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" ...
[ "0.5677237", "0.55809665", "0.5291944", "0.52909505", "0.5278083", "0.5165243", "0.5063036", "0.5041131", "0.5023839", "0.50160956", "0.49969536", "0.49663597", "0.4893948", "0.4893479", "0.4892631", "0.48758167", "0.48734912", "0.48588878", "0.48421645", "0.48246434", "0.480...
0.0
-1
/ 6 Duplicate Reverse Mapping Forward mapping is missing reverse mapping: wtf > 04 Duplicate reverse mapping 03 > wtf and 04 > null 01 > foo foo > 01 02 > bar bar > 02 03 > wtf wtf > 04 ^^^ FIX Delete 03 reverse map. wtf > 04 will be fixed by creating a reverse map for 04 > wtf
@Test public void fsckMetricsDuplicateReverse() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 4}); storage...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "protected ForwardingMap() {}", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n...
[ "0.59312767", "0.581587", "0.57639694", "0.5712378", "0.56225127", "0.5542191", "0.53629315", "0.53629315", "0.53574675", "0.53097373", "0.5267307", "0.5172647", "0.5142396", "0.5116811", "0.5101104", "0.50748765", "0.50265765", "0.499645", "0.49957106", "0.49310282", "0.4927...
0.0
-1
/ COMPOUND ERRORS (if the base fixes above work for all UID types, we only need to test one of the types below) 7 Inconsistent Forward And Duplicate Reverse Forward mapping missing reverse mapping: wtf > 03 Forward mapping bar > 02 is diff than reverse mapping: 02 > wtf Inconsistent forward mapping bar > 02 vs bar > wt...
@Test public void fsckMetricsInconsistentFwdAndDupeRev() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 1}); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void Test4179686() throws Exception {\n RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US);\n // Create a collator with a few expanding character sequences in it....\n RuleBasedCollator coll = new RuleBasedCollator(en_us.getRules()\n ...
[ "0.5066744", "0.5018103", "0.48854858", "0.4858689", "0.48364586", "0.48304945", "0.48273948", "0.47889137", "0.4768156", "0.4741688", "0.4732455", "0.47304997", "0.4730249", "0.4709006", "0.47036684", "0.4697685", "0.46928084", "0.46916747", "0.46881524", "0.4687125", "0.467...
0.47873834
8
/ 8 Inconsistent Forward And Inconsistent Reverse Forward mapping wtf > 01 is diff than reverse mapping: 01 > foo Inconsistent forward mapping wtf > 01 vs wtf > foo / foo > 01 Forward mapping bar > 02 is diff than reverse mapping: 02 > wtf Inconsistent forward mapping bar > 02 vs bar > wtf / wtf > 01 Inconsistent rever...
@Test public void fsckMetricsInconsistentFwdAndInconsistentRev() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testFwdInfReasonerRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"exF\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldExF\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree...
[ "0.5289027", "0.51296014", "0.51273024", "0.512576", "0.5099973", "0.5089592", "0.5069821", "0.5039787", "0.50277925", "0.5027225", "0.49976864", "0.49857867", "0.4942953", "0.49343488", "0.4896733", "0.4886282", "0.48817378", "0.48776528", "0.48744515", "0.48698547", "0.4866...
0.0
-1
/ 9 Inconsistent Forward, No Dupes Forward mapping bar > 02 is different than reverse mapping: 02 > wtf Inconsistent forward mapping bar > 02 vs bar > wtf / wtf > 03 Inconsistent reverse mapping 02 > wtf vs 03 > wtf / wtf > 03 01 > foo foo > 01 02 > wtf bar > 02 03 > wtf wtf > 03 FIX Remove reverse 02 > wtf. Run again ...
@Test public void fsckMetricsInconsistentFwdNoDupes() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 3}); s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentK...
[ "0.58007646", "0.5768078", "0.5660628", "0.54945165", "0.5448871", "0.5415577", "0.53952044", "0.53653187", "0.5328834", "0.53114504", "0.5283601", "0.5279092", "0.5269012", "0.5254854", "0.52253675", "0.52123916", "0.52075607", "0.5165904", "0.5163675", "0.51573646", "0.5156...
0.0
-1
Write clean data to MockBase that can be overridden by individual unit tests
private void setupMockBase() { storage = new MockBase(tsdb, client, true, true, true, true); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(2L)); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, Bytes.fromLong(2L)); storage.addColumn(UI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testSetBasedata() {\n }", "@Override\n public void setUp() {\n super.setUp();\n buffer.setLength(0);\n }", "@Before\n public void setUp() {\n InternalDataSerializer.reinitialize();\n }", "public void resetMocking() {\n mockGraphReadMethods = mock(GraphReadMethod...
[ "0.61424744", "0.6128162", "0.5969096", "0.5964375", "0.5844477", "0.5807547", "0.58057296", "0.56179035", "0.5611144", "0.56021595", "0.5600329", "0.5565159", "0.5552217", "0.55408216", "0.5533517", "0.5507149", "0.54808944", "0.54764694", "0.547547", "0.5461207", "0.5457291...
0.55357057
14
TODO Autogenerated method stub
@Override public UserActionDTO updateSource(UserActionEntity entity, UserActionDTO dto) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Created by apple on 2017/7/17.
public interface IEmailCodeService { EmailCode selectActiveCode(String username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\...
[ "0.58616", "0.5768858", "0.55616903", "0.55497026", "0.5499253", "0.54966736", "0.547294", "0.547294", "0.5470073", "0.5468112", "0.5448479", "0.5432531", "0.54235774", "0.53448766", "0.5327282", "0.53167737", "0.53113955", "0.5302022", "0.5300604", "0.52729017", "0.52541184"...
0.0
-1
this will fail if they are fed thru the string overload
@Test public void overloadingWorks() { assertThat(eval("10>5"), equalTo(c(true))); assertThat(eval("10L>5L"), equalTo(c(true))); assertThat(eval("TRUE>FALSE"), equalTo(c(true))); assertThat(eval("'one' > 'zed'"), equalTo(c(false))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t public void teststringAPI_fail() {\n\t\tString testData = \"Caps is not considered the same\";\n\t\tchar charData='c';\n\t\tString expected = \"aps is not onsidered the same\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tassertNotSame(\"Got Expected Result\", expected, actualStr...
[ "0.6699225", "0.62188005", "0.6208409", "0.61057353", "0.61057353", "0.6083244", "0.6057796", "0.60506076", "0.60160875", "0.60153013", "0.6013484", "0.5998389", "0.5945115", "0.5931356", "0.5917321", "0.59145385", "0.5871575", "0.5861328", "0.58525103", "0.58369094", "0.5832...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String[] names= new String[5]; names[0]= "Leo"; names[1]= "KAsey"; names[3]= "Jimm"; names[4]= "Mat"; //names[5]= ; for(int i=0;i<names.length;i++){ System.out.println(names[i]); } /*for(int i=0;i<names.length;i++){ if(names[i]!=null){ Syst...
{ "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
Creates a new demo.
public MinMaxCategoryPlotDemo1(String title) { super(title); JPanel chartPanel = createDemoPanel(); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); setContentPane(chartPanel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long createDemo() {\n mDemoId = insertDemo(\"unnamed\");\n return mDemoId;\n }", "public void newDemo() {\r\n \t\t\r\n \t\tString date = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\").format(new Date());\r\n \t\tthis.fileName = this.demoFolder + this.map.replace(\".xml\", \"\") + \"_\" + d...
[ "0.6796898", "0.65088093", "0.62820476", "0.61293125", "0.6119581", "0.5985991", "0.59582156", "0.5909665", "0.59094363", "0.5890611", "0.5865384", "0.5832164", "0.58079743", "0.578195", "0.57740957", "0.5746723", "0.57279426", "0.57050353", "0.5666109", "0.5625596", "0.56247...
0.0
-1
Creates a sample dataset for the demo.
public static CategoryDataset createDataset() { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.addValue(1.0, "First", "C1"); dataset.addValue(4.0, "First", "C2"); dataset.addValue(3.0, "First", "C3"); dataset.addValue(5.0, "First", "C4"); dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CategoryDataset createSampleDataset() {\n \t\n \t// row keys...\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n\n // column keys...\n final String type1 = \"Type 1\";\n final String ...
[ "0.6516023", "0.64370793", "0.64273083", "0.62875646", "0.62670517", "0.6214323", "0.61983186", "0.6167228", "0.61314213", "0.6025523", "0.60058933", "0.6000588", "0.5994616", "0.59502536", "0.59395736", "0.5922694", "0.5888017", "0.58848166", "0.5875737", "0.58483356", "0.58...
0.5839276
20
Creates the chart to display for the demo.
public static JFreeChart createChart(CategoryDataset dataset) { JFreeChart chart = ChartFactory.createBarChart( "Min/Max Category Plot", // chart title "Category", // domain axis label "Value", // range axis label dataset, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSett...
[ "0.781668", "0.709774", "0.6969244", "0.6845623", "0.6842807", "0.681524", "0.6760003", "0.6757202", "0.6645447", "0.6630971", "0.6617191", "0.66092944", "0.65602964", "0.65327734", "0.65129846", "0.64764893", "0.6463931", "0.6453258", "0.64017755", "0.63640183", "0.636145", ...
0.0
-1
Creates a panel for the demo (used by SuperDemo.java).
public static JPanel createDemoPanel() { JFreeChart chart = createChart(createDataset()); ChartPanel panel = new ChartPanel(chart); panel.setMouseWheelEnabled(true); return panel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "public DemoPanel() {\n }", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.main...
[ "0.7807591", "0.75254244", "0.7429824", "0.74061733", "0.73415625", "0.71469074", "0.7036538", "0.70187885", "0.7003463", "0.69913477", "0.6985645", "0.6952408", "0.6950661", "0.69505054", "0.6942393", "0.6904126", "0.6900259", "0.6886663", "0.68488", "0.6834968", "0.68097013...
0.81167424
0
Starting point for the demonstration application.
public static void main(String[] args) { MinMaxCategoryPlotDemo1 demo = new MinMaxCategoryPlotDemo1( "JFreeChart: MinMaxCategoryPlotDemo1.java"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startDemo() {\n // Welcoming display\n this.view.displayMenu();\n\n // State of the inventory and the users\n this.view.displaySystem(this.system);\n\n this.view.displayExampleMessage();\n\n // Example with a student\n Student s = this.system.getStudents...
[ "0.7247807", "0.7043833", "0.6927817", "0.6921694", "0.687076", "0.6710247", "0.666283", "0.66302913", "0.66219354", "0.66219354", "0.6620019", "0.661744", "0.6596961", "0.6588474", "0.65874666", "0.65790266", "0.6568898", "0.65629476", "0.6554157", "0.6553215", "0.6545148", ...
0.0
-1
read the file content returning it as String. Could return null if file not found or could not be opened
@Override public String read(String elementId) throws IOException { File file = new File(mDataFolder, elementId); FileInputStream fileInputStream; try { fileInputStream = new FileInputStream(file); } catch (FileNotFoundException e) { Logger.d(e.getMessage());...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception...
[ "0.801817", "0.7921411", "0.7845346", "0.7754846", "0.7722213", "0.7684662", "0.76687104", "0.76086205", "0.75922763", "0.7503219", "0.74986273", "0.7482786", "0.74488", "0.74478126", "0.74217224", "0.7407639", "0.7380257", "0.7343046", "0.7260131", "0.7249501", "0.7189882", ...
0.6776315
62
moves the face across the screen
public void animateFace(double x1, double y1, double x2, double y2){ if(x1 <= 720){ x1+= 5; y1 = (int)(y1 + (10 * Math.sin(.03 * x1))); if(y1 > 280){ y1 = 280; } } else{ x1 = 0; } if(x2 <= 720){ x2+= 5; y2 = (int)(y2 + (10 * Math.sin(.03 * x2))); if(y2 > 320){ y2 = 320; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateDirectionFace();", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public void faceUp(){\r\n changePlace(hand);\r\n //do a magical work\r\n changePlac...
[ "0.68247616", "0.6704293", "0.65661293", "0.6547736", "0.6524845", "0.65035725", "0.64976794", "0.64767283", "0.6431542", "0.6425524", "0.6412722", "0.64091015", "0.6374316", "0.6312359", "0.6307602", "0.6304024", "0.62832224", "0.6283087", "0.62731636", "0.6265799", "0.62651...
0.0
-1
sets the position for the circle
public void setPosition(double x1, double y1, double x2, double y2){ circle.setFrame(x1, y1, CIRCLE_SIZE, CIRCLE_SIZE); circle2.setFrame(x2, y2, CIRCLE_SIZE, CIRCLE_SIZE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPosition(Point position){\r\n this.position.set(position.x, position.y);\r\n\r\n this.shadow.setPosition(position);\r\n this.surface.setPosition(position);\r\n this.shading.setPosition(position);\r\n\r\n\r\n this.setBounds(new Rect(\r\n this.position...
[ "0.7359523", "0.7314327", "0.719559", "0.7092673", "0.7022722", "0.6959748", "0.6930371", "0.6807953", "0.66702825", "0.6654374", "0.66519094", "0.6643058", "0.6627849", "0.66266775", "0.65738875", "0.6563083", "0.6530758", "0.65125406", "0.6504089", "0.6502051", "0.64911497"...
0.6751495
8
Draws face to the screen
@Override public void paintComponent(Graphics g){ super.paintComponent(g); animateFace((int)circle.x, (int)circle.y, (int)circle2.x, (int)circle2.y); drawFace(g); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawFace(int face) {\n\t\tif (faceNearClipped[face]) {\n\t\t\tdrawNearClippedFace(face);\n\t\t\treturn;\n\t\t}\n\n\t\tint a = faceVertexA[face];\n\t\tint b = faceVertexB[face];\n\t\tint c = faceVertexC[face];\n\t\tDraw3D.clipX = faceClippedX[face];\n\n\t\tif (faceAlpha == null) {\n\t\t\tDraw3D.alpha = ...
[ "0.7664062", "0.7253399", "0.7045349", "0.7014079", "0.6930137", "0.66921127", "0.668224", "0.66493887", "0.6573897", "0.6543139", "0.6531973", "0.64193803", "0.6371812", "0.63341427", "0.6330914", "0.6326667", "0.63250184", "0.6302117", "0.6288815", "0.62826645", "0.62717295...
0.0
-1
Sets up the window for the Graphics
private void init(){ add(new DrawSurface()); setTitle("Animation Exercise"); setSize(640, 480); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupWindow() {\n\t\tgetContentPane().setLayout(null);\t\t\t\t\n\n\t\t// Set title\n\t\tsetTitle(\"Gallhp\");\n\n\t\t// Set location and size\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\t\n\t\tsetSize(800, 600);\n\t\tsetResizable(false);\n\n\t}", "private static v...
[ "0.7956048", "0.778886", "0.7494632", "0.74342835", "0.7420263", "0.72556466", "0.7227285", "0.7224236", "0.71825486", "0.7117192", "0.7107839", "0.70936036", "0.7051196", "0.7050741", "0.7034199", "0.69749355", "0.6958216", "0.69333315", "0.69292384", "0.6906002", "0.6879752...
0.69369185
17
Add a CSS node at the specified index.
@Nonnull public final HCHead addCSSAt (@Nonnegative final int nIndex, @Nonnull final IHCNode aCSS) { ValueEnforcer.notNull (aCSS, "CSS"); if (!HCCSSNodeDetector.isCSSNode (aCSS)) throw new IllegalArgumentException (aCSS + " is not a valid CSS node!"); m_aCSS.add (nIndex, aCSS); return this; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public @Override void add(int index, E element) {\n \tNode n = index == size ? sentinel : getNode(index);\n \tnew Node(n.pred, element);\n }", "public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}", "public void add(int index, Object value) {\n i...
[ "0.660744", "0.6424186", "0.63918185", "0.6378982", "0.6251761", "0.6251205", "0.62511694", "0.6244947", "0.62029004", "0.6177209", "0.61746526", "0.61565715", "0.6134176", "0.6134164", "0.60837114", "0.6064153", "0.6061394", "0.6049511", "0.60352015", "0.6012982", "0.6009534...
0.7187736
0
JS handling Append some JavaScript code
@Nonnull public final HCHead addJS (@Nonnull final IHCNode aJS) { ValueEnforcer.notNull (aJS, "JS"); if (!HCJSNodeDetector.isJSNode (aJS)) throw new IllegalArgumentException (aJS + " is not a valid JS node!"); m_aJS.add (aJS); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JavaScript append(String javaScriptPartToAppend) {\n return js(javaScript + javaScriptPartToAppend);\n }", "public static void Javascript() {\n\n\t}", "private void addJS(String jsLocation) {\n Script ajaxScript = new Script(\"\");\n ajaxScript.attribute(\"src\", jsLocation);\n ajax...
[ "0.6908685", "0.6620859", "0.6299366", "0.5776143", "0.5640119", "0.55233425", "0.5427658", "0.5407836", "0.5238663", "0.52358973", "0.51940405", "0.5189092", "0.5188241", "0.51660335", "0.5109366", "0.5084295", "0.507095", "0.50319475", "0.5030794", "0.50167704", "0.5013533"...
0.47223914
45
Append some JavaScript code at the specified index
@Nonnull public final HCHead addJSAt (@Nonnegative final int nIndex, @Nonnull final IHCNode aJS) { ValueEnforcer.notNull (aJS, "JS"); if (!HCJSNodeDetector.isJSNode (aJS)) throw new IllegalArgumentException (aJS + " is not a valid JS node!"); m_aJS.add (nIndex, aJS); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JavaScript append(String javaScriptPartToAppend) {\n return js(javaScript + javaScriptPartToAppend);\n }", "org.globus.swift.language.Function insertNewFunction(int i);", "public static void Javascript() {\n\n\t}", "private void addJS(String jsLocation) {\n Script ajaxScript = new Scrip...
[ "0.60012573", "0.54993725", "0.54857713", "0.5467608", "0.53814834", "0.50041515", "0.49828768", "0.4964329", "0.49038953", "0.48773864", "0.4855024", "0.48369095", "0.4791547", "0.47883594", "0.47665182", "0.4733552", "0.47084022", "0.46942258", "0.46926507", "0.46798652", "...
0.5996781
1
Use the page title as plain text
@Override @Nonnull public String getPlainText () { return m_aPageTitle.getPlainText (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printTitle( String title )\r\n {\n }", "public void setTitle(String title) { this.title = title; }", "public void setTitle(java.lang.String title);", "@Override\r\n\tpublic String getPageTitle() {\t\r\n\t\treturn getTranslation(Routes.getPageTitleKey(Routes.REPORT));\r\n\t}...
[ "0.764711", "0.76412433", "0.7640157", "0.7615282", "0.7563366", "0.7563046", "0.75530905", "0.75486153", "0.75362676", "0.7532882", "0.7532882", "0.7527774", "0.7513269", "0.7506877", "0.7506877", "0.7506877", "0.7506877", "0.75062644", "0.750437", "0.7502225", "0.7502225", ...
0.74251544
51
public static Logger log = Logger.getLogger(FacultyModel.class);
public Integer nextPk() throws ApplicationException { // log.debug("Faculty Model nextPK method Started"); Connection conn = null; int pk = 0; try { conn = JDBCDataSource.getConnection(); PreparedStatement pstmt = conn.prepareStatement("SELECT MAX(id) FROM ST_FACULTY"); ResultSet rs = pstmt.execu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Log() {\r\n\t}", "@Override\n public void log()\n {\n }", "@Override\n public void logs() {\n \n }", "public MyLogs() {\n }", "public void logData(){\n }", "public String get_log(){\n }", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ ...
[ "0.625277", "0.6167766", "0.61514", "0.61404884", "0.61113054", "0.6088056", "0.6050447", "0.6044017", "0.6044017", "0.6004582", "0.59653014", "0.58826745", "0.5836703", "0.5836703", "0.5836703", "0.57939875", "0.5789815", "0.5765327", "0.57560444", "0.57512635", "0.57486504"...
0.0
-1
log.debug("Faculty Model Delete method End");
public void delete(FacultyBean bean) throws ApplicationException { Connection conn = null; try { conn = JDBCDataSource.getConnection(); conn.setAutoCommit(false); PreparedStatement pstmt = conn.prepareStatement("DELETE FROM ST_FACULTY WHERE ID=?"); pstmt.setLong(1, bean.getId()); pstmt.execut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteStudent(){\r\n\t\t\r\n\t}", "public void deleteRecord() {\n// foods.clear();\n// try {\n// FoodRecordDao dao = new FoodRecordDao();\n// dao.saveFoodRecords(foods);\n// } catch (DaoException ex) {\n// Logger.getLogger(FoodLogViewController.cl...
[ "0.73290944", "0.68838984", "0.67602944", "0.67213315", "0.6666591", "0.6610487", "0.65914047", "0.6579245", "0.6564933", "0.6555389", "0.6551897", "0.652916", "0.652916", "0.6525323", "0.64516777", "0.64474076", "0.64047104", "0.6397284", "0.6386277", "0.6386277", "0.6371144...
0.67967033
2
log.debug("Faculty Model findByPK method Started");
public FacultyBean findByPk(long pk) throws ApplicationException { StringBuffer sql = new StringBuffer("SELECT * FROM ST_FACULTY WHERE ID=?"); Connection conn = null; FacultyBean bean = null; try { conn = JDBCDataSource.getConnection(); PreparedStatement pstmt = conn.prepareStatement(sql.toString())...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CourseDTO findByPK(long pk) throws ApplicationException {\n\t\t// TODO Auto-generated method stub\n\t\t log.debug(\"Model findByPK Started\");\n\t StringBuffer sql = new StringBuffer(\n\t \"SELECT * FROM ST_COURSE WHERE ID=?\");\n\t CourseDTO dto = null;\n\t Connection co...
[ "0.685632", "0.6455775", "0.6408238", "0.63895774", "0.63674426", "0.63447714", "0.63369656", "0.63092", "0.63027513", "0.61605024", "0.61554015", "0.6146185", "0.6143202", "0.61043495", "0.6090742", "0.6070179", "0.6054955", "0.6040393", "0.6037975", "0.6012583", "0.59831595...
0.7070726
0
log.debug("Faculty Model search method Started");
public List search(FacultyBean bean, int pageNo, int pageSize) throws ApplicationException { System.out.println("faculty model"); StringBuffer sql = new StringBuffer("SELECT * FROM ST_FACULTY WHERE true"); if (bean!=null) { if (bean.getId()>0) { sql.append(" AND id = " + bean.getId()); } if (b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void search() {\r\n \t\r\n }", "public void search() {\n }", "@Override\r\n\tpublic void search() {\n\r\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}", "@Override\n\tpublic void search() {\n\t}", ...
[ "0.6476202", "0.62453735", "0.61920357", "0.6152911", "0.61291206", "0.60423154", "0.59426254", "0.58796966", "0.5867866", "0.5850368", "0.57528543", "0.57407844", "0.5649756", "0.56313616", "0.5623928", "0.55679274", "0.5562042", "0.55483836", "0.5480444", "0.547327", "0.547...
0.59371996
7
log.debug("Faculty Model List method Started");
public List list(int pageNo, int pageSize) throws ApplicationException { StringBuffer sql = new StringBuffer("SELECT * FROM ST_FACULTY"); Connection conn = null; ArrayList list = new ArrayList(); // if page is greater than zero then apply pagination if (pageSize>0) { pageNo = (pageNo-1)*pageSize...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void contextLoads() {\n List<UserInfo> userInfos = new ArrayList<UserInfo>();\n userInfos = userInfoController.getUserList();\n System.out.println(userInfos);\n/* assertTrue(userInfos.size()>0);*/\n/* UserInfo userInfo = new UserInfo();\n userInfo = userI...
[ "0.62826115", "0.61130697", "0.61099815", "0.6105866", "0.5923489", "0.590676", "0.58754104", "0.57944226", "0.5774771", "0.57354385", "0.5710848", "0.56972957", "0.5683103", "0.5677626", "0.56604755", "0.557995", "0.5566526", "0.55657804", "0.55593544", "0.5547579", "0.55360...
0.63187873
0
OSGiDS life cycle method. Note that due to global initialization calls, this should not be called from unit tests; use the mock activator methods instead.
public void activate(BundleContext context) { // define the global ServiceRegistryAccessFactory for components and GUI code // TODO initialize from another location? ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context)); bootstrapSettings = BootstrapConf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeEach\n\tpublic void setup() throws Exception {\n\t\tGDACoreActivator activator = new GDACoreActivator(); // Make an instance to call method that sets static field!\n\t\tactivator.start(mockContext); // Inject the mock\n\n\t\tosgiServiceBeanHandler = new OsgiServiceBeanHandler();\n\t}", "private void initS...
[ "0.67706203", "0.63438314", "0.61753917", "0.61745775", "0.61745775", "0.6123634", "0.6032259", "0.59887356", "0.59725624", "0.5971165", "0.5961975", "0.5929215", "0.5927276", "0.5927276", "0.5906115", "0.58930093", "0.58900523", "0.58715373", "0.58695126", "0.5857276", "0.58...
0.0
-1
FIXME 6.0.0 this path will change; adapt
@Override public File getProfileConfigurationFile() { return new File(getConfigurablePath(ConfigurablePathId.PROFILE_ROOT), MAIN_CONFIGURATION_FILENAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void method_4270() {}", "private void kk12() {\n\n\t}", "public abstract File mo41087j();", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Overrid...
[ "0.53145975", "0.5274806", "0.5160706", "0.51349765", "0.5060573", "0.50536174", "0.50536174", "0.50536174", "0.50361264", "0.50274646", "0.49980992", "0.49835008", "0.49828252", "0.49826193", "0.49806786", "0.49785206", "0.4972129", "0.4967122", "0.49601513", "0.49592134", "...
0.0
-1
Unit test initialization method.
protected void mockActivate() { this.bootstrapSettings = BootstrapConfiguration.getInstance(); initializeProfileDirFromBootstrapSettings(); initializeConfigurablePaths(); loadRootConfiguration(false); initializeGeneralSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void init() {\n }", "@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}", "@Test\n public void testInitialize() {\n \n \n }", "public S...
[ "0.82930803", "0.80786467", "0.79744804", "0.7873395", "0.7868199", "0.7852883", "0.784729", "0.784729", "0.7721653", "0.7721653", "0.76726073", "0.7658946", "0.7632063", "0.76265395", "0.7613769", "0.7611917", "0.7603606", "0.7566607", "0.7565432", "0.75599754", "0.75501966"...
0.0
-1
TODO >6.0.0: review, then remove or rework add "platformProperties" as substitution values with a "platform:" prefix this.addSubstitutionProperties("platform", instanceConfiguration.getPlatformProperties()); load the discovery configuration (may use "platform:" substitutions internally); bootstrapping this from the "ou...
private void initializePropertySubstitution() { log.debug("Initializing property substitution"); String discoveryBundleName = discoveryBootstrapService.getSymbolicBundleName(); DiscoveryConfiguration discoveryConfiguration = getConfiguration(discoveryBundleName, DiscoveryConfiguration.class); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialiseByHand() {\n Configuration production = new Configuration(\"api.example.com\", false, 2000);\n Configuration staging = new Configuration(\"api-staging.example.com\", false, 2000);\n Configuration debug = new Configuration(\"api-dev.example.com\", true, 1000);\n Ma...
[ "0.5483347", "0.5385969", "0.5304583", "0.52894527", "0.52339923", "0.517878", "0.51764643", "0.51590574", "0.5064353", "0.50577193", "0.50532264", "0.5045921", "0.5036822", "0.50262755", "0.50205237", "0.5011794", "0.49767253", "0.49765086", "0.4947721", "0.49432057", "0.494...
0.7155633
0
shortcut if no substitution is configured
private String performSubstitutions(String input, File originFile) { if (substitutionProperties.isEmpty()) { return input; } // construct pattern to detect "${namespace:key}" and extract the "namespace:key" part Pattern pattern = Pattern.compile("\\$\\{(\\w+:\\w+)\\}"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSubstitute();", "String getDefaultAlias();", "String getReplacementString();", "@Override\r\n\tpublic String repl() {\n\t\treturn null;\r\n\t}", "abstract public void selfReplace(Command replacement);", "private String substitution(String s) {\r\n\t\t// System.out.println(\"ExPar.substit...
[ "0.5935257", "0.5630753", "0.56200325", "0.5474814", "0.5432351", "0.5359774", "0.5335295", "0.5245522", "0.52439255", "0.524144", "0.5239102", "0.52238274", "0.5124494", "0.5094491", "0.5013053", "0.5005021", "0.4982827", "0.4975464", "0.496001", "0.49345657", "0.491442", ...
0.0
-1
Creates new form LogPrompt
public LogPrompt() { initComponents(); this.setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LogForm(String title) {\r\n\t\tsuper(title);\r\n\t\tthis.addCommand(clearLogCommand);\r\n\t\tthis.addCommand(previuosScreenCommand);\r\n\t\tthis.setCommandListener(new CommandHandler());\r\n\t}", "public CommandNew(LogsPanel logsWindow) {\n super(logsWindow);\n }", "public DialogPrompt(String ...
[ "0.6570573", "0.5885266", "0.57411426", "0.57394403", "0.5733582", "0.56738573", "0.5666179", "0.55974907", "0.55902565", "0.5585869", "0.5509214", "0.54909456", "0.5473314", "0.5440148", "0.5435301", "0.543404", "0.5429923", "0.54196405", "0.5404032", "0.53981394", "0.536472...
0.68053836
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jLabel5 = new ja...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321233", "0.72922724", "0.72922724", "0.72922724", "0.7287021", "0.7250113", "0.7214902", "0.7209478", "0.71973455", "0.71915394", "0.71855843", "0.71602577", "0.7149222", "0.70949143", "0.70813066", "0.70579875", "0.6988272", "0.6978623", "0.6956488", "0.6954857", "0.694...
0.0
-1
/ This method checks for contenttype based on which, it processes and fetches the content of the message
public void writePart(Part p) throws Exception { System.out.println("CONTENT-TYPE: " + p.getContentType()); // check if the content is plain text if (p.isMimeType("text/plain")) { System.out.println("This is plain text"); System.out.println("---------------------------"); System.out.println((String) p....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public @Nullable T getContent() {\n logger.trace(\"Get Content of Message, content type : \" + contentType + \" / Content : \" + content);\n try {\n Class type = Class.forName(contentType);\n return (T) gson.fromJson(content, type);\n } catch (ClassNotFoundException e) {\...
[ "0.6906348", "0.6419838", "0.636646", "0.6238924", "0.6238924", "0.6238924", "0.6238924", "0.6238924", "0.6238924", "0.61910486", "0.61830074", "0.6115517", "0.6115517", "0.6115517", "0.6109182", "0.60680443", "0.59883577", "0.5950034", "0.59236467", "0.59236467", "0.590367",...
0.0
-1
String host = "pop.gmail.com"; String mailStoreType = "pop3";
public static void main(String[] args) { String host ="imap.gmail.com"; String mailStoreType ="imap"; String username = "amitashukla0906@gmail.com"; String password = "asit,s9!"; CheckMailUtil cmUtil = CheckMailUtil.getInstance(); cmUtil.checkMail(host, mailStoreType, username, password); // cmUtil.fetc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Session setUpEmailSession() throws MessagingException {\n Authenticator auth = new SimpleAuthenticator(mailUsername, mailPassword);\r\n Properties props = System.getProperties();\r\n props.put(\"mail.smtp.host\", mailHost);\r\n Session session = Session.getDefaultInstance(props, auth);\...
[ "0.64161384", "0.6160705", "0.6100918", "0.6019106", "0.58074325", "0.5728614", "0.5710896", "0.55323786", "0.55291986", "0.53907263", "0.5355508", "0.5345905", "0.5336207", "0.53240544", "0.52784896", "0.52777845", "0.5232567", "0.52186143", "0.5218046", "0.5184782", "0.5169...
0.5820695
4
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_power_list, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246451", "0.7201833", "0.7195169", "0.7176824", "0.71071094", "0.7039687", "0.70379424", "0.7011622", "0.70095545", "0.69799995", "0.6945173", "0.69389343", "0.6933555", "0.69172555", "0.69172555", "0.68906796", "0.688355", "0.687496", "0.6874772", "0.68613136", "0.686131...
0.0
-1
FROM POWER LIST CONTRACT INTERFACE
@Override public void showPowerDetailsUI(String itemId, String itemName, String powerListId, View transitioningView, String powerListName) { if (transitioningView != null){ Intent i = new Intent(PowerListActivity.this, PowerDetailsActivity.class); S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ListService {\n\n public String showListCmd();\n\n}", "void mo29842a(IObjectWrapper iObjectWrapper, zzatk zzatk, List<String> list) throws RemoteException;", "void mo29841a(IObjectWrapper iObjectWrapper, zzaiq zzaiq, List<zzaiw> list) throws RemoteException;", "public interface Ops extend...
[ "0.63303286", "0.61051494", "0.6019787", "0.6017525", "0.60000783", "0.59865606", "0.5980876", "0.59742475", "0.59438294", "0.58929396", "0.5888472", "0.58315223", "0.57588017", "0.57532406", "0.57136685", "0.5706316", "0.5681433", "0.56788766", "0.56652516", "0.56614697", "0...
0.0
-1
first hide the loading icon
@Override public void addSpellToList(Spell power) { progressBar.setVisibility(View.GONE); recyclerView.setVisibility(View.VISIBLE); Log.d(TAG, "addSpellToList: Got a spell to be added to adapter: " + power.getName()); String powerGroupName = power.getGroupName(); Log.d(TAG,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void hideLoadingAndUpdate() {\n image.setVisibility(View.VISIBLE);\n loadingBar.setVisibility(View.INVISIBLE);\n shareBtn.setVisibility(shareBtnVisibility);\n\n }", "private void hideLoading()\n {\n relLoadingPanel.setVisibility(View.GONE);\n ViewHelper.setViewGro...
[ "0.8036217", "0.7866935", "0.767634", "0.7547576", "0.7469078", "0.74645495", "0.7435171", "0.74327534", "0.7424623", "0.7379296", "0.7369461", "0.73687005", "0.7337071", "0.7307024", "0.72414654", "0.7224726", "0.7162484", "0.7146622", "0.7047853", "0.70181483", "0.701705", ...
0.0
-1