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 |
|---|---|---|---|---|---|---|
Called by layer PRESENTER when VIEW pass for a reconstruction/destruction. Usefull for kill/stop activities that could be running on the background Threads | @Override
public void onDestroy(boolean isChangingConfiguration) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void finalizeViewer()\n {\n viewer.stopViewer();\n\n // check whether star tasks still is running ! \n if (startTask.isAlive() == true)\n startTask.interruptAll(); // send interrupt signal\n \n // Wait 1s. \n try\n {\n Thread.sleep(10... | [
"0.6427389",
"0.6311502",
"0.6182895",
"0.6085512",
"0.6040295",
"0.5976859",
"0.5898788",
"0.5855947",
"0.5796088",
"0.579268",
"0.5782259",
"0.5742097",
"0.5734015",
"0.57239294",
"0.57010716",
"0.56929475",
"0.5688425",
"0.5663359",
"0.5634871",
"0.56334496",
"0.5628191",
... | 0.0 | -1 |
///////////////////////////////////////////////////////////////////////////////// Presenter To Model //////////////////////////////////////////////////////////// Method that get the tittle of the location | @Override
public String getTittle() {
return tittleText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String describeLocation() {\n\t\tSWLocation location = this.world.getEntityManager().whereIs(this);\n\t\treturn this.getShortDescription() + \" [\" + this.getHitpoints() + \"] is at \" + location.getShortDescription();\n\t}",
"String getLocationLabel();",
"public abstract String getDisplayLocation();",... | [
"0.67175066",
"0.6521467",
"0.63626486",
"0.61770016",
"0.6140177",
"0.6042765",
"0.60401607",
"0.6021024",
"0.60136867",
"0.60093164",
"0.599588",
"0.59559155",
"0.59153694",
"0.5891559",
"0.58863205",
"0.58773726",
"0.5866444",
"0.5854639",
"0.58463544",
"0.5830044",
"0.582... | 0.61051494 | 5 |
Method that get the description of the location | @Override
public String getDescription() {
return descriptionText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String describeLocation() {\n\t\tSWLocation location = this.world.getEntityManager().whereIs(this);\n\t\treturn this.getShortDescription() + \" [\" + this.getHitpoints() + \"] is at \" + location.getShortDescription();\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}"... | [
"0.8343474",
"0.74426204",
"0.7442012",
"0.7361998",
"0.7361998",
"0.7361998",
"0.7352975",
"0.7352975",
"0.73079425",
"0.7284183",
"0.7284183",
"0.7284183",
"0.7284183",
"0.7284183",
"0.7284183",
"0.7284183",
"0.7284183",
"0.72733057",
"0.72599393",
"0.7231152",
"0.7210369",... | 0.0 | -1 |
Method that get the location in googleMaps | @Override
public String getLocation() {
return location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getMyLocation() {\n LatLng latLng = new LatLng(latitude, longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 18);\n googleMap.animateCamera(cameraUpdate);\n }",
"com.google.ads.googleads.v14.common.LocationInfo getLocation();",
"private void ... | [
"0.7699749",
"0.7603855",
"0.7444333",
"0.7263199",
"0.7216474",
"0.7171921",
"0.7171921",
"0.7171921",
"0.7171921",
"0.7168037",
"0.7070415",
"0.6979373",
"0.6978932",
"0.6945264",
"0.69382405",
"0.6919962",
"0.6919422",
"0.69168204",
"0.68805844",
"0.68759924",
"0.6864933",... | 0.0 | -1 |
Method that get the url of the location | @Override
public String getWeb() {
return web;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"URI getLocation();",
"private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }",
"public URL getLocation() {\n return location;\n }",
"String url();",
"public String getURL();",
"Uri getUrl();",
"URL getUrl();",
"java.net.URL getUrl();",
"pri... | [
"0.79589033",
"0.7801825",
"0.7682606",
"0.76386803",
"0.7616608",
"0.7545794",
"0.73883116",
"0.73728985",
"0.73428214",
"0.7321817",
"0.72970486",
"0.72639275",
"0.72639275",
"0.72639275",
"0.72639275",
"0.72639275",
"0.72639275",
"0.7238554",
"0.7238554",
"0.7238554",
"0.7... | 0.0 | -1 |
Method that get the facebook page of the location to open it in web browser | @Override
public String getFacebook() {
return facebook;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void likePage(View v) {\n final String urlFb = \"fb://page/1450066045229608\";\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n final PackageManager packageManager = getPackageManager();\n List<ResolveInfo> list ... | [
"0.65992707",
"0.63521653",
"0.63449204",
"0.606234",
"0.6034389",
"0.6014816",
"0.5854207",
"0.58280826",
"0.5766737",
"0.571989",
"0.5717022",
"0.570224",
"0.5697566",
"0.56969285",
"0.5669024",
"0.5663728",
"0.56172955",
"0.5614866",
"0.5608189",
"0.5607972",
"0.55971813",... | 0.0 | -1 |
Method that get the instagram page of the location to open it in web browser | @Override
public String getInstagram() {
return instagram;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void openUrlInBrowser(String URL) {}",
"public ICurrentPage openNewWindow(String url);",
"private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n ... | [
"0.6154907",
"0.6072397",
"0.60020417",
"0.5961621",
"0.5922499",
"0.58869356",
"0.5850922",
"0.58341175",
"0.5823117",
"0.580021",
"0.57923096",
"0.57923096",
"0.57923096",
"0.57923096",
"0.57923096",
"0.5772505",
"0.5765012",
"0.5762593",
"0.57563925",
"0.5737993",
"0.57377... | 0.53843206 | 58 |
Method that get the facebook id of the location to open it in the facebook app | @Override
public String getIdInstagram() {
return idInstagram;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getIdFacebook() {\n return idFacebook;\n }",
"int getLocationID();",
"String getIdFromLocation(final String location) {\n return location.substring(location.lastIndexOf(\"/\") + 1);\n }",
"public String getFacebookUserId() {\n return sp.getString(FACEBOOK_USER_... | [
"0.6317167",
"0.60953766",
"0.5931425",
"0.5911829",
"0.57410455",
"0.5624243",
"0.55566835",
"0.55352145",
"0.54708284",
"0.5354075",
"0.53419656",
"0.53361464",
"0.5329754",
"0.5324001",
"0.53232706",
"0.52926606",
"0.52847093",
"0.52826464",
"0.52824736",
"0.52665764",
"0.... | 0.0 | -1 |
Method that get the instagram id of the location to open it in the instagram app | @Override
public String getIdFacebook() {
return idFacebook;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getIdInstagram() {\n return idInstagram;\n }",
"int getLocationID();",
"@Override\n public void setIdInstagram(String idInstagram) {\n this.idInstagram = idInstagram;\n }",
"String getIdFromLocation(final String location) {\n return location.substring(location.lastI... | [
"0.6771921",
"0.60098743",
"0.5979402",
"0.59136486",
"0.5827037",
"0.5776178",
"0.55724585",
"0.55010086",
"0.5472584",
"0.5472584",
"0.54489815",
"0.5399821",
"0.5391508",
"0.53803414",
"0.53617376",
"0.5329402",
"0.53217524",
"0.5260421",
"0.52330065",
"0.5232605",
"0.5190... | 0.49317643 | 77 |
Method that set the location for googleMaps | @Override
public void setLocation(String location) {
this.location = location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLocation(LatLng location) {\r\n \t\tthis.mapLocation = location;\r\n \t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng place = new LatLng(Double.parseDouble(lat),Double.parseDouble... | [
"0.7273612",
"0.7198356",
"0.71577823",
"0.7139321",
"0.71059024",
"0.7097365",
"0.7087846",
"0.7086324",
"0.7028863",
"0.70248157",
"0.6998238",
"0.69925416",
"0.69513184",
"0.6940179",
"0.6912331",
"0.68975496",
"0.68833226",
"0.6881889",
"0.686424",
"0.6860004",
"0.6849756... | 0.0 | -1 |
Method that set the web of the location | @Override
public void setWeb(String web) {
this.web = web;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWeb(String web) {\n\t\tthis.web = web;\n\t}",
"public void setSiteLocation(URI location) {\n \t\tthis.siteLocation = location;\n \t}",
"void setLocationURI(URI locationURI);",
"public void changeUrl() {\n url();\n }",
"@Override\n public String getWeb() {\n return web;\n }",
... | [
"0.70574605",
"0.6631726",
"0.6539443",
"0.6389711",
"0.62975234",
"0.61682093",
"0.6143314",
"0.61262774",
"0.60734034",
"0.6018849",
"0.5998442",
"0.5981681",
"0.59681743",
"0.5956363",
"0.59442735",
"0.59442735",
"0.5876292",
"0.5844301",
"0.58016944",
"0.579888",
"0.57956... | 0.73892415 | 0 |
Method that set the facebook page of the location to open in web browser | @Override
public void setFacebook(String facebook) {
this.facebook = facebook;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void openFacebook(Activity act, String pageName) {\n final String urlFb = \"fb://profile/\"+pageName;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n // If Facebook application is installed, use that else launch a browser\n f... | [
"0.6693571",
"0.6616727",
"0.65728486",
"0.64110726",
"0.6388067",
"0.63267606",
"0.6287382",
"0.62349516",
"0.623162",
"0.62156737",
"0.6215046",
"0.6211569",
"0.62086606",
"0.61941904",
"0.61854106",
"0.6183277",
"0.61608976",
"0.6132246",
"0.61239636",
"0.61078435",
"0.608... | 0.56317043 | 66 |
Method that set the facebook id of the location to open in facebook app | @Override
public void setIdFacebook(String idFacebook) {
this.idFacebook = idFacebook;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getIdFacebook() {\n return idFacebook;\n }",
"void gotoEditProfile(String fbId);",
"@Override\n public void setFacebook(String facebook) {\n this.facebook = facebook;\n }",
"public void facebook(View view) {\n Uri uri = Uri.parse(\"https://www.facebook.com/AnanthPgr... | [
"0.6293803",
"0.6169685",
"0.599265",
"0.58176726",
"0.5601329",
"0.5543781",
"0.54995406",
"0.5488921",
"0.5413379",
"0.5365554",
"0.5364575",
"0.5335441",
"0.53261083",
"0.5320013",
"0.52824324",
"0.52647567",
"0.52123433",
"0.5201181",
"0.5190205",
"0.51888144",
"0.5179999... | 0.69041115 | 0 |
Method that set the instagram page of the location to open in web browser | @Override
public void setInstagram(String instagram) {
this.instagram = instagram;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void openUrlInBrowser(String URL) {}",
"public ICurrentPage openNewWindow(String url);",
"void openUrl (String url);",
"private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desk... | [
"0.7112132",
"0.67715335",
"0.661222",
"0.6568062",
"0.65674275",
"0.65664744",
"0.65607375",
"0.6528987",
"0.652176",
"0.65182996",
"0.65074295",
"0.6506831",
"0.6477433",
"0.64700377",
"0.64367056",
"0.64248806",
"0.6419295",
"0.64165044",
"0.6409824",
"0.6315071",
"0.63050... | 0.0 | -1 |
Method that set the facebook page of the location to open in web browser | @Override
public void setIdInstagram(String idInstagram) {
this.idInstagram = idInstagram;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void openFacebook(Activity act, String pageName) {\n final String urlFb = \"fb://profile/\"+pageName;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n // If Facebook application is installed, use that else launch a browser\n f... | [
"0.6696141",
"0.66181946",
"0.65699744",
"0.64083797",
"0.6389266",
"0.6325039",
"0.62850493",
"0.62334484",
"0.6230336",
"0.6213809",
"0.6213688",
"0.6209138",
"0.62061906",
"0.6193427",
"0.6183869",
"0.61824",
"0.6159357",
"0.61335015",
"0.6121821",
"0.61055803",
"0.6089372... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
byte b1=125;
System.out.println(b1);
byte b2=(byte)129;
System.out.println(b2);
} | {
"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 equals(Object arg0) {
return false;
} | {
"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 hashCode() {
return 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 |
????? list of trainer | public void showTrainers(){
System.out.println("Trainer: "+this.lastName.toUpperCase()+" "+this.firstName.toUpperCase()+" ,with subject: "+
this.subject.getStream().getTitle().toUpperCase());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<Trainer> addTrainers() {\n System.out.println(\"\\nAdd a trainer!\");\n do {\n listOfTrainers.add(createTrainer());\n System.out.print(\"\\nWould you like to add a new trainer?(yes or no): \");\n boolean yesOrNo = yesOrNoValidation();\n ... | [
"0.6596865",
"0.6199702",
"0.60558075",
"0.59088427",
"0.58790934",
"0.5791598",
"0.57093745",
"0.57081026",
"0.55893177",
"0.5554547",
"0.55228066",
"0.5505635",
"0.5501117",
"0.5478366",
"0.54577154",
"0.5415737",
"0.5397944",
"0.5395752",
"0.5393874",
"0.5341827",
"0.53247... | 0.60694283 | 2 |
Wait Until Table is buffered | private void waitTableBuffering(String legend){
final WebElement res = this.driver.findElement(By.id("Res"));
this.driverWaitTime.until(ExpectedConditions.textToBePresentInElement(res, legend));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForData() {\n waitForData(1);\n }",
"private int waitUntilReady()\r\n {\r\n int rc = 0;\r\n // If a stock Item is in the Table, We do not want to start\r\n // The Lookup, if the name of the stock has not been identified.\r\n // here we will wait just a couple a se... | [
"0.6426877",
"0.5991258",
"0.58371514",
"0.5821149",
"0.5799279",
"0.57322645",
"0.5705884",
"0.5670233",
"0.56646806",
"0.56613374",
"0.56538624",
"0.55987614",
"0.5584807",
"0.5583772",
"0.5525311",
"0.55221283",
"0.5499656",
"0.5489381",
"0.5474108",
"0.5444578",
"0.543418... | 0.6722473 | 0 |
prilikom brisanja valute brisu se i svi racuni koji su u toj valuti | @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
public ResponseEntity<Valute> obrisiValutu(@PathVariable Long id) {
Valute valuta = valuteService.delete(id);
return new ResponseEntity<>(valuta, HttpStatus.OK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void brisanjeVozila() {\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tSystem.out.println(i + \"-Vrsta Vozila|\" + v.getVrstaVozila() + \" Registarski broj|\" + v.getRegBR()\n\t\t\t\t\t+ \" Status izbrisanosti vozila|\" + v.isVozObrisano());\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.prin... | [
"0.6835111",
"0.6403009",
"0.6369331",
"0.6362876",
"0.6358738",
"0.6355136",
"0.6298418",
"0.62928104",
"0.62866586",
"0.6279975",
"0.62766904",
"0.6261054",
"0.6248862",
"0.6215701",
"0.62108386",
"0.6208462",
"0.6201766",
"0.6178512",
"0.61536354",
"0.61497885",
"0.6129306... | 0.0 | -1 |
/ 1.The owner of this view must call this method when the activity is resumed. 2.Calling this method will recreate the OpenGL display and resume the rendering thread. 3.Must not be called before a renderer has been set. | @Override
public void onResume() {
mPanoView.onResume();
super.onResume();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onResume()\n {\n super.onResume();\n mGLSurfaceView.onResume();\n }",
"@Override\n protected void onResume()\n {\n super.onResume();\n mGLSurfaceView.onResume();\n }",
"@Override\n protected void onResume() {\n super.onResume();... | [
"0.7612307",
"0.7612307",
"0.75909275",
"0.751318",
"0.72839206",
"0.7182871",
"0.7012999",
"0.6794251",
"0.67464685",
"0.67330474",
"0.66466486",
"0.65612465",
"0.6550557",
"0.652908",
"0.6505474",
"0.6503055",
"0.6453078",
"0.64474887",
"0.6402526",
"0.63787436",
"0.6372443... | 0.0 | -1 |
Public static constructor that creates fragment and passes a bundle with data into it when adapter is created | public static FilterDialogFragment newInstance() {
FilterDialogFragment addListDialogFragment = new FilterDialogFragment();
Bundle bundle = new Bundle();
addListDialogFragment.setArguments(bundle);
return addListDialogFragment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n ... | [
"0.71535414",
"0.7065395",
"0.6981516",
"0.6880114",
"0.6873698",
"0.6866022",
"0.68415356",
"0.6836512",
"0.6836512",
"0.6836512",
"0.6836512",
"0.6832746",
"0.68298936",
"0.67924607",
"0.67924196",
"0.67703074",
"0.6763263",
"0.6722345",
"0.6702288",
"0.66740173",
"0.667384... | 0.0 | -1 |
Initialize instance variables with data from bundle | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void initData(Bundle savedInstanceState) {\n\t\t\n\t}",
"@Override\n\tpublic void loadData(Bundle bundle) {\n\t}",
"@Override\r\n\tpublic void initData(Bundle savedInstanceState) {\n\r\n\t}",
"private void initData() {\n\t\tIntent intent = getIntent();\n\t\tjob = (Job) intent.getSerializa... | [
"0.7154151",
"0.6973604",
"0.68697596",
"0.67613506",
"0.6759745",
"0.6711796",
"0.66896164",
"0.66896164",
"0.6663533",
"0.66625535",
"0.6621184",
"0.66073996",
"0.6555342",
"0.6554859",
"0.6550658",
"0.6550658",
"0.6550658",
"0.6550658",
"0.6519159",
"0.6512253",
"0.6512253... | 0.0 | -1 |
Open the keyboard automatically when the dialog fragment is opened | @Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
getDialog().getWindow().getAttributes().windowAnimations = R.anim.logo_animation_back;
((ViewGroup) getDialog().getWindow().getDecorView())
.getChildAt(0).startAnimation(AnimationUtils.loadAnimation(
getActivity(), R.anim.app_name_animation));
// getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void onActivityCreated(Bundle savedInstanceState) {\r\n super.onActivityCreated(savedInstanceState);\r\n getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);\r\n }",
"@Override\r\n public void onActivityCreated(Bundle savedInst... | [
"0.70598114",
"0.70598114",
"0.675631",
"0.66885775",
"0.65540016",
"0.64906603",
"0.64274395",
"0.63887274",
"0.62003326",
"0.61938936",
"0.61627626",
"0.61222893",
"0.60944045",
"0.608533",
"0.60765743",
"0.6046717",
"0.6042277",
"0.6001335",
"0.5989685",
"0.59874207",
"0.5... | 0.55778295 | 78 |
Use the Builder class for convenient dialog construction | @Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
// Get the layout inflater
LayoutInflater inflater = getActivity().getLayoutInflater();
View rootView = inflater.inflate(R.layout.filter_dialog, null);
/* Inflate and set the layout for the dialog */
/* Pass null as the parent view because its going in the dialog layout*/
builder.setView(rootView)
/* Add action buttons */
.setPositiveButton(R.string.filter, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
addShoppingList();
}
});
return builder.create();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Dialog() {\n\t}",
"public abstract Dialog createDialog(DialogDescriptor descriptor);",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n... | [
"0.70603955",
"0.69790804",
"0.6929949",
"0.692271",
"0.6866671",
"0.67297786",
"0.66794777",
"0.6679368",
"0.6638751",
"0.6617405",
"0.6549817",
"0.6539394",
"0.652435",
"0.65164286",
"0.6469162",
"0.64641607",
"0.6451098",
"0.6425593",
"0.6419002",
"0.6419002",
"0.63697636"... | 0.0 | -1 |
Add new active list | public void addShoppingList() {
/* Close the dialog fragment */
FilterDialogFragment.this.getDialog().cancel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addActiveCourseListToCourseList() {\n courseList.addCoursesToList(activeCourseList);\n activeCourseList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }",
"public void addToList() {\n addToCurrentListButton.addActionListener(new ActionListener() {... | [
"0.736416",
"0.6595705",
"0.6506521",
"0.6468223",
"0.62775886",
"0.6230777",
"0.6163827",
"0.60276926",
"0.6023912",
"0.6018844",
"0.6011591",
"0.60049134",
"0.5951937",
"0.58810836",
"0.5880806",
"0.584309",
"0.5791795",
"0.5753008",
"0.5739082",
"0.5724585",
"0.57175946",
... | 0.0 | -1 |
/ %L Cytoscape Filters Impl (filterimpl) $Id:$ $HeadURL:$ %% Copyright (C) 2006 2013 The Cytoscape Consortium %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Lesser Public License for more details. You should have received a copy of the GNU General Lesser Public License along with this program. If not, see < L% Interface for listening to Index events. | public interface IndexListener {
/**
* Index has been reset.
*/
void indexReset();
/**
* Item has been added to the index.
*
* @param key Object key.
* @param o Object o.
*/
void itemAddedToIndex(Object key, Object o);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void filterChange() {\n\t\t\n\t}",
"void filterChanged(Filter filter);",
"public void clickonFilter() {\n\t\t\n\t}",
"@Override\n\tpublic void filterClick() {\n\t\t\n\t}",
"EventChannelFilter filter();",
"public abstract void updateFilter();",
"@DISPID(-2147412069)\n @PropGet\n ja... | [
"0.6481726",
"0.64706564",
"0.6396241",
"0.6306563",
"0.6302035",
"0.62290967",
"0.61969167",
"0.6096373",
"0.60096556",
"0.59708285",
"0.5952288",
"0.5907961",
"0.58731246",
"0.5857173",
"0.5823371",
"0.57873803",
"0.57653844",
"0.5745777",
"0.5723732",
"0.5721536",
"0.57012... | 0.0 | -1 |
Index has been reset. | void indexReset(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onIndexReset();",
"public void reset() {\n index = 0;\n }",
"public void Reset() \r\n {\r\n _index = -1;\r\n }",
"public abstract void reset(int index);",
"public void reset() {\n this.index = this.startIndex;\n }",
"public void reset() {\n this.setInde... | [
"0.85701454",
"0.8460138",
"0.82906514",
"0.7917246",
"0.77893955",
"0.76990086",
"0.74210775",
"0.7419228",
"0.74160707",
"0.73102975",
"0.72740144",
"0.71056384",
"0.6997131",
"0.6976954",
"0.69697607",
"0.6968553",
"0.6903902",
"0.68933254",
"0.68629223",
"0.6862043",
"0.6... | 0.8707425 | 0 |
Item has been added to the index. | void itemAddedToIndex(Object key, Object o); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}",
"public boolean add(final OrderedItem item) {\n\t\t\tfinal int i = item.getIndex();\n\t\t\tif (table[index].get(i)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ttable[index].set(i);\n\t\t\treturn true;\n\t\t}",
"@Override\r\n\t\t\t\t\tpublic void ... | [
"0.6571317",
"0.6524996",
"0.6426772",
"0.63110304",
"0.6219912",
"0.6187454",
"0.6169723",
"0.6164771",
"0.6136211",
"0.611956",
"0.6117015",
"0.61030734",
"0.60847425",
"0.6079714",
"0.60788995",
"0.6051494",
"0.6037737",
"0.6004899",
"0.60005105",
"0.5987087",
"0.59773135"... | 0.6225533 | 4 |
Created by zhanghong on 16/1/4. | public interface FileUploadService {
/**
*
* @param form
* @param path
* @param fileName
* @throws Exception
*/
void uploadBase64Image(Base64ImageForm form, String path, String fileName) throws Exception;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpubli... | [
"0.6060951",
"0.60346925",
"0.59818333",
"0.59739214",
"0.5942642",
"0.5886231",
"0.5886231",
"0.5884409",
"0.5861216",
"0.5837405",
"0.5795568",
"0.5787394",
"0.57830054",
"0.57798976",
"0.5758251",
"0.5734579",
"0.5734236",
"0.57233787",
"0.57232594",
"0.57180345",
"0.57071... | 0.0 | -1 |
some fields are mandatory to build a valid RSS feed, that's why some are hardcoded there | @Asynchronous
public Future<?> doGenerate() {
final AtomLink atomLink = newChannelAtomLink();
final Channel channel = newChannel(atomLink);
visitor.visit(p -> {
final String url = visitor.buildLink(p);
final Guid guid = new Guid();
guid.setValue(url + "?rssGuid=" + Long.toString(p.getId()));
final AtomLink link = new AtomLink();
link.setRel("self");
link.setType(atomLink.getType());
link.setHref(atomLink.getHref() + "?post=" + p.getId());
final Item item = new Item();
item.setTitle(p.getTitle());
item.setLink(url);
item.setDescription(p.getSummary());
item.setPubDate(RFC_1123_DATE_TIME.format(ZonedDateTime.ofInstant(p.getUpdated().toInstant(), ZoneId.systemDefault())));
item.setGuid(guid);
item.setAtomLink(link);
channel.getItem().add(item);
});
final Rss rss = new Rss();
rss.setChannel(channel);
this.rss = rss;
return new AsyncResult<>(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void fillMandatoryFields() {\n\n }",
"public void PopulateRSSData()\n {\n try\n {\n URL Feed = ParseRSSFromFeed();\n ParseRSS(Feed);\n }\n catch(java.net.MalformedURLException exp)\n {\n String message = exp.getMessage();\n ... | [
"0.5909116",
"0.5863",
"0.5610276",
"0.55942667",
"0.55750525",
"0.5329123",
"0.52430755",
"0.5239124",
"0.5221562",
"0.51543444",
"0.50521827",
"0.5019765",
"0.50075537",
"0.5000027",
"0.49639648",
"0.49304798",
"0.49148625",
"0.48980266",
"0.48863727",
"0.48600626",
"0.4836... | 0.0 | -1 |
Created by zhaopeng on 2017/6/16. | public interface SendService {
public void sendMessage(RemotingCommand remotingCommand, long timeout);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private sta... | [
"0.6122166",
"0.60172033",
"0.5886874",
"0.5831145",
"0.5831145",
"0.5806034",
"0.5767783",
"0.57332885",
"0.5719543",
"0.5705356",
"0.56908447",
"0.5660277",
"0.56517994",
"0.5650177",
"0.56389385",
"0.5631137",
"0.56306124",
"0.5623244",
"0.56135416",
"0.560911",
"0.5601581... | 0.0 | -1 |
Method to add node to the graph | public Node<E> addNode(E value){
Node<E> newNode = new Node<>(value);
if(value != null){
nodes.putIfAbsent(newNode, new HashSet<>());
}
return newNode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addNode(Node n) {\n nodes.put(n.id, n);\n }",
"public void addNode(String node) {\n this.graph.put(node, new LinkedList<>());\n }",
"public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }",
... | [
"0.7652992",
"0.7593494",
"0.75576216",
"0.74996144",
"0.7496916",
"0.74492425",
"0.74399203",
"0.7403641",
"0.7394253",
"0.73735607",
"0.7371398",
"0.734503",
"0.73221576",
"0.7308676",
"0.7277283",
"0.72198075",
"0.7214659",
"0.7202154",
"0.7173154",
"0.71530706",
"0.713444... | 0.6200229 | 89 |
Method to add edge to a node | public void addEdge(Node src, Node dest, int cost){
if(nodes.containsKey(src) && nodes.containsKey(dest)){
Edge newEdge = new Edge(src, dest, cost);
nodes.get(src).add(dest);
src.addNodeEdge(newEdge);
Edge otherEdge = new Edge(dest, src, cost);
nodes.get(dest).add(src);
dest.addNodeEdge(otherEdge);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addEdge(Node from, Node to);",
"void add(Edge edge);",
"void addEdge(int x, int y);",
"public void addEdge(E e){\n\t\tedges.add(e);\n\t}",
"public void addEdge(int start, int end);",
"public abstract boolean addEdge(Node node1, Node node2, int weight);",
"public Edge<V> addEdge(V source, V ... | [
"0.83805084",
"0.80521315",
"0.8001569",
"0.7861704",
"0.7794815",
"0.77245104",
"0.7696741",
"0.76866955",
"0.7644573",
"0.7636593",
"0.76275074",
"0.75618774",
"0.7547222",
"0.7524645",
"0.7434033",
"0.73865753",
"0.73746824",
"0.7302233",
"0.7295931",
"0.72894657",
"0.7283... | 0.0 | -1 |
Method to return all nodes in the graph | public Set<Node<E>> getNodes(){
return nodes.keySet();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<Node> allNodes();",
"public Set<String> getAllNodes() {\n return this.graph.keySet();\n }",
"protected abstract Node[] getAllNodes();",
"public List<INode> getAllNodes();",
"@Override\n public abstract Collection<? extends GraphNode<N, E>> getNodes();",
"List<Node> getNodes();",
"... | [
"0.8200387",
"0.8058597",
"0.7921304",
"0.78892684",
"0.77797484",
"0.7771333",
"0.7724797",
"0.76293707",
"0.74934775",
"0.74653095",
"0.7451422",
"0.72825366",
"0.72782004",
"0.71877575",
"0.7186289",
"0.7184858",
"0.7162999",
"0.7136602",
"0.7105816",
"0.7105722",
"0.71032... | 0.73291147 | 11 |
Method to return neighbors | public Set<Node<E>> getNeighbors(Node<E> node){
Set<Node<E>> result = new HashSet<>();
result = nodes.get(node);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<N> neighbors();",
"private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n... | [
"0.85008824",
"0.8455368",
"0.81724906",
"0.7883632",
"0.78809404",
"0.77418613",
"0.77402335",
"0.766574",
"0.76048434",
"0.75942403",
"0.7593873",
"0.7593241",
"0.7591577",
"0.75885534",
"0.7499749",
"0.749391",
"0.74679935",
"0.7402538",
"0.7394949",
"0.73652846",
"0.73597... | 0.0 | -1 |
Method to return the total number of nodes in the graph | public int size(){
return nodes.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int totalNumberOfNodes();",
"int getNodesCount();",
"int getNodesCount();",
"@Override\n public int nodeCount() {\n return graphNodes.size();\n }",
"public int nodesCount() {\n return nodes.size();\n }",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"public in... | [
"0.87476826",
"0.87305677",
"0.87305677",
"0.8665024",
"0.8463454",
"0.84494376",
"0.83023715",
"0.82913435",
"0.8229199",
"0.8220176",
"0.8220176",
"0.8214873",
"0.81977355",
"0.818331",
"0.817208",
"0.81665665",
"0.8159081",
"0.81327444",
"0.81325006",
"0.8127901",
"0.81080... | 0.77669674 | 52 |
Method for breadthfirst traversal | public List<Node<E>> breadthFirst(Node<E> start){
//set that will contain visited nodes
HashSet<Node<E>> visited = new HashSet<>();
// resulting nodes
List<Node<E>> result = new ArrayList<>();
//queue for traversal
Queue<Node<E>> nodeList = new LinkedList<>();
//check if the node exists in the graph
if(start == null){
throw new IllegalArgumentException("Node cannot be null");
}
if(nodes.containsKey(start)){
nodeList.add(start);
visited.add(start);
result.add(start);
} else{
throw new IllegalArgumentException("Node is not in the graph");
}
//traverse through the queue
while(!nodeList.isEmpty()){
Node<E> curNode = nodeList.poll();
//check if the node has been visited, if not add to the result
if(!visited.contains(curNode)){
result.add(curNode);
}
//add the node to visited
visited.add(curNode);
//get all the neighbors of the node and add to the queue
nodes.get(curNode).forEach( neighbor -> {
if(!visited.contains(neighbor)) {
nodeList.add(neighbor);
}
});
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void breadthFirstTraverse() {\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\t// store neighbors\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\n\t\t// arbitrarily add first element\n\t\tInteger current = (Integer) edges.keySet().toArray()[0];... | [
"0.7996748",
"0.7423284",
"0.74081427",
"0.73730934",
"0.73500514",
"0.71470433",
"0.70275",
"0.698484",
"0.6975678",
"0.6944145",
"0.6881647",
"0.6641863",
"0.66349024",
"0.6604162",
"0.6598104",
"0.6588534",
"0.6585147",
"0.65684736",
"0.6515572",
"0.6495337",
"0.64952254",... | 0.65471363 | 18 |
Method for depthfirst traversal of graph | public List<Node<E>> depthFirst(Node<E> start){
//set that will contain visited nodes
HashSet<Node<E>> visited = new HashSet<>();
// resulting nodes
List<Node<E>> result = new ArrayList<>();
//stack for traversal
Stack<Node<E>> nodeList = new Stack<>();
//check if the node exists in the graph
if(start == null){
throw new IllegalArgumentException("Node cannot be null");
}
if(nodes.containsKey(start)){
nodeList.push(start);
visited.add(start);
result.add(start);
} else{
throw new IllegalArgumentException("Node is not in the graph");
}
//traverse through the queue
while(!nodeList.isEmpty()){
Node<E> curNode = nodeList.pop();
//check if the node has been visited, if not add to the result
if(!visited.contains(curNode)){
result.add(curNode);
}
//add the node to visited
visited.add(curNode);
//get all the neighbors of the node and add to the stack
nodes.get(curNode).forEach( neighbor -> {
if(!visited.contains(neighbor)) {
nodeList.push(neighbor);
}
});
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void depthFirstTraverse() {\n\t\tInteger first = (Integer) edges.keySet().toArray()[0];\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\tdepthFirstTraverse(first, visited);\n\t}",
"public static void depthFirstSearchIterative(ArrayList<Node> graph) {\n... | [
"0.8060891",
"0.7463251",
"0.7374602",
"0.7258217",
"0.7099693",
"0.69684875",
"0.69106925",
"0.6897911",
"0.686705",
"0.6859811",
"0.6835927",
"0.68327075",
"0.679736",
"0.6746756",
"0.6740328",
"0.6699525",
"0.6687689",
"0.66871214",
"0.6639378",
"0.6630991",
"0.65694904",
... | 0.70039845 | 5 |
get node based from value | public Node<E> getPresentNode(E data){
for(Node<E> node: nodes.keySet()){
if(node.data.equals(data)){
return node;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getNodeValue ();",
"Object get(Node node);",
"Node getNode();",
"@Override\r\n public Node getNodeFromValue(Object value_p, Document doc_p) throws Exception\r\n {\n return null;\r\n }",
"public String getNodeValue(Node node) throws Exception;",
"public Node getNode (){\n ... | [
"0.73254704",
"0.7281827",
"0.68778247",
"0.6858682",
"0.68473065",
"0.64862585",
"0.64639276",
"0.6446091",
"0.64353526",
"0.6370797",
"0.6348758",
"0.6340307",
"0.63401747",
"0.63128424",
"0.6285424",
"0.6278147",
"0.62147325",
"0.6211236",
"0.62008417",
"0.6167928",
"0.615... | 0.0 | -1 |
This method swapped characters at position | private static String swap(String str, int i, int j) {
char temp;
char[] charArray = str.toCharArray();
temp = charArray[i];
charArray[i] = charArray[j];
charArray[j] = temp;
return String.valueOf(charArray);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void swap(char[] chars, int i, int j) {\n\t\tchar ch = chars[i];\r\n\t\tchars[i] = chars[j];\r\n\t\tchars[j] = ch;\r\n\t}",
"private void switchChars(char[] chars,int i, int j){\r\n\t\tchar tmp=chars[i];\r\n\t\tchars[i]=chars[j];\r\n\t\tchars[j]=tmp;\r\n\t}",
"private static void swap(char[] a, int i, ... | [
"0.7163624",
"0.6835755",
"0.67672586",
"0.66961837",
"0.6684187",
"0.6571973",
"0.6557422",
"0.64925706",
"0.64594793",
"0.6427038",
"0.6415703",
"0.63428974",
"0.63085276",
"0.62647057",
"0.6260898",
"0.6228472",
"0.61677116",
"0.6126753",
"0.61168754",
"0.6082599",
"0.6076... | 0.6671544 | 5 |
This method computes permutation of given string by Recursive approach and store it in list & return the list | public static List<String> getPermutationByRecursion(String str, List<String>stringByRecursion, int l, int r) {
if(l == r) {
stringByRecursion.add(str);
}
else{
for(int i = l; i <= r ; i++){
str = swap(str, l, i);
getPermutationByRecursion(str, stringByRecursion, l+1, r);
str = swap(str, l, i);
}
}
return stringByRecursion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<String> getPerms(String s){\n\t\tArrayList<String> permutations = new ArrayList<String>();\n\t\t\n\t\tif(s==null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(s.length()==0){\n\t\t\tpermutations.add(\"\");\n\t\t\treturn permutations;\n\t\t}\n\t\t\n\t\t//firstly, choose the first char\n\t\tchar... | [
"0.76465124",
"0.7523721",
"0.74774086",
"0.74681485",
"0.7329712",
"0.7239088",
"0.7223662",
"0.7195538",
"0.7052518",
"0.69626486",
"0.6957114",
"0.6927435",
"0.68424445",
"0.68414503",
"0.6815245",
"0.67521185",
"0.6632063",
"0.66116196",
"0.65435",
"0.6514009",
"0.6497722... | 0.78662574 | 0 |
This method computes all the permutation of given string using Iteration approach & store it in list & returns the same | public static List<String> getPermutationByIteration(String str, String permutString, List<String> stringByIteration) {
// If string is empty
if (str.length() == 0) {
stringByIteration.add(permutString);
}
for (int i = 0; i < str.length(); i++) {
char ch = str.charAt(i);
//Rest of the string after excluding the ith character
String restOfString = str.substring(0, i) + str.substring(i + 1);
getPermutationByIteration(restOfString, permutString + ch, stringByIteration);
}
return stringByIteration;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<String> permutations(String s) {\r\n ArrayList<String> list = new ArrayList<>();\r\n permutations(\"\", s, list);\r\n return list;\r\n }",
"public static void main(String[] args) {\n String input = \"ABC\";\n List<String> result = new ArrayList <> ();... | [
"0.7506549",
"0.7449356",
"0.7420528",
"0.73074263",
"0.72489446",
"0.7246433",
"0.7245037",
"0.7070538",
"0.70698994",
"0.7050541",
"0.7029937",
"0.6962339",
"0.69396424",
"0.69221115",
"0.68112355",
"0.6801636",
"0.67898774",
"0.6788824",
"0.6786846",
"0.67478484",
"0.67477... | 0.7863326 | 0 |
This method pass the given string to get permutation by both i.e Recursive & Iterative approach. And matches the result by both methods then prints result according to it | public static void checkPermutation(String str) {
int length = str.length();
//list to store permutations
List<String> stringByRecursive = new ArrayList<>();
List<String> stringByIteration = new ArrayList<>();
List<String> listOfPermutByRecursive = getPermutationByRecursion(str, stringByRecursive, 0, length-1);
List<String> listOfPermutByIterate = getPermutationByIteration(str, "", stringByIteration);
//sorting the permutation list
Collections.sort(listOfPermutByRecursive);
Collections.sort(listOfPermutByIterate);
System.out.println("\nPermutation of String : "+str+" By Recursion Approch \n");
System.out.println(listOfPermutByRecursive);
System.out.println("\nPermutation of String : "+str+" By Iterative Approch \n");
System.out.println(listOfPermutByIterate);
//checking both list are same / not
if(listOfPermutByIterate.equals(listOfPermutByRecursive)) {
System.out.println("\nPermutation Given By Iterative Approch & Recursion Approch Are Same");
}
else {
System.out.println("\nPermutation Given By Iterative Approch & Recursion Approch Are Not Same");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int printPermutn(String str, String ans)\n {\n\n // If string is empty\n if (str.length() == 0) {\n if (ans.contains(\"123\") || ans.contains(\"321\") || ans.contains(\"234\") || ans.contains(\"345\") || ans.contains(\"456\") || ans.contains(\"654\") || ans.contains(\"543\") || a... | [
"0.7578072",
"0.7512708",
"0.74643934",
"0.738365",
"0.7335044",
"0.7180316",
"0.7150882",
"0.70216453",
"0.7009321",
"0.699003",
"0.69671845",
"0.6945909",
"0.69108874",
"0.69020694",
"0.68510556",
"0.6836428",
"0.68150175",
"0.679574",
"0.67761034",
"0.67501414",
"0.6735142... | 0.7753373 | 0 |
Costruttore della classe InPrigione | public InPrigione(String nome, int numero) {
super(nome, numero);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"public Dipendente() {\r\n\t\tsetnMat();\r\n\t}",
"public void setInoId(String pId);",
"@Override\r\n public String toString() {\r\n return \"Poligono{\" + '}';\r\n }",
"public Prova() {}",
"public Profesional(int aniosExperiencia, String departam... | [
"0.62795496",
"0.61142665",
"0.61130124",
"0.59696054",
"0.59647125",
"0.59597766",
"0.5910445",
"0.59012073",
"0.5872804",
"0.5812212",
"0.58065516",
"0.57955456",
"0.5783129",
"0.5773293",
"0.5765491",
"0.5761702",
"0.5749984",
"0.57465655",
"0.5734693",
"0.5724222",
"0.567... | 0.71401083 | 0 |
Gestisce il passaggio di un giocatore su una casella di tipo InPrigione | @Override
public void effetto(Giocatore giocatoreAttuale) {
giocatoreAttuale.vaiInPrigione();
System.out.println(MESSAGGIO_IN_PRIGIONE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }",
"private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}",
"public Giocatore(String nome, Casella c, Pedina p) {\r\n\t\tsetNome(nome);\r\n\t\tsetPedina(p);\r\n\t\tcasella = c;\r\n\t\tdado = new Dado();\r\n\t\t\r\n\t\tpunt... | [
"0.6784587",
"0.640808",
"0.5951642",
"0.5776807",
"0.5720867",
"0.56346744",
"0.5613939",
"0.55800146",
"0.5571252",
"0.5553063",
"0.5536969",
"0.5524765",
"0.54667777",
"0.5458778",
"0.54263955",
"0.5417049",
"0.5387936",
"0.5366116",
"0.53603536",
"0.53443646",
"0.5317267"... | 0.65627754 | 1 |
Se instancia un scanner y algunas variable controladoras del sistema | public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
int eleccion = 0;
String nombre;
//Pide un nombre al usuario
System.out.println("Cual es tu nombre alma perdida?");
nombre = scanner.next();
while(eleccion != 3)
{
//Manda un mensaje de saludo y el menu
System.out.println("Enfrentaras un oponente especifico en base a tu eleccion");
System.out.println("Elija con cuidado y sabiduria");
System.out.println("Elija el tipo de clase");
System.out.println("1) General");
System.out.println("2) Avanzada");
System.out.println("3) Salir");
System.out.println("");
//Con el try catch checa que se haya hecho una seleccion aceptable
//De lo contrario manda un mensaje y otra vez el menu
try
{
eleccion = Integer.valueOf(scanner.next());
}
catch (NumberFormatException e)
{
System.out.println("Elegiste una opcion no valida");
}
if(eleccion == 3)
{
System.exit(0);
}
else if (eleccion < 3 && eleccion > 0)
{
SeleccionUnidad.selectUnit(eleccion, nombre);
}
else
{
System.out.println("Elige una opcion correcta\n");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void prepareScanner() {\r\n\t\tbcLocator = new BCLocator();\r\n\t\tbcGenerator = new BCGenerator();\r\n\t}",
"private void inicializar()\n\t{\n\t\tif( this.getIn() != null )\n\t\t\tthrow new ConsolaTecladoSoloPuedeHaberUnaInstanciaException();\n\t\t\t\n\t\tthis.setIn( new Scanner( System.in ) );\n\t}",
... | [
"0.6424914",
"0.6260314",
"0.6196123",
"0.6183957",
"0.6053227",
"0.60465556",
"0.60465556",
"0.59924865",
"0.5900295",
"0.585208",
"0.5843328",
"0.583127",
"0.5826207",
"0.5786486",
"0.5766006",
"0.5752924",
"0.5750226",
"0.5747713",
"0.57436496",
"0.57231337",
"0.56941515",... | 0.0 | -1 |
Toast.makeText(getApplicationContext(), "Close help button", Toast.LENGTH_LONG).show(); | @Override
public void onClick(View v) {
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Goodbye!\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\"... | [
"0.76267207",
"0.73410505",
"0.73410505",
"0.7293559",
"0.71372646",
"0.69768023",
"0.68763024",
"0.6873517",
"0.6868896",
"0.6787979",
"0.676702",
"0.67537194",
"0.67066264",
"0.6687723",
"0.66605335",
"0.6656642",
"0.6653734",
"0.66405547",
"0.65650284",
"0.65589297",
"0.65... | 0.0 | -1 |
Returns the parades that have FinalMode = true | public Collection<Parade> findPublishedParade() {
Collection<Parade> result;
result = this.paradeRepository.findPublishedParade();
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}",
"public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParades... | [
"0.63429254",
"0.62294275",
"0.61169076",
"0.6074601",
"0.588622",
"0.5616148",
"0.5599295",
"0.5583915",
"0.55730563",
"0.5550403",
"0.5549523",
"0.55418015",
"0.5538875",
"0.5518525",
"0.55061406",
"0.5499897",
"0.54909116",
"0.547228",
"0.5463771",
"0.544499",
"0.5441035",... | 0.49439368 | 46 |
Returns the parades that have FinalMode = false | public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {
Collection<Parade> result;
result = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}",
"public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParades... | [
"0.6261095",
"0.62129986",
"0.6161421",
"0.5976646",
"0.5803052",
"0.5686576",
"0.5640843",
"0.5574584",
"0.55108184",
"0.54829746",
"0.54700875",
"0.54632",
"0.54198736",
"0.5413501",
"0.5382319",
"0.5374522",
"0.5369371",
"0.53684705",
"0.53626513",
"0.53399783",
"0.5327871... | 0.0 | -1 |
Returns the parades whose owner is a brotherhood | public Collection<Parade> findParadeByBrotherhood(final int id) {
Collection<Parade> parades;
parades = this.paradeRepository.findParadeByBrotherhood(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<String> GetWarps(IPlayer owner)\r\n\t{\r\n\t\tif (owner == null)\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=1\");\r\n\t\telse\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=0 AND creator=?\", owner);\r\n\t}",... | [
"0.543417",
"0.53928024",
"0.52867603",
"0.526691",
"0.5211206",
"0.5188917",
"0.51866215",
"0.51667416",
"0.5069136",
"0.5039046",
"0.50330794",
"0.5027811",
"0.5021593",
"0.49143076",
"0.490409",
"0.48440158",
"0.48218256",
"0.48211983",
"0.48116904",
"0.47936618",
"0.47758... | 0.5674559 | 0 |
Returns the parades that a brotherhood have FinalMode = true | public Collection<Parade> findParadeFinalByBrotherhood(final int id) {
Collection<Parade> parades;
parades = this.paradeRepository.findParadeFinalByBrotherhood(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}",
"public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFi... | [
"0.6178446",
"0.599489",
"0.5965913",
"0.58462334",
"0.56592923",
"0.5601808",
"0.5546473",
"0.5486357",
"0.5485955",
"0.5435227",
"0.5434151",
"0.5428281",
"0.53209263",
"0.5235436",
"0.5213845",
"0.5194699",
"0.5186981",
"0.5150838",
"0.51239115",
"0.51200414",
"0.51149434"... | 0.54948246 | 7 |
Returns the parades that a brotherhood have status = SUBMITTED | public Collection<Parade> findParadeSubmittedByBrotherhood(final int id) {
Collection<Parade> parades;
parades = this.paradeRepository.findParadeSubmittedByBrotherhood(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}",
"boolean getProbables();",
"boolean getAccepted();",
"public boolean isApproved();",... | [
"0.53422827",
"0.5080051",
"0.50677705",
"0.5064792",
"0.5064792",
"0.50526637",
"0.502398",
"0.50178045",
"0.50171614",
"0.4945592",
"0.49415863",
"0.48827586",
"0.48722908",
"0.48552796",
"0.4824421",
"0.4822196",
"0.47750974",
"0.47747296",
"0.47747296",
"0.47614872",
"0.4... | 0.57473767 | 0 |
Returns the parades that a brotherhood have status = REJECTED | public Collection<Parade> findParadeRejectedByBrotherhood(final int id) {
Collection<Parade> parades;
parades = this.paradeRepository.findParadeRejectedByBrotherhood(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}",
"public String getREJECTED_BY() {\r\n return REJECTED_BY;\r\n }",
"public Stri... | [
"0.5866887",
"0.56432515",
"0.56432515",
"0.5397596",
"0.5394414",
"0.5249149",
"0.51810193",
"0.51338506",
"0.509433",
"0.5092478",
"0.50647235",
"0.50457627",
"0.5031004",
"0.50290596",
"0.4982926",
"0.49805096",
"0.49647397",
"0.4909871",
"0.48824677",
"0.48790085",
"0.487... | 0.63423884 | 0 |
Returns the parades that a brotherhood have status = ACCEPTED | public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) {
Collection<Parade> parades;
parades = this.paradeRepository.findParadeAcceptedByBrotherhood(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}",
"public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}",
"boolean getAccepted... | [
"0.59275484",
"0.56564444",
"0.55570626",
"0.54099816",
"0.5284031",
"0.52815825",
"0.52766126",
"0.5262242",
"0.52588344",
"0.5253327",
"0.5252237",
"0.5237818",
"0.51988083",
"0.51925534",
"0.5150192",
"0.50807947",
"0.50779086",
"0.50708205",
"0.50420344",
"0.5036556",
"0.... | 0.61841786 | 0 |
Returns the parades that a brotherhood have status = SUBMITTED and finalMode = true | public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {
Collection<Parade> parades;
parades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}",
"public Boolean getBspReconciled(){\n return bspReconciled;\n }",
"public Doub... | [
"0.52210444",
"0.5154069",
"0.5146447",
"0.5108511",
"0.510372",
"0.5051766",
"0.50388676",
"0.4997354",
"0.49579936",
"0.49568498",
"0.4922886",
"0.4902318",
"0.48956317",
"0.48700833",
"0.48667428",
"0.48496172",
"0.48476464",
"0.47875535",
"0.47738695",
"0.47732225",
"0.47... | 0.54612947 | 0 |
Returns the parades that a brotherhood have status = REJECTED and finalMode = true | public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {
Collection<Parade> parades;
parades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Parade> findParadeRejectedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedByBrotherhood(id);\n\n\t\treturn parades;\n\t}",
"public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {\n\t\tCollection<Par... | [
"0.5684882",
"0.55370736",
"0.5335168",
"0.5320995",
"0.51156557",
"0.5066207",
"0.49946442",
"0.49835533",
"0.49796724",
"0.4967848",
"0.4935276",
"0.49265212",
"0.4913118",
"0.4896054",
"0.48866478",
"0.4865974",
"0.48397884",
"0.48302186",
"0.4780385",
"0.4746059",
"0.4724... | 0.5955483 | 0 |
Returns the parades that a brotherhood have status = ACCEPTED and finalMode = true | public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {
Collection<Parade> parades;
parades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedByBrotherhood(id);\n\n\t\treturn parades;\n\t}",
"boolean getAccepted();",
"@Override\n\tpublic boolean getStatus() {\n\t\treturn _candidate.getSta... | [
"0.5637658",
"0.5499774",
"0.5371053",
"0.5319271",
"0.5150947",
"0.5063176",
"0.5058363",
"0.50361574",
"0.50318605",
"0.5028099",
"0.50092953",
"0.49974656",
"0.49965268",
"0.49506193",
"0.49389768",
"0.49075314",
"0.4897068",
"0.48710677",
"0.48330036",
"0.48311085",
"0.48... | 0.5968793 | 0 |
Returns the parades that are in the same area and have status = SUBMITTED and finalMode = true | public Collection<Parade> findSubmittedByArea(final int id) {
Collection<Parade> parades;
this.areaService.checkPrincipalArea(id);
parades = this.paradeRepository.findSubmittedByArea(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double findRatioSubmittedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioSubmittedParadesFinalMode();\n\n\t\treturn result;\n\t}",
"public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParad... | [
"0.53342354",
"0.51389587",
"0.508147",
"0.49476805",
"0.48390052",
"0.4811927",
"0.48091716",
"0.47958633",
"0.47680846",
"0.47627813",
"0.47621846",
"0.47474515",
"0.4709758",
"0.46936223",
"0.46862164",
"0.4666131",
"0.4622885",
"0.46182215",
"0.46180582",
"0.45989335",
"0... | 0.483097 | 5 |
Returns the parades that are in the same area and have status = REJECTED and finalMode = true | public Collection<Parade> findRejectedByArea(final int id) {
Collection<Parade> parades;
this.areaService.checkPrincipalArea(id);
parades = this.paradeRepository.findRejectedByArea(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}",
"public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\t... | [
"0.5249045",
"0.5128288",
"0.5123848",
"0.5057255",
"0.49981698",
"0.49288517",
"0.48948023",
"0.48718044",
"0.4808278",
"0.47973645",
"0.47922468",
"0.47826788",
"0.4773419",
"0.47640824",
"0.47544307",
"0.4751821",
"0.4714432",
"0.47025305",
"0.4700313",
"0.46913874",
"0.46... | 0.51530653 | 1 |
Returns the parades that are in the same area and have status = ACCEPTED and finalMode = true | public Collection<Parade> findAcceptedByArea(final int id) {
Collection<Parade> parades;
this.areaService.checkPrincipalArea(id);
parades = this.paradeRepository.findAcceptedByArea(id);
return parades;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}",
"private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n ... | [
"0.53632265",
"0.5019794",
"0.4894942",
"0.48772177",
"0.48078737",
"0.47699422",
"0.47300476",
"0.47108093",
"0.47002834",
"0.46979278",
"0.46965644",
"0.4694946",
"0.46805164",
"0.46456677",
"0.46426743",
"0.4636709",
"0.46348825",
"0.45805904",
"0.45693564",
"0.45632604",
... | 0.50474143 | 1 |
Compruebo que el chapter que cambia el estado sea el que gestiona el area del desfile | protected void checkChapter(final Parade parade) {
final Chapter chapter;
final Area areaChapter;
Area areaParade;
chapter = this.chapterService.findByPrincipal();
areaChapter = chapter.getArea();
areaParade = this.areaService.findAreaByParade(parade.getId());
Assert.isTrue(areaChapter.equals(areaParade));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String loadChapterTextLowercasedWithoutSplit(Book book, int chapter_1);",
"public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametro... | [
"0.57082003",
"0.562478",
"0.55832815",
"0.5491207",
"0.5458448",
"0.53689754",
"0.5367644",
"0.5359844",
"0.53517604",
"0.5346669",
"0.5345229",
"0.53396165",
"0.5297472",
"0.5289708",
"0.52488065",
"0.5242074",
"0.52247214",
"0.5224704",
"0.518842",
"0.5188278",
"0.5186231"... | 0.50949836 | 36 |
Req 8.1.4 AcmeParade Ratio parades in draft mode vs final mode | public Double findRatioParadesDraftModeVSParadesFinalMode() {
Double result;
result = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}",
"public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFi... | [
"0.6572701",
"0.6357168",
"0.62085205",
"0.5881246",
"0.58340204",
"0.55363375",
"0.54800075",
"0.54378766",
"0.54012525",
"0.53764987",
"0.53266805",
"0.53075975",
"0.5295366",
"0.52533656",
"0.5251425",
"0.52175856",
"0.52164066",
"0.5210392",
"0.51246136",
"0.5120883",
"0.... | 0.6690172 | 0 |
Req 8.1.5 AcmeParade status = 'submitted' | public Double findRatioSubmittedParadesFinalMode() {
Double result;
result = this.paradeRepository.findRatioSubmittedParadesFinalMode();
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}",
"protected void setSubmissionStatus(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n // not setting committee during submit in iacuc so need not check that like in irb.\n submissionBuilde... | [
"0.61942035",
"0.61419153",
"0.55708575",
"0.5558776",
"0.5555254",
"0.5546517",
"0.5506906",
"0.5503816",
"0.5503816",
"0.5502222",
"0.5499539",
"0.54789686",
"0.54789686",
"0.54657",
"0.54563475",
"0.5452586",
"0.5450367",
"0.54483426",
"0.5444295",
"0.54351294",
"0.5419886... | 0.0 | -1 |
Req 8.1.5 AcmeParade status = 'accepted' | public Double findRatioAcceptedParadesFinalMode() {
Double result;
result = this.paradeRepository.findRatioAcceptedParadesFinalMode();
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}",
"boolean getAccepted();",
"@Test\n public void creditApproved() throws Exception {\n Application app = new Application();\n app.setName(\"phil garfield\");\n app.setCreditScore(600);\n Offer offer = new Offer();\n... | [
"0.7004854",
"0.63351655",
"0.61577904",
"0.6009383",
"0.5938627",
"0.5900192",
"0.58941275",
"0.5875922",
"0.5824253",
"0.5824096",
"0.57586926",
"0.57557184",
"0.5753557",
"0.5732968",
"0.5723473",
"0.5703636",
"0.5702224",
"0.56995106",
"0.5665462",
"0.56167656",
"0.553538... | 0.0 | -1 |
Req 8.1.5 AcmeParade status = 'rejected' | public Double findRatioRejectedParadesFinalMode() {
Double result;
result = this.paradeRepository.findRatioRejectedParadesFinalMode();
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GetACDHistoryRequest setRejected(boolean d) {\n this.rejected = Boolean.valueOf(d);\n return this;\n }",
"public void setRejected(boolean value) {\n this.rejected = value;\n }",
"@Test\n public void creditDenied() throws Exception {\n Application app = new Application();\n... | [
"0.6254774",
"0.61949825",
"0.614137",
"0.61133885",
"0.60379",
"0.59593993",
"0.5955576",
"0.57935834",
"0.5779753",
"0.5771637",
"0.57682544",
"0.57219046",
"0.57193327",
"0.570592",
"0.5677831",
"0.5622311",
"0.556563",
"0.5564931",
"0.553845",
"0.5534428",
"0.55044365",
... | 0.0 | -1 |
Req 8.1.2 AcmeParade. Average, Min, Max, Stdev number of parades coordinated by the chapters | public Double[] findDataNumerParadesCoordinatedByChapters() {
Double[] result;
result = this.paradeRepository.findDataNumerParadesCoordinatedByChapters();
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Query(\"select avg((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), min((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), max((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), stddev((select count(p) from Parade p join p.broth... | [
"0.690726",
"0.5998838",
"0.5886561",
"0.5810236",
"0.57868636",
"0.5751348",
"0.5634202",
"0.5624466",
"0.5603347",
"0.55401534",
"0.5463206",
"0.5450805",
"0.54245895",
"0.54230535",
"0.5405288",
"0.532744",
"0.5307026",
"0.53006905",
"0.5283948",
"0.5275774",
"0.52704066",... | 0.52123004 | 25 |
Created by Dengw on 2017/11/13 | public interface WithHoldOrderContract {
ResponseData resendWithholdOrder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private static void cajas() {\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\n\tpubl... | [
"0.60101455",
"0.5871768",
"0.58214754",
"0.58176446",
"0.578082",
"0.578082",
"0.5767828",
"0.5759595",
"0.57401645",
"0.56933224",
"0.56816757",
"0.56628215",
"0.5646262",
"0.56246614",
"0.5607073",
"0.560099",
"0.559352",
"0.5589614",
"0.5579941",
"0.5577054",
"0.5564221",... | 0.0 | -1 |
Load the saved position, width etc.. | public void init(){
try {
propertiesMemento = new PropertiesMemento();
propertiesMemento.load();
propertiesMemento.setScreenLocationProperties(this);
} catch (Exception e) {
JOptionPane.showMessageDialog(this, "Can't load the stored properties, carrying on.", "Warning", JOptionPane.WARNING_MESSAGE);
}
// Logger set-up
logger = Logger.getLogger(YorkBrowser.class);
try {
FileAppender appender;
File logFile = new File(propertiesMemento.getAppDir() + "logfile.txt");
logFile.delete();
// "r" milliseconds, "t" thread, "c" category - the class name? etc., "p" priority - DEBUG etc., "m" message, "n" separator
FileAppender textAppender = new FileAppender(new PatternLayout("%r %-5p %c{1} - %m%n"), logFile.getAbsolutePath());
BasicConfigurator.configure(textAppender);
File xmlLogFile = new File(propertiesMemento.getAppDir() + "logfile.xml");
xmlLogFile.delete();
appender = new FileAppender(new XMLLayout(), xmlLogFile.getAbsolutePath());
BasicConfigurator.configure(appender);
BasicConfigurator.configure(new ConsoleAppender(new PatternLayout("%r %-5p %c{1} \t - %m%n")));
} catch (Exception e) {
System.out.println("Cannot configure the logger");
}
if("on".equals(propertiesMemento.get("logging"))){
logger.debug("Logging turned on from properties file");
logger.setLevel(Level.DEBUG);
}
else{
logger.debug("turned logging off");
// Turn off at the root level
logger.getParent().setLevel(Level.OFF);
}
logger.info("Log file starts");
logger.debug("OS:" + System.getProperty("os.name"));
// Set the look and feel
// Install the Windows look and feel if on windows
if(System.getProperty("os.name").indexOf("Windows") != -1){
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
}
catch (Exception e) {
logger.warn("Exception loading the look and feel");
}
}
// Create directories structure if required
try{
YorkUtils.setupDirectoryStructure(propertiesMemento.getDataDir());
}
catch(Exception e){
logger.error("Exception when checking/setting directories", e);
}
// Add some listeners
addWindowListener(this);
setTitle("ZygoMeme York");
// Set icon
setIconImage(new ImageIcon(propertiesMemento.getImageDir() + "graphLogo32.png").getImage());
// Set up the layout of the window
JPanel rootPanel = new JPanel();
rootPanel.setLayout(new BorderLayout());
getContentPane().add(rootPanel);
// Create the menu bar
JPanel topPanel = menuCreator.createMenu(eventHandler, getProperties());
// Create the toolbar
topPanel.add(createToolBar());
rootPanel.add(topPanel, BorderLayout.NORTH);
// Add the tabbed pane
tabbedPane = new JTabbedPane();
tabbedPane.addChangeListener(this);
addKeyListener(this);
tabbedPane.addKeyListener(this);
rootPanel.add(tabbedPane, BorderLayout.CENTER);
// Add the status bar
JPanel statusBar = new JPanel();
statusBar.setLayout(new BoxLayout(statusBar, BoxLayout.X_AXIS));
rootPanel.add(statusBar, BorderLayout.SOUTH);
setStatusBarText("Ready");
statusBar.add(statusLabel);
// Set up the size and position and make visible
setSize(new Dimension(width, height));
setLocation(xPos, yPos);
// Open any saved tabs
openSavedTabs();
progressMonitor = new ProgressMonitor(this, "Running Model", "", 0, 1000);
setVisible(true);
// TODO Make this selectable in user preferences
checkForUpdates();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }",
"public void move(){\n super.move();\n load.updateCoordinates(this.x,this.y);\n }",
"public void loadObjData() {\n this.updateGeometryAndUVs(SquareCoords, UVCoords, DrawOrder);\n SquareCoords ... | [
"0.6661955",
"0.6245624",
"0.62250674",
"0.60633177",
"0.60581905",
"0.60093397",
"0.60093397",
"0.6008053",
"0.59902084",
"0.59747916",
"0.5949467",
"0.59364736",
"0.5936211",
"0.5936211",
"0.5920889",
"0.58627814",
"0.5849441",
"0.5849441",
"0.58197635",
"0.57470405",
"0.57... | 0.0 | -1 |
Check to ensure that it has been at least a day since the last check for an update | private void checkForUpdates(){
long now = System.currentTimeMillis();
if(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING) != null){
long lastUpdateTime = Long.parseLong(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING));
long day = 86400000; // milli-seconds in a day
if((now - lastUpdateTime) < day){
return; // Don't need to check as a check has been made in the last 24hrs.
}
}
setStatusBarText("Checking for updates...");
HttpClient webConnection = new HttpClient();
Properties webSideProps;
try{
webSideProps = webConnection.getProperties("http://www.zygomeme.com/version_prop.txt");
}
catch(SocketTimeoutException ste){
logger.debug("Can't connect to internet:" + ste);
setStatusBarText("Unable to connect to internet to check for updates");
return;
}
catch(UnknownHostException uhe){
logger.debug("Can't connect to internet:" + uhe);
setStatusBarText("Unable to connect to internet to check for updates");
return;
}
if(webSideProps == null || webSideProps.isEmpty()){
return;
}
int latestVersionAvailable = Integer.parseInt(webSideProps.get("version_number").toString());
if(latestVersionAvailable > PropertiesMemento.APP_VERSION_NUMBER){
setStatusBarText("A new version of ZygoMeme York is now available. You can now upgrade to Version " + webSideProps.getProperty("version_string") + " " +
webSideProps.get("stage"));
}
else{
setStatusBarText("Update check has been made - application is up to date.");
}
// To get here the properties will have been updated
propertiesMemento.setProperty(PropertiesMemento.UPDATE_STRING, "" + now);
// Save the properties straight away so that the new last "check for update" time is recorded
try {
propertiesMemento.saveProperties(this);
} catch (Exception e) {
logger.warn("Unable to save properties");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressLint({\"CommitPrefEdits\"})\n public void checkForUpdates() {\n synchronized (this.preferenceStore) {\n if (this.preferenceStore.get().contains(\"last_update_check\")) {\n this.preferenceStore.save(this.preferenceStore.edit().remove(\"last_update_check\"));\n ... | [
"0.66024166",
"0.657474",
"0.650053",
"0.65000236",
"0.6495801",
"0.6461365",
"0.6392727",
"0.6355418",
"0.62376",
"0.6207402",
"0.6188599",
"0.6188403",
"0.6152586",
"0.6134836",
"0.6134836",
"0.61342776",
"0.6108347",
"0.5967394",
"0.5962213",
"0.5943114",
"0.59395736",
"... | 0.6142001 | 13 |
Run the analysis of the model in a separate thread | public void runModel(){
currentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);
new Thread(currentView.getDynamicModelView().getModel()).start();
setStatusBarText("Ready");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void runAnalysis ()\n\t{\n\t\tif (isBatchFile()) { runBatch(false); return; }\n\n\t\tfinal String modelText = editor.getText();\n\t\tString iterations = toolbar.getIterations();\n\t\tmodel = Model.compile (modelText, frame);\n\t\tif (model == null) return;\n\t\tTask task = model.getTask();\n\t\tfinal int n ... | [
"0.7106882",
"0.6944787",
"0.62380105",
"0.62052274",
"0.6189705",
"0.60447496",
"0.6009647",
"0.5964518",
"0.5959217",
"0.59394103",
"0.5927043",
"0.5906613",
"0.5875326",
"0.58696884",
"0.58639896",
"0.5772488",
"0.5756311",
"0.5737604",
"0.5704247",
"0.5696525",
"0.5680361... | 0.6951367 | 1 |
If there was an error then report this to the user | public void reportAnyErrors(DynamicModelHistory history){
if(history.getStatus() == DynamicModelHistory.StatusType.ERROR && history.getErrorReport().getReport().size() > 0){
ErrorItem error = history.getErrorReport().getReport().get(0);
if(error.getNodeId() != null){
JOptionPane.showMessageDialog(this, "Error on node \"" + error.getNodeId() + "\". " + error.getMessage(), "Run Aborted", JOptionPane.WARNING_MESSAGE);
}
else{
JOptionPane.showMessageDialog(this, error.getMessage(), "Run Aborted", JOptionPane.WARNING_MESSAGE);
}
// Don't leave the progress monitor hanging around on the screen
progressMonitor.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inquiryError() {\n\t\t\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic boolean hasError() {\n\t\treturn false;\r\n\t}",
"public void error();",
"public void estil... | [
"0.7434997",
"0.7294528",
"0.7014406",
"0.6977953",
"0.6962695",
"0.6924867",
"0.6849042",
"0.67080784",
"0.66508186",
"0.66479903",
"0.66317654",
"0.6608823",
"0.6600992",
"0.65880364",
"0.6566976",
"0.6558664",
"0.65399814",
"0.65386146",
"0.6524433",
"0.6502235",
"0.650200... | 0.0 | -1 |
Actions such as Open File, Open Tab etc... | public void openTab(String tabName){
TabView selectedTabView = new TabView(this);
tabViews.add(selectedTabView);
if(tabName == null){ // If a new tab..
// Ensure that there isn't already a model with that name
while(propertiesMemento.getTabNames().contains(tabName) || tabName == null){
tabName = "New Model " + newModelIndex;
newModelIndex++;
}
}
logger.info("Adding tab:" + tabName);
// Just resizes and doesn't scroll - so don't need the scroll pane
/*JScrollPane scrollPane = new JScrollPane(selectedTabView,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollPane.getVerticalScrollBar().setUnitIncrement(20);
tabbedPane.addTab(tabName, scrollPane);*/
tabbedPane.addTab(tabName, selectedTabView);
currentView = selectedTabView;
tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);
setTabName(tabName);
tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(),
new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));
// Add Mouse motion Listener
currentView.addMouseMotionListener(currentView);
currentView.addMouseListener(currentView);
// Record the tab in the memento
propertiesMemento.addTabRecord(tabName);
setTabButtons(true);
setStatusBarText("Ready");
requestFocusInWindow();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoOpen();\n\t\t\t}",
"ActionOpen()\n {\n super(\"Open\");\n this.setShortcut(UtilGUI.createKeyStroke('O', true));\n }",
"public void Open() {\r\n\t click();\r\n\t }",
"public void openFileDialog() {\n\tswitch... | [
"0.6929853",
"0.6836249",
"0.67723936",
"0.6741072",
"0.66021985",
"0.658196",
"0.6495018",
"0.6495018",
"0.6481702",
"0.6392023",
"0.63577646",
"0.63577646",
"0.6342584",
"0.6290728",
"0.62775624",
"0.6259828",
"0.625369",
"0.6249733",
"0.6247574",
"0.6239365",
"0.6234937",
... | 0.0 | -1 |
Grey out or ungrey the buttons | private void setTabButtons(boolean enableFlag){
buttonMap.get(SAVE_COMMAND).setEnabled(enableFlag);
buttonMap.get(NEW_NODE).setEnabled(enableFlag);
buttonMap.get(RUN_COMMAND).setEnabled(enableFlag);
// Grey out or ungrey the menu items
Map<Command, JMenuItem> menuItemMap = menuCreator.getMenuItemMap();
menuItemMap.get(MenuCreator.Command.SAVE_TAB).setEnabled(enableFlag);
menuItemMap.get(MenuCreator.Command.EDIT_TAB_NAME).setEnabled(enableFlag);
menuItemMap.get(MenuCreator.Command.NEW_DYNAMIC_NODE).setEnabled(enableFlag);
menuItemMap.get(MenuCreator.Command.SAVE_AS_IMAGE).setEnabled(enableFlag);
menuItemMap.get(MenuCreator.Command.EXPORT_RESULTS_TO_FILE).setEnabled(enableFlag);
menuItemMap.get(MenuCreator.Command.INSERT).setEnabled(enableFlag);
menuItemMap.get(MenuCreator.Command.EDIT).setEnabled(enableFlag);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void resetButton() {\n for(int x=0;x<buttons.size();x++) {\n if(buttons.get(x).isOpaque())\n buttons.get(x).setOpaque(false);\n }\n }",
"private static void setButtonsColor(){\r\n for(MyButton b: mylist.getAllButtons()){\r\n if(!b.isChosen()){\r\n ... | [
"0.6775654",
"0.65115863",
"0.64741147",
"0.6463847",
"0.6336247",
"0.63047683",
"0.62786496",
"0.62154055",
"0.62088203",
"0.61878103",
"0.6112747",
"0.609217",
"0.60836875",
"0.60213375",
"0.60209215",
"0.6020811",
"0.60166585",
"0.5972851",
"0.59704757",
"0.59696215",
"0.5... | 0.0 | -1 |
Copy the tab filenames into a list to be used while loading as the opening tabs methods also includes the step of recording the tabs in the propertiesMemento thereby overwriting the loaded list. This would result in only one tab being opened. | private void openSavedTabs(){
List<String> filenames = new ArrayList<String>();
int i = 0;
while(propertiesMemento.get("tab" + i) != null){
filenames.add((String) propertiesMemento.get("tab" + i));
i++;
}
for(String filename: filenames){
logger.info("Looking for:" + filename);
File file = new File(filename);
if(!file.exists()){
//JOptionPane.showMessageDialog(null, "Cannot find " + filename, "Warning", JOptionPane.WARNING_MESSAGE);
// Simply ignore KIS
logger.info("Cannot find file " + filename + " so not load it as tab");
}
else{
String content = FileLoader.loadFile(filename);
// If the application can't open one of the recorded tabs then drop out trying to load them.
if(!openSavedTab(content)){
return;
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void loadSet() {\n int returnVal = fc.showOpenDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n System.out.println(\"Opening: \" + file.ge... | [
"0.64679307",
"0.61787695",
"0.54659826",
"0.54275084",
"0.5416942",
"0.54071397",
"0.5399427",
"0.5324411",
"0.52874184",
"0.52608055",
"0.5243238",
"0.52370304",
"0.5127981",
"0.5111621",
"0.5090215",
"0.5043829",
"0.503408",
"0.5026874",
"0.5021272",
"0.50166893",
"0.50122... | 0.7359242 | 0 |
Get the file type | private void loadViewModel(String configName, String content){
HeadHandler hHandler = new HeadHandler();
try {
hHandler.parse(content);
if(hHandler.getFileType() == null){
throw new RuntimeException("Unrecognised file type");
}
} catch (Exception e) {
// TODO: Add some intelligence to the process of handling this exception
JOptionPane.showMessageDialog(this, "Sorry, unrecognised file type. Content starts:" + hHandler.getHead() + "...", "Error", JOptionPane.ERROR_MESSAGE);
return;
}
StandardHandler vHandler = HandlerFactory.getHandler(hHandler.getFileType());
logger.info("Found file of type:" + hHandler.getFileType());
logger.info("vHandler:" + vHandler);
try {
vHandler.parse(content);
} catch (Exception e) {
// TODO: Add some intelligence to the process of handling this exception
JOptionPane.showMessageDialog(this, "Sorry. Unable to parse the file " + configName, "Error", JOptionPane.ERROR_MESSAGE);
}
YorkEntityView newView = ViewFactory.getView(hHandler.getFileType(), this, vHandler, null);
if(newView != null){
currentView.addModelView(newView);
}
requestFocusInWindow();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getFiletype() {\n return filetype;\n }",
"public String getFILE_TYPE() {\r\n return FILE_TYPE;\r\n }",
"public String getFiletype() {\n return filetype;\n }",
"public String getFileType(){\n\t\treturn type;\n\t}",
"public String getFileType()\n {\n ... | [
"0.83726114",
"0.8304197",
"0.82257515",
"0.8216286",
"0.8199331",
"0.8132295",
"0.79388016",
"0.7885738",
"0.77858573",
"0.7774397",
"0.77580357",
"0.77298725",
"0.76406366",
"0.7500043",
"0.74545544",
"0.7295442",
"0.7249978",
"0.7169939",
"0.7169939",
"0.71461093",
"0.7140... | 0.0 | -1 |
By default the dynamic model has the same name as the tab | private void createNewDynamicModel(){
DynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());
// Add the new graph to the view
int modelWidth = DynamicModelView.minimumWidth;
int modelHeight = DynamicModelView.minimumHeight;
int viewHeight = currentView.getHeight();
int pad = 8;
currentView.addModelView(new DynamicModelView(new EntityViewConfig(pad,
viewHeight - (modelHeight + pad),
modelWidth,
modelHeight,
EntityViewConfig.Type.DYNAMIC_MODEL),
dModel, this, currentView));
currentView.repaint();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getObjectName()\n\t{\n\t\treturn (\"Ext.TabPanelItem\") ;\n\t}",
"@Override\n\tpublic String getModel() {\n\t\treturn \"cool model\";\n\t}",
"@Override\r\n\tpublic String getModel() {\n\t\treturn \"Activa\";\r\n\t}",
"public String getModelName() {\n return \"game\";\n }",
"publi... | [
"0.6128617",
"0.6061888",
"0.59813255",
"0.5924356",
"0.58437157",
"0.5806194",
"0.58007836",
"0.5798457",
"0.57769394",
"0.5766783",
"0.57585907",
"0.5756658",
"0.5733319",
"0.57215434",
"0.5649282",
"0.56479156",
"0.56376666",
"0.56342405",
"0.5630151",
"0.560428",
"0.55951... | 0.5705546 | 14 |
Exports the table results to a file. | public void exportResultsToFile(){
// This if clause shouldn't fire as the icon is grayed out if there is no tab open
if(currentView == null
|| currentView.getDynamicModelView() == null
|| currentView.getDynamicModelView().getModel() == null){
JOptionPane.showMessageDialog(this, "A tab must be open, and a model and table must be present before results can be exported", "Information", JOptionPane.INFORMATION_MESSAGE);
return;
}
if(currentView.getDynamicModelView().getModel().getDefaultHistory() == null){
JOptionPane.showMessageDialog(this, "A table must be present before results can be exported", "Information", JOptionPane.INFORMATION_MESSAGE);
return;
}
DynamicModelHistory history = currentView.getDynamicModelView().getModel().getDefaultHistory();
StringBuffer buffer = new StringBuffer(30000);
if(history != null && history.getTimePointCount() > 0 && history.getSnapshot(0) != null){
// Get the filename
YorkGUIUtils guiUtils = new YorkGUIUtils();
String selectedFile = guiUtils.getUserToDefineFilename(this, propertiesMemento.getBaseDir(), "txt csv", "Results files (.txt, .csv)", JFileChooser.SAVE_DIALOG);
if(selectedFile == null || guiUtils.wasCancelled()){
requestFocusInWindow();
return;
}
logger.info("Selected file for exporting results:" + selectedFile);
buffer.append("time point").append("\t");
for(int t = 0; t < history.getTimePointCount(); t++){
buffer.append(t).append("\t");
}
buffer.append("\n");
for(Iterator<String> it = history.getSnapshot(0).keySet().iterator(); it.hasNext();){
String name = it.next();
buffer.append(name).append("\t");
// For all time points
for(int t = 0; t < history.getTimePointCount(); t++){
buffer.append(history.getSnapshot(t).get(name).getOutputValue()).append("\t");
}
buffer.append("\n");
}
FileLoader.save(selectedFile, buffer.toString());
}
else{
JOptionPane.showMessageDialog(this, "No results available in the selected tab. Run the model first.", "Warning", JOptionPane.WARNING_MESSAGE);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void exportToCSV();",
"void exporter(JTable tab, File file) {\n try {\r\n\r\n TableModel model = tab.getModel();\r\n FileWriter out = new FileWriter(file);\r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n out.write(model.getColumnName(i) + \... | [
"0.70674896",
"0.69661224",
"0.6533197",
"0.6508553",
"0.64240867",
"0.63725215",
"0.63718903",
"0.6366975",
"0.63304704",
"0.6269637",
"0.6179191",
"0.61718315",
"0.61617666",
"0.6157049",
"0.61446464",
"0.6140329",
"0.6135566",
"0.61145186",
"0.6059383",
"0.60417795",
"0.60... | 0.69568974 | 2 |
Should not fire as the icon should be grayed out if there is not open tab or no dynamic model | public void configureNestedLoops(){
if(currentView == null || currentView.getDynamicModelView() == null){
JOptionPane.showMessageDialog(this, "A tab must be open and a dynamic model present before nested loops can be configured", "Information", JOptionPane.INFORMATION_MESSAGE);
return;
}
currentView.getDynamicModelView().configureNestedLoops();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initTab()\n {\n \n }",
"private void initBusyIconTab() {\n /** Set the current selected icon to the JLabelIcon\n */\n this.jLabelIcon.setIcon( getSelectedBusyICon() );\n }",
"private void setModifiedAndUpdateIcon() {\n document.setModified(true);\n ... | [
"0.61176765",
"0.6060319",
"0.6056068",
"0.6012471",
"0.6012471",
"0.6012471",
"0.6012471",
"0.6012471",
"0.5995231",
"0.5976675",
"0.5960247",
"0.5945702",
"0.5944699",
"0.5944699",
"0.59425086",
"0.5941496",
"0.5920629",
"0.5920629",
"0.59065473",
"0.5893481",
"0.5892182",
... | 0.0 | -1 |
Should not fire as the menu item to select this feature is grayed out | public void saveAsImage(){
if(currentView == null){
JOptionPane.showMessageDialog(this, "A tab must be open before an image can be saved", "Information", JOptionPane.INFORMATION_MESSAGE);
return;
}
currentView.saveAsImage();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void menuSelected(MenuEvent e) {\n \n }",
"@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}",
"@Override\n public boole... | [
"0.7174144",
"0.70662075",
"0.7010769",
"0.70091456",
"0.6794152",
"0.676418",
"0.6731904",
"0.6717055",
"0.66659474",
"0.663903",
"0.66244435",
"0.6612768",
"0.6612768",
"0.66084194",
"0.65987325",
"0.6586585",
"0.6579286",
"0.6575946",
"0.6544655",
"0.6535224",
"0.6529567",... | 0.0 | -1 |
Modal dialog with yes/no button | public void allowUserToQuit(){
int answer = JOptionPane.showConfirmDialog(this, "Are you sure you want to quit?", "Quit?", JOptionPane.YES_NO_OPTION);
if (answer == JOptionPane.YES_OPTION) {
try {
propertiesMemento.saveProperties(this);
} catch (Exception e) {
JOptionPane.showMessageDialog(this, "Unable to save properties. Ensure the file " + propertiesMemento.getAppDir() + "appProp.txt is not in use by another application.",
"Unable to save properties", JOptionPane.WARNING_MESSAGE);
}
// If there are any tabs open then ask the user if she wants to save the tabs
if(currentView != null){
askIfTheUserWantsToSaveTabs();
}
System.exit(0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void MoodRatingAddNoteConfirmDialog() {\n final Dialog dialog = new Dialog(getActivity());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n // Include dialog.xml file\n dialog.setCo... | [
"0.7313474",
"0.6878414",
"0.68213373",
"0.66773444",
"0.66407245",
"0.66173446",
"0.6614281",
"0.6567061",
"0.6556532",
"0.6518776",
"0.64706594",
"0.6445523",
"0.64423865",
"0.64185",
"0.6412023",
"0.6366252",
"0.6360111",
"0.6346771",
"0.6323234",
"0.6313396",
"0.62996745"... | 0.0 | -1 |
End of Key Events Getters and Setters for Properties | public int getWidth(){
width = super.getWidth();
return width;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void endProperty()\n {\n\n }",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void k... | [
"0.7302569",
"0.62507683",
"0.62507683",
"0.62507683",
"0.62507683",
"0.62507683",
"0.62507683",
"0.62361085",
"0.621926",
"0.6199036",
"0.618939",
"0.61868995",
"0.61868995",
"0.61868995",
"0.61661136",
"0.6165591",
"0.6143705",
"0.6128534",
"0.61274",
"0.6126689",
"0.612668... | 0.0 | -1 |
If there are any tabs open then ask the user if she wants to save the tabs | public void windowClosing(WindowEvent we)
{
if(currentView != null){
askIfTheUserWantsToSaveTabs();
}
System.exit(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void openSavedTabs(){\n\t\tList<String> filenames = new ArrayList<String>();\r\n\t\tint i = 0;\t\t\r\n\t\twhile(propertiesMemento.get(\"tab\" + i) != null){\r\n\t\t\tfilenames.add((String) propertiesMemento.get(\"tab\" + i));\r\n\t\t\ti++;\t\t\t\r\n\t\t}\r\n\r\n\t\tfor(String filename: filenames){\r\n\t\t\... | [
"0.7543428",
"0.7250076",
"0.6660213",
"0.62365586",
"0.61249924",
"0.6112146",
"0.59764534",
"0.59004426",
"0.5809403",
"0.57810813",
"0.5759959",
"0.5757529",
"0.57202286",
"0.569348",
"0.56443876",
"0.56351805",
"0.5625999",
"0.5620767",
"0.5571313",
"0.5535074",
"0.544527... | 0.5307802 | 31 |
End of Window events Listen for changes in the selection of the tabbed pane | public void stateChanged(ChangeEvent e){
//logger.info("Change event " + e.getSource());
if(e.getSource() == tabbedPane){
logger.info("Index of the selected tab is " + tabbedPane.getSelectedIndex());
if(tabbedPane.getSelectedIndex() == -1){
return;
}
// Change to the current view
currentView = tabViews.get(tabbedPane.getSelectedIndex());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t... | [
"0.683033",
"0.683033",
"0.68234783",
"0.68234783",
"0.6805764",
"0.6805764",
"0.6805764",
"0.6805764",
"0.6805764",
"0.6805764",
"0.6805764",
"0.680469",
"0.680469",
"0.68006146",
"0.68006146",
"0.68006146",
"0.67951256",
"0.6791367",
"0.67873853",
"0.6775504",
"0.6774788",
... | 0.0 | -1 |
constructor for the CommandCenter class | public CommandCenter() {
super(
new ArrayList<String>(
Arrays.asList(
"file:lib/images/resized/"
+ "sc2_red_command_center.gif"
)
)
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CommandMAN() {\n super();\n }",
"public CommandManager() {}",
"public Command() {\n }",
"public GetMotorPositionCommand ()\r\n {\r\n }",
"private Command() {\n initFields();\n }",
"public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = L... | [
"0.7566692",
"0.74895877",
"0.73410976",
"0.71389216",
"0.6949135",
"0.69237304",
"0.69207984",
"0.6867314",
"0.68319356",
"0.68171555",
"0.6771844",
"0.66871136",
"0.6637242",
"0.6636837",
"0.66226715",
"0.6598569",
"0.6566807",
"0.6564288",
"0.6536187",
"0.65150315",
"0.648... | 0.8009085 | 0 |
Ottiene la lista dei codici bilancio. | public String ottieniListaCodiceBilancio(){
Integer uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);
caricaListaCodiceBilancio(uid);
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CodeBook getCodificacion(){\n CodeBook res=new CodeBook();\n \n //Se obtiene los valores ni\n ArrayList<Integer> n=obtenerNi(obtenerYi());\n \n //Se asigna a cada carácter un código\n ArrayList<String> candidatos;\n int i=0;\n int cont_alfa=0;\n... | [
"0.65276",
"0.64053595",
"0.6206636",
"0.6085582",
"0.6044601",
"0.59871304",
"0.59056914",
"0.58945835",
"0.58575857",
"0.585406",
"0.5849329",
"0.5822537",
"0.5816806",
"0.5803667",
"0.57869256",
"0.57774585",
"0.57706505",
"0.5769331",
"0.5763694",
"0.5740788",
"0.5727811"... | 0.71798986 | 0 |
Carica la lista di tutte le classi piano | public String ottieniListaClassiCompleta(){
final String methodName = "ottieniListaClassiCompleta";
try {
caricaListaClassi();
} catch(WebServiceInvocationFailureException wsife) {
log.info(methodName, wsife.getMessage());
}
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static String classificacao(ArrayList<Musica> musicas, Musica proxima, int k){\n String classeResultado = \"\";\n\n int qtdeMusicas = musicas.size();\n //System.out.println(\"Quantidade de musicas \" + qtdeMusicas);\n double distAmostra[] = new double[qtdeMusicas];\n int vetorOrd... | [
"0.5962072",
"0.59079385",
"0.5886226",
"0.5794426",
"0.57324535",
"0.5667118",
"0.5621487",
"0.5603944",
"0.55964845",
"0.55697984",
"0.5560394",
"0.5539802",
"0.55010134",
"0.54814434",
"0.54585445",
"0.54458696",
"0.5442083",
"0.544166",
"0.54259247",
"0.5415024",
"0.54079... | 0.0 | -1 |
Carica la lista delle sole classi piano che hanno conti di tipo ammortamento | public String ottieniListaClassiAmmortamento(){
final String methodName = "ottieniListaClassiAmmortamento";
try {
caricaListaClassiAmmortamento();
} catch(WebServiceInvocationFailureException wsife) {
log.info(methodName, wsife.getMessage());
}
model.setListaClassi(model.getListaClassiAmmortamento());
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<TipoHuella> listarTipoHuellas();",
"public ArrayList<Veiculo> pesquisarCarro(int tipoCarro);",
"public static void main(String args[]){\n int x = 10;\r\n List<Perro> perros = new ArrayList();\r\n \r\n Perro perro=new Perro();\r\n \r\n Persona persona = new Persona... | [
"0.6404956",
"0.63283235",
"0.6202923",
"0.61860853",
"0.61363125",
"0.61276674",
"0.60973203",
"0.60862505",
"0.60263073",
"0.60156876",
"0.6013204",
"0.59828246",
"0.5965113",
"0.59474874",
"0.5946444",
"0.5934839",
"0.5928429",
"0.59238017",
"0.59206086",
"0.59178317",
"0.... | 0.5730718 | 34 |
dont call super to avoid simulating! | public void tick(double dt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void met... | [
"0.7226611",
"0.70530444",
"0.6894444",
"0.68584204",
"0.68279064",
"0.6806858",
"0.6786545",
"0.6778229",
"0.6701688",
"0.6675458",
"0.6673548",
"0.6668589",
"0.6668589",
"0.66683286",
"0.66075337",
"0.65888333",
"0.65619504",
"0.65180194",
"0.6502057",
"0.6474427",
"0.64744... | 0.0 | -1 |
Created by Administrator on 2017/12/21/021. | public interface ServiceApi {
@GET("/user/login")
Observable<DlBean> dL(@Query("mobile") String mobile,@Query("password") String password );
@GET("/user/reg")
Observable<ZcBean> zC(@Query("mobile") String mobile,@Query("password") String password );
@GET("/ad/getAd")
Observable<LbBean> lieb(@Query("source") String source );
// http://120.27.23.105/product/getProductDetail?pid=1&source=android
@GET("/product/getProductDetail")
Observable<XqBean> xQ(@Query("source") String source, @Query("pid") int pid);
@GET("product/getCarts")
Observable<MsgBean<List<DataBean>>> getDatas(@Query("uid") String uid, @Query("source") String source);
@GET("product/deleteCart")
Observable<MsgBean> deleteData(@Query("uid") String uid, @Query("pid") String pid, @Query("source") String source);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"public void create() {\n\t\t\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"@Override\n\tpublic void create () {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void co... | [
"0.60882545",
"0.5892931",
"0.56788594",
"0.56764686",
"0.56759083",
"0.5671709",
"0.56632894",
"0.56603146",
"0.5659894",
"0.56188625",
"0.56033933",
"0.5602759",
"0.5596534",
"0.5580131",
"0.55757153",
"0.5557005",
"0.5556484",
"0.55462337",
"0.55462337",
"0.55462337",
"0.5... | 0.0 | -1 |
txt = text1 + text2 | public int getQuizNumber() {
return quizNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String makeAbba(String aText, String bText) {\r\n return aText + bText + bText + aText;\r\n }",
"public void Addtxt (String txt) {\n clearZero();\n lastNumber = true;\n displayResult.setText(displayResult.getText()+txt);\n }",
"void append(String text);",
"void append(Strin... | [
"0.69140124",
"0.6711964",
"0.65685517",
"0.65685517",
"0.6429591",
"0.63798624",
"0.6374771",
"0.6339974",
"0.62733823",
"0.62113136",
"0.61773974",
"0.61334527",
"0.6099879",
"0.6093931",
"0.6067704",
"0.60608554",
"0.605811",
"0.6052445",
"0.5961561",
"0.59008926",
"0.5861... | 0.0 | -1 |
/ WARNING Removed try catching itself possible behaviour change. | @Override
public int[] executeBatch() {
if (this.batchPos == 0) {
return new int[0];
}
try {
int[] arrn = this.db.executeBatch(this.pointer, this.batchPos / this.paramCount, this.batch);
return arrn;
}
finally {
this.clearBatch();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void m9741j() throws cf {\r\n }",
"private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n... | [
"0.6632181",
"0.6445396",
"0.6306119",
"0.62854445",
"0.62589747",
"0.6257267",
"0.62414694",
"0.6176756",
"0.61748254",
"0.6164259",
"0.61007214",
"0.60852796",
"0.605599",
"0.6040991",
"0.59922194",
"0.59886706",
"0.59456414",
"0.5924899",
"0.5917984",
"0.5904189",
"0.58977... | 0.0 | -1 |
to sign out the user user | @Override
public void onClick(View v) {
FirebaseAuth.getInstance().signOut();
Intent signOutIntent = new Intent(ResultActivity.this,LoginActivity.class);
startActivity(signOutIntent);
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }",
"private void signOut() {\n mAuth.signOut();\n }",... | [
"0.83085555",
"0.8121375",
"0.8101187",
"0.7856498",
"0.7850378",
"0.7845614",
"0.78100884",
"0.7804071",
"0.7762167",
"0.7751923",
"0.77446055",
"0.77382565",
"0.77365047",
"0.7716271",
"0.7715599",
"0.7711177",
"0.7674885",
"0.7674876",
"0.7671546",
"0.7639763",
"0.7618699"... | 0.72388256 | 44 |
Created by Richard Bariny on 23.10.2016 | public interface FlightService {
/**
* CREATE FLIGHT - adding new entity
* @param flight entity of flight object
* @return Flight object
*/
Flight saveFlight(Flight flight);
/**
* READ FLIGHT - read exiting entity
* @param id Long value of flight id
* @return Flight object
*/
Flight getFlight(Long id) throws DataAccessException;
/**
* UPDATE FLIGHT - update existing entity
* @param flight entity of flight object
* @return Flight object
*/
Flight updateFlight(Flight flight);
/**
* DELETE FLIGHT - delete entity
* @param flight Long value of flight id
*/
void removeFlight(Flight flight);
/**
* FIND FLIGHT BY NAME - find all entities by parameter
* @param name String value of flight name
* @return List of Flight objects
*/
List<Flight> findFlightByName(String name) throws DataAccessException;
/**
* FIND ALL FLIGHTS - find all entities
* @return List of Flight objects
*/
List<Flight> findAllFlights();
/**
* Add steward to flight
* @param flight Flight where to add Steward
* @param steward Steward to be add
* @return List of Flight objects
*/
Flight addStewardToFlight(Flight flight, Steward steward);
/**
* Validate Flight parameters - steward availibility, airplane availibility and time
* @param flight validated Flight object
* @return validation true or false if do not pass
*/
boolean validateFlight(Flight flight);
Flight removeStewardToFlight(Flight flight, Steward steward);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void perish() {\n \n }",
"private void poetries() {\n\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"protected bo... | [
"0.55130935",
"0.54454714",
"0.53590155",
"0.53515965",
"0.53494585",
"0.534321",
"0.53019255",
"0.52961963",
"0.5292976",
"0.5266375",
"0.5265592",
"0.5254799",
"0.5242234",
"0.52338",
"0.52338",
"0.52184534",
"0.5207737",
"0.5171324",
"0.5151411",
"0.5125855",
"0.5114175",
... | 0.0 | -1 |
CREATE FLIGHT adding new entity | Flight saveFlight(Flight flight); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity createEntity();",
"void create(T entity);",
"void create(E entity);",
"@Override\r\n public void createNewEntity(String entityName) {\n\r\n }",
"void create(Feedback entity);",
"E create(E entity);",
"E create(E entity);",
"void create(T entity) throws Exception;",
"@PostConstruct\n pro... | [
"0.63309366",
"0.6115036",
"0.6105742",
"0.60250306",
"0.59500694",
"0.593894",
"0.593894",
"0.58937985",
"0.58493036",
"0.5818631",
"0.5754685",
"0.5711576",
"0.56737614",
"0.5672319",
"0.566401",
"0.5654187",
"0.5653859",
"0.5633379",
"0.56238574",
"0.5610925",
"0.5592914",... | 0.53499985 | 38 |
READ FLIGHT read exiting entity | Flight getFlight(Long id) throws DataAccessException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}",
"@Override\n public GameLogEntity readEntity(final GameLogEntity entity) {\n return this.getEntityManager().\n find(GameLogEntity.class, entity.getId());\n }",
"@Override\r\n\tpublic CEntity readNext(CEntity entity) {\n\t... | [
"0.59911096",
"0.5879649",
"0.5625859",
"0.5498708",
"0.542902",
"0.53951824",
"0.5382243",
"0.5360309",
"0.53456175",
"0.53324914",
"0.5325026",
"0.52755976",
"0.5265694",
"0.5256873",
"0.5238831",
"0.5236653",
"0.5224597",
"0.5213811",
"0.5190967",
"0.51675695",
"0.51442814... | 0.496583 | 48 |
UPDATE FLIGHT update existing entity | Flight updateFlight(Flight flight); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateEntity();",
"E update(E entity);",
"E update(E entity);",
"void update(CE entity);",
"T update(T entity);",
"T update(T entity);",
"void update(T entity);",
"void update(T entity);",
"void update(T entity) throws Exception;",
"public void update(E entity);",
"public PtJJdwcy u... | [
"0.7502105",
"0.72444725",
"0.72444725",
"0.7106717",
"0.70068634",
"0.70068634",
"0.69018704",
"0.69018704",
"0.6858318",
"0.68399704",
"0.67544454",
"0.67433983",
"0.6713969",
"0.671308",
"0.6711961",
"0.6672542",
"0.65827525",
"0.6552894",
"0.6541722",
"0.6531713",
"0.6516... | 0.582512 | 77 |
DELETE FLIGHT delete entity | void removeFlight(Flight flight); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void delete(FxzfLane entity) {\n\t\t\n\t}",
"@Override\n public void delete(SideDishEntity entity) {\n\n }",
"void delete(int entityId);",
"void delete(Entity entity);",
"@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(EntityManagerFacto... | [
"0.79248154",
"0.7340036",
"0.7323958",
"0.72804606",
"0.72687334",
"0.70920384",
"0.70402265",
"0.70402265",
"0.70075935",
"0.6966936",
"0.69477105",
"0.69433093",
"0.6937131",
"0.6935766",
"0.689265",
"0.68900585",
"0.6880546",
"0.68791574",
"0.6870645",
"0.6870645",
"0.685... | 0.0 | -1 |
FIND FLIGHT BY NAME find all entities by parameter | List<Flight> findFlightByName(String name) throws DataAccessException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void searchByName(String name) {\n\t\tint i=0;\n\t\t\tfor (Entity entity : Processing.nodeSet) {\n\t\t\t\t\n\t\t\t\t/* if Entity is person */\n\t\t\t\tif(entity instanceof Person) {\n\t\t\t\t\tPerson person=(Person)entity;\n\t\t\t\t\tif(person.getName().equalsIgnoreCase(name)){\n\t\t\t\t\tSystem.out.println(\"the ... | [
"0.62145114",
"0.6072731",
"0.5972218",
"0.59604514",
"0.59448075",
"0.59387434",
"0.58872294",
"0.5885037",
"0.5844014",
"0.58421385",
"0.5800824",
"0.5785897",
"0.57756364",
"0.57592374",
"0.57538503",
"0.57458246",
"0.5740147",
"0.57377756",
"0.57375836",
"0.57329834",
"0.... | 0.5477845 | 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.