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
Call this to construct a BlueMeshService object once all the configurations have been specified
public BlueMeshService build(){ BlueMeshService bms = new BlueMeshService(); bms.setUUID(uuid); bms.setDeviceId(deviceId); bms.enableBluetooth(bluetoothEnabled); bms.setup(); return bms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Fog_Services createFog_Services();", "public BlueMeshServiceBuilder bluetooth( boolean enabled ){\n bluetoothEnabled = enabled;\n return this;\n }", "private void initService() {\r\n\t}", "private void initService() {\n \tlog_d( \"initService()\" );\n\t\t// no action if debug\n ...
[ "0.58145535", "0.5553717", "0.5517069", "0.5490229", "0.54254", "0.5410262", "0.53921306", "0.5333576", "0.5330773", "0.5330374", "0.53183055", "0.53069955", "0.5290922", "0.52705234", "0.5259448", "0.52270913", "0.52036196", "0.5199948", "0.5195302", "0.51784676", "0.5176328...
0.7597312
0
used by subclass NNCategory_3
public String preview(HttpServletRequest request, Campaign campaign) throws Exception { throw new Exception("Base class preview with Campaign - not implemented"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getCategory();", "public abstract String getCategory();", "@Override\r\n public String getCategory() throws Exception\r\n {\n return null;\r\n }", "@Override\n public String getCategoryLabel() {\n return categoryLabel;\n }", "public interface LdCDef exten...
[ "0.5902354", "0.5902354", "0.57094985", "0.56416184", "0.5583908", "0.55733865", "0.55161333", "0.55074805", "0.5465781", "0.54478335", "0.5442219", "0.5439762", "0.54318357", "0.54107034", "0.5389621", "0.5388554", "0.5372563", "0.53504676", "0.5324973", "0.53229254", "0.531...
0.0
-1
Initializes the proxy and returns the wrapped value.
Object getTarget();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ProxyValue createProxyValue();", "@Override\n public T get() {\n if (!initialized) {\n synchronized (this) {\n if (!initialized) {\n T t = delegate.get();\n value = t;\n initialized = true;\n return t;\n ...
[ "0.6773005", "0.6192189", "0.6116528", "0.5873044", "0.57796794", "0.5703696", "0.56228715", "0.55880183", "0.5571524", "0.55514514", "0.5446346", "0.5441799", "0.5368091", "0.5298332", "0.5292304", "0.52656966", "0.5139549", "0.513012", "0.51286244", "0.5105932", "0.50921077...
0.0
-1
Craft a false DNS response Note the DNS response will not make use of any of the mocked query contents (all input is discarded and replies synthetically generated
public Object answer(InvocationOnMock invocation) throws Throwable { return craftResponse(invocation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ArrayList<String> resolve(String domain, InetAddress dnsServer) {\n // Pointer\n int pos = 12;\n // Cmd buffer\n byte[] sendBuffer = new byte[100];\n // Message head\n sendBuffer[0] = ID[0];\n sendBuffer[1] = ID[1];\n sendBuffer[2] = 0x01;\n se...
[ "0.5765814", "0.57359886", "0.5525798", "0.5458099", "0.54503316", "0.54468036", "0.5377288", "0.53200144", "0.530102", "0.5269832", "0.5257044", "0.5099931", "0.50932485", "0.50867945", "0.5063386", "0.50586444", "0.5053647", "0.5032486", "0.5023387", "0.5023194", "0.5014823...
0.4623579
86
Reads the LTA bus stops into a hashmap
public HashMap<String, BusStops> readLtaBusStops(String file, String file2) throws IOException { //Reads Lta Bus Stop Codes and add it into a hashmap HashMap<String, BusStops> busStopMap = new HashMap<>(); File ltaBusStopCodes = new File(file); //Instantiates the file to read File otherFile = new File(file2); //Tries to read the file using buffered reader try (BufferedReader br = new BufferedReader(new FileReader(ltaBusStopCodes))) { br.readLine();//To skip first line StringTokenizer st; //String tokenizer to read the csv token by token String line; //loops through the csv file and read it while ((line = br.readLine()) != null) { st = new StringTokenizer(line, ","); //using StringTokenizer's delimiter for ",". Each word as a single token. //2nd while loop to loop each and every word after delimiter "," while (st.hasMoreTokens()) { String busStopCode = st.nextToken(); String roadDesc = st.nextToken(); String busStopDesc = st.nextToken(); //Creates a LtaBusStopCodes object with the data read from csv and insert into the hashmap BusStops ltaBsStopCode = new BusStops(busStopCode, roadDesc, busStopDesc); busStopMap.put(ltaBsStopCode.getBusStopCode(), ltaBsStopCode); }//End while loop for each token }//End while loop } try (BufferedReader br = new BufferedReader(new FileReader(otherFile))) { br.readLine(); StringTokenizer st; String line; while ((line = br.readLine()) != null) { st = new StringTokenizer(line, ","); while (st.hasMoreTokens()) { double latitude = Double.parseDouble(st.nextToken()); double longitude = Double.parseDouble(st.nextToken()); int zid = Integer.parseInt(st.nextToken()); BusStops bs = busStopMap.get(st.nextToken()); if (bs != null) { bs.setX(latitude); bs.setY(longitude); bs.setZid(zid); } } } } return busStopMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<AbstractMap.SimpleImmutableEntry<Stop, Integer>> getStops() { return stops;}", "public List<Stop> getStopsMap()\r\n {\r\n return stops_map;\r\n }", "List<Map.Entry<Long, String>> getStopTimeTable(String stopId) throws Exception;", "private void initMaps(Context cxt, ObaResponse respo...
[ "0.5775755", "0.5711445", "0.548944", "0.54012436", "0.53732616", "0.52857065", "0.5264587", "0.52580494", "0.51578903", "0.5079438", "0.50507504", "0.50358623", "0.5025813", "0.50226563", "0.500295", "0.4934352", "0.4910719", "0.49073783", "0.48707223", "0.48456457", "0.4838...
0.69381
0
Reads BOTH the sbs and SMRT file and put them into a single list
public List<BusRoutes> readBusRoutes(String sbsFile, String smrtFile) throws IOException { List<BusRoutes> busRoutes = new ArrayList<>(); File ltaSbstRoute = new File(sbsFile); try (BufferedReader br = new BufferedReader(new FileReader(ltaSbstRoute))) { br.readLine(); StringTokenizer st; String line; while ((line = br.readLine()) != null) { st = new StringTokenizer(line, ","); while (st.hasMoreTokens()) { String serviceNum = st.nextToken(); int direction = Integer.parseInt(st.nextToken()); int roadSeq = Integer.parseInt(st.nextToken()); String busStopCode = st.nextToken(); Double distance; try { distance = Double.parseDouble(st.nextToken()); } catch (NumberFormatException ex) { distance = null; } BusRoutes ltaRoutes = new BusRoutes(serviceNum, direction, roadSeq, busStopCode, distance); busRoutes.add(ltaRoutes); }//End while loop for each token }//End while loop } File smrtBusRoute = new File(smrtFile); try (BufferedReader br = new BufferedReader(new FileReader(smrtBusRoute))) { br.readLine(); StringTokenizer st; String line; while ((line = br.readLine()) != null) { st = new StringTokenizer(line, ","); while (st.hasMoreTokens()) { String serviceNum = st.nextToken(); int direction = Integer.parseInt(st.nextToken()); int roadSeq = Integer.parseInt(st.nextToken()); String busStopCode = st.nextToken(); Double distance; try { distance = Double.parseDouble(st.nextToken()); } catch (NumberFormatException ex) { distance = null; } BusRoutes smrtRoutes = new BusRoutes(serviceNum, direction, roadSeq, busStopCode, distance); busRoutes.add(smrtRoutes); }//End while loop for each token }//End while loop } return busRoutes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void removeSSRs(File input){\n try(\n FileReader fRead = new FileReader(input+\".ssr\");\n BufferedReader bRead = new BufferedReader(fRead);\n FileReader fRead2 = new FileReader(input);\n BufferedReader bRead2 = new BufferedReader(fR...
[ "0.6229705", "0.58933115", "0.58895063", "0.5748356", "0.5740062", "0.56687635", "0.5667527", "0.5639655", "0.5583793", "0.55610687", "0.55598503", "0.55368936", "0.5463529", "0.5461439", "0.5446939", "0.5438713", "0.5431734", "0.5422321", "0.5417398", "0.5411496", "0.5405713...
0.6854742
0
Sort entries by date and time Get guard with most minutes asleep overall Result is guard's ID minute of most common asleep time
@Test public void test_read_input_and_sort() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ArrayList<Object> sortState(ArrayList<EcgInfo> array_ecgInfo, ArrayList<ActivityPoint> array_activityInfo,EcgInfo sleepDayInfo){\n\t\tArrayList<Object> sortedState=new ArrayList<Object>();\n\n\t\t//emily++++ insert sleepDayInfo into array_ecgInfo\n\t\tArrayList<EcgInfo> sortedEcgSleep=new ArrayList<EcgInf...
[ "0.53885883", "0.5353944", "0.53388697", "0.51545984", "0.51227224", "0.50913876", "0.5064817", "0.50626343", "0.49780738", "0.4974674", "0.49396682", "0.4934102", "0.49187952", "0.48911", "0.4853045", "0.48436767", "0.48352742", "0.4831015", "0.4817925", "0.4813103", "0.4808...
0.0
-1
Result is 148734 Part 2 Example Matrix where x are the minutes and y are the guard IDs 000000000011111111112222222222333333333344444444445555555555 012345678901234567890123456789012345678901234567890123456789 10 .....11111111111111111112111101111111111111111111111111..... 99 ....................................1111222223222211111..... The result is the ID of the guard times the minute you chose (e.g. 99 45 = 4455)
@Test public void test_sleep_count_matrix(){ List<GuardStatus> list = Four.sortInputByDate(Four.readInputAndParse("src/main/java/AoC2018/four/out2")); Four.buildSleepCountMatrix(list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String findMaximumValidTime1(int a, int b, int c, int d) {\n int[] arr = {a,b,c,d};\n int maxHr = -1;\n int hr_i = 0, hr_j = 0;\n\n //Find maximum HR\n for(int i=0; i < arr.length; i++){\n for(int j=i+1; j < arr.length; j++){\n int value1 = arr[i...
[ "0.5069594", "0.5020144", "0.49823195", "0.49806768", "0.49156767", "0.49148917", "0.48923466", "0.48716268", "0.48422214", "0.48384", "0.48320445", "0.4829256", "0.48262414", "0.4810128", "0.48067182", "0.47918326", "0.47875696", "0.47777313", "0.47611204", "0.4741652", "0.4...
0.48651654
8
constructore to instance Utils
public Server() throws IOException { System.out.println("\t Server Started \n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "public Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils()...
[ "0.8083887", "0.7980483", "0.7980483", "0.7980483", "0.7980483", "0.7866993", "0.7802252", "0.7783182", "0.7783182", "0.7783182", "0.7783182", "0.7783182", "0.7711661", "0.7711661", "0.7507937", "0.736765", "0.735699", "0.73322296", "0.73322296", "0.7315308", "0.7312255", "...
0.0
-1
metodo che restuisce la port del server sul quale rimane in ascolto
public int getPort() { return port; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int serverPort ();", "default int getPort() {\n return getServer().getPort();\n }", "default Object port() {\n return metadata().get(\"server-port\");\n }", "public int getServerPort(){\n\t\treturn serverPort; \n\t}", "public int getPort();", "public int getPort();", "public int g...
[ "0.74061644", "0.72150046", "0.69414914", "0.6917228", "0.6898163", "0.6898163", "0.6898163", "0.68894905", "0.6885417", "0.68381816", "0.68284523", "0.68144304", "0.6810471", "0.68101937", "0.68059504", "0.68059504", "0.67950714", "0.6795033", "0.6767385", "0.6766919", "0.67...
0.703886
2
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "chromedriver.exe"); ChromeDriver driver =new ChromeDriver(); driver.get("https://www.cleartrip.com/"); driver.manage().window().maximize(); driver.findElement(By.id("DepartDate")).click(); String dateOfTravel="2/December/2019"; String day,month,year; String date[]=dateOfTravel.split("/"); // delimeter / day=date[0]; month=date[1]; year=date[2]; String calMonth,CalYear; CalYear=driver.findElement(By.xpath(".//*[@id='ui-datepicker-div']/div[2]/div/div/span[2]")).getText(); System.out.println(CalYear); System.out.println(year); while(!CalYear.equals(year)) { driver.findElement(By.xpath(".//*[@id='ui-datepicker-div']/div[2]/div/a")).click(); CalYear=driver.findElement(By.xpath(".//*[@id='ui-datepicker-div']/div[2]/div/div/span[2]")).getText(); System.out.println("While loop printing year " +CalYear); } calMonth=driver.findElement(By.xpath(".//*[@id='ui-datepicker-div']/div[2]/div/div/span[1]")).getText(); System.out.println("current month visible is " +calMonth); System.out.println(month); while(!calMonth.equals(month)) { driver.findElement(By.xpath(".//*[@id='ui-datepicker-div']/div[2]/div/a")).click(); calMonth=driver.findElement(By.xpath(".//*[@id='ui-datepicker-div']/div[2]/div/div/span[1]")).getText(); System.out.println("while loop printing month " +calMonth); } List<WebElement> tdList=driver.findElements(By.xpath("//table[@class='calendar']/tbody/tr/td")); for(int i=0;i<tdList.size();i++) { WebElement e = tdList.get(i); if(e.getText().equals(day)) { System.out.println("date matched " +e.getText()); e.click(); break; } } }
{ "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
Set the name of the parameter that contains a locale specification in a locale change request. Default is "locale".
public void setParamName(String paramName) { this.paramName = paramName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLocale(Locale locale) {\n fLocale = locale;\n }", "public void setRequestedLocale(final Locale val) {\n requestedLocale = val;\n }", "protected void setLocale(Locale locale) {\n this.locale = locale;\n }", "public void setLocale(Locale locale)\n {\n this.locale ...
[ "0.70043826", "0.672017", "0.6686655", "0.66615766", "0.66269934", "0.65825045", "0.65825045", "0.6581535", "0.65756416", "0.6569219", "0.6482633", "0.64617133", "0.64617133", "0.64303446", "0.6339592", "0.63310593", "0.63066167", "0.62931585", "0.6291434", "0.62849516", "0.6...
0.0
-1
Return the name of the parameter that contains a locale specification in a locale change request.
public String getParamName() { return this.paramName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getLocaleQueryParam() {\n return LocaleInfo.getLocaleQueryParam();\n }", "protected String getCurrentLocaleQueryParam() {\n return LocaleInfo.getCurrentLocale().getLocaleQueryParam();\n }", "java.lang.String getParameterName();", "String getLocalizedString(Locale locale);...
[ "0.674759", "0.63088095", "0.5745942", "0.5565469", "0.54640716", "0.544989", "0.54455835", "0.54026884", "0.5346347", "0.5318821", "0.5314497", "0.5271609", "0.5263292", "0.5256371", "0.5236799", "0.52329105", "0.5231482", "0.52227944", "0.5219394", "0.5213379", "0.5198674",...
0.5156808
24
TODO Autogenerated method stub
public static void main(String[] args) { Typecasting t=new Typecasting(); t.typeCasting(); }
{ "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 write JavaDoc comment.
public ScopedSymbol(String name, Access access){ Objects.nonNull(name); Objects.nonNull(access); this.name = name; this.access = access; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\t...
[ "0.66167116", "0.65304667", "0.6461297", "0.6418639", "0.6374761", "0.6262174", "0.62297183", "0.6188897", "0.61809486", "0.61809486", "0.61651987", "0.61651987", "0.61588037", "0.61329025", "0.61167264", "0.6112293", "0.6091536", "0.6058471", "0.60450965", "0.6036706", "0.60...
0.0
-1
TODO write JavaDoc comment.
public ScopedSymbol(String name){ this(name, Access.PUBLIC); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\t...
[ "0.6617578", "0.6530889", "0.64611316", "0.64184207", "0.6375358", "0.6262297", "0.62297875", "0.6189149", "0.6180833", "0.6180833", "0.6165169", "0.6165169", "0.6159239", "0.6133136", "0.61166626", "0.6112908", "0.60916996", "0.605881", "0.6044761", "0.6037181", "0.6037181",...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int i=10; int j=20; String x="lionel"; String y="messi"; System.out.println(i+j); System.out.println(x+y); System.out.println(x+y+i); System.out.println(x+i+j); System.out.println("helloworld"); System.out.println("the value of i is:"+i); }
{ "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
Returns the value of the 'File' attribute. If the meaning of the 'File' attribute isn't clear, there really should be more of a description here...
String getFile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getFileValue();", "public File getAttributeFile();", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "public String file() {\n return this.file;\n }", "String getFile() {\n\t\treturn file;\n\t}", "public File getFile() ...
[ "0.79788023", "0.7920487", "0.77870375", "0.77870375", "0.76742834", "0.76171637", "0.75216347", "0.74717677", "0.74228406", "0.739267", "0.73669434", "0.73524415", "0.73073685", "0.7252915", "0.7252915", "0.7252915", "0.7252915", "0.72430587", "0.7222989", "0.72090495", "0.7...
0.6475426
75
At creation there are no active events and no pending barriers.
public EventBarrier() { // empty }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createEvents() {\n\t}", "@Test\n\tpublic void testReadyNoDevices() {\n\t\tModel contact = addContactSensor(true, false);\n\t\tstageDisarmed(addressesOf(contact));\n\t\tremoveModel(contact);\n\t\t\n\t\talarm.bind(context);\n\t\tassertInactive();\n\t}", "private void createEvents()\r\n\t{\r\n\t\teve...
[ "0.6177459", "0.6007986", "0.58836085", "0.58707535", "0.5831878", "0.58060896", "0.5790867", "0.57758135", "0.5753163", "0.5753163", "0.57221675", "0.5704974", "0.56784964", "0.56764936", "0.5640262", "0.5633141", "0.5602758", "0.55763966", "0.5561188", "0.55369097", "0.5522...
0.5710699
11
Obtain the current number of active events. This method is intended for testing and debugging.
int getNumEvents() { int cnt = eventCount; for (Entry entry : queue) { cnt += entry.eventCount; } return cnt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumEvents() {\n return numEvents;\n }", "public int getCount() {\n\t\treturn events.size();\n\t}", "long getReceivedEventsCount();", "public int getAutoEventCount()\n {\n return _autoEventList.size();\n }", "public int getNumIdle();", "public int getActiveCoun...
[ "0.7530093", "0.70338744", "0.70085454", "0.6974374", "0.6872627", "0.6861783", "0.6823759", "0.6823295", "0.68045086", "0.679988", "0.66746", "0.6614449", "0.65676033", "0.6414164", "0.6260797", "0.6222629", "0.6214743", "0.6200533", "0.61861956", "0.61198103", "0.6076044", ...
0.6849981
6
Obtain the current number of pending barriers. This method is intended for testing and debugging.
int getNumBarriers() { return queue.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getPendingCount()\n/* */ {\n/* 508 */ return this.pending;\n/* */ }", "public static int getPendingRequests() {\n\t\treturn writeQueue.size() + requestsBeingSending.intValue();\n\t}", "int getEnqueuedBlockRequestsNumber() {\n int count = 0;\n for (StdPeerMessage p...
[ "0.6932517", "0.65508235", "0.63572943", "0.62357616", "0.62273794", "0.62109447", "0.6202597", "0.61166227", "0.60842794", "0.60613286", "0.6003043", "0.5940615", "0.5897511", "0.58955383", "0.58722407", "0.5830596", "0.5815242", "0.5804498", "0.5757843", "0.5755174", "0.574...
0.8067804
0
Signal the start of an event. The value returned from this method must later be passed to the completeEvent method when signaling the completion of the event.
public int startEvent() { ++eventCount; return barrierToken; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "StartEvent createStartEvent();", "public void start(String event) {\n started.put(event, System.currentTimeMillis());\n }", "public synchronized void signalEvent()\r\n\t{\r\n\t\tnot...
[ "0.6330171", "0.6330171", "0.60822433", "0.5998895", "0.59386057", "0.5889653", "0.5823714", "0.5761758", "0.573014", "0.5701229", "0.55183077", "0.5460834", "0.5452565", "0.5349219", "0.53387797", "0.53003734", "0.5296259", "0.529183", "0.5286891", "0.52540755", "0.52513814"...
0.61211896
2
Signal the completion of an event. The value passed to this method must be the same as the return value previously obtained from the startEvent method. This method will signal the completion of all pending barriers that were completed by the completion of this event.
public void completeEvent(int token) { if (token == this.barrierToken) { --eventCount; return; } --queue.get(queue.size() - (this.barrierToken - token)).eventCount; while (!queue.isEmpty() && queue.get(0).eventCount == 0) { queue.remove(0).handler.completeBarrier(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void eventFinished() {\n\t\tstatus=EventCompleted;\n\t}", "private void eventProcessingCompleted() {\n\t\tsynchronized(processingCounterMutex) {\n\t\t\tprocessingCounter--;\n\t\t\tif (processingCounter == 0)\n\t\t\t\tprocessingCounterMutex.notifyAll();\n\t\t}\n\t}", "public synchronized voi...
[ "0.62631327", "0.60441065", "0.60246366", "0.5768234", "0.565298", "0.5643949", "0.55489093", "0.5504607", "0.5499867", "0.54945815", "0.5490684", "0.5470709", "0.5457375", "0.53943914", "0.53893596", "0.5386823", "0.5386271", "0.53725094", "0.53725094", "0.53725094", "0.5370...
0.6598405
0
Initiate the detection of the minimal event barrier starting now. If this method returns false it means that no events were currently active and the minimal event barrier was infinitely small. If this method returns false the handler will not be notified of the completion of the barrier. If this method returns true it means that the started barrier is pending and that the handler passed to this method will be notified of its completion at a later time.
public boolean startBarrier(BarrierWaiter handler) { if (eventCount == 0 && queue.isEmpty()) { return false; } queue.add(new Entry(eventCount, handler)); ++barrierToken; eventCount = 0; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isEventStarted() {\n\t\treturn status>=EventStarted;\n\t}", "public int startEvent() {\n ++eventCount;\n return barrierToken;\n }", "boolean hasFenced();", "public boolean ready() {\n diff = eventTime - System.currentTimeMillis(); //Step 4,5\n return System....
[ "0.5956804", "0.5910809", "0.5687097", "0.5646802", "0.5568705", "0.55676943", "0.5447083", "0.54198474", "0.53891605", "0.5337587", "0.5269921", "0.52565116", "0.5223092", "0.51958644", "0.51459056", "0.5140908", "0.5135383", "0.5133187", "0.5126104", "0.5108712", "0.5095926...
0.7460018
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.home, 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
TODO Autogenerated method stub
@Override public boolean addHotelArea(HotelArea hotelArea) { Integer result = hotelAreaDao.insert(hotelArea); return result > 0; }
{ "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 boolean updateHotelArea(HotelArea hotelArea) { Integer result = hotelAreaDao.update(hotelArea); return result > 0; }
{ "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 boolean deleteHotelArea(HotelArea hotelArea) { hotelAreaDao.delete(hotelArea); return true; }
{ "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 boolean deleteHotelAreas(String hotelAreas) { String areaId[] = hotelAreas.split(","); //System.out.println(" hotelid:::" + hotelId.length); for(int i = 0 ; i < areaId.length; i ++) { HotelArea hi = new HotelArea(); hi.setId(Integer.parseInt(areaId[i])); //System.out.println(" hotelid+++" + Integer.parseInt(hotelId[i])); hotelAreaDao.delete(hi); } return true; }
{ "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 List<HotelArea> queryHotelArea(HotelAreaQuery query) { List<HotelArea> hotelAreaLs = hotelAreaDao.selectEntityList(query); return hotelAreaLs; }
{ "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 int queryHotelAreaCount(HotelAreaQuery query) { Integer result = hotelAreaDao.selectEntityCount(query); return result == null ? 0 : result; }
{ "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 int getGeneralId(HotelAreaQuery query) { Integer result = hotelAreaDao.getGeneralId(); return result == null ? 1 : result + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.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
La sobrecarga de metodos consiste en sobrescibir un metodo de la clase padre desde la clase hija
@Override public String comer(String c) { c="Gato No puede Comer Nada" ; return c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String cualquierMetodo2() {\n return \"Método implementado en la clase hija viaje de incentivo\";\n }", "default String getTodo(){\n\t\treturn getPerimetro() + \" - \"+ getNombre();\n\t}", "public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion ne...
[ "0.66980165", "0.6517294", "0.62617016", "0.6172348", "0.6169699", "0.6124079", "0.612271", "0.611155", "0.61047745", "0.610285", "0.60580236", "0.60522515", "0.60075396", "0.5998051", "0.597455", "0.5970702", "0.5968082", "0.5965768", "0.5963499", "0.596071", "0.5956251", ...
0.0
-1
TODO Autogenerated method stub
@Override public void onServiceConnected(ComponentName name, IBinder service) { myAIDLService = IMyAidlInterface.Stub.asInterface(service); }
{ "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 onServiceDisconnected(ComponentName name) { }
{ "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 protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.heat_wenkong_setup); InitView(); //启动Service Intent intent = new Intent(HeatWenkongActivity.this,LinkService.class); bindService(intent, connection, BIND_AUTO_CREATE); onClick(easy_model_bt); }
{ "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 protected void onDestroy() { super.onDestroy(); unbindService(connection); }
{ "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 onClick(View v) { switch(v.getId()){ case R.id.heat_wenkong_eashmodel_btn: easy_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_clicked); jingji_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); out_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); holiday_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); getFragmentManager().beginTransaction().replace(R.id.heat_wenkong_setup_content_ll, new WenkongEasyFrag()).commit(); break; case R.id.heat_wenkong_economicalmodel_btn: jingji_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_clicked); easy_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); out_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); holiday_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); getFragmentManager().beginTransaction().replace(R.id.heat_wenkong_setup_content_ll, new WenkongJingjiFrag()).commit(); break; case R.id.heat_wenkong_outdoormodel_btn: out_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_clicked); jingji_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); easy_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); holiday_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); getFragmentManager().beginTransaction().replace(R.id.heat_wenkong_setup_content_ll, new WenkongOutFrag()).commit(); break; case R.id.heat_wenkong_holidaymodel_btn: holiday_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_clicked); jingji_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); out_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); easy_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal); getFragmentManager().beginTransaction().replace(R.id.heat_wenkong_setup_content_ll, new WenkongHolidayFrag()).commit(); break; } }
{ "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 onChange(boolean selfChange) { super.onChange(selfChange); }
{ "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
NCollection list = new NCollection(); list.add(1); list.add(2); list.add(3); list.add(4); list.add(5); System.out.println(list.first());
@Test public void testGetFirst() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T first() throws EmptyCollectionException;", "public T first() throws EmptyCollectionException;", "public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }", "public T first(int x)throws ...
[ "0.692565", "0.692565", "0.68115926", "0.66580236", "0.65604466", "0.6433179", "0.6419838", "0.63783145", "0.62889373", "0.6281531", "0.6274715", "0.6256125", "0.62142295", "0.6200721", "0.6194539", "0.6162047", "0.6156737", "0.6151053", "0.6151053", "0.61446637", "0.6118541"...
0.0
-1
NCollection list = new NCollection(); list.add(1); list.add(2); list.add(3); list.add(4); list.add(5); System.out.println(list.last());
@Test public void testGetLast() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T last() throws EmptyCollectionException;", "public Object last()throws ListExeption;", "public T last() throws EmptyCollectionException{\n if (rear == null){\n throw new EmptyCollectionException(\"list\");\n }\n return rear.getElement();\n }", "public Object peek() {return collection.g...
[ "0.7877931", "0.7686189", "0.7457527", "0.73874897", "0.7250284", "0.72333586", "0.7168025", "0.7139244", "0.71151143", "0.69641006", "0.6877767", "0.6861457", "0.6836702", "0.68357205", "0.6827644", "0.67987096", "0.6786153", "0.67645264", "0.670025", "0.6682814", "0.6657287...
0.0
-1
Created by tomduan on 16419.
public interface Presenter { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.61010474", "0.60012", "0.59855235", "0.59406507", "0.5906508", "0.5906508", "0.5880596", "0.5837107", "0.5834433", "0.5825966", "0.5822531", "0.58195037", "0.5807976", "0.5804714", "0.58043563", "0.5778891", "0.57407415", "0.57034695", "0.56955504", "0.5690413", "0.5669912...
0.0
-1
Abort the given workflow.
Completable abortAsync(String resourceGroupName, String storageSyncServiceName, String workflowId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopWorkflow() {\n\t\tassert (status == WorkflowStatus.RUNNING || status == WorkflowStatus.PAUSED);\n\t\tsetStatus(WorkflowStatus.FINISHED);\n\t}", "@Override\n\tpublic void abortWorkItem(WorkItem arg0, WorkItemManager arg1) {\n\t}", "public void abortWorkItem(WorkItem workItem, WorkItemManager man...
[ "0.6755327", "0.64589834", "0.640204", "0.63425654", "0.63043296", "0.6274604", "0.6184551", "0.61611533", "0.6024936", "0.60244805", "0.60244805", "0.60244805", "0.60244805", "0.5977983", "0.5940993", "0.58967966", "0.5896635", "0.58905965", "0.5872829", "0.5868077", "0.5834...
0.7016582
0
20 inputs number of +s, ve, odd, even and 0s
public void NumberOf(int arr[], int n){ int positive = 0, negative = 0, odd = 0, even = 0, zero = 0; System.out.print("\nInput Array : ["); for(int j=0; j<n; j++){ System.out.print(arr[j]+","); } System.out.print("\b]\n"); for(int k =0; k<n; k++){ if(arr[k] > 0){ positive++; } else if(arr[k] < 0){ negative++; } else{ zero++; } if(arr[k] != 0){ if(arr[k] % 2 == 0 ){ even++; } else{ odd++; } } } System.out.println("\nPositive : "+positive+"\nNegative : "+negative+"\nZero : "+zero+"\nOdd : "+odd+"\nEven : "+even+"\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n\tint a=1;\r\n\twhile(a>=1 && a<10) {\r\n\t\ta+=1;\r\n\t\tif(a%2==0) {\r\n\t\t\tSystem.out.println(\"\"+a);\r\n\t\t}\r\n\t}\r\n\tint max = 50;\r\n\tint add =0;\r\n\tfor(int s =0;s<=max;s+=1) {\r\n\t\tadd+= s;\r\n\t}\r\n\tSystem.out.println(\"\"+add);\r\n\t/*Adding up odd...
[ "0.56079304", "0.5486418", "0.54614705", "0.5405385", "0.540043", "0.53818935", "0.53274614", "0.5325016", "0.53095007", "0.5304262", "0.53041357", "0.52340347", "0.5232135", "0.5228289", "0.52205515", "0.5170587", "0.5165414", "0.51530635", "0.5151706", "0.5135921", "0.51354...
0.0
-1
Check if other player is not null and IDs match.
@Override public boolean equals(Object otherPlayer) { return otherPlayer != null && mName.contentEquals(((Player)otherPlayer).mName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Player)) {\n return false;\n }\n Player other = (Player) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n ...
[ "0.69545096", "0.69545096", "0.6625724", "0.64623964", "0.6393666", "0.6284673", "0.62750363", "0.62677765", "0.61950034", "0.61724436", "0.60798573", "0.60389245", "0.59864604", "0.5978716", "0.59756285", "0.5935615", "0.5920966", "0.5861931", "0.5831973", "0.58213437", "0.5...
0.63820446
5
Java impl of old C++ approach: //github.com/codelucas/puzzles/blob/master/java_interview/StringNumAdd.java
static String addStringInteger(String s1, String s2) { //return String.valueOf(Integer.parseInt(s1) + Integer.parseInt(s2)); return String.valueOf(Integer.valueOf(s1) + Integer.valueOf(s2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testPlus() {\r\n\t\tString ans;\r\n\t\tString expected = \"115590435626074\";\r\n\t\tNumberStrings tester = new NumberStrings();\r\n\t\tString number1 = \"115555222112553\";\r\n\t\tString number2 = \"35213513521\";\r\n\t\tans = tester.plus(number1, number2);\r\n\t\tAssert.assertEquals(expect...
[ "0.72154814", "0.7074397", "0.68705314", "0.6685752", "0.6629722", "0.661236", "0.660113", "0.6441821", "0.6421569", "0.63319236", "0.62020475", "0.6132476", "0.60988957", "0.6097407", "0.60888857", "0.60026807", "0.5932669", "0.5908549", "0.59069496", "0.58901846", "0.588114...
0.6598018
7
Bonus SQL "interview question" Binary Tree Nodes to scare newbies/interviewees and still feel smart/academic (but don't be a silly copycat at least try test it yourself).
public static void main(String[] args) { String s1 = "123"; String s2 = "30"; System.out.println(addStringInteger(s1, s2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface BinNode<T> {\n\n /**\n * Returns the element in the node\n * @return the element in the node\n */\n public T getElement();\n \n /**\n * Changes the element of the node to the element provided\n * @param newvalue\n */\n public void setElement(T newvalue);\n ...
[ "0.6980424", "0.6410923", "0.63617605", "0.6345599", "0.6334511", "0.630837", "0.62633437", "0.6244097", "0.6236636", "0.6220931", "0.62169236", "0.6205824", "0.6165826", "0.6155733", "0.61545765", "0.61454743", "0.6117475", "0.6100615", "0.6069951", "0.60527045", "0.6038518"...
0.0
-1
Constructor Public methods add a new record to MarketData array from market change message or update an existing record if market already in some mcs have market definition, some market definitions have runners if market definition is in blacklist, return some mcs have rcs if mc has rc only then no way to know if it is match_odds so add a new market data record anyway if mc has market definition and it is not match_odds then remove it again and add id to blacklist
public void putMarketData(RawData rawData) { //raw data can have multiple market change messages (must have at least one) if (rawData.getMc().size() < 1) { System.out.println("ERROR: no mc in " + rawData.getOp() + ", pt = " + rawData.getPt() + ", clk = " + rawData.getClk()); Runtime.getRuntime().halt(0); } //not all have marketDefinition but all have id, check it against blacklist for (Mc mc : rawData.getMc()) { if (!nonMarketData.containsKey(mc.getId())) { //copy non-null fields to attributes MarketData newMarketData = copyFrom(marketData.get(mc.getId()), mc, rawData.getPt()); if (mc.getId().contains(Test.FORENSIC)) { Utils.prettilyPrint(newMarketData, null); } //if not a market in which we are not interested in if (newMarketData != null) { marketData.put(mc.getId(), newMarketData); } else { marketData.remove(mc.getId()); nonMarketData.put(mc.getId(), mc.getMarketDefinition().getMarketType()); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MarketData copyFrom(MarketData marketData, Mc mc, long timeStamp) {\n\n\t\t//convert from rawdata to data format\n\t\tMarketData mcData = new MarketData(mc, timeStamp);\n\n\t\tif (mc.getId().contains(Test.FORENSIC)) {\n//\t\t\tUtils.prettilyPrint(mcData, null);\n\t\t}\n\n\t\t//get given null if market data...
[ "0.61932486", "0.48877782", "0.47556296", "0.46926028", "0.46918768", "0.46757805", "0.46454337", "0.46426114", "0.46276474", "0.46250454", "0.46123174", "0.46025828", "0.45799717", "0.45310336", "0.45204943", "0.45120183", "0.4487318", "0.4480724", "0.4476881", "0.446925", "...
0.5818035
1
putMarketData() Private methods copy nonnull fields only from mc to market data pass me null if you want me to create a new market data creates a newMarket data record from mc then uses statuses in mc to decide if to copy data from the newMarket to the given market data if runner change has only one runner, update the other as a counter point if this mc is not for our sort of thing then return null
private MarketData copyFrom(MarketData marketData, Mc mc, long timeStamp) { //convert from rawdata to data format MarketData mcData = new MarketData(mc, timeStamp); if (mc.getId().contains(Test.FORENSIC)) { // Utils.prettilyPrint(mcData, null); } //get given null if market data is to be created if (marketData == null) { marketData = new MarketData(); } //if there is market definition, copy market definition if (mc.getMarketDefinition() != null && mc.getMarketDefinition().getMarketType() != null) { //one track mind and singles if (!mc.getMarketDefinition().getMarketType().equals("MATCH_ODDS") || mc.getMarketDefinition().getRunners().get(0).getName().contains("/")) { return null; } else { //check if going in play marketData.setId(mc.getId()); /* System.out.println("timestatus: " + Utils.millisToDateTime(timeStamp) + ": " + mcData.getStatus() + "/" + mc.getMarketDefinition().isInPlay()); */ if (marketData.getTime().equals("")) { if (mc.getMarketDefinition().isInPlay()) { marketData.setTime(Utils.millisToDateTime(timeStamp)); } } if (mcData.getName() != null) { marketData.setName(mcData.getName()); } if (mcData.getMarketType() != null) { marketData.setMarketType(mcData.getMarketType()); } if (mcData.getEventName() != null) { marketData.setEventName(mcData.getEventName()); } //if there is runners, update or create players if (mc.getMarketDefinition().getRunners() != null && mc.getMarketDefinition().getRunners().size() > 0) { for (Runners runner : mc.getMarketDefinition().getRunners()) { Player existingPlayer = marketData.getPlayers().get(runner.getId()); //update existing player if (existingPlayer != null) { if (runner.getName() != null) { existingPlayer.setName(runner.getName()); } if (runner.getStatus() != null) { existingPlayer.setStatus(runner.getStatus()); } } //create new player else { existingPlayer = new Player(runner); } //overwrite/create marketData.getPlayers().put(runner.getId(), existingPlayer); } } } } //if there is runner change (can occur with or without market definition) update players if (mc.getRc() != null && mc.getRc().size() > 0) { for (Rc rc : mc.getRc()) { //update player from runner Player existingPlayer = marketData.getPlayers().get(rc.getId()); if (existingPlayer != null) { existingPlayer.addNewTransaction(rc, timeStamp); } //create new player else { marketData.addNewPlayer(rc, timeStamp); } //a transaction for only one player is present so the other player needs a counter point if (mc.getRc().size() < 2 && marketData.getPlayers().size() > 1) { //check if other player exists yet for (Player otherPlayer : marketData.getPlayers().values()) { if (otherPlayer != null && existingPlayer != null) { if (!(otherPlayer.getId() == existingPlayer.getId())) { Transaction counterTransaction = new Transaction( otherPlayer.getId(), timeStamp, Utils.counterPoint(rc.getLtp()), true); marketData.getPlayers().get(otherPlayer.getId()).getTransactions().add(counterTransaction); } } } } } } //TODO: // - probably should store and check timestamps to only overwrite older updates. // - don't just add runner change, check if a previous update with same timestamp is already there and overwrite it return marketData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void putMarketData(RawData rawData) {\n\t\t\n\t\t//raw data can have multiple market change messages (must have at least one)\n\t\tif (rawData.getMc().size() < 1) {\n\t\t\tSystem.out.println(\"ERROR: no mc in \" + rawData.getOp() + \n\t\t\t\t\t\", pt = \" + rawData.getPt() + \n\t\t\t\t\t\", clk = \" + rawDa...
[ "0.67470956", "0.55073917", "0.54815155", "0.54601693", "0.53475463", "0.5342307", "0.5338234", "0.53290933", "0.5315256", "0.5275719", "0.5253187", "0.5169907", "0.51559716", "0.5096532", "0.5070953", "0.50559354", "0.5042407", "0.503963", "0.5036644", "0.5014479", "0.499940...
0.7115166
0
copyFrom() Accessors and Mutators
public Map<String, MarketData> getMarketData() {return marketData;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "Model copy();", "@Override\n public FieldEntity copy()\n {\n return state.copy();\n }", "public void copy() {\n\n\t}", "T copy();", "public abstract INodo copy();", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public abstract B...
[ "0.74207103", "0.7096784", "0.7094994", "0.70768625", "0.6974787", "0.69090015", "0.6875966", "0.6820104", "0.67882955", "0.67882955", "0.6777552", "0.6743169", "0.6724414", "0.66738826", "0.66270244", "0.658274", "0.6580536", "0.6558434", "0.6532793", "0.64858705", "0.647887...
0.0
-1
Returns the current score.
public int getScore() { return score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCurrentScore() {\n return currentScore;\n }", "public int getScore() {\n return currentScore;\n }", "public int getScore()\n {\n return currentScore;\n }", "public int score() {\n return score;\n }", "public static int getScore()\n {\n return score;\n ...
[ "0.89262706", "0.8732439", "0.8681102", "0.84959424", "0.84630144", "0.84338367", "0.8414644", "0.8379818", "0.83346415", "0.83278596", "0.83115244", "0.82886237", "0.82886237", "0.82763505", "0.82763505", "0.8275038", "0.82474995", "0.82474995", "0.823886", "0.8230509", "0.8...
0.820525
26
Returns whether or not the game is finished.
public boolean getGameFinished() { return gameFinished; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFinished() {\n\t\tif (gameSituation == UNFINISHED) {\n\t\t\treturn false;\n\t\t} // Of if\n\n\t\treturn true;\n\t}", "public boolean isGameFinished() {\r\n return gameFinished;\r\n }", "public boolean isGameFinished() {\n if (listaJogadores.size() - listaJogadoresFalidos.size(...
[ "0.86862504", "0.85610694", "0.8257651", "0.8185926", "0.8135071", "0.8127423", "0.81132734", "0.8109238", "0.8092172", "0.8081357", "0.80795246", "0.80674946", "0.80422056", "0.7989312", "0.7980698", "0.7974845", "0.797147", "0.797147", "0.797147", "0.7969829", "0.7964003", ...
0.8167034
4
Toggles the state of the game being finished or not.
public void toggleGameFinished() { setGameFinished(!gameFinished); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "public void finishGame() {\r\n gameFinished = true;\r\n }", "public void gameComplete() {\n if (soundToggle == true) {\n gameComplete.start();\n } // if\n }", "protected boolean isFinished() {\n \tif(Robot.oi.btn...
[ "0.7543381", "0.75397056", "0.710677", "0.7085921", "0.70179963", "0.6974518", "0.6898763", "0.68950063", "0.6871232", "0.6828326", "0.6797904", "0.67830825", "0.66943175", "0.66917294", "0.6691255", "0.66737443", "0.66712093", "0.6647206", "0.6637403", "0.6637403", "0.663237...
0.8606925
0
iv_left = (RelativeLayout) findViewById(R.id.iv_left);
private void initViews() { root = (LinearLayout) findViewById(R.id.root); ll = (LinearLayout) findViewById(R.id.ll); View view = View.inflate(this, R.layout.head_city_list, null); mGridView = (GridView) view.findViewById(R.id.id_gv_remen); gvAdapter = new MyGridViewAdapter(this, mReMenCitys); mGridView.setAdapter(gvAdapter); mGridView.setSelector(new ColorDrawable(Color.TRANSPARENT)); //实例化汉字转拼音类 characterParser = CharacterParser.getInstance(); pinyinComparator = new PinyinComparator(); sideBar = (SideBar) findViewById(R.id.sidrbar); dialog = (TextView) findViewById(R.id.dialog); sideBar.setTextView(dialog); toolbar = (Toolbar) findViewById(R.id.toolbar); initToolBar(toolbar); setTitle("车站选择"); //设置右侧触摸监听 sideBar.setOnTouchingLetterChangedListener(s -> { //该字母首次出现的位置 int position = adapter.getPositionForSection(s.charAt(0)); if (position != -1) { sortListView.setSelection(position); } }); sortListView = (ListView) findViewById(R.id.country_lvcountry); sortListView.addHeaderView(view); sortListView.setOnItemClickListener((parent, view1, position, id) -> { //Log.w("haha",id+""); //这里要利用adapter.getItem(position)来获取当前position所对应的对象 //Toast.makeText(getApplication(), ((SortModel)adapter.getItem(position-1)).getName(), Toast.LENGTH_SHORT).show(); hideSoftInput(mClearEditText.getWindowToken()); String cityName = ((SortModel) adapter.getItem(position - 1)).getName(); RxBus.getDefault().post(new addressEvent(cityName, isFrom)); /*Intent data = new Intent(); data.putExtra("cityName", ((SortModel)adapter.getItem(position-1)).getName());*/ // setResult(1110, data); CitySelecterActivity.this.finish(); //Log.w("haha",((SortModel)adapter.getItem(position-1)).getName()); }); // SourceDateList = filledData(getResources().getStringArray(R.array.date)); SourceDateList = filledData(provinceList); // 根据a-z进行排序源数据 Collections.sort(SourceDateList, pinyinComparator); adapter = new SortAdapter(this, SourceDateList); sortListView.setAdapter(adapter); mClearEditText = (ClearEditText) findViewById(R.id.filter_edit); //根据输入框输入值的改变来过滤搜索 mClearEditText.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { //当输入框里面的值为空,更新为原来的列表,否则为过滤数据列表 filterData(s.toString()); } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void afterTextChanged(Editable s) { } }); /*iv_left.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { hideSoftInput(mClearEditText.getWindowToken()); CitySelecterActivity.this.finish(); } });*/ mGridView.setOnItemClickListener((parent, view12, position, id) -> { String cityName = mReMenCitys.get(position).getName(); hideSoftInput(mClearEditText.getWindowToken()); RxBus.getDefault().post(new addressEvent(cityName, isFrom)); this.finish(); // String cityName = mReMenCitys.get(position).getName(); // hideSoftInput(mClearEditText.getWindowToken()); // Intent data = new Intent(); // data.putExtra("cityName", cityName); // setResult(1110, data); // CitySelecterActivity.this.finish(); }); sortListView.setOnScrollListener(new AbsListView.OnScrollListener() { @Override public void onScrollStateChanged(AbsListView absListView, int i) { hideSoftInput(mClearEditText.getWindowToken()); } @Override public void onScroll(AbsListView absListView, int i, int i1, int i2) { } }); hideSoftInput(mClearEditText.getWindowToken()); ll.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { @Override public boolean onPreDraw() { ll.getViewTreeObserver().removeOnPreDrawListener(this); Animator animator = AnimationUtil.getCircularReveal(ll, 2, 600); animator.start(); return true; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void findViewById() {\n ivGraffit = (ImageView) findView(R.id.ivGraffit);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fra...
[ "0.63010347", "0.62842643", "0.6209636", "0.61223084", "0.61133486", "0.60151666", "0.5975938", "0.5931326", "0.59307134", "0.5900017", "0.5873526", "0.5849583", "0.5842162", "0.5837948", "0.5835936", "0.58274657", "0.5808183", "0.5807042", "0.5793249", "0.5771531", "0.576536...
0.0
-1
TODO Autogenerated method stub Integer i = new Integer(null) ; // number format exception
public static void main(String[] args) { Integer a = new Integer(1) ; String s = new String("null") ; System.out.println( " " + a + " " + s); // 1 null }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n ...
[ "0.695061", "0.6707158", "0.63750976", "0.635199", "0.6282564", "0.6268034", "0.6251218", "0.62187797", "0.6141613", "0.6050991", "0.6005393", "0.59638786", "0.59618896", "0.5921569", "0.591775", "0.5904899", "0.5904357", "0.58864784", "0.58833086", "0.5882443", "0.58460903",...
0.55250764
50
Empty constructor that doesn't initialize the matrix. Subclasses are responsible for initializing instances of this class that are built using this constructor.
protected ConfusionMatrix(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected SimpleMatrix() {}", "public Matrix33() {\r\n // empty\r\n }", "public Matrix() {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n }", "public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }", "Matrix()\n {\n x = new Vector();\n y = new Vector()...
[ "0.850015", "0.81484514", "0.814495", "0.8107121", "0.7901633", "0.77527416", "0.7656882", "0.7420843", "0.6919608", "0.6892805", "0.6884626", "0.68137306", "0.68110317", "0.680601", "0.67479926", "0.673448", "0.6724301", "0.6700168", "0.6688182", "0.66591996", "0.664964", ...
0.6152321
60
returns number of rows and columns.
public int size(){ return labels==null ? 0 : labels.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getNumColumns();", "public abstract int numColumns();", "int getColumnsCount();", "int getColumnsCount();", "public int columnCount() {\n\t\treturn n_;\n\t}", "int getCellsCount();", "int colCount();", "private int size() {\n\treturn matrix.length; //# of rows\n }", "public I...
[ "0.78024197", "0.77646434", "0.7752778", "0.7752778", "0.76546156", "0.76311994", "0.7562183", "0.7537164", "0.7483681", "0.74408245", "0.7424997", "0.740351", "0.7391872", "0.7381089", "0.73800826", "0.73649323", "0.73625594", "0.7362221", "0.7341576", "0.731841", "0.7316419...
0.0
-1
returns index associated to a label
private int resolveIndex(Label l){ if(l == null){ throw new NullPointerException("cannot resolve index of ConfusionMatrix of null label/class (null Label object)"); } String key = l.getValue(); if(l.isEmpty()){ throw new IllegalArgumentException("cannot resolve index of ConfusionMatrix of emtpy label/class value"); } if(!indexMap.containsKey(key)){ throw new IllegalArgumentException("could not resolve ConfusionMatrix index for unknown label: "+key); } return indexMap.get(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int findVertIndex(T vertLabel) {\n ArrayList<T> labelRow = matrix.get(0);\n int vertIndex;\n if ((vertIndex = labelRow.indexOf(vertLabel)) == -1) {\n // System.out.println(\"Error: Vertex '\" + vertLabel + \"' does not exist in the matrix\");\n return -1;\n ...
[ "0.70902765", "0.693661", "0.68347865", "0.68347865", "0.68347865", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.67881167", "0.6711441", "0.6669458", ...
0.7281066
0
Retreives the integer object associated to the given label pair The integer returned represents the frequency that such a pair occured.
public Integer getFrequency(Label prediction, Label real){ int rowIx = resolveIndex(prediction); int colIx = resolveIndex(real); return matrix.get(rowIx).get(colIx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "synchronized public int getId(String label) { \n\treturn label2id.get(label).intValue();\n }", "private static int getInstanceID (String label)\n {\n\tchar c;\n\tfor (int i = 0; i < label.length (); i++) {\n\t c = label.charAt (i);\n\t if (Character.isDigit (c)) {\n\t\tString id = label.substring (...
[ "0.6091408", "0.6029574", "0.572391", "0.5544453", "0.5480224", "0.5323809", "0.5276436", "0.521149", "0.51806515", "0.5149803", "0.5089377", "0.4995901", "0.49679914", "0.49596122", "0.4939189", "0.49260306", "0.49101073", "0.4897755", "0.48638535", "0.4839592", "0.4839592",...
0.5575238
3
Increments the appropriate cell in confusion matrix associated to given label pair.
public void incrementCell(Label prediction, Label real){ int rowIx = resolveIndex(prediction); int colIx = resolveIndex(real); Integer cell = matrix.get(rowIx).get(colIx); Integer newValue = cell+1; matrix.get(rowIx).set(colIx, newValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void incrementColumnIndex();", "void incrementColumnIndex();", "public void increase(String nickname) {\n\t\tint oldValue = this.getScore(nickname);\n\t\tscoreboard.replace(nickname, oldValue, oldValue + 1);\n\t}", "private void updateStatus(int row, int col) {\n\t\tCell cell = grid.getGridIndex(row, col);\n...
[ "0.551688", "0.551688", "0.5501566", "0.5398652", "0.5368959", "0.536145", "0.53415376", "0.53213084", "0.5161221", "0.5143338", "0.511962", "0.5098391", "0.50814915", "0.50344425", "0.5014625", "0.49587756", "0.49509996", "0.49504387", "0.49392405", "0.4922346", "0.4922346",...
0.7023178
0
Computes the sum of all frequencies in a specified column
protected int sumColumn(Label l){ int sum = 0; int colIx = resolveIndex(l); //iterate all cells in the column for(int i = 0;i<size();i++){ Integer cell = matrix.get(i).get(colIx); sum+=cell; } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double sumOfFrequencies() {\r\n\t\tdouble output = 0.0;\r\n\t\tfor(int i=0; i<this.treeNodes.length; i++) {\r\n\t\t\toutput += this.treeNodes[i].getFrequency();\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "static int columnLengthSum(String col, Map<Integer, Map<String, Object>> dict){\n\t\tint sum = 0;\n\t\t\...
[ "0.59070885", "0.58721966", "0.5766845", "0.5720405", "0.5555721", "0.5548378", "0.53355044", "0.5334678", "0.5300483", "0.5255901", "0.52037185", "0.51396", "0.507119", "0.5037591", "0.50037485", "0.4982704", "0.49188572", "0.49088272", "0.48285583", "0.4816344", "0.48068368...
0.5829937
2
Computes the sum of all frequencies in a specified row
protected int sumRow(Label l){ int sum = 0; int rowIx = resolveIndex(l); //iterate all cells in the column for(int i = 0;i<size();i++){ Integer cell = matrix.get(rowIx).get(i); sum+=cell; } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getSum(int[] freq, int i, int j) {\n int sum = 0;\n for (int x = i; x <= j; x++) {\n sum += freq[x];\n }\n return sum;\n }", "public static int sumRow( int r, int[][] a )\n {\n int sum = 0; //initialize sum\n for (int i = 0; i < a[r].length; i++) {...
[ "0.60591394", "0.60475457", "0.60376555", "0.6014209", "0.5974741", "0.58634", "0.5811459", "0.57066965", "0.5657757", "0.56487715", "0.56058764", "0.5595634", "0.55882293", "0.55692077", "0.5526969", "0.5521873", "0.54388106", "0.5369569", "0.5352177", "0.5340439", "0.533529...
0.6051639
1
Returns the number of true positive readings found by this classifier
public int computeTP(Label classLabel){ return getFrequency(classLabel,classLabel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "public double getNumberOfPredictedPositive() {\n\t\treturn numberOfTruePositives + numberOfFalsePositives;\n\t}", "public double getNumberOfCorrectlyClassified() {\n\t\treturn numberOfTruePositives + numberOfTrue...
[ "0.72796494", "0.7279609", "0.71069473", "0.6920487", "0.6718627", "0.6666813", "0.6656388", "0.6591807", "0.6556536", "0.65510154", "0.65463644", "0.6534295", "0.6530342", "0.63969713", "0.63795304", "0.63395953", "0.6324189", "0.62835556", "0.62301695", "0.620002", "0.62000...
0.0
-1
Returns the number of false positive readings found by this classifier
public int computeFP(Label classLabel){ int tp = this.computeTP(classLabel); //the total number of predictions that guess 'classLabel' int totalPredictions = this.sumRow(classLabel); return totalPredictions - tp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getNumberOfTrueNegatives() {\n\t\treturn numberOfTrueNegatives;\n\t}", "public double getNumberOfPredictedNegative() {\n\t\treturn numberOfTrueNegatives + numberOfFalseNegatives;\n\t}", "public double getNumberOfFalsePositives() {\n\t\treturn numberOfFalsePositives;\n\t}", "public double getNum...
[ "0.71897143", "0.71638525", "0.71626794", "0.70902383", "0.70638496", "0.70526445", "0.6988145", "0.69764817", "0.6854917", "0.65590256", "0.6553129", "0.6549737", "0.6533221", "0.6500105", "0.64953655", "0.6362177", "0.6341253", "0.63379085", "0.6309032", "0.6272606", "0.625...
0.0
-1
Returns the number of false negative readings found by this classifier
public int computeFN(Label classLabel){ int tp = this.computeTP(classLabel); //the total number of real labels of 'classLabel' int totalReal = this.sumColumn(classLabel); return totalReal - tp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getNumberOfPredictedNegative() {\n\t\treturn numberOfTrueNegatives + numberOfFalseNegatives;\n\t}", "public double getNumberOfNegatives() {\n\t\treturn numberOfTrueNegatives + numberOfFalsePositives;\n\t}", "public double getNumberOfFalseNegatives() {\n\t\treturn numberOfFalseNegatives;\n\t}", ...
[ "0.763302", "0.74952114", "0.7462531", "0.7433992", "0.7266197", "0.69359523", "0.6891992", "0.684394", "0.6781949", "0.67767715", "0.6590129", "0.6541536", "0.6474728", "0.6404179", "0.6338703", "0.62980545", "0.6291172", "0.6266974", "0.6240089", "0.62114775", "0.6210673", ...
0.0
-1
Returns the number of true negative readings found by this classifier
public int computeTN(Label classLabel){ /* * TODO: optimize this loggic */ //count the totla number of predictions int total = sumAll(); int tp = this.computeTP(classLabel); int fp = this.computeFP(classLabel); int fn = this.computeFN(classLabel); return total - tp - fp - fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getNumberOfPredictedNegative() {\n\t\treturn numberOfTrueNegatives + numberOfFalseNegatives;\n\t}", "public double getNumberOfTrueNegatives() {\n\t\treturn numberOfTrueNegatives;\n\t}", "public double getNumberOfNegatives() {\n\t\treturn numberOfTrueNegatives + numberOfFalsePositives;\n\t}", "p...
[ "0.74530876", "0.7306347", "0.7266565", "0.7016656", "0.7011994", "0.6836216", "0.6765942", "0.6763453", "0.6743484", "0.6729945", "0.6611066", "0.6504266", "0.64982986", "0.6367736", "0.62995875", "0.62964505", "0.62711424", "0.6252488", "0.62331116", "0.6230176", "0.6217913...
0.0
-1
summarizes all frequencies found in each cell
protected int sumAll() { int total = 0; //iterate all rows for(int i = 0;i<size();i++){ //itreate all columns for(int j = 0;j<size();j++){ Integer cell = matrix.get(i).get(j); total+=cell; } } return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getFrequency(int height);", "public static void main(String[] args) {\n\r\n\t\tint arr[]={2, 3, 2, 4, 5, 12, 2, 3, 3, 3, 12};\r\n\t\tMap<Integer,Data> map = new HashMap<>();\r\n\t\tfor(int a :arr)\r\n\t\t{\r\n\t\t\tif(map.containsKey(a))\r\n\t\t\t{\r\n\t\t\t\tmap.get(a).incrementFrequency();\r\n\t\t\t...
[ "0.5746285", "0.5731173", "0.57159233", "0.5641483", "0.557366", "0.55629766", "0.5547714", "0.5512701", "0.55096", "0.5506952", "0.5459825", "0.54571694", "0.54183453", "0.54106593", "0.54032075", "0.5394916", "0.53597677", "0.53407913", "0.53013384", "0.5290141", "0.5287206...
0.0
-1
Computes the recall using confusion matrix cell frequencies.
public double computeRecall(Label classLabel){ double tp = this.computeTP(classLabel); //total number of instances of class 'classLabel' double totalReal = this.sumColumn(classLabel); return tp/totalReal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double computeMacroRecall(){\n\t\tdouble res = 0;\n\t\t//iterate all labels to compute their individual recall values\n\t\tfor(Label l : labels){\n\t\t\tres += this.computeRecall(l);\n\t\t}\n\n\t\t//take the average\n\t\tres = res/((double)labels.size());\n\t\treturn res;\n\n\t}", "double computeRecall(in...
[ "0.6430834", "0.6043389", "0.57063913", "0.56698716", "0.5534509", "0.5524444", "0.5423201", "0.5400251", "0.5394081", "0.5363681", "0.53577596", "0.52322036", "0.50878316", "0.50497955", "0.5045942", "0.49724886", "0.49240932", "0.49131477", "0.48853472", "0.48616526", "0.48...
0.5950099
2
Computes the precision using confusion matrix cell frequencies.
public double computePrecision(Label classLabel){ double tp = this.computeTP(classLabel); //total number of predicted instances of class 'classLabel' double totalPredicted = this.sumRow(classLabel); return tp/totalPredicted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double computePrecision(int[][] paraPredicionMatrix) {\n double tempPrecision = 0.0;\n int tempTotal = 0;\n int temptempPrecisionCount = 0;\n for (int i = 0; i < paraPredicionMatrix.length; i++) {\n for (int j = 0; j < paraPredicionMatrix[i].length; j++) {\n if...
[ "0.72484344", "0.72458285", "0.63421535", "0.6245422", "0.604374", "0.6007496", "0.597563", "0.59648573", "0.59648573", "0.59648573", "0.5941711", "0.59371215", "0.59319365", "0.58965605", "0.5853102", "0.57523054", "0.57523054", "0.57083386", "0.5708024", "0.56994975", "0.56...
0.6084892
4
Computes the F1 score of chosen label
public double computeF1Score(Label classLabel){ double r = this.computeRecall(classLabel); double p = this.computePrecision(classLabel); return (2.0 * p * r)/(p+r); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double computeMacroF1(){\n\t\tdouble res = 0;\n\t\t//iterate all labels to compute their individual f1 scores\n\t\tfor(Label l : labels){\n\t\t\tres += this.computeF1Score(l);\n\t\t}\n\n\t\t//take the average\n\t\tres = res/((double)labels.size());\n\t\treturn res;\n\n\t}", "double ComputeFT_F1Score(indiv...
[ "0.80101514", "0.6735681", "0.6085114", "0.6070547", "0.5948859", "0.5856856", "0.5814857", "0.5767737", "0.5745028", "0.5723341", "0.56911826", "0.56911826", "0.5675629", "0.5675629", "0.5670531", "0.55606663", "0.55545294", "0.5548808", "0.553036", "0.55070555", "0.5500993"...
0.8361131
0
Computes the macroaveraged F1 score.
public double computeMacroF1(){ double res = 0; //iterate all labels to compute their individual f1 scores for(Label l : labels){ res += this.computeF1Score(l); } //take the average res = res/((double)labels.size()); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double computeF1Score(Label classLabel){\n\t\tdouble r = this.computeRecall(classLabel);\n\t\tdouble p = this.computePrecision(classLabel);\n\t\treturn (2.0 * p * r)/(p+r);\n\t}", "double ComputeFT_F1Score(individual st){\n\t\tdouble sum = 0, ft;\n\t\tint i;\n\t\tdouble[] tm;\n\t\t\n\t\tint tp, tn, fp, fn...
[ "0.6806591", "0.62690073", "0.6119175", "0.6061729", "0.590527", "0.5874833", "0.5868861", "0.5644998", "0.5576321", "0.5565552", "0.5561997", "0.5547411", "0.54725295", "0.5437136", "0.54322827", "0.54303277", "0.5414527", "0.5414527", "0.54104984", "0.53805393", "0.53802115...
0.83092993
0
Computes the macroaveraged precision
public double computeMacroPrecision(){ double res = 0; //iterate all labels to compute their individual precision values for(Label l : labels){ res += this.computePrecision(l); } //take the average res = res/((double)labels.size()); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPrecision(int iterations);", "public double calculatePrecision() {\n final long divisor = truePositive + falsePositive;\n if(divisor == 0) {\n return 0.0;\n } else {\n return truePositive / (double)divisor;\n }\n }", "int getPrecision();", "int getP...
[ "0.63850546", "0.63285905", "0.59352195", "0.59352195", "0.59352195", "0.58988184", "0.584924", "0.584924", "0.584553", "0.57698524", "0.5737512", "0.56810534", "0.5663408", "0.56281334", "0.55893254", "0.5547043", "0.554284", "0.55282766", "0.54973006", "0.5479573", "0.54713...
0.7976139
0
Computes the macroaveraged recall
public double computeMacroRecall(){ double res = 0; //iterate all labels to compute their individual recall values for(Label l : labels){ res += this.computeRecall(l); } //take the average res = res/((double)labels.size()); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double computeRecall(Label classLabel){\n\t\tdouble tp = this.computeTP(classLabel);\n\t\t//total number of instances of class 'classLabel'\n\t\tdouble totalReal = this.sumColumn(classLabel);\n\t\treturn tp/totalReal;\n\t}", "public double calculateRecall() {\n final long divisor = truePositive + f...
[ "0.65578175", "0.6104099", "0.6085438", "0.5951525", "0.5503211", "0.54779", "0.5434477", "0.5382558", "0.53550255", "0.53426874", "0.53392404", "0.52642435", "0.5263914", "0.5228653", "0.5161114", "0.5151101", "0.50645846", "0.5040286", "0.5033487", "0.5019717", "0.5005833",...
0.80810374
0
Computes the accuracy (aka micro f1 score)
public double computeAccuracy(){ //count the totla number of predictions double total = sumAll(); double truePredictions = 0; //iterate all correct guesses for(Label l : labels){ truePredictions += this.computeTP(l); } return truePredictions/(total); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculateAccuracy() {\n final long divisor = truePositive + trueNegative + falsePositive + falseNegative;\n if(divisor == 0) {\n return 0.0;\n } else {\n return (truePositive + trueNegative) / (double)divisor;\n }\n }", "public double getAccuracy...
[ "0.75040835", "0.7157511", "0.71508664", "0.70537615", "0.7026846", "0.68492717", "0.68298256", "0.68166524", "0.6797827", "0.6755187", "0.67368877", "0.661928", "0.6451222", "0.6340097", "0.633193", "0.62773305", "0.6220045", "0.6216099", "0.6160224", "0.61538637", "0.601433...
0.78071207
0
Adds a confusion matrix's cell to this confusion matrix's cells
public void add(ConfusionMatrix other){ //the confusion matrix must be of same dimesions if(other.size() != this.size()){ throw new IllegalArgumentException("cannot add confusino matrix's together. The other confusion matrix is of different dimensions"); } //make sure the labels match for(int i = 0; i < this.size(); i++){ Label lable = this.labels.get(i); Label otherLabel = other.labels.get(i); if(!lable.equals(otherLabel)){ throw new IllegalArgumentException("cannot add confusino matrix's together. The other confusion matrix has different labels"); } } //iterate the labels and add the cells for(Label row : this.labels){ for(Label col : this.labels){ int rowIx = resolveIndex(row); int colIx = resolveIndex(col); Integer cell = matrix.get(rowIx).get(colIx); Integer otherCell = other.matrix.get(rowIx).get(colIx); Integer newValue = cell+otherCell; matrix.get(rowIx).set(colIx, newValue); } }//end iterate labels }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCell(Cell cell) \n {\n cells.add(cell);\n }", "protected void addCell(Cell cell) {\n cells[size] = cell;\n ++size;\n }", "public void addCell(int row, int col, char value) {\n this.cells[row][col] = new Cell(value);\n }", "public void addCell(CIntentionC...
[ "0.65796226", "0.6276893", "0.6208598", "0.6206423", "0.61975235", "0.61722785", "0.57545286", "0.5738538", "0.5719245", "0.5695664", "0.55745506", "0.5420806", "0.5371451", "0.53689784", "0.5343194", "0.53416646", "0.53083163", "0.52516687", "0.52504975", "0.52389854", "0.52...
0.7039138
0
fuegt den Mouselistner hinzu
public void mouseClicked(MouseEvent e) { // Methode um MausEvent zu untersuchen clickCounter++; if (clickCounter % 2 == 0) { menu.setVisible(false); // bei 2 klicks geht das menü wieder zu } else { popMenu(); // das popMenu wird aufgerufen } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void mouseLeft() {\n\t\t\n\t}", "public void mouseLeft() {\n\n\t}", "public void mousePressed() {\n }", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "@Override\n\t\t\tpublic void mouseDown(MouseEv...
[ "0.76315296", "0.7566984", "0.7421835", "0.7412998", "0.7323666", "0.72419", "0.72419", "0.72419", "0.72419", "0.72419", "0.72419", "0.72419", "0.72419", "0.72419", "0.72419", "0.72408617", "0.72408617", "0.72408617", "0.72408617", "0.72408617", "0.72408617", "0.72408617", ...
0.0
-1
fuegt dem Button dem ActionListener hinzu
@Override public void actionPerformed(ActionEvent e) { // ueberprueft das Event fuer den Button if (e.getSource() == alarm && alarm.getText().equals("Alarm setzen")) { // schaut ob der geklickte Button den gleichen Text hat wieder der Alarmbutton abfrageFenster(); // bei Uebereinstimmung wird Abfragefenster aufgerufen } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\...
[ "0.7829347", "0.7829347", "0.77738297", "0.7740102", "0.7740102", "0.7740102", "0.7740102", "0.77316654", "0.77316654", "0.77316654", "0.7663147", "0.7663147", "0.7660001", "0.7647663", "0.7640884", "0.76294714", "0.7593648", "0.75828946", "0.7577736", "0.75407636", "0.753797...
0.0
-1
ueberprueft was passiert wenn man den anhalten Button drueckt, wenn ja setzt er alles wieder zurueck
@Override public void actionPerformed(ActionEvent e) { // ueberprueft das Event fuer den Button if (e.getSource() == anhalten) { // vergleicht ob gleiches Objekt alarmgesetzt = false; contentPanel.setBackground(Color.WHITE); contentPanel.remove(anhalten); contentPanel.add(alarm); jf.validate(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void settingBtnClick() {\n\t}", "@Override\n\tpublic void setButtonAction() {\n\t}", "@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}", "public void sButton() {\n\n\n\n }", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "@Override\n\tprotected voi...
[ "0.7740323", "0.7253883", "0.7211896", "0.6863234", "0.6840984", "0.6804468", "0.6756589", "0.6721899", "0.6666703", "0.66475016", "0.66311353", "0.6627089", "0.6582346", "0.6571542", "0.6535695", "0.65036094", "0.6499677", "0.6499643", "0.6486229", "0.64858353", "0.6478737",...
0.0
-1
ueberprueft was passiert wenn man den OK Button drueckt
@Override public void actionPerformed(ActionEvent e) { if (e.getSource() == bestaetigung) { contentPanel.setBackground(Color.RED); int hours = (int) stunden.getValue(); int minutes = (int) minuten.getValue(); // wandelt die Zeit von eine Integer zu einem Dateobject um SimpleDateFormat wecker = new SimpleDateFormat("HH:mm"); Date da = new Date(); Calendar cal = new GregorianCalendar(); cal.set(Calendar.HOUR_OF_DAY, hours); cal.set(Calendar.MINUTE, minutes); da = cal.getTime(); // Formatiert das Datum, zu einer Zeitangabe anhalten.setText("Alarm " + wecker.format(da) + " anhalten!"); // wenn Alarmausgefuehrt wurde wird alles wieder zum Ausgangszustand gesetzt alarmgesetzt = true; contentPanel.remove(alarm); contentPanel.add(anhalten); jf.validate(); abfrage.dispose(); setTime(da); checkTime(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void okButtonClicked();", "protected abstract boolean onOkClicked();", "protected abstract void pressedOKButton( );", "void onOkButtonPressed();", "@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}", "protected Button getOkButton...
[ "0.8289567", "0.79705924", "0.7943569", "0.7880943", "0.78112847", "0.7763558", "0.77170193", "0.7713041", "0.76869285", "0.7480628", "0.7370619", "0.73628557", "0.7301772", "0.7245243", "0.72159374", "0.7195927", "0.7192628", "0.7184463", "0.71680266", "0.7156288", "0.712935...
0.0
-1
Setzt die Weckzeit, wird von abfrageFenster aufgerufen.
public void setTime(Date date) { this.wecker = date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setzeSchiffe() {\n\t\tthis.setzeSchiffe = true;\n\t}", "public void setWuerfel(Wuerfel wuerfel) {\n\t\tif(wuerfel==null){\n\t\t\tthrow new RuntimeException(\"Es muss ein wuerfel geben! \");\n\t\t}\n\t\tthis.wuerfel = wuerfel;\n\t}", "public void setzeAllePunkteanzeigenSichtbar() \n {\n an...
[ "0.6999611", "0.6960267", "0.6749578", "0.6558269", "0.6521861", "0.642283", "0.6422199", "0.6406374", "0.6388972", "0.6242343", "0.62296915", "0.6221031", "0.6220616", "0.6132489", "0.61188185", "0.6118753", "0.60286134", "0.5947308", "0.5942495", "0.59421295", "0.59129286",...
0.0
-1
Erstellt ein JPopMenu mit zwei Items: "Info", "Beenden"
public void popMenu() { this.menu = new JPopupMenu(); menu.setLocation(jf.getLocation()); this.beenden = new JMenuItem("Beenden"); this.info = new JMenuItem("Info"); menu.add(beenden); beenden.addActionListener(new ActionListener() { // vergleicht ob gleiches Objekt, bei ActionEvent fuer Beenden @Override public void actionPerformed(ActionEvent e) { if (e.getSource() == beenden) { System.exit(0); } } }); menu.add(info); info.addActionListener(new ActionListener() { //vergleicht ob gleiches Objekt, ActionEvent fuer Info @Override public void actionPerformed(ActionEvent e) { if (e.getSource() == info) { menu.setVisible(false); JOptionPane .showMessageDialog(null, "Dies ist eine Uhr mit einstellbaren Wecker\nVersion 1.0"); } } }); menu.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displaySelectedItemPopin(final Entity item) {\n\t\tif (selectedItemPopin == null) {\n\t\t\tselectedItemPopin = new Table();\n//\t\t\tselectedItemPopin.setDebug(true);\n\n\t\t\t// Add an empty click listener to capture the click so that the InputSingleton doesn't handle it\n\t\t\tselectedItemPopin.setT...
[ "0.6386943", "0.63059396", "0.6251407", "0.6143855", "0.6138557", "0.6124725", "0.61206055", "0.61152655", "0.61112595", "0.61027443", "0.60762244", "0.60624206", "0.60624206", "0.6037194", "0.60260135", "0.6022513", "0.60074", "0.599691", "0.5990411", "0.59593606", "0.595897...
0.80952126
0
vergleicht ob gleiches Objekt, bei ActionEvent fuer Beenden
@Override public void actionPerformed(ActionEvent e) { if (e.getSource() == beenden) { System.exit(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n...
[ "0.6872356", "0.6849726", "0.67534286", "0.6748836", "0.6748836", "0.6744491", "0.6690484", "0.6590006", "0.65343326", "0.65293616", "0.65194297", "0.6503898", "0.6469492", "0.6469492", "0.6469492", "0.6465016", "0.6465016", "0.6465016", "0.6465016", "0.6461624", "0.6461624",...
0.0
-1
vergleicht ob gleiches Objekt, ActionEvent fuer Info
@Override public void actionPerformed(ActionEvent e) { if (e.getSource() == info) { menu.setVisible(false); JOptionPane .showMessageDialog(null, "Dies ist eine Uhr mit einstellbaren Wecker\nVersion 1.0"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfireDetailEvent(new DetailEvent(this,'P'));\r\n\t\t\t}", "String getOnAction();", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "protected abstract void action(Object obj);", "@Overrid...
[ "0.6517341", "0.64716005", "0.63128877", "0.62997603", "0.6299556", "0.6272257", "0.6248392", "0.6218906", "0.6218906", "0.6216742", "0.6212176", "0.62061155", "0.6198738", "0.6188525", "0.6188525", "0.6188525", "0.6182102", "0.6171886", "0.61428624", "0.61383575", "0.6097941...
0.0
-1
Ruft nur den Konstruktor auf und legt das Design fest
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException, InterruptedException { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); new Start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "protected Doodler() {\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "public contrustor(){\r\n\t}", "private UsineJoueur() {}", "private DittaAutonoleggio(){\n \n }", "@Override...
[ "0.7222706", "0.7053437", "0.698248", "0.6763441", "0.6707373", "0.6705389", "0.6662979", "0.6651694", "0.66433626", "0.66314095", "0.6631105", "0.660841", "0.66070443", "0.6592838", "0.65698624", "0.65603113", "0.65440613", "0.65439636", "0.6543081", "0.6537042", "0.65312064...
0.0
-1
Usage of this element for creating or updating a NIC is deprecated, use "vnic_profile" instead. It is preserved because it is still in use by the `initialization` element, as a holder for IP addresses and other network details.
@Link Network network();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LabNetworkProfile networkProfile();", "public static void UpdateNetworkVirtualization(AppiumDriver driver, String networkProfile) {\r\n\r\n\t\t\tHashMap<Object, Object> params = new HashMap<>();\r\n\r\n\t\t\tparams.put(\"profile\", networkProfile);\r\n\r\n\t\t\tdriver.executeScript(\"mobile:vnetwork:update\", pa...
[ "0.5642759", "0.54543215", "0.5179424", "0.5147432", "0.5098345", "0.4874008", "0.48355776", "0.48298663", "0.4828929", "0.4796199", "0.4740224", "0.4720077", "0.4667576", "0.45990032", "0.45020434", "0.4500292", "0.44973958", "0.44973958", "0.44889483", "0.44754386", "0.4462...
0.0
-1
Constructor of class Playlist.
public Playlist(String titel, ArrayList<Nummer> albumNummers) { this.titel = titel; this.albumNummers = albumNummers; this.berekenDuur(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Playlist()\n\t{\n\t\tthis(\"UNTITLED\");\n\t}", "public Playlist(String name){\n this.name = name;\n this.duration = new Time(0, 0);\n this.playSongs = new Song[MAX_SONGS_PLAYLIST];\n \n }", "public Playlist(String titel) {\n this.titel = titel;\n }", "public P...
[ "0.8331799", "0.79544073", "0.7677294", "0.7592523", "0.75807774", "0.75096345", "0.72801983", "0.7204148", "0.7094951", "0.70266527", "0.69848555", "0.6944506", "0.68248767", "0.6787294", "0.6716192", "0.6624368", "0.64863276", "0.6425135", "0.6404971", "0.63449675", "0.6343...
0.70244074
10
Constructor of class Playlist, with only a title as input.
public Playlist(String titel) { this.titel = titel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Playlist()\n\t{\n\t\tthis(\"UNTITLED\");\n\t}", "public Playlist(String name){\n this.name = name;\n this.duration = new Time(0, 0);\n this.playSongs = new Song[MAX_SONGS_PLAYLIST];\n \n }", "public Song(String artist, String title) { \r\n\t\tthis.artist = artist;\r\n\t\tt...
[ "0.7656243", "0.75169057", "0.72230077", "0.7123734", "0.7118723", "0.70099837", "0.6690359", "0.667235", "0.66182756", "0.65997744", "0.64952135", "0.64736384", "0.6447781", "0.6384029", "0.63764316", "0.6328528", "0.6309393", "0.62840545", "0.6251482", "0.61880296", "0.6139...
0.8254443
0
Constructor of class Playlist, with only albumNummers as input.
public Playlist(ArrayList<Nummer> albumNummers) { this.albumNummers = albumNummers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Playlist(String titel, ArrayList<Nummer> albumNummers) {\n this.titel = titel;\n this.albumNummers = albumNummers;\n this.berekenDuur();\n }", "public Playlist(String playListName){\n\tgenresList = new Genre[6];\n\tsongList = new Song[30];\n\tthis.playListName = playListName;\n\t}"...
[ "0.8211707", "0.69199", "0.6731831", "0.6635825", "0.6626432", "0.6534555", "0.649189", "0.6414594", "0.6220396", "0.6203409", "0.6185971", "0.6107989", "0.60829926", "0.6073403", "0.60631233", "0.6007205", "0.5999238", "0.5994871", "0.5987929", "0.593531", "0.59147084", "0...
0.86651856
0
Method to calculate album length. After calculation uses setAlbumDuur().
public void berekenDuur() { int duur = 0; for (Nummer nummer : albumNummers) { duur += nummer.getAfspeelDuur(); } this.setAlbumDuur(duur); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAlbumCount(){\n\t\treturn this.albumCount;\n\t}", "public void setLength(){\n this.length = 0;\n for (Music track : this.tracks){\n this.length += track.getLength();\n }\n }", "public int length()\n\t{\n\t\tif ( properties != null && properties.containsKey(\"ogg...
[ "0.6724755", "0.67018634", "0.6104437", "0.5967946", "0.5917237", "0.58945966", "0.5872946", "0.5872946", "0.5799759", "0.57573664", "0.5738198", "0.5734646", "0.5711961", "0.56755906", "0.56579727", "0.56562144", "0.56525594", "0.5639583", "0.5610074", "0.5597002", "0.558144...
0.0
-1
Method to shuffle a playlist. Uses an existing method: Collections.shuffle().
public void shuffle() { Collections.shuffle((List<Nummer>) this.albumNummers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shuffle();", "public ArrayList<SongInfo> getShuffledSongs(boolean reshuffle);", "public void shuffle(){\n Collections.shuffle(Arrays.asList(this.deck));\n }", "void shuffle();", "void shuffle();", "public void shuffle() {\n Collections.shuffle(this);\n }", "public void shuffle...
[ "0.74722314", "0.74037844", "0.7333427", "0.72288954", "0.72288954", "0.7200266", "0.7153094", "0.7153094", "0.7064692", "0.70531476", "0.70495206", "0.70276123", "0.6910752", "0.69080895", "0.6851175", "0.68494487", "0.68311113", "0.6819848", "0.6811691", "0.6805598", "0.679...
0.6843461
16
opens the spreadsheet popup
private SpreadsheetPage openSpreadsheet(ContentViewElement cv) { WebElement spreadsheetAction = cv.switchToResultLayout(ResultLayout.LISTING).getActionByTitle( SPREADSHEET_ACTION_TITLE); assertNotNull(spreadsheetAction); spreadsheetAction.click(); WebElement iFrame = Locator.findElementWithTimeout(By.xpath(IFRAME_XPATH)); assertNotNull(iFrame); driver.switchTo().frame(iFrame); SpreadsheetPage spreadsheet = new SpreadsheetPage(driver); // wait for ajax requests and render to complete spreadsheet.waitReady(); // fill the page object fillElement(SpreadsheetPage.class, spreadsheet); return spreadsheet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void open() {\n popupWindow = new Window(getTypeCaption());\n popupWindow.addStyleName(\"e-export-form-window\");\n popupWindow.addStyleName(\"opaque\");\n VerticalLayout layout = (VerticalLayout) popupWindow.getContent();\n layout.setMargin(true);\n layout.setSpaci...
[ "0.6871673", "0.65954", "0.6565672", "0.60510665", "0.596679", "0.5917232", "0.59091944", "0.5909061", "0.58606946", "0.5852959", "0.5791126", "0.5766838", "0.57635486", "0.5740439", "0.57125133", "0.5708606", "0.57005", "0.56447774", "0.562082", "0.5572708", "0.5544802", "...
0.6655643
1
returns the names of the content view's result columns
private List<String> getContentViewColumns(ContentViewElement cv) { List<String> headers = new ArrayList<>(); WebElement dataOutput = cv.findElement(By.className("dataOutput")); List<WebElement> cvHeaders = dataOutput.findElements(By.className("colHeader")); for (WebElement e : cvHeaders) { headers.add(e.getText()); } return headers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDisplayColumns() {\n return query.getDisplayColumns();\n }", "public Tuple<String> getColumnNames() {\n return resultTable.getColumnNames();\r\n }", "List<String> getColumns();", "public List<String> getColumns();", "public Object[] getColumnNames(){\r\n if (ufeR...
[ "0.7106905", "0.70427716", "0.69931614", "0.6974281", "0.67108476", "0.66277856", "0.6551353", "0.6520117", "0.6466279", "0.64494634", "0.6437617", "0.643527", "0.6424951", "0.64028", "0.6388602", "0.6376322", "0.637463", "0.6364622", "0.63465035", "0.63335586", "0.63085306",...
0.71510917
0
returns the content view rows
private List<WebElement> getContentViewRows(ContentViewElement cv) { return cv.findElements(By.cssSelector(".dataOutput > tbody > tr")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getRows() {\n int count = metroTileView.getChildCount();\n for (int i=0; i<count; i++) {\n LinearLayout layout = (LinearLayout) metroTileView.getChildAt(i);\n rows.add(layout);\n }\n }", "public List getRows() \n {\n return rows;\n }", "pu...
[ "0.7420939", "0.6901324", "0.6579497", "0.6575964", "0.65287846", "0.64998174", "0.64951617", "0.6478054", "0.64580387", "0.64072216", "0.6379664", "0.6326798", "0.6326482", "0.6283429", "0.6271688", "0.6271688", "0.62677735", "0.6244415", "0.62309444", "0.6230891", "0.622657...
0.7404723
1
Adds blocks and entities from this structure to the given world.
public void addBlocksToWorld(ChunkPrimer primer, List<TileEntity> tileEntitiesToAdd, World world, BlockPos pos, PlacementSettings placementIn) { placementIn.setBoundingBoxFromChunk(); Random rand = new Random(); StructureBoundingBox boundingBox = placementIn.getBoundingBox(); rand.setSeed((boundingBox.minX >> 4) * 0x4f9939f508L + (boundingBox.minZ >> 4) * 0x1ef1565bd5L); final Rotation rotationIn = placementIn.getRotation(); if (!isEmpty()) { final Block block = placementIn.getReplacedBlock(); final StructureBoundingBox structureboundingbox = boundingBox; for (BlockInfo templateBlockInfo : blocks) { templateBlockInfo = getAlternateBlockInfo(templateBlockInfo, rand); final BlockPos blockpos = transformedBlockPos(placementIn, templateBlockInfo.pos).add(pos); final Block processedBlock = templateBlockInfo.blockState.getBlock(); if ((block == null || block != processedBlock) && (!placementIn.getIgnoreStructureBlock() || processedBlock != Blocks.STRUCTURE_BLOCK) && (structureboundingbox == null || structureboundingbox.isVecInside(blockpos))) { final IBlockState mirrorState = templateBlockInfo.blockState.withMirror(placementIn.getMirror()); final IBlockState finalState = mirrorState.withRotation(rotationIn); if (primer != null) { primer.setBlockState(blockpos.getX() & 15, blockpos.getY(), blockpos.getZ() & 15, finalState); } if (templateBlockInfo.tileentityData != null && processedBlock instanceof ITileEntityProvider) { final TileEntity tileEntity = ((ITileEntityProvider) processedBlock).createNewTileEntity(world, processedBlock.getMetaFromState(finalState)); if (tileEntity != null) { templateBlockInfo.tileentityData.setInteger("x", blockpos.getX()); templateBlockInfo.tileentityData.setInteger("y", blockpos.getY()); templateBlockInfo.tileentityData.setInteger("z", blockpos.getZ()); tileEntity.readFromNBT(templateBlockInfo.tileentityData); tileEntity.mirror(placementIn.getMirror()); tileEntity.rotate(rotationIn); tileEntitiesToAdd.add(tileEntity); } } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToWorld(World world);", "public static void addWorld(World world) {\n\t\tworlds.add(world);\n\t}", "public void addToWorld() {\n world().addObject(this, xPos, yPos);\n \n try{\n terrHex = MyWorld.theWorld.getObjectsAt(xPos, yPos, TerritoryHex.class).get(0);\n ...
[ "0.70592374", "0.6761569", "0.66986114", "0.65773916", "0.6342593", "0.6330705", "0.62961286", "0.6164697", "0.6120163", "0.6098373", "0.60151064", "0.6003266", "0.5889488", "0.57616526", "0.57415354", "0.5737464", "0.56815386", "0.5666129", "0.56575066", "0.5642209", "0.5635...
0.5606109
22
Keywords.clickOnElement("XPATH", "//span[text()=' 24x7 goCare Support']");
@Test public void verifycustomerSupportlink() { Keywords.clickOnElement(PropertiesFile.getLocator("Spportlink")[0],PropertiesFile.getLocator("Spportlink")[1]); System.out.println("24*7 goCare Support link is Displayed on Header"); Constants.driver.manage().timeouts().implicitlyWait(60,TimeUnit.SECONDS) ; Keywords.terminateBrowser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ClickAtDesireProduct(String product){ //clicarNoProdutoDesejado\n driver.findElement(By.xpath(\"//h3[contains(text(),'\" + product + \"')]\")).click();\n\n }", "@Test\n public void prime(){\n\n WebElement input = driver.findElement(By.id(\"twotabsearchtextbox\"));\n inp...
[ "0.6774114", "0.6437276", "0.6311998", "0.62279063", "0.61413115", "0.6000834", "0.5921259", "0.5887565", "0.58455384", "0.5702369", "0.5693854", "0.56738895", "0.5655694", "0.56350154", "0.56243384", "0.562178", "0.56159055", "0.5605057", "0.5583852", "0.5569124", "0.551134"...
0.54324365
32
User clicked OK button
public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); pdm = new ProgressDialog(MapActivity.this); pdm.setTitle("Esperando oponente..."); pdm.setCancelable(true); pdm.setIndeterminate(true); pdm.show(); esperarLucha(title); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void okButtonClicked();", "protected abstract boolean onOkClicked();", "protected abstract void pressedOKButton( );", "public void OnOkClick()\r\n {\r\n\r\n }", "void onOkButtonPressed();", "public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}", "@Override\r\n\tpr...
[ "0.8416059", "0.7906154", "0.78761244", "0.7739544", "0.77332246", "0.771569", "0.75174195", "0.74180746", "0.7382377", "0.73555684", "0.72178215", "0.72037923", "0.7194231", "0.7191233", "0.71904606", "0.71682405", "0.715651", "0.71418244", "0.7114807", "0.7114807", "0.71148...
0.0
-1
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { dialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t...
[ "0.84252524", "0.81816214", "0.81397384", "0.80922073", "0.7927849", "0.79160905", "0.78777075", "0.78763556", "0.7856008", "0.7849157", "0.7848072", "0.7838308", "0.7804249", "0.77992254", "0.7796975", "0.7796975", "0.77921396", "0.7792013", "0.77904165", "0.77860636", "0.77...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(DialogInterface dialog, int which) { AceptarCofre(objeto.get(which)); }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.principal, 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.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
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.7904536", "0.78052336", "0.7766536", "0.7727363", "0.76318616", "0.7621916", "0.7584545", "0.7530609", "0.74878335", "0.74571276", "0.74571276", "0.7438656", "0.7422694", "0.7403604", "0.73918706", "0.7387049", "0.7379379", "0.73706305", "0.7362634", "0.7356091", "0.734574...
0.0
-1