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
Function to populate the Blue Moon City Blacksmith inventory
private static String[] populateBlueMoonBlacksmith(String[] blacksmithInventory){ blacksmithInventory[0] = "Iron Helmet"; blacksmithInventory[1] = "Iron Chest Plate"; blacksmithInventory[2] = "Iron Boots"; blacksmithInventory[3] = "Iron Gloves"; return blacksmithInventory; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fillInventory(TheGroceryStore g);", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies ...
[ "0.69567895", "0.6433331", "0.6322048", "0.6248476", "0.6224986", "0.6205411", "0.6149702", "0.61263037", "0.60888124", "0.6042182", "0.5974435", "0.59634423", "0.59372467", "0.5907281", "0.5903872", "0.5857301", "0.58426666", "0.5818465", "0.5796725", "0.575938", "0.57324183...
0.71546525
0
Function to populate the Blue Moon City GeneralGoods inventory
private static String[] populateBlueMoonGeneral(String[] generalInventory){ generalInventory[0] = "Healing Potion"; generalInventory[1] = "Greater Healing Potion"; return generalInventory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fillInventory(TheGroceryStore g);", "private void testShippingGoods(){\n\t\tItem []itemArray1 = warehouse.getProductsByID(\"\");\n\n\n\t\tItem[] itemArray = warehouse.shippingGoods(itemArray1);\n\t\tSystem.out.println(\"There are \" + itemArray.length + \" items\");\n\t\tfor(Item item: itemArray){\n\...
[ "0.77665627", "0.6420589", "0.62521636", "0.6217943", "0.61839557", "0.61372066", "0.60983473", "0.60866517", "0.60734326", "0.6069954", "0.6046013", "0.6036844", "0.60243124", "0.599889", "0.59921455", "0.59298265", "0.5928325", "0.5907638", "0.5902877", "0.59020317", "0.587...
0.65572613
1
Function to populate the Blue Moon City Guild with quests
private static String[] populateBlueMoonGuild(String[] questList){ questList[0] = "Kill Skeletons"; return questList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static ArrayList<Quest> createQuests() {\n ArrayList<Quest> quests = new ArrayList();\n //Create Cooks assistant and imp catcher;\n\n //Imp Catcher\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Yellow Bead\");\n itemReqs.add(\"Red Bead\");\n ...
[ "0.6326168", "0.6291822", "0.62431526", "0.58683455", "0.5782122", "0.5720031", "0.568151", "0.5681428", "0.5606854", "0.55906934", "0.55756646", "0.5517138", "0.54994786", "0.54961103", "0.548997", "0.54404205", "0.5430506", "0.542788", "0.5405087", "0.5368803", "0.5365625",...
0.7031629
0
Function to display quests
private static void displayQuestList(String[] questList){ for(int i = 0; i < questList.length; i++){ switch(questList[i]){ case "Kill Skeletons": System.out.println((i + 1) + ") " + questList[i]); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printQuestions(ArrayList<Question> quest) {\n\t\tfor (Question question : quest) {\n\t\t\tquestion.getText();\n\t\t}\n\t}", "public static void displayQuestions() {\n System.out.println(\"1. Is your character male?\");\n System.out.println(\"2. Is your character female?\");\n ...
[ "0.72594714", "0.71768546", "0.6845434", "0.67600846", "0.67488515", "0.65909797", "0.6498585", "0.63923484", "0.6365729", "0.63247126", "0.6314028", "0.62863564", "0.62780523", "0.62418646", "0.6172935", "0.6103158", "0.60898", "0.6031452", "0.6029913", "0.60248965", "0.5984...
0.7514536
0
Function to display the shop keepers inventory
private static void displayShopInventory(String[] shopInventory){ for(int i=0; i<shopInventory.length; i++){ switch(shopInventory[i]){ case "Healing Potion": healingPotion HealingPotion = new healingPotion(); System.out.println((i + 1) + "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printInventory()\n {\n System.out.println(\"Welcome to \" + storeName + \"! We are happy to have you here today!\");\n System.out.println(storeName + \" Inventory List\");\n System.out.println();\n \n System.out.println(\"Our Books:\");\n System.out.println(...
[ "0.757221", "0.7139621", "0.71369165", "0.7091125", "0.70189863", "0.695093", "0.69477713", "0.69171333", "0.69135225", "0.68562376", "0.68045455", "0.67778367", "0.6773057", "0.67653525", "0.67628145", "0.67540836", "0.6714807", "0.66523826", "0.6645698", "0.66313916", "0.66...
0.584037
68
Function to get the sell price of the item being sold
private static int sellGold(String itemToSell){ int goldReceived = 0; if(itemToSell.equals("Leather Helmet")){ leatherHelmet LeatherHelmet = new leatherHelmet(); goldReceived = LeatherHelmet.getSellPrice(); return goldReceived; }else if(itemToSell.equals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}", "public BigDecimal getSellingPrice() {\n return sellingPrice;\n }", "public double getItemPrice(){\n\t\t\t String priceStr;\n\t\t\t double price;\n\t\t\t String elemVal = driver.findElement(productPrice).getText();\n\t Reporter...
[ "0.80218947", "0.7608042", "0.7487964", "0.7403659", "0.7360146", "0.7340262", "0.7336093", "0.7328983", "0.72849804", "0.72821003", "0.72773093", "0.72773093", "0.72773093", "0.7240811", "0.7146452", "0.7141659", "0.71170074", "0.709134", "0.7064671", "0.70596915", "0.705712...
0.6678272
69
Function that scales skeleton health based on player level
private static int skeletonHealthScale(int skeletonHealth, int playerLevel){ if(playerLevel > 1){ skeletonHealth = skeletonHealth + (5 * playerLevel); return skeletonHealth; }else{ return skeletonHealth; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int skeletonAttackScale(int skeletonAttack, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonAttack = skeletonAttack + (1 * playerLevel);\r\n return skeletonAttack;\r\n }else{\r\n return skeletonAttack;\r\n }\r\n }", "private static in...
[ "0.76980823", "0.7525548", "0.6491237", "0.64858776", "0.6216629", "0.6112697", "0.5864397", "0.5803811", "0.57762915", "0.5759874", "0.5750062", "0.5725523", "0.57203794", "0.5671211", "0.56477946", "0.5592631", "0.5568644", "0.55610156", "0.55452347", "0.5514197", "0.550861...
0.8617493
0
Function that scales skeleton attack based on player level
private static int skeletonAttackScale(int skeletonAttack, int playerLevel){ if(playerLevel > 1){ skeletonAttack = skeletonAttack + (1 * playerLevel); return skeletonAttack; }else{ return skeletonAttack; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int skeletonHealthScale(int skeletonHealth, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonHealth = skeletonHealth + (5 * playerLevel);\r\n return skeletonHealth;\r\n }else{\r\n return skeletonHealth;\r\n }\r\n }", "private static in...
[ "0.79867524", "0.7544164", "0.67342836", "0.64218485", "0.632934", "0.6219222", "0.58486885", "0.5801193", "0.57407707", "0.56591487", "0.5652403", "0.55131596", "0.5492235", "0.5459598", "0.545856", "0.54164284", "0.5370942", "0.53461397", "0.53298795", "0.5321723", "0.52987...
0.8533089
0
Function that scales skeleton gold dropped based on level
private static int skeletonGoldScale(int skeletonGold, int playerLevel){ if(playerLevel > 1){ skeletonGold = skeletonGold + ( 1* playerLevel); return skeletonGold; }else{ return skeletonGold; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int skeletonHealthScale(int skeletonHealth, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonHealth = skeletonHealth + (5 * playerLevel);\r\n return skeletonHealth;\r\n }else{\r\n return skeletonHealth;\r\n }\r\n }", "private static in...
[ "0.74845237", "0.7287544", "0.63119113", "0.5913221", "0.5692109", "0.5678812", "0.5654054", "0.5614123", "0.5568752", "0.55649984", "0.5516595", "0.5505703", "0.54807043", "0.5450064", "0.54457045", "0.54323816", "0.5397845", "0.53879255", "0.5380691", "0.5375332", "0.536066...
0.7669975
0
Function that scales the health of the devil
private static int devilHealthScale(int devilHealth, int playerLevel){ if(playerLevel > 4){ devilHealth = devilHealth + ((10 * (playerLevel - 4))); } return devilHealth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "private static int devilAttackScale(int devilAttack, int playerLevel){\r\n if(playerLevel > 4){\r\n devilAttack = devilAttack + ((2 * (playerLevel - 4)));\r\n \r\n }\r\...
[ "0.7081267", "0.65996075", "0.65796065", "0.6578853", "0.656058", "0.65504503", "0.6544201", "0.64795107", "0.6419757", "0.6418423", "0.64159447", "0.64140815", "0.64136696", "0.6410391", "0.633347", "0.63159436", "0.63032496", "0.6266562", "0.6254338", "0.6248019", "0.618727...
0.7652407
0
Function that scales the attack of the devil
private static int devilAttackScale(int devilAttack, int playerLevel){ if(playerLevel > 4){ devilAttack = devilAttack + ((2 * (playerLevel - 4))); } return devilAttack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }", "private static int devilGoldScale(int devilGold, int playerLevel){\r\n if(pl...
[ "0.7239463", "0.6984436", "0.67494005", "0.6526246", "0.65147907", "0.6451037", "0.64287287", "0.64187074", "0.63945806", "0.6338646", "0.63271236", "0.6249943", "0.6244895", "0.6242263", "0.62340975", "0.62340975", "0.6168768", "0.6146833", "0.6082477", "0.59810525", "0.5947...
0.806659
0
Function that scales devil gold dropped based on level
private static int devilGoldScale(int devilGold, int playerLevel){ if(playerLevel > 4){ devilGold = devilGold + ( 1* playerLevel); return devilGold; }else{ return devilGold; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }", "private static int devilAttackScale(int devilAttack, int playerLevel){\r\n i...
[ "0.7198827", "0.7078786", "0.6874677", "0.66458035", "0.6463456", "0.61903113", "0.61212194", "0.6087963", "0.59906334", "0.5976691", "0.59691936", "0.59157336", "0.5870401", "0.58007926", "0.5789473", "0.57881325", "0.57855785", "0.57811964", "0.57731223", "0.57445", "0.5738...
0.7602165
0
Function that scales the fireball damage based on player level
private static int fireballDamageScale(int fireballDamage, int playerLevel){ int totalDamage = 0; totalDamage = fireballDamage + (2 * playerLevel); return totalDamage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int fireballMPScale(int fireballCost, int playerLevel){\r\n int MPCost = 0;\r\n MPCost = fireballCost + (1 * playerLevel);\r\n return MPCost;\r\n }", "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devil...
[ "0.7956964", "0.76779723", "0.76129365", "0.73720104", "0.7118984", "0.6767948", "0.6710095", "0.65217775", "0.6384438", "0.63007134", "0.62919885", "0.6280613", "0.62716997", "0.62173367", "0.6190935", "0.6185546", "0.6165497", "0.6149648", "0.61465967", "0.6125874", "0.6089...
0.8633152
0
Function that scales the fireball mp cost based on player level
private static int fireballMPScale(int fireballCost, int playerLevel){ int MPCost = 0; MPCost = fireballCost + (1 * playerLevel); return MPCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int fireballDamageScale(int fireballDamage, int playerLevel){\r\n int totalDamage = 0;\r\n totalDamage = fireballDamage + (2 * playerLevel);\r\n return totalDamage;\r\n }", "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4...
[ "0.7784099", "0.71440196", "0.6962562", "0.6958059", "0.6842572", "0.6604361", "0.6523179", "0.6377815", "0.6357778", "0.6235336", "0.6195535", "0.6104242", "0.60967016", "0.58405554", "0.58348686", "0.5803635", "0.57918525", "0.57698053", "0.5750412", "0.5736", "0.5721597", ...
0.87841046
0
Function that gets the rarity of the item
private static String getItemRarity(String[] itemSlot){ String rarity = ""; if(itemSlot[0].equals("Leather Helmet")){ leatherHelmet LeatherHelmet = new leatherHelmet(); rarity = LeatherHelmet.getRarity(); return rarity; }else if(itemSlot[0].equals("Leath...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EnumRarity getRarity(ItemStack itemStack) {\n/* 222 */ return EnumRarity.epic;\n/* */ }", "public float getRarity() {\n \t\treturn rarity;\n \t}", "public EnumRarity getRarity(ItemStack stack) {\n/* 30 */ return (stack.getMetadata() == 0) ? EnumRarity.RARE : EnumRarity.EPIC;\n/* */ }"...
[ "0.7962134", "0.781915", "0.75095356", "0.7416733", "0.7384472", "0.73030305", "0.728466", "0.69687283", "0.61752236", "0.6144484", "0.61149526", "0.607265", "0.5935332", "0.58944345", "0.586579", "0.58036894", "0.5786772", "0.57173824", "0.5681371", "0.56747943", "0.5671255"...
0.7181642
7
CONSTRUCTOR It's private so no one can get at it!
private View() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private Rekenhulp()\n\t{\n\t}", "public Constructor(){\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "private TMCo...
[ "0.80478257", "0.7648508", "0.7619643", "0.76046604", "0.7542034", "0.7501828", "0.74983275", "0.74107975", "0.7405492", "0.7396196", "0.7384763", "0.73659354", "0.7339131", "0.7337455", "0.7337455", "0.7337455", "0.728128", "0.72731185", "0.72700465", "0.72474927", "0.724539...
0.0
-1
Only used to get userInput in the MagicStoreAdventure Class
public String getUserDecision(){ return input.nextLine(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeUserInput() {\n\t\t\r\n\t}", "private void takeInUserInput(){\n\t\t// only take in input when it is in the ANSWERING phase\n\t\tif(spellList.status == QuizState.Answering){\n\t\t\tspellList.setAnswer(getAndClrInput());\n\t\t\tspellList.status = QuizState.Answered;\n\t\t\tansChecker=spellList.getA...
[ "0.7063478", "0.676341", "0.67306244", "0.6628697", "0.63548857", "0.63309944", "0.6247919", "0.6167359", "0.613939", "0.61361086", "0.6115435", "0.60843354", "0.60680944", "0.599572", "0.5995468", "0.59703726", "0.5957647", "0.5956577", "0.5945536", "0.5938347", "0.5933536",...
0.5790636
33
Disable analysis within FindBugs. Turns off loading of bug detectors.
public static void setNoAnalysis() { noAnalysis = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void hideWarnings() {\n\t\tenableWarn = false;\n\t}", "public static void disableWarning() {\n try {\n Field theUnsafe = Unsafe.class.getDeclaredField(\"theUnsafe\");\n theUnsafe.setAccessible(true);\n Unsafe u = (Unsafe) theUnsafe.get(null);\n\n Class<?> c = Class.forName(\"...
[ "0.61868054", "0.5770329", "0.57190186", "0.56315386", "0.5591625", "0.55770296", "0.54071873", "0.5390725", "0.5313027", "0.5261841", "0.5261841", "0.52478725", "0.5235419", "0.5223719", "0.5214988", "0.51637846", "0.5145781", "0.513929", "0.513895", "0.513895", "0.5116209",...
0.56766933
3
Set the FindBugs home directory.
public static void setHome(String home) { FindBugs.home = home; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCarbonHome() {\n Path carbonHome = Paths.get(\"\");\n carbonHome = Paths.get(carbonHome.toString(), \"src\", \"test\");\n System.setProperty(CARBON_HOME, carbonHome.toString());\n logger.info(\"Carbon Home Absolute path set to: \" + carbonHome.toAbsolutePath());\n\n }...
[ "0.612661", "0.6106778", "0.5966956", "0.5935954", "0.58284664", "0.58271915", "0.57006896", "0.56415737", "0.5633868", "0.56317633", "0.56119156", "0.5560672", "0.5547786", "0.55372614", "0.5503477", "0.5468763", "0.5461038", "0.54349464", "0.5318341", "0.5231801", "0.522158...
0.7827016
0
Get the FindBugs home directory.
public static String getHome() { return home; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getHomeDirectory() {\n\t\treturn System.getProperty(\"user.home\");\n\t}", "public static String home() {\n\n String treefsHome = stringValue(\"treefs.home\");\n if(isNullOrEmpty(treefsHome)) {\n // default home location\n treefsHome = System.getProperty(\...
[ "0.7384024", "0.7036297", "0.7023642", "0.68832594", "0.6830545", "0.68128127", "0.678027", "0.6702826", "0.66900235", "0.6597846", "0.65781474", "0.6542484", "0.64449376", "0.63505614", "0.6274063", "0.62701356", "0.62127507", "0.61408854", "0.6104328", "0.60970855", "0.6073...
0.54672307
51
Determines whether or not given DetectorFactory should be enabled.
public static boolean isDetectorEnabled(IFindBugsEngine findBugs, DetectorFactory factory, int rankThreshold) { if (!findBugs.getUserPreferences().isDetectorEnabled(factory)) return false; if (!factory.isEnabledForCurrentJRE()) return false; // Slow first pass detector...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public default boolean hasDetector() {\n\t\treturn false;\n\t}", "public final boolean isEnabled(Feature f)\n/* */ {\n/* 557 */ return (this._factoryFeatures & f.getMask()) != 0;\n/* */ }", "boolean isDataSourceIngestModuleFactory();", "boolean hasGcsFuseCsiDriverConfig();", "boolean has...
[ "0.6290573", "0.5976883", "0.5950982", "0.56741387", "0.5445409", "0.5442834", "0.54103506", "0.5383615", "0.5359396", "0.5290629", "0.5260574", "0.52287936", "0.52230597", "0.5217313", "0.5203054", "0.5110588", "0.50855345", "0.5066651", "0.5063325", "0.505622", "0.5031918",...
0.6645084
0
Process the command line.
public static void processCommandLine(TextUICommandLine commandLine, String[] argv, IFindBugsEngine findBugs) throws IOException, FilterException { // Expand option files in command line. // An argument beginning with "@" is treated as specifying // the name of an option file. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processInput(CommandLineInput commandLineInput) {\n\t\t\n\t}", "private void processLine(String line) throws NoSystemException {\n line = line.trim();\n if (line == null || line.length() == 0 || line.startsWith(\"//\")\n || line.startsWith(\"--\"))\n return;\n\...
[ "0.6846604", "0.6539652", "0.6455983", "0.6413015", "0.63157636", "0.63080245", "0.6301382", "0.62635386", "0.6256346", "0.62066466", "0.61896515", "0.6159164", "0.6105426", "0.6084365", "0.6060956", "0.6054806", "0.6046996", "0.6046554", "0.6038991", "0.6030959", "0.6017336"...
0.60623276
14
Given a fullyconfigured IFindBugsEngine and the TextUICommandLine used to configure it, execute the analysis.
@SuppressWarnings("DM_EXIT") public static void runMain(IFindBugsEngine findBugs, TextUICommandLine commandLine) throws IOException { boolean verbose = !commandLine.quiet() || commandLine.setExitCode(); FutureValue<Collection<UpdateChecker.PluginUpdate>> updateHolder = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void processCommandLine(TextUICommandLine commandLine, String[] argv, IFindBugsEngine findBugs)\n throws IOException, FilterException {\n // Expand option files in command line.\n // An argument beginning with \"@\" is treated as specifying\n // the name of an option f...
[ "0.60227484", "0.5237342", "0.51607186", "0.508306", "0.49859306", "0.49785256", "0.49682015", "0.49190745", "0.49126276", "0.48910174", "0.4858374", "0.48285657", "0.48131102", "0.47531435", "0.4736646", "0.46941498", "0.46836552", "0.4660781", "0.46575928", "0.4603007", "0....
0.6372961
0
Print command line options synopses to stdout.
public static void showCommandLineOptions() { showCommandLineOptions(new TextUICommandLine()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printOptions() {\n\t\t\n\t}", "private static void printRunOptions(){\n\t\tSystem.out.println(\"Run options:\");\n\t\tSystem.out.println(\" -simple <configFile> <pathToApplication> <synthesis(true/false)>\");\n\t\tSystem.out.println(\" -simpleSpeedup <configFile> <pathToApplication>\")...
[ "0.76678246", "0.7661126", "0.7566063", "0.7513509", "0.7192722", "0.7006724", "0.69816285", "0.69516754", "0.6703917", "0.66772705", "0.666598", "0.65134543", "0.650792", "0.644969", "0.64491725", "0.6419229", "0.63721615", "0.6340397", "0.62956023", "0.6279179", "0.6272822"...
0.738603
4
Print command line options synopses to stdout.
public static void showCommandLineOptions(TextUICommandLine commandLine) { commandLine.printUsage(System.out); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printOptions() {\n\t\t\n\t}", "private static void printRunOptions(){\n\t\tSystem.out.println(\"Run options:\");\n\t\tSystem.out.println(\" -simple <configFile> <pathToApplication> <synthesis(true/false)>\");\n\t\tSystem.out.println(\" -simpleSpeedup <configFile> <pathToApplication>\")...
[ "0.766711", "0.76606476", "0.75652087", "0.7512951", "0.7385271", "0.7192034", "0.6980769", "0.69511986", "0.67028373", "0.6676968", "0.6665502", "0.6512336", "0.6508002", "0.64494586", "0.64484817", "0.64189345", "0.6372098", "0.63400203", "0.62957734", "0.627818", "0.627327...
0.7006177
6
Show the overall FindBugs command synopsis.
public static void showSynopsis() { System.out .println("Usage: findbugs [general options] -textui [command line options...] [jar/zip/class files, directories...]"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void help() {\n System.out.println(line(\"*\", 80));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSELECT * FROM table_name; D...
[ "0.6590335", "0.65696126", "0.65671605", "0.65531576", "0.65358853", "0.6501784", "0.64890885", "0.64616996", "0.64579993", "0.64411384", "0.64304924", "0.641874", "0.6385058", "0.6378507", "0.6352272", "0.6351224", "0.6341673", "0.6329368", "0.6327404", "0.63151044", "0.6307...
0.8395888
0
Configure the (bug instance) Filter for the given DelegatingBugReporter.
public static BugReporter configureFilter(BugReporter bugReporter, String filterFileName, boolean include) throws IOException, FilterException { Filter filter = new Filter(filterFileName); return new FilterBugReporter(bugReporter, filter, include); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init(FilterConfig config) {}", "@Override\n public void init(FilterConfig config) {\n }", "private void attachFilter(Appender<ILoggingEvent> appender, FilterInfo fi){\n if(!appender.getCopyOfAttachedFiltersList().contains(fi.filter)){\n appender.addFilter(fi.filter);\n ...
[ "0.5617145", "0.551376", "0.54580456", "0.5450719", "0.54025954", "0.53629166", "0.53629166", "0.53629166", "0.53629166", "0.5311046", "0.530764", "0.5279454", "0.522974", "0.520982", "0.5174118", "0.51336426", "0.512299", "0.5120708", "0.50677925", "0.50603706", "0.5038529",...
0.6418222
0
Configure a baseline bug instance filter.
public static BugReporter configureBaselineFilter(BugReporter bugReporter, String baselineFileName) throws IOException, DocumentException { return new ExcludingHashesBugReporter(bugReporter, baselineFileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void init(FilterConfig config) {\n }", "@Override\n\t\t\tpublic void setColorFilter(ColorFilter cf) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tpublic void setColorFilter(ColorFilter cf)\r\n\t\t{\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) {\n\n\t}", "...
[ "0.5609066", "0.55403817", "0.54551554", "0.5445116", "0.542127", "0.54132557", "0.53788584", "0.53618693", "0.5345053", "0.5306118", "0.52662605", "0.52583724", "0.52452725", "0.5236118", "0.5218175", "0.5210644", "0.521042", "0.5198641", "0.5120524", "0.51074344", "0.510320...
0.60425705
0
Configure the BugCollection (if the BugReporter being used is constructing one).
public static void configureBugCollection(IFindBugsEngine findBugs) { BugCollection bugs = findBugs.getBugReporter().getBugCollection(); if (bugs != null) { bugs.setReleaseName(findBugs.getReleaseName()); Project project = findBugs.getProject(); String projectName ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDetectorFactoryCollection(DetectorFactoryCollection detectorFactoryCollection) {\n this.detectorFactoryCollection = detectorFactoryCollection;\n }", "public void setBugs(double bugs) {\r\n this.bugs = bugs;\r\n }", "public BugExample() {\n oredCriteria = new ArrayList<...
[ "0.5544356", "0.55368775", "0.53615034", "0.52165216", "0.5098461", "0.5070917", "0.4993478", "0.49745712", "0.49409255", "0.49380618", "0.49335405", "0.4900413", "0.4854188", "0.48503482", "0.4847273", "0.4798175", "0.47758278", "0.47582716", "0.47377357", "0.4734737", "0.47...
0.68754464
0
Creates new form InterfaceProdutos
public InterfaceProdutos() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CadastroProdutoNew() {\n initComponents();\n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "public CrearProductos() {\n initComponents();\n }", "public void agregar(Producto producto) throws BusinessErrorHelper;", "public Pr...
[ "0.6807102", "0.6597859", "0.65838253", "0.65450644", "0.65166104", "0.65011877", "0.64996207", "0.64983803", "0.6456064", "0.6422654", "0.6418937", "0.6412497", "0.641248", "0.6400954", "0.6391795", "0.6338761", "0.6294624", "0.6294355", "0.62877715", "0.6285887", "0.6282405...
0.6987906
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(); jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tablePro...
{ "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.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
for loop Start at 0
public static void main(String[]args){ for(int i = 0 ; i <= 5;i++){ System.out.println("*"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "@Override public void init_loop() {\n loop_cnt_++;\n }", "private void increment() {\n for (int i=0; i < 10000; i++) {\n ...
[ "0.6685014", "0.65503436", "0.6350495", "0.6247451", "0.6210582", "0.61444277", "0.60897034", "0.5933226", "0.59185123", "0.59167016", "0.5914037", "0.59132636", "0.58977836", "0.58934194", "0.5889701", "0.5879566", "0.58744925", "0.58400595", "0.5807579", "0.5801462", "0.578...
0.0
-1
Set the content view and display the current image
@Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); uri = getIntent().getStringExtra("uri"); imageArray = getIntent().getStringArrayListExtra("array"); getIntent().getParcelableArrayListExtra("array"); setContentView(R.layout.image_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(...
[ "0.71655256", "0.67687225", "0.6500114", "0.6437658", "0.6315127", "0.6309069", "0.62970257", "0.6258791", "0.625813", "0.6208997", "0.6201422", "0.61783147", "0.614541", "0.61170226", "0.61131585", "0.6080412", "0.6077667", "0.6072797", "0.6061365", "0.6030042", "0.60203177"...
0.0
-1
Catch an user interaction
@Override public boolean onTouchEvent(MotionEvent event){ switch(event.getAction()){ case MotionEvent.ACTION_DOWN: x1 = event.getX(); break; case MotionEvent.ACTION_UP: x2 = event.getX(); float deltaX = x2 - x1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void userInteraction() {\n\t\tSystem.out.println(\"Starting user Interaction\");\n\t\twhile (true) {\n\t\t\tint input = Integer.parseInt(getUserInput(\"1 - Read, 2 - Send Email, Any other number - Exit...\"));\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tcheckMails(getUserInput(\"Type Folder Name to vie...
[ "0.6762737", "0.65430826", "0.6433247", "0.636081", "0.6352296", "0.6344947", "0.6290834", "0.62665457", "0.6235511", "0.619944", "0.617564", "0.6157464", "0.6156431", "0.615359", "0.61283916", "0.61188763", "0.6114657", "0.61065775", "0.6104858", "0.6016587", "0.6012515", ...
0.0
-1
Find the image on the left of the current one
public void imageLeft(){ if(index == 0) { index = imageArray.size() - 1; }else { index--; } String url = imageArray.get(index); Picasso.with(this).load(url).into(imageView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLeftImageId() {\n return leftImageId;\n }", "public void scrollLeft() {\r\n for(int i = 0; i < grid.getNumRows(); i++) {\r\n for(int j = 0; j < grid.getNumCols(); j++) {\r\n if(grid.getImage(i, j) == avoidImg) {\r\n if(j != 0) {\r\n ...
[ "0.6456168", "0.64205056", "0.6229073", "0.62141913", "0.6170328", "0.61658764", "0.608637", "0.60859966", "0.6010626", "0.59931254", "0.5910052", "0.5905748", "0.5878084", "0.5877151", "0.5871147", "0.5870417", "0.5870192", "0.5861948", "0.585574", "0.58097", "0.5808327", ...
0.6350168
2
Find the image on the right of the current one
public void imageRight(){ if(index == (imageArray.size() - 1)){ index = 0; }else{ index++; } String url = imageArray.get(index); Picasso.with(this).load(url).into(imageView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image getEight();", "public Image getTieUnder();", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return...
[ "0.6480335", "0.6230264", "0.5959131", "0.57877916", "0.5777926", "0.5731906", "0.57136005", "0.5681872", "0.5644489", "0.56429887", "0.5638482", "0.5636631", "0.56324387", "0.5558786", "0.5551371", "0.55456805", "0.5525423", "0.55215526", "0.55141044", "0.5479561", "0.546892...
0.5828152
3
/ Test to list commits with valid repository, author and user capability
@Test public void testCorrectUsage() throws IOException, AuthorCommitsFailedException { EasyMock.expect(mockManager.openRepository(new Project.NameKey("trial"))) .andReturn( RepositoryCache.open(FileKey.lenient(new File( "../../review_site/git", "trial.git"), FS.DETECTED)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = AuthorCommitsFailedException.class)\n public void testIncorrectAuthorPattern() throws AuthorCommitsFailedException {\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockC...
[ "0.66845715", "0.64121085", "0.6222717", "0.6059594", "0.6048607", "0.5800444", "0.5728834", "0.57018465", "0.56224203", "0.5598594", "0.5570384", "0.541038", "0.53486645", "0.5342066", "0.53026885", "0.5283145", "0.5204525", "0.5194473", "0.518733", "0.518554", "0.51649785",...
0.7126888
0
/ Test to check if exception is thrown without proper user capability
@Test(expected = AuthorCommitsFailedException.class) public void testUserWithoutCapability() throws AuthorCommitsFailedException { EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability); EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(false); EasyMock.expect(mockUser.getUse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasException();", "public boolean userException() {\n return userEx_;\n }", "@Override\n boolean canFail() {\n return true;\n }", "protected boolean allowInExceptionThrowers() {\n return true;\n }", "@Override\n protected boolean shouldSendThrowException() {\n r...
[ "0.6616993", "0.65247256", "0.65044886", "0.64973235", "0.6487234", "0.6324723", "0.6312451", "0.62807703", "0.62740266", "0.626785", "0.62617445", "0.62491447", "0.624783", "0.62219614", "0.6214876", "0.61989486", "0.6183913", "0.6146845", "0.61374915", "0.61317754", "0.6097...
0.0
-1
/ Test to check if exception is thrown with improper author pattern
@Test(expected = AuthorCommitsFailedException.class) public void testIncorrectAuthorPattern() throws AuthorCommitsFailedException { EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability); EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true); replay(mockUser, mockCapability...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected= VotingException.class)\n public void VotingMadeByAuthorThrowsException() throws Exception {\n\n bob.upVote(bobPost);\n bob.downVote(bobPost);\n alice.upVote(question);\n alice.downVote(question);\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic v...
[ "0.6427117", "0.6397557", "0.6391561", "0.63771635", "0.6368837", "0.62624615", "0.62529945", "0.62239665", "0.6212966", "0.61925554", "0.61903423", "0.6186425", "0.6158966", "0.6158966", "0.61486876", "0.6128433", "0.6112027", "0.6084984", "0.607994", "0.60798925", "0.606031...
0.6436402
0
/ Test to list commits of a repository with a .git extension
@Test public void testProjectNameWithGitExtension() throws AuthorCommitsFailedException, IOException{ EasyMock.expect(mockManager.openRepository(new Project.NameKey("trial"))) .andReturn( RepositoryCache.open(FileKey.lenient(new File( "../../review_site/git", "trial.git")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Commit> getAllCommits(Project project, String branchName);", "public List<String> getAllCommits() {\n return Utils.plainFilenamesIn(Main.ALL_COMMITS);\n }", "public List<Commit> getAllCommits(Repository repo) throws Exception {\n List<Commit> commits = new ArrayList<>();\n R...
[ "0.6132215", "0.61174726", "0.6097702", "0.60872614", "0.5821318", "0.5659247", "0.5639082", "0.5629009", "0.5619644", "0.5602705", "0.5503631", "0.543122", "0.5423152", "0.54152715", "0.53489757", "0.5269015", "0.52269477", "0.5214142", "0.5203056", "0.5201922", "0.51747936"...
0.69083846
0
/ Test to check if exception is thrown when a non existing repository is entered
@Test(expected = RepositoryNotFoundException.class) public void testNonExistingRepository() throws AuthorCommitsFailedException, IOException{ EasyMock.expect(mockManager.openRepository(new Project.NameKey("abcdefg"))) .andReturn( RepositoryCache.open(FileKey.lenient(new File( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void setRepositoryThrowsIOException() throws Exception {\n\t\tNoteContentFilter filter = new NoteContentFilter();\n\t\tfinal IOException exception = new IOException(\"message\");\n\t\tRepository repo = new BadRepository(testRepo, exception);\n\t\ttry {\n\t\t\tfilter.setRepository(repo);\n\t\t\tfail...
[ "0.646668", "0.6454857", "0.6365912", "0.63468724", "0.6202128", "0.6175904", "0.61428046", "0.61312187", "0.60898536", "0.6070759", "0.60561764", "0.60508657", "0.59864235", "0.5971846", "0.5955056", "0.5940303", "0.59163046", "0.58758897", "0.5873839", "0.5861071", "0.58533...
0.74008423
0
Creates a new exception.
public DataException(String field, String reason) { super(reason); this.field = field; this.reason = reason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exception() {\n\t\t\tsuper();\n\t\t}", "private SmartServiceException createException(Throwable t, String key, Object... args) {\n return new SmartServiceException.Builder(getClass(), t).userMessage(key, args).build();\n }", "public Exception() {\n\tsuper();\n }", "public NSException() {\n\t\ts...
[ "0.6823352", "0.67047155", "0.6681301", "0.6571406", "0.6513819", "0.6426842", "0.6401606", "0.6356658", "0.6334693", "0.62799597", "0.62499267", "0.62492573", "0.62174106", "0.61786336", "0.6164709", "0.61283827", "0.6114958", "0.6093963", "0.60892016", "0.6083234", "0.60799...
0.0
-1
EventListener for basic/common events send from the drone.
public interface CommonEventListener extends EventListener { default boolean filterProject(byte[] data, int project, int clazz, int cmd) { return data[7] == project && data[8] == clazz && data[9] == cmd; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "@Override\r\n public void onEvent(FlowableEvent event) {\n }", "@Subscribe\n public void onEvent(Object event) {\n }", "@Subscribe\n public void onEvent(Object event) {\n }"...
[ "0.7135387", "0.6599015", "0.659037", "0.646429", "0.646429", "0.6428546", "0.6428546", "0.6428546", "0.6428546", "0.6428546", "0.64027745", "0.6370631", "0.63398874", "0.62998277", "0.62998277", "0.62998277", "0.62812734", "0.6276186", "0.6273385", "0.6259089", "0.62561524",...
0.0
-1
Register Click Button Clicked
public void RegisterClick(View view) { Intent intent = new Intent(this, RegisterActivity.class); startActivity(intent); Toast.makeText(getApplicationContext(), "Register as a new user", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onTapToRegister();", "public void buttonClicked();", "public void clickOnRegisterButton() {\n Reporter.addStepLog(\" Click on register button \" + _registerBtn.toString());\n clickOnElement(_registerBtn);\n log.info(\" Click on register button \" + _registerBtn.toString());\n }", ...
[ "0.7355176", "0.7333045", "0.71355027", "0.69830364", "0.69600856", "0.69225293", "0.691264", "0.6890032", "0.6857991", "0.684016", "0.6839456", "0.68379784", "0.6825976", "0.6807813", "0.67812616", "0.6714113", "0.67139775", "0.6695401", "0.6649138", "0.6644082", "0.6640897"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws FileNotFoundException { FileReader fileReader = null; try { // 파일 생성 부분 추가 필요 20151222 // 파일 생성(R/W) 및 초기 데이터 추가한다. // 한글좀 그만 꺠져라.. // 아좀.. // 다시 테스트 // 다시.. fileReader =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public int read() throws IOException { int c; do { c = System.in.read(); } while(c != -1 && (c == '\n' || c == '\r')); return c; }
{ "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
onMenuIsOpen onDownOrMove closeMenu menuIsOpen
@Override public void onMenuIsOpen(View view) { mMenu = (SlidingButtonView) view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void closeMenu() {\n if (!isMenuOpen()) {\n return;\n }\n\n if (mIsVersionI || mIsVersionJ || mIsVersionK) {\n // Click menu button to close menu (this is NOT for taking pictures)\n String uiMenuButton = (mIsVersionK)? UI_MENU_BUTTON_ID_4X:UI_MENU_BUTTO...
[ "0.73543274", "0.7180578", "0.70949334", "0.6953009", "0.6797707", "0.6666393", "0.66340655", "0.66336346", "0.6606013", "0.6598927", "0.65489614", "0.6519796", "0.6502828", "0.63946736", "0.6391747", "0.63757706", "0.6363303", "0.63622713", "0.635832", "0.6320561", "0.624021...
0.7115328
2
Add new event to calendar
public boolean addEvent(Calendar initial_date, Calendar final_date, String name) { boolean result = false; Event event = new Event(); event.setName(name); event.setInitial_date(initial_date); event.setFinal_date(final_date); /* if event was created */ if (event.getFinal_date() != null && event.getInitial...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addToCalendar() {\r\n if (!requireCalendarPermissions())\r\n return;\r\n\r\n if (CalendarUtil.createEntry(this, event))\r\n onAddToCalendarSuccess();\r\n else\r\n onRequireCalendarPermissionsDenied();\r\n }", "public void addEvent(View v){\n\t...
[ "0.7790128", "0.7408068", "0.73038805", "0.7214498", "0.7129646", "0.6996183", "0.6993109", "0.6882151", "0.6865018", "0.68517554", "0.6836317", "0.6754477", "0.6753335", "0.67087704", "0.66872996", "0.66106594", "0.65852094", "0.6574705", "0.6523715", "0.6515698", "0.6498967...
0.6002013
62
Add new event to calendar
public boolean addEvent(Event event) { boolean result = false; /* if event was created */ if (event != null && event.getFinal_date() != null && event.getInitial_date() != null) { events.add(event); result = true; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addToCalendar() {\r\n if (!requireCalendarPermissions())\r\n return;\r\n\r\n if (CalendarUtil.createEntry(this, event))\r\n onAddToCalendarSuccess();\r\n else\r\n onRequireCalendarPermissionsDenied();\r\n }", "public void addEvent(View v){\n\t...
[ "0.7792205", "0.7408997", "0.73034066", "0.72163624", "0.71294165", "0.69947255", "0.6994696", "0.68824875", "0.686479", "0.6852517", "0.68369186", "0.675484", "0.67545784", "0.67101675", "0.6688098", "0.6611438", "0.65845215", "0.6577837", "0.6524649", "0.6514607", "0.649915...
0.6406539
29
Find events by interval
public ArrayList<Event> getEventsByInterval(Calendar initial_date, Calendar final_date) { ArrayList<Event> result = new ArrayList<Event>(); boolean insert = true; for (int i = 0; i < events.size(); i++) { if (initial_date != null && final_date != null) { if (!events.get(i).getInitial_date().after(i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Event> searchByInterval(Date leftDate, Date rightDate) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin BETWEEN :leftDate and :rightDate \"\n + \"ORDER BY e.i...
[ "0.59475887", "0.5614661", "0.5508879", "0.5321006", "0.5297015", "0.5282474", "0.52811164", "0.5228613", "0.5119456", "0.511037", "0.51051533", "0.5098456", "0.5097642", "0.5076535", "0.5062212", "0.5047648", "0.50300777", "0.50258124", "0.50153375", "0.4998075", "0.4969506"...
0.52493227
7
Find events from today
public ArrayList<Event> getEventsByToday() { ArrayList<Event> result = new ArrayList<Event>(); Calendar today = Calendar.getInstance(); for (int i = 0; i < events.size(); i++) { if (events.get(i).getInitial_date().get(Calendar.YEAR) == today.get(Calendar.YEAR) && events.get(i).getInitial_date().get(Calend...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Event> getCalendarEventsByDay()\n {\n ArrayList<Event> dayListOfEvents = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n if( (events.get(i).getCalendar().get(Calendar.YEAR) == currentCalendar.get(Calendar.YEAR)) &&\n (events...
[ "0.6688916", "0.6682348", "0.66068923", "0.64983237", "0.6410274", "0.63257587", "0.6232764", "0.6201207", "0.6063173", "0.605349", "0.6045616", "0.60407144", "0.60333174", "0.6030411", "0.6002431", "0.59970427", "0.5987703", "0.5912305", "0.5893207", "0.58798", "0.5849246", ...
0.76968944
0
Find events by past days
public ArrayList<Event> getEventsByPastDays(int days, Calendar today) { ArrayList<Event> result = new ArrayList<Event>(); today.add(Calendar.DATE, days * (-1)); for (int i = 0; i < events.size(); i++) { if (events.get(i).getInitial_date().get(Calendar.YEAR) == today.get(Calendar.YEAR) && events.get(i).get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_T...
[ "0.63078755", "0.5986283", "0.59475166", "0.5938538", "0.58572644", "0.5851322", "0.5737308", "0.5679056", "0.56292415", "0.56281984", "0.56250066", "0.56193364", "0.55943", "0.55613333", "0.5500798", "0.5462743", "0.5413341", "0.5396298", "0.5379622", "0.52974313", "0.525950...
0.72362167
0
Remove event from calendar
public boolean removeEventById(Integer id) { boolean result = false; if (id != null) { Event event = getEventById(id); if (event != null) { events.remove(event); result = true; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "public void remove(DiaryCalend...
[ "0.8882554", "0.7963633", "0.7540592", "0.7347769", "0.7115182", "0.6987106", "0.6954918", "0.69435394", "0.6927425", "0.6751001", "0.6721532", "0.67036456", "0.65892875", "0.65850145", "0.6584536", "0.6549236", "0.6530559", "0.6475071", "0.64032006", "0.636653", "0.6352866",...
0.0
-1
Gets the value of the propertyNameOrXlinkPropertyNameOrFunction property.
public List<Object> getPropertyNameOrXlinkPropertyNameOrFunction() { if (propertyNameOrXlinkPropertyNameOrFunction == null) { propertyNameOrXlinkPropertyNameOrFunction = new ArrayList<Object>(); } return this.propertyNameOrXlinkPropertyNameOrFunction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPropertyName();", "public String get(String propertyName);", "public String getStringProperty(String propertyName) ;", "public String getPropertyName();", "public String propertyName() {\n\t\t\treturn target != null ? target : name;\n\t\t}", "java.lang.String getProperty();", "public String g...
[ "0.60814613", "0.59645414", "0.58087516", "0.5791081", "0.57180995", "0.5673516", "0.56026375", "0.5586821", "0.55702907", "0.55702907", "0.55702907", "0.55666214", "0.5469738", "0.54682994", "0.5450254", "0.5354158", "0.53320277", "0.529202", "0.5280742", "0.5264732", "0.525...
0.7952428
0
Gets the value of the typeName property.
public List<QName> getTypeName() { if (typeName == null) { typeName = new ArrayList<QName>(); } return this.typeName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String typeName() {\n return typeName;\n }", "public String typeName() {\n return this.typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n retur...
[ "0.8287084", "0.8267615", "0.82002085", "0.82002085", "0.82002085", "0.82002085", "0.81989574", "0.81216884", "0.80499244", "0.8005082", "0.79738504", "0.7937185", "0.79279107", "0.7583212", "0.7529672", "0.75181055", "0.75181055", "0.75158185", "0.74815613", "0.74815613", "0...
0.6903084
26
TODO: Remove permission node to deploy
@Command(names = {"team resize", "t resize", "f resize", "faction resize", "fac resize"}, permission = "op") public static void teamResize(final Player sender) { Team team = Hulu.getInstance().getTeamHandler().getTeam(sender); if (team == null) { sender.sendMessage(ChatColor.GRAY + "You...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialDeploy() {\n }", "public void sfDeploy() throws SmartFrogException, RemoteException {\n super.sfDeploy();\n sfLog().info(\"DEPLOYED \"+sfCompleteNameSafe().toString());\n }", "@Override\n public String deploy(String applicationName, Environment environment, Component ...
[ "0.7071221", "0.64025646", "0.62732023", "0.6069408", "0.60062647", "0.5938904", "0.58917475", "0.582495", "0.5823963", "0.58162373", "0.5778003", "0.57110053", "0.5610914", "0.55061346", "0.5482486", "0.54370517", "0.54218984", "0.5408344", "0.5365558", "0.5362579", "0.53437...
0.0
-1
Returns an ExactProjectRelation instance. The returned relation must include the partition column. If the source relation is an ApproxAggregatedRelation, we can expect that an extra groupby column is inserted for propagating the partition column.
@Override protected ExactRelation rewriteWithPartition() { ExactRelation newSource = source.rewriteWithPartition(); List<SelectElem> newElems = new ArrayList<SelectElem>(); // Check if the newElems include star expressions. If so, we don't have to explicitly include // prob ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.apache.spark.sql.catalyst.plans.logical.LocalRelation asRelation () { throw new RuntimeException(); }", "public Relation project(Tuple t) throws RelationException;", "public abstract RelationDeclaration getRelation();", "QueryPartitionClause createQueryPartitionClause();", "@Override\n public...
[ "0.55387366", "0.5288672", "0.4897297", "0.47096026", "0.46354938", "0.4572607", "0.44423088", "0.44149706", "0.4381495", "0.43684697", "0.43423763", "0.4306035", "0.42620742", "0.426169", "0.42278886", "0.41889092", "0.41734144", "0.4096551", "0.4043181", "0.40341997", "0.40...
0.58051646
0
Due to the fact that the antecedents of a projected relation does not propagate any substitution.
@Override protected Map<TableUniqueName, String> tableSubstitution() { return ImmutableMap.of(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Relation project(Tuple t) throws RelationException;", "@Override\n\tString realise(Realiser r) {\n\t\tString mainSent = this.coordinator.realise(r);\n\n\t\tif (isSubordinateClause() && !this.suppressComp\n\t\t\t\t&& !getForm().equals(Form.GERUND)) {\n\t\t\tif (isRelativeWithComplementPosition())\t{\n\t\t\...
[ "0.56302786", "0.53831047", "0.53056836", "0.52359384", "0.5201593", "0.5200584", "0.51666516", "0.5133417", "0.51092887", "0.51056373", "0.50987905", "0.5092798", "0.5064027", "0.5056824", "0.4999762", "0.49989936", "0.4987104", "0.49551058", "0.49544045", "0.49222067", "0.4...
0.0
-1
Test of render method, of class TeamController.
@Test public void testRender() { try{ System.out.println("render"); HttpSession session = new MockHttpSession(); session.setAttribute("session_user", ujc.findUser(1)); String project_id = "3"; TeamController instance = new TeamController(); // ModelAndView expR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testRender(){\n Mockito.doNothing().when(renderer).renderWorld(level);\n Mockito.doNothing().when(renderer).renderScore();\n Mockito.doNothing().when(renderer).renderLives();\n renderer.render();\n verify(renderer).renderWorld(level);\n verify(render...
[ "0.63352513", "0.60318553", "0.60120857", "0.5983432", "0.5900979", "0.5848077", "0.5830501", "0.580602", "0.5778543", "0.5778017", "0.5772326", "0.57653457", "0.56823283", "0.56604", "0.56319577", "0.5624149", "0.5607948", "0.5553891", "0.55403674", "0.55389094", "0.55308664...
0.7844271
0
System.out.println("deleteMember"); String deleteUserId = ""; String project_id = ""; TeamController instance = new TeamController(); ModelAndView expResult = null; ModelAndView result = instance.deleteMember(deleteUserId, project_id); assertEquals(expResult, result); // TODO review the generated test code and remove t...
@Test public void testDeleteMember() throws Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEliminar3() {\n System.out.println(\"eliminar\");\n usuarioController.crear(usuario1);\n int codigo = 0;\n boolean expResult = false;\n boolean result = usuarioController.eliminar(codigo);\n assertEquals(expResult, result);\n // TODO revie...
[ "0.7886534", "0.7861039", "0.7844606", "0.76855797", "0.73580307", "0.7331456", "0.7282054", "0.72771335", "0.7205602", "0.7173075", "0.711297", "0.70991945", "0.7086075", "0.7047055", "0.7022906", "0.69946384", "0.69845796", "0.698157", "0.6979375", "0.6971092", "0.69440037"...
0.76371354
4
Test of search method, of class TeamController.
@Test public void testSearch() { try{ System.out.println("search"); String searchString = "YifanZhang"; String project_id = "3"; HttpServletResponse res = new MockHttpServletResponse(); TeamController instance = new TeamController(); // ModelAndView expResult =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid searchTest() {\n\t}", "@Test\n public void testSearchResultsLoad() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"all\")\n .param(\"searchTerm\", \"asdf\"))\n .andExpect(status().isOk());\n }", "@Test\n pu...
[ "0.6706348", "0.66748524", "0.66729426", "0.65635747", "0.6491511", "0.64683586", "0.64171505", "0.63414836", "0.63316846", "0.6315132", "0.6299962", "0.6263288", "0.62033653", "0.6193203", "0.61906236", "0.618668", "0.61483556", "0.6126367", "0.6053327", "0.6017835", "0.5985...
0.7426656
0
Test of sendInvitation method, of class TeamController.
@Test public void testSendInvitation() { try{ System.out.println("sendInvitation"); String project_id = "3"; String inviteUserId = "6"; TeamController instance = new TeamController(); // ModelAndView expResult = null; instance.setProjectId(3); instance....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testSendInvite()\n {\n System.out.println(\"sendInvite\");\n Account invite = null;\n Account sender = null;\n Party instance = null;\n instance.sendInvite(invite, sender);\n // TODO review the generated test code and remove the default call to fa...
[ "0.7085966", "0.6873443", "0.6634981", "0.62799466", "0.6250715", "0.6044934", "0.59628606", "0.59444463", "0.5929592", "0.584883", "0.5830701", "0.5775414", "0.57462645", "0.57428515", "0.5657495", "0.56434244", "0.56121856", "0.56088656", "0.55937093", "0.5587238", "0.55255...
0.747695
0
construct an empty tree of point nodes
public KdTree() { root = null; size = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TreeNode(Point point) \r\n {\r\n if (point == null) throw new IllegalArgumentException();\r\n this.point = point;\r\n }", "public KDTree()\n\t{\n\t}", "public SegmentTree() {}", "public VPHashTree(int depth, Collection<? extends VPPoint> points) {\n super(points, DEFAULT_BIN_SI...
[ "0.6911319", "0.64693767", "0.6431476", "0.64108413", "0.6404717", "0.6279186", "0.62749624", "0.6237752", "0.6192859", "0.61899585", "0.6152549", "0.6141922", "0.6130734", "0.6117975", "0.61032754", "0.6100419", "0.60949415", "0.60905707", "0.60790527", "0.6074118", "0.60726...
0.58803374
57
is the tree empty?
public boolean isEmpty() { return root == null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean empty() {\r\n\t\t return(this.root == null);\r\n\t }", "public boolean isEmpty() \n\t{\n\t\treturn root == null;//if root is null, tree is empty\n\t}", "private boolean isEmpty()\r\n\t{\r\n\t\treturn getRoot() == null;\r\n\t}", "public boolean empty() {\n\t\treturn (this.root == null); // to...
[ "0.85653037", "0.84948325", "0.8449184", "0.84094703", "0.83166915", "0.8300659", "0.8298185", "0.82509357", "0.82114965", "0.8197395", "0.8178642", "0.81565094", "0.8141589", "0.81260127", "0.81071603", "0.81053954", "0.80862606", "0.80812204", "0.80812204", "0.8047776", "0....
0.8113572
15
number of nodes in the tree
public int size() { return size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countNodes(){\r\n \treturn count(root);\r\n }", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public int countNodes()\r\n {\r\n return countNodes(root);\r\n }", "int getNodeCou...
[ "0.86105424", "0.85084546", "0.8398174", "0.83646375", "0.83646375", "0.8360599", "0.83514637", "0.83514637", "0.8338222", "0.8338222", "0.82478076", "0.8200851", "0.81961626", "0.8187722", "0.8183124", "0.81815493", "0.81353706", "0.8125691", "0.809621", "0.8093353", "0.8084...
0.0
-1
add the point p to the tree (if it is not already in the tree)
public void insert(Point2D p) { if (isEmpty()) { Node n = new Node(p, true); root = n; return; } if (!contains(p)) { Node current = root; Node prev = null; boolean left = false; while (current...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(Point2D p) { // add the point to the set (if it is not already in the set)\n // \"write a simplified version of insert() which does everything except set up the RectHV for each node\"\n if (p == null) throw new IllegalArgumentException();\n\n\n if (root == n...
[ "0.81844896", "0.77734846", "0.76206744", "0.7612923", "0.7540096", "0.7394992", "0.73586744", "0.7243866", "0.72007084", "0.713828", "0.7072268", "0.7066922", "0.70618814", "0.699136", "0.69662076", "0.69566035", "0.6849497", "0.6761093", "0.6727694", "0.6725739", "0.6691458...
0.7596004
4
does the tree contain the point p?
public boolean contains(Point2D p) { if (p != null && !isEmpty()) { Node current = root; while (current != null) { if (current.isVertical()) // compare by x { if (p.x() < current.getPoint().x()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean testPoint(Point p){\n\t\tif(parents.contains(p)) return false;\n\t\treturn true;\n\t}", "public boolean contains(Point2D p) {\n checkNull(p);\n if (size == 0) {\n return false;\n } else {\n Node n = root;\n while (n != null) {\n ...
[ "0.7946723", "0.76452446", "0.7543551", "0.7474106", "0.73442304", "0.731967", "0.73136014", "0.7284936", "0.72459525", "0.72345275", "0.7191683", "0.7166089", "0.70569366", "0.70366836", "0.6991487", "0.69786954", "0.69512916", "0.6890544", "0.68858546", "0.68775105", "0.685...
0.78252757
1
draw all the points to standard draw
public void draw() { inorder(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(0.01);\n for (Point2D point : points) {\n StdDraw.point(point.x(), point.y());\n ...
[ "0.8220091", "0.8139483", "0.80436707", "0.80167764", "0.78704166", "0.7644552", "0.76027393", "0.76027393", "0.76027393", "0.76027393", "0.7192317", "0.6952031", "0.6862337", "0.6829775", "0.68277574", "0.68277574", "0.68277574", "0.6824045", "0.67747164", "0.6751766", "0.66...
0.0
-1
all the points in the tree that are inside the rectangle
public Iterable<Point2D> range(RectHV rect) { Stack<Point2D> pointsInRect = new Stack<Point2D>(); range(root, rect, pointsInRect); return pointsInRect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ArrayList<Point> points(Rectangle inRectangle) {\n // if the node's rect and the given rect don't intersect, return an empty array,\n // because there can't be any points that lie the node's (or its children's) rect and\n // in the given rect\n if (!this.rectangle....
[ "0.7667782", "0.7122941", "0.7082314", "0.6994732", "0.697051", "0.6929006", "0.6900325", "0.6870586", "0.6836841", "0.6631022", "0.6626061", "0.6623893", "0.6590352", "0.6555226", "0.6554865", "0.649885", "0.64823365", "0.64498204", "0.6347766", "0.63471884", "0.6269545", ...
0.6870185
8
a nearest neighboe in the tree to p; null if tree is empty
public Point2D nearest(Point2D p) { if (p != null && !isEmpty()) { Node current = root; Node nearest = null; while (current != null) { nearest = current; if (current.isVertical()) // compare by x { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point2D nearest(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n if (isEmpty()) {\n return null;\n }\n\n Node nearestNode = new Node(root.point, true);\n nearestNode.left = root.left;\n nearestNode.right = ro...
[ "0.8015504", "0.7839122", "0.7812748", "0.7724437", "0.7663292", "0.76365", "0.7547178", "0.75082386", "0.7488445", "0.7479941", "0.7445144", "0.742146", "0.7377844", "0.73191786", "0.7315285", "0.7305385", "0.73002744", "0.7281518", "0.70300055", "0.69008285", "0.68543667", ...
0.77934235
3
Initialize counter with initial value 0.
public ConnectionCount() { this(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter() {\r\n value = 0;\r\n }", "public Counter() {\r\n this.count = 0;\r\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "public Counter(int init){\n \tvalue = init;\n }", "public Coun...
[ "0.8358166", "0.81692046", "0.8131097", "0.8131097", "0.798377", "0.78421444", "0.7815684", "0.77442557", "0.75088084", "0.74979615", "0.7315113", "0.7315113", "0.7215561", "0.7214368", "0.7127586", "0.7048207", "0.6983108", "0.6919233", "0.6916757", "0.6909741", "0.6894063",...
0.6070155
65
Initialize counter with initial value.
public ConnectionCount(int counter) { this.counter = counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter(int init){\n \tvalue = init;\n }", "public Counter() {\r\n value = 0;\r\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "public Counter() {\r\n this.count = 0;\r\n }", "public void...
[ "0.84536994", "0.82489026", "0.80667907", "0.80667907", "0.7876712", "0.7799519", "0.7646212", "0.76219726", "0.74797875", "0.7460013", "0.72711045", "0.72573507", "0.70915824", "0.70557904", "0.7021853", "0.7000994", "0.696695", "0.696695", "0.68213314", "0.6814222", "0.6757...
0.5838852
79
Retrieve current value of counter.
public int getCounter() { return this.counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCurrentCounter() {\n return currentCounter;\n }", "public BigInteger getCurrentValue()\r\n { \t\r\n \tlog.debug(\"counter: \" + currentValue.intValue() );\r\n return this.currentValue;\r\n }", "public static int getCounter() {return counter;}", "...
[ "0.7823021", "0.77727664", "0.7639355", "0.7637431", "0.75875956", "0.7545277", "0.7529167", "0.7495119", "0.7438356", "0.73080444", "0.7292689", "0.7292689", "0.72879046", "0.7262293", "0.72340596", "0.7207919", "0.719842", "0.71980405", "0.71377707", "0.7082053", "0.7073699...
0.679187
28
Add the counter when new connection is established.
public synchronized void add() { counter += 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void incrConnectionCount() {\n connectionCount.inc();\n }", "public void incrementNumConnects() {\n this.numConnects.incrementAndGet();\n }", "private void countConnectingSocket() {\n \t\tcurrentlyConnectingSockets.incrementAndGet();\n \t}", "public void incrementClients() {\n\t\tconnec...
[ "0.80809563", "0.70108926", "0.6881493", "0.6714142", "0.6681261", "0.6636845", "0.6630521", "0.66214406", "0.65668577", "0.64999324", "0.6466947", "0.6349471", "0.63469005", "0.6325268", "0.62541187", "0.6215384", "0.62012416", "0.61710906", "0.6148143", "0.6134893", "0.6132...
0.0
-1
Delete the counter when a connection is terminated.
public synchronized void delete() { counter -= 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void decrConnectionCount() {\n connectionCount.dec();\n }", "public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}", "private void handleClosedConnection() {\n final int currentConnections = concurrentConnections.decrementAndGet();\n\n log.debug(\"[Vertx-Event...
[ "0.76846254", "0.7016864", "0.62544245", "0.61464304", "0.6116563", "0.6024494", "0.5912539", "0.5879085", "0.5864374", "0.58596516", "0.58561337", "0.5846267", "0.5788485", "0.57600063", "0.57600063", "0.5751383", "0.5734298", "0.57338464", "0.5731777", "0.5708121", "0.56996...
0.61925244
3
Make the couter show by String.
@Override public String toString() { return "" + counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String visualizzaCampo(){\n\t\tString info= new String(\"Nome: \"+ nome +\"\\n\" +\"Descrizione: \" + descrizione+ \"\\n\"+ \"Obbligatoria: \" + obbligatorio +\"\\n\");\n\t\treturn info;\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\...
[ "0.59435064", "0.58463705", "0.58418894", "0.5795962", "0.57890475", "0.5788025", "0.57554656", "0.5754454", "0.5741061", "0.5724714", "0.5706422", "0.5699984", "0.5697271", "0.5693361", "0.5683993", "0.56691015", "0.5656954", "0.56530297", "0.5645045", "0.56356364", "0.56250...
0.0
-1
Taking ABSTRACT from INTERFACE UNIMPLEMENTED METHODS FROM INTERFACE
public void sub(int x, int y) { int diff = x - y; System.out.println("Subtracting Integers: " + diff); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface B extends A {\n void b();\n}", "public interface AbstractC1953c50 {\n}", "private static interface Derived extends Base {\n\n public void foo();\n }", "private static interface Base {\n\n public void foo();\n }", "public interface AbstractC2502fH1 extends IInterface ...
[ "0.6748622", "0.66037184", "0.65837413", "0.6578818", "0.653563", "0.6480741", "0.6462306", "0.6460706", "0.6439402", "0.642615", "0.6413985", "0.638827", "0.63864493", "0.6371665", "0.63593537", "0.63278836", "0.6319783", "0.6291099", "0.62832165", "0.62621033", "0.62597847"...
0.0
-1
getting page & login
@Test(priority = 1) public void editTest() throws IOException, InterruptedException { driver.get(baseURL); loginPage lp = new loginPage(driver); SearchCustomerPage scp = new SearchCustomerPage(driver); EditDeleteCustomerPage edcp = new EditDeleteCustomerPage(driver); lp.setUserName(username); lp.setPas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getLoginPage() {\r\n return loginPage;\r\n }", "private String getLoginPage() {\n\t\tif (loginPage == null) {\n\t\t\tloginPage = Application.getLoginPage(context);\n\t\t}\n\n\t\treturn loginPage;\n\t}", "private static void postLoginPage() {\n post(\"/login\", \"application/js...
[ "0.730368", "0.68912953", "0.6796928", "0.67174655", "0.66568553", "0.6630687", "0.65122163", "0.6497952", "0.64791316", "0.64612603", "0.64537346", "0.64489067", "0.64316493", "0.64164656", "0.63903964", "0.6383396", "0.63476294", "0.63469183", "0.62912357", "0.6259492", "0....
0.0
-1
getting page & login
@Test(priority = 2) public void deleteTest() throws IOException, InterruptedException { driver.get(baseURL); loginPage lp = new loginPage(driver); SearchCustomerPage scp = new SearchCustomerPage(driver); EditDeleteCustomerPage edcp = new EditDeleteCustomerPage(driver); lp.setUserName(username); lp.setP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getLoginPage() {\r\n return loginPage;\r\n }", "private String getLoginPage() {\n\t\tif (loginPage == null) {\n\t\t\tloginPage = Application.getLoginPage(context);\n\t\t}\n\n\t\treturn loginPage;\n\t}", "private static void postLoginPage() {\n post(\"/login\", \"application/js...
[ "0.7303507", "0.68907994", "0.6797428", "0.6718167", "0.66575694", "0.66306657", "0.6512711", "0.64979714", "0.6480427", "0.646125", "0.64547884", "0.6449662", "0.6432441", "0.6416774", "0.63905907", "0.63841707", "0.63489515", "0.6347389", "0.6291107", "0.62595725", "0.62593...
0.0
-1
select all los which contribute to one knowledge
List<TModuleLo> selectModuleLoSkill(Long skillId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<RepStuLearning> selectByExample(RepStuLearningExample example);", "List<TModuleLo> selectSkillToLo();", "public static void demo_LCS(RoWordNet RoWN) throws Exception {\n Timer timer = new Timer();\n String lcs;\n\n boolean allowAllRelations = true;\n\n Literal l1 = new Literal(...
[ "0.59691995", "0.5946124", "0.53633493", "0.5312922", "0.5307309", "0.52460635", "0.5238084", "0.5192674", "0.5139006", "0.50948143", "0.50866914", "0.50112957", "0.5007891", "0.4996636", "0.49636948", "0.4956354", "0.49507973", "0.49479237", "0.48977947", "0.4894809", "0.489...
0.53337675
3
select all los which contribute to one knowledge
List<TModuleLo> selectSkillToLo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<RepStuLearning> selectByExample(RepStuLearningExample example);", "public static void demo_LCS(RoWordNet RoWN) throws Exception {\n Timer timer = new Timer();\n String lcs;\n\n boolean allowAllRelations = true;\n\n Literal l1 = new Literal(\"viață\");\n Literal l2 = new Li...
[ "0.59679645", "0.53636384", "0.53330976", "0.5311155", "0.5306286", "0.5245698", "0.52365965", "0.5191673", "0.5137865", "0.50939065", "0.5086897", "0.5008852", "0.50077", "0.49940154", "0.4961873", "0.49569005", "0.4948777", "0.4946967", "0.48961124", "0.48933005", "0.488946...
0.5945233
1
Called once when the command is scheduled.
@Override public void initialize() { arm.setPosition(degrees); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Override\r\n public void robotPeriodic() ...
[ "0.6899614", "0.68903536", "0.688049", "0.68777", "0.686147", "0.68428355", "0.68224716", "0.6805904", "0.6702509", "0.6669921", "0.66512036", "0.6632523", "0.66042197", "0.66042197", "0.66042197", "0.66042197", "0.66042197", "0.66042197", "0.6598175", "0.659161", "0.6588193"...
0.0
-1
Returns true when the command should end.
@Override public boolean isFinished() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean shouldEnd();", "private Boolean quitCommand() {\n output.println(\"QUIT COMMAND\");\n return false;\n }", "protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFER...
[ "0.75273657", "0.73602504", "0.73465896", "0.71294767", "0.7033159", "0.7012778", "0.700753", "0.6994238", "0.6931957", "0.6927545", "0.6915831", "0.68845886", "0.68594575", "0.68594575", "0.68594575", "0.6853999", "0.68532574", "0.6851464", "0.6851464", "0.6837983", "0.68260...
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { lblLoggedIn.setText(LoginController.employeeName + " " + LoginController.employeeSurname + " ID: " + LoginController.employeeID + ""); try { requisitionForm = FXMLLoader.load(getClass().getResource("MaterialRequisition.fxml")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
FormClose.closeForm(mainForm); OpenForm vehForm = new OpenForm(); String title = "Dashboard"; String screen = "Widgets.fxml"; vehForm.openServiceListScreen(screen, title);
@FXML private void switchHome(ActionEvent event) { setNode(mainForm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tOpenscreen.open(\"/admin_main/first_main.fxml\");\r\n\t\t\t}", "public void gotoMyFlights(){\n try {\n FXMLMyFlightsController verMyFlights = (FXMLMyFlightsController) replaceSceneContent(\"FXMLMyFlights.fxml\");\n v...
[ "0.65806246", "0.65099585", "0.6385032", "0.63598883", "0.6304965", "0.6276319", "0.6240512", "0.6230207", "0.62104577", "0.61915386", "0.6150208", "0.6110456", "0.6083276", "0.6063847", "0.60419756", "0.60295016", "0.60182256", "0.6012153", "0.6000429", "0.5990472", "0.59785...
0.56878674
63
Encoded "" as Base64
@Test public void shouldGiveTwoElementEmptyStringArrayOnOnlyColon() { String decodeString = "Og=="; assertThat("Two elements is present", BasicAuth.decode(decodeString), is(arrayWithSize(2))); assertThat("First element is emptyString", BasicAuth.decode(decodeString)[0], isEmptyString()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "public String base64Encode(String str) throws StoreFactoryException;", "private static String encodeToBase64(byte[] data) {\n...
[ "0.78643405", "0.7850783", "0.7728164", "0.7661992", "0.7646651", "0.7624421", "0.7520891", "0.74144375", "0.73926836", "0.73855656", "0.73309803", "0.72802025", "0.7242699", "0.71995825", "0.7161086", "0.7126461", "0.7119311", "0.70850486", "0.7001787", "0.69559556", "0.6944...
0.0
-1
Encoded "Burma!" as Base64
@Test public void shouldGiveSingleElementArrayOnNoColonString() { String decodeString = "QnVybWEh"; assertThat("Only one element is present", BasicAuth.decode(decodeString), is(arrayWithSize(1))); assertThat("Input string is contained", BasicAuth.decode(decodeString), is(hasItemInArray("Burm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] deco...
[ "0.74168557", "0.7335943", "0.7225376", "0.72189355", "0.7010474", "0.69912916", "0.6966422", "0.69430286", "0.6931796", "0.6823772", "0.6811116", "0.6773855", "0.6765772", "0.6720862", "0.66181946", "0.6590885", "0.6537275", "0.65308803", "0.6530212", "0.6526934", "0.6507788...
0.0
-1
Encoded "Crash Override:I love Acid Burn" as Base64
@Test public void shouldGiveTwoElementsWithOneColonString() { String decodeString = "Q3Jhc2ggT3ZlcnJpZGU6SSBsb3ZlIEFjaWQgQnVybg=="; assertThat("Two elements is present", BasicAuth.decode(decodeString), is(arrayWithSize(2))); assertThat("Username is contained", BasicAuth.decode(decodeString),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String...
[ "0.730503", "0.71348864", "0.7107052", "0.69432044", "0.6821302", "0.6777562", "0.67607784", "0.6563065", "0.6460921", "0.6454853", "0.6438645", "0.6414068", "0.6365577", "0.63418144", "0.62911904", "0.62818366", "0.6280654", "0.6271417", "0.62685937", "0.62364465", "0.623540...
0.0
-1
Encoded "Sergeant Colon:owed thirty years of happy marriage to the fact that Mrs. Colon:worked all day and Sargent Colon worked all night." as Base64
@Test public void shouldIgnoreMoreThanOneColon() { String decodeString = "U2VyZ2VhbnQgQ29sb246b3dlZCB0aGlydHkgeWVhcnMgb2YgaGFwcHkgbWFycmlhZ2UgdG8gdGhlIGZhY3QgdGhhdCBNcnMuIENvbG9uOndvcmtlZCBhbGwgZGF5IGFuZCBTYXJnZW50IENvbG9uIHdvcmtlZCBhbGwgbmlnaHQu"; assertThat("Two elements is present", BasicAuth.dec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getEncoded();", "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "private String encodeBase64(String msg) {\n\t\tbyte[] bytesEncoded = Base64.encodeBase64(ms...
[ "0.7065799", "0.6947346", "0.6746004", "0.6714024", "0.6458166", "0.6420546", "0.63457155", "0.6332678", "0.6260021", "0.6243223", "0.623643", "0.619039", "0.6127642", "0.61231995", "0.61213833", "0.6091232", "0.6084362", "0.608348", "0.60791284", "0.60718113", "0.60580784", ...
0.0
-1
NEVER CHANGE THE ORDERING OF THE PARAMETERS. THE SWITCH (RIGHT, LEFT) IS DELIBERATE!
public Iterator<GraphMapping<ToscaNode, ToscaEdge>> findMatches(ToscaGraph queryGraph, ToscaGraph toSearchIn, IToscaMatcher comp) { Comparator<ToscaNode> vertexComparator = (ToscaNode left, ToscaNode right) -> new ToscaComparatorProxy(comp).compareTypeCompatible(right, left); Comparator<ToscaEdge> edgeC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "void setLeftToRight(boolean ltor);", "public void changeDirection()\n {\n if(goLeft){\n goLeft = false;\n }else{\n goLeft = true;\n ...
[ "0.70120096", "0.6324111", "0.6210978", "0.6136552", "0.6055088", "0.60222447", "0.599093", "0.5960044", "0.5957374", "0.59019446", "0.58728915", "0.58635056", "0.58240235", "0.5817118", "0.5803317", "0.57961464", "0.57859457", "0.57623047", "0.57485974", "0.5737474", "0.5718...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); slide = new javax.swing.JSlider(); jLabel4 = new javax...
{ "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.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
Performs a post operation to the query service and has no output
@Override public CompletableFuture<APostOperationResponse> aPostOperation(APostOperationRequest aPostOperationRequest) { List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, aPostOperationRequest .overrideConfiguration().orElse(null)); MetricCollector api...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String post();", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "public void postData() {\n\n\t}", "@Override\n public String getMethod() {\n ...
[ "0.67225707", "0.65536684", "0.6389486", "0.6371895", "0.6303206", "0.6284483", "0.6222902", "0.61744565", "0.61671996", "0.61172426", "0.5919699", "0.59184355", "0.587704", "0.58194", "0.57833743", "0.5741904", "0.57039875", "0.5703503", "0.5688923", "0.56799895", "0.5671775...
0.60042083
10
Creates a Pair that represents a object. The key must be of Comparable type as it is used to implement the Comparable interface.
public Pair(K key, V value) { this.key = key; this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pair(K key, V value){\n this.key = key;\n this.value = value;\n }", "public Pair(Key key, Value value) {\n this.key = key;\n this.value = value;\n }", "static <K extends Comparable<? super K>, V> KeyValue<K, V> make(K key, V value) {\n return new Tuple<>(key, value);...
[ "0.7172735", "0.7106501", "0.64487004", "0.64194876", "0.62081957", "0.617582", "0.600953", "0.59861606", "0.5984482", "0.59558314", "0.5865532", "0.5863913", "0.58274543", "0.58204776", "0.5760091", "0.57316554", "0.5677304", "0.5657347", "0.5653394", "0.5636543", "0.5605832...
0.70040166
2
return the key of this pair
public K getKey() { return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic K getKey() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "public String getKey();", "public Strin...
[ "0.8367476", "0.79812276", "0.79812276", "0.79812276", "0.79812276", "0.79812276", "0.79812276", "0.7783132", "0.7783132", "0.7783132", "0.7783132", "0.7762106", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0...
0.7509503
62
return the value of this pair
public V getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic V getValue() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "public Pair get()\n {\n return this.MapItr.element;\n }", "@Override\n public V getValue() {\n return m_value;\n }", "public V getValue()\r\n\t\t{\r\n\t\t\treturn val;\r\n\t\t}", "public...
[ "0.83068925", "0.69962513", "0.68707895", "0.68508303", "0.6845299", "0.6830432", "0.6806655", "0.6806655", "0.6801393", "0.6783825", "0.6779009", "0.67775095", "0.67731106", "0.6718145", "0.6711043", "0.6711043", "0.6703914", "0.6682832", "0.6647749", "0.6637922", "0.6636503...
0.6772438
16
Extract the bindings from the input folder to the output file, using the bindingExtractor.
public static void extractBindings(final File inputFolder, final File outputFile, final AbstractJavaNameBindingsExtractor bindingExtractor) throws IOException, JsonIOException { final Collection<File> allFiles = FileUtils .listFiles(inputFolder, JavaTokenizer.javaCodeFileFilter, DirectoryFileFilter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File no...
[ "0.45284122", "0.4490226", "0.4423583", "0.44156718", "0.43629885", "0.43528625", "0.43449038", "0.43076715", "0.43049368", "0.4300927", "0.42610747", "0.42411315", "0.42149097", "0.42035457", "0.41880447", "0.4184154", "0.41785488", "0.4171992", "0.4128642", "0.41260245", "0...
0.73660773
0
TODO Autogenerated method stub
@Override public Long getId() { 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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Get all the disabilityTypes.
@Transactional(readOnly = true) public Page<DisabilityTypeDTO> findAll(Pageable pageable) { log.debug("Request to get all DisabilityTypes"); return disabilityTypeRepository.findAll(pageable) .map(disabilityTypeMapper::toDto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SecTyp> getAllTypes();", "@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn (List<Type>)BaseDao.select(\"select * from type\", Type.class);\r\n\t}", "public List<Type> getAll();", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "public List<CWLT...
[ "0.69292766", "0.6740817", "0.66817576", "0.66433334", "0.6596604", "0.64966875", "0.64444155", "0.64312786", "0.64199865", "0.6399265", "0.629635", "0.6257824", "0.6249106", "0.6232607", "0.6225652", "0.62187886", "0.6212352", "0.61905354", "0.6180511", "0.6168134", "0.61478...
0.6029994
25
Get one disabilityType by id.
@Transactional(readOnly = true) public Optional<DisabilityTypeDTO> findOne(Long id) { log.debug("Request to get DisabilityType : {}", id); return disabilityTypeRepository.findById(id) .map(disabilityTypeMapper::toDto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @Transactional(readOnly = true)\n public Optional<TypeVehicule> findOne(Long id) {\n log.debug(\"Request to get TypeVehicule : {}\", id);\n return typeVehiculeRepository.findById(id);\n }", "public LearningType findOne(Long id);", "@Override\r\n\tpublic TypeModePaiement getBy...
[ "0.65657866", "0.64273125", "0.63910425", "0.63486934", "0.6339335", "0.63095635", "0.62607896", "0.6260352", "0.6214911", "0.6210722", "0.6192048", "0.6183419", "0.61716753", "0.60580415", "0.6025491", "0.6019376", "0.5967743", "0.59505427", "0.5943932", "0.5934501", "0.5934...
0.7837975
0
Delete the disabilityType by id.
public void delete(Long id) { log.debug("Request to delete DisabilityType : {}", id); disabilityTypeRepository.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete TypeVehicule : {}\", id);\n typeVehiculeRepository.deleteById(id);\n }", "void delete(String typeName, String id);", "public void delete(Long id) {\n log.debug(\"Request to delete ContributionType : {}\", id);\...
[ "0.72681856", "0.6920914", "0.6902856", "0.68809456", "0.66787344", "0.66666853", "0.6663136", "0.66502005", "0.6624507", "0.66121227", "0.6578651", "0.65763056", "0.65763056", "0.65763056", "0.65763056", "0.65763056", "0.6535704", "0.6525279", "0.6519228", "0.64981806", "0.6...
0.85524756
0