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 |
|---|---|---|---|---|---|---|
REST API CALL TO UPDATE A REVIEW // | @PutMapping(value = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Object> updateReview(@PathVariable("id") int id, Review review, HttpServletResponse response) {
Review updatedReview = reviewService.updateReview(id, review);
response.addHeader("Date", new Date().toString());
response.setHeader("Cache-Control","no-cache,no-store,must-revalidate");
response.setHeader("Pragma","no-cache");
response.setHeader("Version","Mechanic API V-2.0");
response.setDateHeader("Expires", 0);
return new ResponseEntity<>(updatedReview, HttpStatus.CREATED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int update(ReviewVO review_memberVO);",
"@org.junit.Test\r\n public void testUpdateReview7() throws Exception {\r\n System.out.println(\"updateReview7\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.inse... | [
"0.62207514",
"0.5890603",
"0.5856667",
"0.5831389",
"0.58083564",
"0.57830036",
"0.57661736",
"0.57424814",
"0.5741694",
"0.5740162",
"0.56898123",
"0.56776667",
"0.56098175",
"0.5609507",
"0.5558269",
"0.55445445",
"0.5522381",
"0.5517587",
"0.547806",
"0.5470026",
"0.54209... | 0.5061757 | 57 |
REST API CALL TO DELETE A REVIEW // | @DeleteMapping(value = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Object> deleteReview(@PathVariable("id") int id, HttpServletResponse response) {
Review deletedReview = reviewService.deleteReview(id);
response.addHeader("Date", new Date().toString());
response.setHeader("Cache-Control","no-cache,no-store,must-revalidate");
response.setHeader("Pragma","no-cache");
response.setHeader("Version","Mechanic API V-2.0");
response.setDateHeader("Expires", 0);
return new ResponseEntity<>(deletedReview, HttpStatus.CREATED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DELETE\n\tResponse delete();",
"void delete(URI url) throws RestClientException;",
"@Headers({\n \t\"Content-Type:application/vnd.api+json\" \n })\n @DELETE(\"api/v2/sub_organizations/{id}.json_api\")\n Call<Meta> delete(\n @retrofit2.http.Path(\"id\") Integer id\n );",
"HttpResponse httpDelete(URI ... | [
"0.6482613",
"0.6459102",
"0.6327624",
"0.624365",
"0.6236678",
"0.62121063",
"0.6185578",
"0.6182622",
"0.61695045",
"0.6151886",
"0.6151288",
"0.61484426",
"0.6135907",
"0.6103501",
"0.6098319",
"0.6089938",
"0.60467434",
"0.602264",
"0.6006552",
"0.59990895",
"0.59983563",... | 0.60682607 | 16 |
TODO Autogenerated method stub | public void execute(Tuple input, BasicOutputCollector collector) {
String word = (String)input.getValue(0);
System.out.println("out = fuck the " + word);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void declareOutputFields(OutputFieldsDeclarer declarer) {
} | {
"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 |
one error > captcha expired | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void msjereCaptcha(){\r\n click(esperarElementoPresenteEnPagina(locatorMsjeCaptcha));\r\n }",
"public Captcha() {\n value = generateCaptchaCode();\n id = generateCaptchaID();\n date = System.currentTimeMillis();\n }",
"@Test(dependsOnMethods = {\"register\"})\n void ... | [
"0.6260204",
"0.61593926",
"0.61492467",
"0.60656",
"0.602968",
"0.5916648",
"0.59099895",
"0.57993174",
"0.5574009",
"0.5533782",
"0.55138963",
"0.54938066",
"0.54901487",
"0.54551804",
"0.5453855",
"0.54486173",
"0.54433846",
"0.54416394",
"0.54122555",
"0.5367765",
"0.5315... | 0.0 | -1 |
one error > captcha expired | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void msjereCaptcha(){\r\n click(esperarElementoPresenteEnPagina(locatorMsjeCaptcha));\r\n }",
"public Captcha() {\n value = generateCaptchaCode();\n id = generateCaptchaID();\n date = System.currentTimeMillis();\n }",
"@Test(dependsOnMethods = {\"register\"})\n void ... | [
"0.6260204",
"0.61593926",
"0.61492467",
"0.60656",
"0.602968",
"0.5916648",
"0.59099895",
"0.57993174",
"0.5574009",
"0.5533782",
"0.55138963",
"0.54938066",
"0.54901487",
"0.54551804",
"0.5453855",
"0.54486173",
"0.54433846",
"0.54416394",
"0.54122555",
"0.5367765",
"0.5315... | 0.0 | -1 |
one error > check captcha | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(dependsOnMethods = {\"register\"})\n void confirmEmailAddressByCaptcha() {\n common.findWebElementByXpath(\"//*[@id=\\\"content\\\"]/fieldset/label/div\").click();\n\n //Click on Send captcha button\n common.timeoutSeconds(2);\n common.findWebElementById(\"send-captcha-button\"... | [
"0.65944606",
"0.64795893",
"0.6406215",
"0.63535494",
"0.62072873",
"0.59181565",
"0.5879515",
"0.5810567",
"0.5707104",
"0.56599885",
"0.55341816",
"0.5531202",
"0.5530989",
"0.5520068",
"0.54746115",
"0.5443375",
"0.5427412",
"0.54267085",
"0.5389053",
"0.53804165",
"0.534... | 0.0 | -1 |
captcha expired, wrong name, wrong secondname | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String captcha(){\n\t\tString captcha=\"\";\n\t\tfor(int i=0; i<8; i+=2){\n\t\t\tcaptcha+=(char)(65+Math.random()*26)+\" \";\n\t\t\tcaptcha+=(char)(97+Math.random()*26);\n\t\t}\n\t\treturn captcha;\n\n\t}",
"public Captcha() {\n value = generateCaptchaCode();\n id = generateCaptchaID(... | [
"0.6140862",
"0.5836856",
"0.57461435",
"0.5734857",
"0.5712803",
"0.5581927",
"0.5580921",
"0.5275379",
"0.524042",
"0.52196664",
"0.51912934",
"0.5161183",
"0.51304585",
"0.5057718",
"0.50246984",
"0.5016593",
"0.50006324",
"0.49832663",
"0.49636358",
"0.496353",
"0.4943249... | 0.0 | -1 |
captcha expired, wrong email | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(dependsOnMethods = {\"register\"})\n void confirmEmailAddressByCaptcha() {\n common.findWebElementByXpath(\"//*[@id=\\\"content\\\"]/fieldset/label/div\").click();\n\n //Click on Send captcha button\n common.timeoutSeconds(2);\n common.findWebElementById(\"send-captcha-button\"... | [
"0.6525122",
"0.62760454",
"0.6112905",
"0.5957779",
"0.5847885",
"0.5844947",
"0.5838674",
"0.5729452",
"0.5693519",
"0.55834657",
"0.5432431",
"0.53452843",
"0.5323989",
"0.53198415",
"0.5314801",
"0.5287159",
"0.52528054",
"0.524107",
"0.51976544",
"0.51841563",
"0.5151008... | 0.0 | -1 |
captcha expired, wrong password | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Captcha() {\n value = generateCaptchaCode();\n id = generateCaptchaID();\n date = System.currentTimeMillis();\n }",
"public static\n void checkExpiringPassword()\n {\n User user = ResourcesMgr.getSessionManager().getUser();\n \n String sPassword = user.getPassword();\n ... | [
"0.64967513",
"0.63820565",
"0.60197836",
"0.60172635",
"0.5881013",
"0.5849816",
"0.5794758",
"0.57842684",
"0.56291276",
"0.5609227",
"0.5600242",
"0.55680805",
"0.5560433",
"0.55423176",
"0.55237657",
"0.550487",
"0.55046177",
"0.55035025",
"0.5470499",
"0.54360944",
"0.54... | 0.0 | -1 |
captcha expired, wrong birthdate | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void expiredate() {\n\t\tdr.findElement(By.xpath(\"//input[@id='expiryDate']\")).sendKeys(\"05/2028\");\r\n\t\t\r\n\t\t\r\n\t\t}",
"@Override\n public boolean validDefaultTime(String code) {\n return kaptcha.validate(code);\n }",
"public Captcha() {\n value = generateCaptchaCode();\n ... | [
"0.6225682",
"0.61789185",
"0.59818465",
"0.5887287",
"0.56240207",
"0.5622745",
"0.561794",
"0.55306566",
"0.5520491",
"0.54578775",
"0.5397451",
"0.5377474",
"0.5369476",
"0.5336788",
"0.53029543",
"0.5290179",
"0.5269109",
"0.52315015",
"0.5228456",
"0.52215564",
"0.521510... | 0.0 | -1 |
captcha expired, wrong adress1, wrong address2 | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(dependsOnMethods = {\"register\"})\n void confirmEmailAddressByCaptcha() {\n common.findWebElementByXpath(\"//*[@id=\\\"content\\\"]/fieldset/label/div\").click();\n\n //Click on Send captcha button\n common.timeoutSeconds(2);\n common.findWebElementById(\"send-captcha-button\"... | [
"0.6244922",
"0.5979733",
"0.58348304",
"0.58192337",
"0.57528645",
"0.5721095",
"0.56280833",
"0.55104834",
"0.5501014",
"0.54174936",
"0.534753",
"0.52118677",
"0.5206154",
"0.5173637",
"0.50519013",
"0.50346607",
"0.5028519",
"0.5021428",
"0.50149906",
"0.50108373",
"0.499... | 0.0 | -1 |
captcha expired, wrong city | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Captcha() {\n value = generateCaptchaCode();\n id = generateCaptchaID();\n date = System.currentTimeMillis();\n }",
"public void msjereCaptcha(){\r\n click(esperarElementoPresenteEnPagina(locatorMsjeCaptcha));\r\n }",
"@Override\n public boolean validDefaultTime(Stri... | [
"0.6015176",
"0.59446806",
"0.57409155",
"0.5657792",
"0.56457597",
"0.5616923",
"0.56110907",
"0.5300934",
"0.5238246",
"0.51847446",
"0.5177945",
"0.5033383",
"0.49517235",
"0.4930033",
"0.48413017",
"0.48200563",
"0.47646192",
"0.4763153",
"0.47484058",
"0.474811",
"0.4715... | 0.0 | -1 |
captcha expired, wrong postcode | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Captcha() {\n value = generateCaptchaCode();\n id = generateCaptchaID();\n date = System.currentTimeMillis();\n }",
"@Override\n public boolean validDefaultTime(String code) {\n return kaptcha.validate(code);\n }",
"public String getCaptchaCode() {\n HttpGet htt... | [
"0.64009285",
"0.6108579",
"0.6030325",
"0.59501547",
"0.57136077",
"0.56483984",
"0.5546185",
"0.5509822",
"0.5299662",
"0.5261107",
"0.5244211",
"0.52343726",
"0.5166857",
"0.5165088",
"0.5134629",
"0.4927954",
"0.4925316",
"0.48908857",
"0.48907438",
"0.48900735",
"0.48771... | 0.0 | -1 |
captcha expired, wrong phone | @Override
public boolean matches(Object list) {
return ((List<String>) list).size() == 2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Captcha() {\n value = generateCaptchaCode();\n id = generateCaptchaID();\n date = System.currentTimeMillis();\n }",
"public void msjereCaptcha(){\r\n click(esperarElementoPresenteEnPagina(locatorMsjeCaptcha));\r\n }",
"@Override\n public boolean validDefaultTime(Stri... | [
"0.6244699",
"0.6039198",
"0.58712715",
"0.5828407",
"0.5810613",
"0.5808687",
"0.57447857",
"0.57082766",
"0.56514585",
"0.5582733",
"0.54988337",
"0.549139",
"0.5490758",
"0.54335606",
"0.54268664",
"0.53904283",
"0.5376642",
"0.53280735",
"0.5309258",
"0.52774",
"0.527512"... | 0.0 | -1 |
If the "configuration" folder exists, use it, otherwise use "config". Check if "config" exists. | private File getFolder() throws FileNotFoundException, IOException {
File folder = getConfigurationFolder(new File(".").getCanonicalFile());
if (!folder.isDirectory()) {
folder = getConfigurationFolder(new File(getInstallationFolder().getPath())
.getCanonicalFile().getParentFile().getParentFile());
}
return folder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private File getConfigurationFolder(final File baseFolder) throws FileNotFoundException, IOException {\n final String METADATA_FOLDER_NAME = System.getProperty(\"com.bf.viaduct.metadata.location\", \"metadata\");\n final String CONFIG_FOLDER_NAME = \"config\";\n final String CONFIGURATION_FOLD... | [
"0.6800518",
"0.64311063",
"0.64057034",
"0.6224655",
"0.62230355",
"0.6058713",
"0.5987088",
"0.59825",
"0.59564966",
"0.5928224",
"0.59223753",
"0.5882128",
"0.57919514",
"0.5770593",
"0.5762801",
"0.574954",
"0.5710434",
"0.5709962",
"0.5705777",
"0.5692177",
"0.56792885",... | 0.5865752 | 12 |
The metadata folder is only present in a Runtime installation. | private File getConfigurationFolder(final File baseFolder) throws FileNotFoundException, IOException {
final String METADATA_FOLDER_NAME = System.getProperty("com.bf.viaduct.metadata.location", "metadata");
final String CONFIG_FOLDER_NAME = "config";
final String CONFIGURATION_FOLDER_NAME = "configuration";
// If the "metadata" folder exists, use it, otherwise check for existence of the
// "configuration" folder.
File folder = new File(String.format("%s%s%s", baseFolder.getCanonicalFile(), File.separatorChar,
METADATA_FOLDER_NAME));
if (!folder.isDirectory()) {
// If the "configuration" folder exists, use it, otherwise use the "config" folder.
folder = new File(String.format("%s%s%s", baseFolder.getCanonicalFile(), File.separatorChar,
CONFIGURATION_FOLDER_NAME));
if (!folder.isDirectory()) {
folder = new File(String.format("%s%s%s", baseFolder.getCanonicalFile(), File.separatorChar,
CONFIG_FOLDER_NAME));
}
}
return folder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasRuntimeMetadata();",
"@Override\r\n\tpublic String readMetadataFile(String packageName) {\n\t\treturn null;\r\n\t}",
"@InputFile\n @Incremental\n @PathSensitive(PathSensitivity.NAME_ONLY)\n @Optional\n public abstract RegularFileProperty getAppMetadata();",
"@java.lang.Override\n publ... | [
"0.60888165",
"0.5661252",
"0.5601332",
"0.55938447",
"0.55938447",
"0.55938447",
"0.55360234",
"0.5525182",
"0.550982",
"0.5505939",
"0.54816496",
"0.547969",
"0.547969",
"0.547969",
"0.547969",
"0.547969",
"0.547969",
"0.547969",
"0.547969",
"0.547969",
"0.547969",
"0.547... | 0.0 | -1 |
this a default constructor | public Player() {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"defaultConstructor(){}",
"void DefaultConstructor(){}",
"public Curso() {\r\n }",
"public Pasien() {\r\n }",
"private Instantiation(){}",
"public Pitonyak_09_02() {\r\n }",
"public Clade() {}",
"public Orbiter() {\n ... | [
"0.8279475",
"0.8071989",
"0.7876385",
"0.7556328",
"0.7465198",
"0.7463381",
"0.7399473",
"0.73730165",
"0.7363362",
"0.7286682",
"0.72760177",
"0.7259198",
"0.7253925",
"0.72511953",
"0.724324",
"0.7232916",
"0.7231342",
"0.72139096",
"0.72081184",
"0.7200109",
"0.71877325"... | 0.0 | -1 |
this a constructor for Booking_System | public Player(Booking_System bs) {
this.bs = bs;
System.out.println("how many avaliabl playgrounds:");
bs.setAvailable_playgrounds(3);
bs.search_for_available_playgrounds(3);
System.out.println(bs.getAvailable_playgrounds());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BookingInfo() {\n }",
"public Booking() {\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\... | [
"0.79167664",
"0.78513503",
"0.75091195",
"0.72928536",
"0.7083721",
"0.698396",
"0.698",
"0.6977223",
"0.6925076",
"0.68750274",
"0.6820468",
"0.6817115",
"0.68049335",
"0.67116576",
"0.6691687",
"0.6689769",
"0.6666332",
"0.661605",
"0.6612177",
"0.6586049",
"0.6575929",
... | 0.6081033 | 60 |
this a constructor for playground registration | public Player(Playground_Registration pgr) {
this.pgr = pgr;
pgr.setPName("barca");
System.out.println(pgr.getPName());
pgr.setLocation("naser city");
System.out.println(pgr.getLocation());
pgr.setSize(5);
System.out.println(pgr.getSize());
pgr.setAvailable_Hour(3);
System.out.println(pgr.getAvailable_Hour());
pgr.setPrice_Of_hour(120);
System.out.println(pgr.getPrice_Of_hour());
pgr.setPlayground_Status("available");
System.out.println(pgr.getPlayground_Status());
pgr.setCancelation_Perioud("");
System.out.println(pgr.getCancelation_Perioud());
System.out.println("i want to book this play ground");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Playground() {\n }",
"public Main() {\r\n\t}",
"public Main() {\n \n \n }",
"private Main() {\n\n super();\n }",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"private Main ()\n {\n super ();\n }",
"private Instantiation(){}",
"pu... | [
"0.79339665",
"0.6869077",
"0.67969364",
"0.67504615",
"0.6702774",
"0.6678692",
"0.6673126",
"0.66722393",
"0.66722393",
"0.66570926",
"0.6640858",
"0.6640108",
"0.6625349",
"0.6569734",
"0.6554862",
"0.65401006",
"0.65401006",
"0.6510559",
"0.65096736",
"0.6506879",
"0.6496... | 0.66073054 | 13 |
this is a parameterize constructor | public Player(String name, String email, String address, long phone, int password, Playground_Registration pgr) {
this.name = name;
this.email = email;
this.address = address;
this.phone = phone;
this.password = password;
this.pgr = pgr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Constructor(){\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public Parameters() {\n\t}",
"public BaseParameters(){\r\n\t}",
"private Params()\n {\n }",
"protected abstract void construct();",
"ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}",
"p... | [
"0.75515914",
"0.7221303",
"0.7087428",
"0.69989914",
"0.69745564",
"0.695943",
"0.6927338",
"0.6922157",
"0.6819393",
"0.6731694",
"0.6689422",
"0.6657268",
"0.6635392",
"0.66265464",
"0.6619454",
"0.66190964",
"0.66130376",
"0.66027164",
"0.65809923",
"0.6548882",
"0.654210... | 0.0 | -1 |
this function to set name | public void setName(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setName(String name_);",
"private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }",
"public void setName(String n){ name=n; }",
"public final void setName(String name) {_name = name;}",
"@Override\n public void setName(... | [
"0.84106666",
"0.8302274",
"0.8295199",
"0.82878006",
"0.82693666",
"0.82108825",
"0.81899023",
"0.81776005",
"0.8141406",
"0.8123855",
"0.8123855",
"0.8123855",
"0.8120281",
"0.81196976",
"0.81196976",
"0.81196976",
"0.81196976",
"0.81075686",
"0.81075686",
"0.81075686",
"0.... | 0.0 | -1 |
this function to set email | public void setEmail(String email) {
this.email = email;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }",
"@Override\n public void setEmail(String email) {\n\n }",
"void setEmail(String email);",
"void setEmail(String email);",
"public void setEmail(final String e)\n {\n this.email = e;\n... | [
"0.8022132",
"0.80151564",
"0.8011614",
"0.8011614",
"0.79810464",
"0.7744064",
"0.7723246",
"0.7723246",
"0.76568353",
"0.76312447",
"0.7613555",
"0.7613555",
"0.7590775",
"0.7587483",
"0.75848716",
"0.757212",
"0.75539595",
"0.75268894",
"0.7521795",
"0.7513554",
"0.7513554... | 0.71293485 | 83 |
this function to set address | public void setAddress(String address) {
this.address = address;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setInternalAddress(String address);",
"public void setAddress(String address);",
"public void setAddress(String address);",
"public void setAddress(String address);",
"public void setAddress(String address);",
"public void setAddress(java.lang.String param) {\r\n localAddressTracke... | [
"0.77842486",
"0.77564347",
"0.77564347",
"0.77564347",
"0.77564347",
"0.77309704",
"0.7723002",
"0.76385516",
"0.76258725",
"0.7608307",
"0.7581432",
"0.75179106",
"0.75179106",
"0.75179106",
"0.7507239",
"0.7488628",
"0.745365",
"0.7449039",
"0.7429266",
"0.7428502",
"0.742... | 0.70033675 | 72 |
this function to set phone | public void setPhone(long phone) {
this.phone = phone;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setPhone(int phone);",
"public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }",
"public void setPhone(String phone);",
"public void set_phone(String Phone)\n {\n phone =Phone;\n }",
"public abstract void setPhone1(String sValue);",... | [
"0.8061718",
"0.80091244",
"0.8001954",
"0.77840376",
"0.7748816",
"0.7712281",
"0.76865757",
"0.7682188",
"0.7647313",
"0.7622332",
"0.761415",
"0.7589308",
"0.7561861",
"0.7556353",
"0.7556353",
"0.7556353",
"0.7556353",
"0.7556353",
"0.7556353",
"0.7556353",
"0.7556353",
... | 0.7419255 | 31 |
this function to set password | public void setPassword(int password) {
this.password = password;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setPassword(String password);",
"void setPassword(String password);",
"void setPassword(String password);",
"public void setPassword(String pass);",
"public void setPassword(java.lang.String newPassword);",
"public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password... | [
"0.8578119",
"0.8578119",
"0.8578119",
"0.84953755",
"0.82511336",
"0.8176383",
"0.80857867",
"0.801863",
"0.79526556",
"0.7917525",
"0.79131454",
"0.7895179",
"0.78613347",
"0.78161275",
"0.78157634",
"0.7804863",
"0.7804863",
"0.7789452",
"0.77391636",
"0.76872784",
"0.7658... | 0.72669065 | 61 |
this function to get name | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String g... | [
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"0.8602986",
"... | 0.0 | -1 |
this function to get email | public String getEmail() {
return email;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getEmail();",
"java.lang.String getEmail();",
"java.lang.String getEmail();",
"java.lang.String getEmail();",
"java.lang.String getEmail();",
"java.lang.String getEmail();",
"java.lang.String getUserEmail();",
"String getEmail();",
"String getEmail();",
"String getEmail();",
"S... | [
"0.86292315",
"0.86292315",
"0.86292315",
"0.86292315",
"0.86292315",
"0.86292315",
"0.8240246",
"0.81557655",
"0.81557655",
"0.81557655",
"0.81557655",
"0.81557655",
"0.81153",
"0.7707257",
"0.7643837",
"0.75794697",
"0.7517235",
"0.74842304",
"0.7417828",
"0.7355457",
"0.72... | 0.0 | -1 |
this function to get address | public String getAddress() {
return address;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"String getAddress();",
"String getAddress();",
"public String getInternalAddress();",
"public... | [
"0.881137",
"0.881137",
"0.881137",
"0.881137",
"0.881137",
"0.881137",
"0.85327375",
"0.85327375",
"0.8229366",
"0.81955993",
"0.8162752",
"0.80535525",
"0.80219066",
"0.7957454",
"0.77551556",
"0.77551556",
"0.7687917",
"0.7682696",
"0.7647441",
"0.7646091",
"0.76356983",
... | 0.0 | -1 |
this function to get phone | public long getPhone() {
return phone;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getPhone();",
"java.lang.String getUserPhone();",
"String getPhone(int type);",
"java.lang.String getPhoneNumber();",
"java.lang.String getPhoneNumber();",
"java.lang.String getPhoneNumber();",
"public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t ... | [
"0.8168533",
"0.81559986",
"0.7741906",
"0.7600434",
"0.7600434",
"0.7600434",
"0.75481486",
"0.75063735",
"0.7422531",
"0.7405084",
"0.7405084",
"0.73141116",
"0.7211365",
"0.72071266",
"0.7193043",
"0.7173769",
"0.717075",
"0.7148977",
"0.7107203",
"0.7092842",
"0.7091419",... | 0.67414284 | 76 |
this function to get password | public int getPassword() {
return password;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"String getPassword();",
"String getPassword();",
"St... | [
"0.88998705",
"0.88998705",
"0.88998705",
"0.88998705",
"0.88998705",
"0.88998705",
"0.88998705",
"0.86998236",
"0.86998236",
"0.86998236",
"0.86998236",
"0.86998236",
"0.86998236",
"0.86998236",
"0.86998236",
"0.86998236",
"0.8552063",
"0.852213",
"0.8349757",
"0.8349757",
"... | 0.7312391 | 99 |
Created by sreelal on 22/1/18. | public interface MvpView {
void SnakBarId(int msg);
void SnakBarString(String msg);
void SnakBarStringSucc(String msg);
void SnakBarStringFail(String msg);
void progresShow(boolean load);
void progresCancel(boolean cancel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Overri... | [
"0.60419065",
"0.5913406",
"0.5896843",
"0.5865577",
"0.58566004",
"0.5843134",
"0.57946277",
"0.57946277",
"0.57764655",
"0.5757907",
"0.57373303",
"0.5709392",
"0.56995445",
"0.56951666",
"0.5689013",
"0.56792915",
"0.56752527",
"0.56618524",
"0.56520075",
"0.56520075",
"0.... | 0.0 | -1 |
convert a stack trace to a String so it can be serialized | static public String generateStackTraceString(Throwable t) {
StringWriter s = new StringWriter();
t.printStackTrace(new PrintWriter(s));
return s.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String stackTraceToString( Throwable t ){\n StringWriter writer = new StringWriter();\n PrintWriter printWriter = new PrintWriter( writer );\n t.printStackTrace( printWriter );\n printWriter.flush();\n return writer.toString();\n }",
"String stacktraceToString(Throwable t) {\r\... | [
"0.7681204",
"0.76693344",
"0.7413814",
"0.7093999",
"0.70766616",
"0.7061839",
"0.70200485",
"0.69938314",
"0.6958016",
"0.6924462",
"0.68860114",
"0.6857174",
"0.6819377",
"0.6782677",
"0.66981566",
"0.66895646",
"0.66638416",
"0.6660633",
"0.6606424",
"0.65919584",
"0.6583... | 0.66818106 | 16 |
Additional constructor with msg | public WebAppException(String message) {
super(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }",
"public LCAmsg2 () { }",
"private Message(){\n // default constructor\n }",
"public Message(){}",
"public Message() {}",
"public Message() {}",
"public MessageInfo() { }",
"public Message newMessage(String messag... | [
"0.7558258",
"0.748022",
"0.72168326",
"0.7117628",
"0.70282435",
"0.70282435",
"0.6990726",
"0.6916997",
"0.6900963",
"0.6900963",
"0.6881343",
"0.6864985",
"0.68613166",
"0.68582755",
"0.68433326",
"0.68394375",
"0.68129224",
"0.6791533",
"0.6778859",
"0.67400163",
"0.67281... | 0.0 | -1 |
Additional constructor nest the exceptions, storing the stack trace | public WebAppException(Throwable nestedException) {
this.nestedException_ = nestedException;
stackTraceString_ = generateStackTraceString(nestedException);
extractProperties(nestedException);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }",
"public Exception() {\n\t\t\tsuper();\n\t\t}",
"public StackException(String message){\n super(message);\n }",
"public Exception() {\n\tsuper();\n }",
"public SMSLibExce... | [
"0.68169093",
"0.6785377",
"0.67652863",
"0.6709408",
"0.6692156",
"0.65214825",
"0.6505175",
"0.648612",
"0.64708805",
"0.6465048",
"0.64580023",
"0.64294463",
"0.6370996",
"0.6356103",
"0.63531804",
"0.634365",
"0.6340128",
"0.63289845",
"0.6290644",
"0.6286749",
"0.6271661... | 0.61848813 | 28 |
Additional constructor nest the exceptions, storing the stack trace | public WebAppException(String message, Throwable nestedException) {
this(message);
this.nestedException_ = nestedException;
stackTraceString_ = generateStackTraceString(nestedException);
extractProperties(nestedException);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }",
"public Exception() {\n\t\t\tsuper();\n\t\t}",
"public StackException(String message){\n super(message);\n }",
"public Exception() {\n\tsuper();\n }",
"public SMSLibExce... | [
"0.68169093",
"0.6785377",
"0.67652863",
"0.6709408",
"0.6692156",
"0.65214825",
"0.6505175",
"0.648612",
"0.64708805",
"0.6465048",
"0.64580023",
"0.64294463",
"0.6370996",
"0.6356103",
"0.63531804",
"0.634365",
"0.6340128",
"0.63289845",
"0.6290644",
"0.6286749",
"0.6271661... | 0.0 | -1 |
Descends through linkedlist of nesting exceptions, & output trace note that this displays the 'deepest' trace first | public String getStackTraceString() {
// if there's no nested exception, there's no stackTrace
if (nestedException_ == null)
return null;
StringBuffer traceBuffer = new StringBuffer();
if (nestedException_ instanceof WebAppException) {
traceBuffer.append(((WebAppException) nestedException_)
.getStackTraceString());
traceBuffer.append("-------- nested by:\n");
}
traceBuffer.append(stackTraceString_);
return traceBuffer.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deepList() throws Exception;",
"@Test\n public void testDumpError() {\n \n class TestExceptions {\n \n int start(int a, int b) {\n return sum(a, b);\n }\n \n int sum(int a, int b) {\n int result;\n \n try ... | [
"0.5963089",
"0.59160006",
"0.5614477",
"0.55207074",
"0.5413346",
"0.53559506",
"0.5319633",
"0.53026384",
"0.52654916",
"0.52553076",
"0.52389544",
"0.52266824",
"0.520751",
"0.513734",
"0.50984687",
"0.505717",
"0.5036362",
"0.5026464",
"0.501431",
"0.5002066",
"0.49898112... | 0.47476655 | 61 |
Gets the ExceptionCode as long | public long getExceptionCodeAsLong() {
return this.exceptionCode_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getErrorCode() {\n return Util.bytesToInt(new byte[]{data[2], data[3], data[4], data[5]});\n }",
"int getErrorCode();",
"public long getExceptionCount();",
"public Long getExceptcode() {\n return exceptcode;\n }",
"public int getErrorCode() {\n return parameter.getErrC... | [
"0.69903576",
"0.674708",
"0.671487",
"0.6603976",
"0.658696",
"0.64667964",
"0.63967896",
"0.63832885",
"0.6355214",
"0.63526237",
"0.6348106",
"0.6347006",
"0.6343122",
"0.6338288",
"0.63318884",
"0.63292193",
"0.63231283",
"0.6284362",
"0.62785",
"0.6243046",
"0.6216327",
... | 0.889982 | 0 |
Prints the StackTrace from the PrintStream | public void printStackTrace(java.io.PrintStream printStream) {
super.printStackTrace(printStream);
if (nestedException_ != null) {
printStream.println("Caused by:");
nestedException_.printStackTrace(printStream);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testPrintStackTracePrintStream() {\n Throwable th;\n ByteArrayOutputStream ba = new ByteArrayOutputStream(); \n PrintStream ps = new PrintStream(ba);\n th = prepareThrowables();\n th.printStackTrace(ps);\n assertEquals(\"incorrect info printed in stack trace\",... | [
"0.7307571",
"0.71497554",
"0.71292275",
"0.7113514",
"0.7110565",
"0.7090481",
"0.7075456",
"0.69708204",
"0.680724",
"0.67880356",
"0.67614883",
"0.6749721",
"0.6696023",
"0.6653871",
"0.6544054",
"0.6536626",
"0.6460685",
"0.6388906",
"0.6364366",
"0.632353",
"0.6316318",
... | 0.69694376 | 8 |
Prints the StackTrace from the PrintWriter | public void printStackTrace(java.io.PrintWriter printWriter) {
super.printStackTrace(printWriter);
if (nestedException_ != null) {
printWriter.println("Caused by:");
nestedException_.printStackTrace(printWriter);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void printStackTrace(PrintWriter writer);",
"@Override\n\tpublic void printStackTrace(PrintWriter s) {\n\t\tsuper.printStackTrace(s);\n\t}",
"public void testPrintStackTracePrintWriter_True() {\n Throwable th;\n ByteArrayOutputStream ba = new ByteArrayOutputStream(); \n PrintWriter ps = ne... | [
"0.8195453",
"0.70615005",
"0.69621015",
"0.6890751",
"0.6714062",
"0.66994554",
"0.6520356",
"0.64417654",
"0.64210945",
"0.64036095",
"0.63858145",
"0.6277253",
"0.6222997",
"0.62187195",
"0.6193797",
"0.61122817",
"0.60922253",
"0.6039",
"0.5945465",
"0.5943976",
"0.585111... | 0.68138903 | 4 |
Extracts the properties of an exception | private void extractProperties(Throwable throwable) {
// if instance of ProservException, extract the exception code
if (throwable instanceof WebAppException) {
this.setExceptionCode(((WebAppException) throwable)
.getExceptionCode());
} // end of if ()
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EProperties getProperties();",
"public String getExceptioninfo() {\n return exceptioninfo;\n }",
"String getException();",
"String getException();",
"@JsonProperty(\"exception\")\n public ExceptionInfo getException() {\n return exception;\n }",
"public Map<String, Object> getProper... | [
"0.6064666",
"0.60480136",
"0.59538114",
"0.59538114",
"0.5881022",
"0.5858882",
"0.5794714",
"0.568877",
"0.5660292",
"0.56063735",
"0.56012255",
"0.5561639",
"0.5518697",
"0.55060285",
"0.54966336",
"0.5494117",
"0.5463737",
"0.5456956",
"0.54514086",
"0.5446831",
"0.540373... | 0.6866524 | 0 |
/ Factory method pattern to decide which object creation to be done of ENG or RUSSian. | public AbstractLetterFactory decideLanguage(String lang){
if(lang=="ENG"){
Parameters.TARGET_CHROMOSOME = new char[]{'m', 'a', 'y', 'n', 'o', 'o', 't', 'h'};
return new EnglishLetterFactory();
}
else if(lang=="RUS"){
Parameters.TARGET_CHROMOSOME = new char[]{'м','а', 'ы', 'н', 'о', 'о', 'т', 'х'};
return new RussianLetterFactory();
}
return new EnglishLetterFactory();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Generalization createGeneralization();",
"public interface Factory {\n LeiFeng createLeiFeng();\n}",
"Schueler createSchueler();",
"Oracion createOracion();",
"public interface UnitFactory {\n Gui_Unit createUnit(String name, int team);\n Gui_Unit copy(Gui_Unit guiUnit);\n\n static UnitFactory ... | [
"0.7127313",
"0.63491035",
"0.6263281",
"0.6084058",
"0.59764254",
"0.5945587",
"0.5923676",
"0.58997184",
"0.58595455",
"0.58107346",
"0.5810553",
"0.5755647",
"0.575132",
"0.57312596",
"0.5724302",
"0.57207763",
"0.56887937",
"0.5652002",
"0.56073546",
"0.5605065",
"0.55981... | 0.5460782 | 29 |
/ here we must override the constructor for ArrayAdapter the only variable we care about now is ArrayList objects, because it is the list of objects we want to display. | public ItemAdapter(Context context, int textViewResourceId, ArrayList<item> objects) {
super(context, textViewResourceId, objects);
this.objects = objects;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IngredientsAdapter(Context context, ArrayList ingredientsArray) {\n super(context, R.layout.ingredients_list, ingredientsArray);\n this.context = context;\n this.ingredientsArray = ingredientsArray;\n }",
"public CustomAdapter(List<Quiz> quizList) {// Now lets add stuff to the quiz... | [
"0.6806648",
"0.6804725",
"0.6775021",
"0.6726028",
"0.6718165",
"0.6715604",
"0.66856307",
"0.66839117",
"0.6671329",
"0.6614567",
"0.6605665",
"0.6554589",
"0.6548596",
"0.651715",
"0.6494715",
"0.64842963",
"0.64798385",
"0.647718",
"0.6468465",
"0.6448765",
"0.6420289",
... | 0.6922675 | 0 |
/ we are overriding the getView method here this is what defines how each list item will look. | public View getView(int position, View convertView, ViewGroup parent){
// assign the view we are converting to a local variable
View v = convertView;
// first check to see if the view is null. if so, we have to inflate it.
// to inflate it basically means to render, or show, the view.
if (v == null) {
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = inflater.inflate(R.layout.list_item, null);
}
/*
* Recall that the variable position is sent in as an argument to this method.
* The variable simply refers to the position of the current object in the list. (The ArrayAdapter
* iterates through the list we sent it)
*
* Therefore, i refers to the current Item object.
*/
item i = objects.get(position);
if (i != null) {
// This is how you obtain a reference to the TextViews.
// These TextViews are created in the XML files we defined.
TextView tn = (TextView) v.findViewById(R.id.tnLabel);
TextView tnd = (TextView) v.findViewById(R.id.tnData);
TextView dt = (TextView) v.findViewById(R.id.dtLabel);
TextView dtd = (TextView) v.findViewById(R.id.dtData);
TextView at = (TextView) v.findViewById(R.id.atLabel);
TextView atd = (TextView) v.findViewById(R.id.atData);
// check to see if each individual textview is null.
// if not, assign some text
if (tn != null){
tn.setText("Train Number: ");
}
if (tnd != null){
tnd.setText(i.getTrainNum());
}
if (dt != null){
dt.setText("Departure Time: ");
}
if (dtd != null){
dtd.setText(i.getDepTime());
}
if (at != null){
at.setText("Arrival Time: ");
}
if (atd != null){
atd.setText(i.getArrTime());
}
}
// the view must be returned to our activity
return v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n\n // Initialize a TextView for ListView each Item\n ... | [
"0.74268144",
"0.7380633",
"0.7378192",
"0.7363616",
"0.7363616",
"0.7348054",
"0.7348054",
"0.7325791",
"0.73190445",
"0.7283113",
"0.72248375",
"0.72038805",
"0.7198069",
"0.71929824",
"0.71467406",
"0.7123825",
"0.7117648",
"0.7072037",
"0.70370305",
"0.70221305",
"0.70214... | 0.0 | -1 |
TODO Autogenerated method stub | boolean _keyReleased(KeyEvent ev) {
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 | boolean _mousePressed(MouseEvent ev) {
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 | boolean _mouseMoved(MouseEvent ev) {
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 | boolean _mouseReleased(MouseEvent ev) {
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 | boolean _mouseWheel(MouseWheelEvent ev) {
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 | public void render(Graphics2D g, BFGWindowProperties properties) {
} | {
"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 |
All queries for the database | @Query("SELECT * FROM tabUsers WHERE username=:username AND password=:password ")
User getUserLogin(String username, String password); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void runQueries();",
"public void Query() {\n }",
"Query query();",
"private void executeQuery() {\n }",
"@Override\n\tpublic List queryAll() throws Exception {\n\t\treturn null;\n\t}",
"void db_all(Context context);",
"private RunQueriesEx setupQueries() {\n RunQueriesEx queries = new Run... | [
"0.7790227",
"0.7246101",
"0.72175884",
"0.7041373",
"0.694852",
"0.6755668",
"0.6749714",
"0.6686173",
"0.66472316",
"0.65644485",
"0.6560402",
"0.65294945",
"0.6445602",
"0.6434316",
"0.6393314",
"0.638004",
"0.6368257",
"0.6354751",
"0.63416594",
"0.6260548",
"0.62333554",... | 0.0 | -1 |
/ JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] | @Override // X.AbstractC12851yS
public final void accept(Throwable th) throws Exception {
Throwable th2 = th;
AbstractC12851yS<? super AnonymousClass215<T>> r2 = this.A00;
AnonymousClass219.A01(th2, "error is null");
r2.accept(new AnonymousClass215(EnumC139220y.error(th2)));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }",
"@Test\n public void getTypeArguments() {\n List<String> target=new ArrayList<String>() {{\n add(\"thimble\");\n }};\n\n Type[] arguments= TypeDetective.sniffTypeParamete... | [
"0.6327313",
"0.62586063",
"0.61457986",
"0.61457986",
"0.61427337",
"0.60445845",
"0.6036601",
"0.6033903",
"0.58961624",
"0.5843375",
"0.5833887",
"0.5816439",
"0.57905793",
"0.57429945",
"0.5739542",
"0.57239294",
"0.57194895",
"0.5691225",
"0.5681844",
"0.5680264",
"0.565... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void doUpdatePerm(String roleId, String addIds, String delIds) throws Exception {
Role role=(Role) repertory.findById(Role.class, roleId);
if(role==null){
throw new Exception("角色未找到");
}
String[] addIdsArray=addIds.split(StringVeriable.STR_SPLIT);
/**删除权限的操作*/
String[] delIdsArray=delIds.split(StringVeriable.STR_SPLIT);
/**增加权限的操作*/
for(String addId:addIdsArray){
if(StringUtil.isEmpty(addId)){
continue;
}
Permission perm=(Permission) repertory.getEntityByHql(" from Permission where perCode='"+addId+"' and perType='"+PermType.TYPE_MENU+"'");
//权限已经存在,直接建立关系
if(perm!=null){
String insertSql="insert into ROLE_PERM(roleId,perId) values('"+role.getRoleId()+"','"+perm.getPerId()+"')";
repertory.executeSql(insertSql);
}else{
perm=new Permission();
perm.setPerCode(addId);
perm.setPerType(PermType.TYPE_MENU);
repertory.save(perm);
//先提交到数据库存在进行并联
repertory.flush();
String insertSql="insert into ROLE_PERM(roleId,perId) values('"+role.getRoleId()+"','"+perm.getPerId()+"')";
repertory.executeSql(insertSql);
}
}
for(String delId:delIdsArray){
if(StringUtil.isEmpty(delId)){
continue;
}
Permission perm=(Permission) repertory.getEntityByHql(" from Permission where perCode='"+delId+"' and perType='"+PermType.TYPE_MENU+"'");
if(perm!=null){
//解除关系
String delSql="delete from ROLE_PERM where perId='"+perm.getPerId()+"' and roleId='"+role.getRoleId()+"'";
repertory.executeSql(delSql);
}
}
} | {
"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 |
Metoda pozwala ustawic wlasciwosc okreslajaca dozwolny ksztalt statkow. | public void setProsteLinie(boolean bWartosc)
{
bProsteLinie = bWartosc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}",
"public String getStato() {\n\t\t\treturn stato;\n\t\t}",
"public String getStat() {\r\n\t\treturn stat;\r\n\t}",
"public Integer getStat() {\r\n return stat;\r\... | [
"0.6641981",
"0.6163271",
"0.59421927",
"0.5918036",
"0.58718103",
"0.58718103",
"0.58551985",
"0.57488114",
"0.57358205",
"0.5701543",
"0.5661285",
"0.55862707",
"0.5574915",
"0.5557423",
"0.5538624",
"0.5536838",
"0.5534357",
"0.5534357",
"0.5534357",
"0.5534357",
"0.552161... | 0.0 | -1 |
Najprostrza mozliwa implementacja wyboru pola do ostrzelania. Metoda wyszukuje wszystkie pola, na ktore mozna oddac strzal i losowo wybiera jedno z nich. Informacje na temat wspolrzednych oddanego strzalu sa przekazywane do metody strzal() kontenera statkow przekazanego w parametrze i tam jest zrealizowana pelna obsluga strzalu. | protected boolean strzalLosowy(StatekIterator oStatkiPrzeciwnika)
{
try
{
Pozycja oWylosowanePole = losujPole(oStatkiPrzeciwnika.getPlansza());
boolean bTrafienie = oStatkiPrzeciwnika.strzal(oWylosowanePole.getX(), oWylosowanePole.getY());
if (bTrafienie == true)
{
//zapisanie celnego strzalu w tablicy trafien
Pozycja oTrafienie = new Pozycja(2);
oTrafienie.setX(oWylosowanePole.getX());
oTrafienie.setY(oWylosowanePole.getY());
oUzyteczneTrafienia.add(oTrafienie);
}
return bTrafienie;
}
catch (ParametrException e)
{
throw new ProgramistaException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String vratiVrednostiZaUpdate() {\n \r\n return String.format(\"naziv='%s', trener='%s', menadzer='%s', sponzor='%s', igre='%s', zaradjenNovac=%f, idRegiona=%d, idLokacije=%d\", \r\n this.getNaziv(), this.getTrener(), this.getMenadzer(), this.getSponzor(), this.... | [
"0.59285206",
"0.58072394",
"0.5632159",
"0.553606",
"0.55290437",
"0.55142033",
"0.54856354",
"0.54637855",
"0.54529685",
"0.5429453",
"0.540309",
"0.53926826",
"0.53811157",
"0.5374819",
"0.53706217",
"0.5369276",
"0.5366368",
"0.5359829",
"0.53444445",
"0.5342318",
"0.5341... | 0.530849 | 21 |
Metoda wybiera losowo jedno z zapisanych wczesniejszych trafien i sprawdza, czy mozna ostrzelac ktores z sasiadujacych pol. Jesli tak, wybiera jedno z pol do ostrzelania. Jesli nie, usuwa pole z listy, wybiera losowo kolejne zapisane trafienie i powtarza proces. Jesli wyczerpane zostana zapisane trafienia, wywolywana jest metoda strzalLosowy() | protected boolean strzalSasiadujacy(StatekIterator oStatkiPrzeciwnika)
{
//przygotowanie kontenera przechowujacego do 4 sasiednich pol, ktore nadaja sie do kolejnego strzalu
ArrayList<Pozycja> oSasiedniePola = new ArrayList<Pozycja>(4);
//petla wyszukujaca we wczesniejszych trafieniach pola do oddania kolejnego strzalu
while (oUzyteczneTrafienia.size() > 0)
{
//wylosowanie pola do przetestowania
int iLosowanePole = oRand.nextInt(oUzyteczneTrafienia.size());
Pozycja oWybranePole = oUzyteczneTrafienia.get(iLosowanePole);
try
{
//wczytanie wspolrzednych 4 sasiadow i sprawdzenie, czy sa to pola puste, lub zawierajace statek
for (int i = -1; i <= 1; ++i)
for (int j = -1; j <= 1; ++j)
if (
oWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()
&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()
&& (i + j == -1 || i + j == 1)
)
{
if (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_POLE_PUSTE
|| oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STATEK
)
{
Pozycja oPrawidlowe = new Pozycja(2);
oPrawidlowe.setX(oWybranePole.getX() + i);
oPrawidlowe.setY(oWybranePole.getY() + j);
oSasiedniePola.add(oPrawidlowe);
}
}
if (bProsteLinie == true)
{
boolean bPionowy = false;
boolean bPoziomy = false;
for (int i = -1; i <= 1; ++i)
for (int j = -1; j <= 1; ++j)
if (
oWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()
&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()
&& (i + j == -1 || i + j == 1)
)
{
if (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STRZAL_CELNY)
{
if (i == 0)
bPionowy = true;
if (j == 0)
bPoziomy = true;
}
}
if (bPionowy == true && bPoziomy == true)
throw new ProgramistaException();
if (bPionowy == true)
{
for (int i = oSasiedniePola.size() - 1; i >= 0; --i)
if (oSasiedniePola.get(i).getX() != oWybranePole.getX())
oSasiedniePola.remove(i);
}
if (bPoziomy == true)
{
for (int i = oSasiedniePola.size() - 1; i >= 0; --i)
if (oSasiedniePola.get(i).getY() != oWybranePole.getY())
oSasiedniePola.remove(i);
}
}
if (oSasiedniePola.size() > 0)
{
//sa pola prawidlowe do oddania kolejnego strzalu
int iWylosowanySasiad = oRand.nextInt(oSasiedniePola.size());
//oddanie strzalu na wspolrzedne weybranego pola
boolean bStrzal;
bStrzal = oStatkiPrzeciwnika.strzal(oSasiedniePola.get(iWylosowanySasiad).getX(), oSasiedniePola.get(iWylosowanySasiad).getY());
if (bStrzal == true)
{
//zapisanie celnego strzalu w tablicy trafien
Pozycja oTrafienie = new Pozycja(2);
oTrafienie.setX( oSasiedniePola.get(iWylosowanySasiad).getX() );
oTrafienie.setY( oSasiedniePola.get(iWylosowanySasiad).getY() );
oUzyteczneTrafienia.add(oTrafienie);
}
return bStrzal;
}
else
{
//brak prawidlowych pol. usuniecie trafienia z listy i przejscie do kolejnej iteracji petli wyszukujacej
oUzyteczneTrafienia.remove(iLosowanePole);
}
}
catch (ParametrException e)
{
throw new ProgramistaException(e);
}
}
return strzalLosowy(oStatkiPrzeciwnika);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean strzalLosowy(StatekIterator oStatkiPrzeciwnika)\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tPozycja oWylosowanePole = losujPole(oStatkiPrzeciwnika.getPlansza());\n\t\t\tboolean bTrafienie = oStatkiPrzeciwnika.strzal(oWylosowanePole.getX(), oWylosowanePole.getY());\n\t\t\tif (bTrafienie == true)\n\t\t\t\t{\n\... | [
"0.6898991",
"0.635793",
"0.6195998",
"0.6190879",
"0.61449796",
"0.59798706",
"0.5899255",
"0.5860511",
"0.57935727",
"0.5760874",
"0.57251006",
"0.5718903",
"0.5712025",
"0.570814",
"0.5686188",
"0.56829137",
"0.5663302",
"0.5662163",
"0.5535959",
"0.55352545",
"0.5513544",... | 0.65005964 | 1 |
Metoda wyszukuje losowo na planszy pole do oddania strzalu, jednak jesli wylosowane pole nie zawiera statku, nastepuje ponowne losowanie w celu znalezienia lepszego pola do strzalu. Dozwolona ilosc powtorzen okresla drugi parametr. Jesli w ktorejkolwiek iteracji nastapi wylosowanie pola zawierajacego statek, strzal uznaje sie za trafiony i nie sa wykonywane kolejne iteracje petli. Jesli w ostatniej iteracji takze zostanie wylosowane pole puste, wspolrzedne tego pola zostaje uznane za wykonany strzal i jest on niecelny. | protected boolean strzalWielokrotny(StatekIterator oStatkiPrzeciwnika, int iIloscPowtorzen)
{
try
{
Pozycja oWylosowanePole = null;
Plansza oPlansza = oStatkiPrzeciwnika.getPlansza();
for (int i = 1; i <= iIloscPowtorzen; ++i)
{
oWylosowanePole = losujPole(oPlansza);
if (oPlansza.getPole(oWylosowanePole.getX(), oWylosowanePole.getY()) == PlanszaTypPola.PLANSZA_STATEK || i == iIloscPowtorzen)
{
boolean bStrzal;
bStrzal = oStatkiPrzeciwnika.strzal(oWylosowanePole.getX(), oWylosowanePole.getY());
if (bStrzal == true)
{
//zapisanie celnego strzalu w tablicy trafien
Pozycja oTrafienie = new Pozycja(2);
oTrafienie.setX( oWylosowanePole.getX() );
oTrafienie.setY( oWylosowanePole.getY() );
oUzyteczneTrafienia.add(oTrafienie);
}
return bStrzal;
}
}
}
catch (ParametrException e)
{
throw new ProgramistaException(e);
}
//petla musi zwrocic strzal. skoro doszlo tutaj - wywal wyjatek
throw new ProgramistaException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean strzalSasiadujacy(StatekIterator oStatkiPrzeciwnika)\n\t\t{\n\t\t//przygotowanie kontenera przechowujacego do 4 sasiednich pol, ktore nadaja sie do kolejnego strzalu\n\t\tArrayList<Pozycja> oSasiedniePola = new ArrayList<Pozycja>(4);\n\t\t//petla wyszukujaca we wczesniejszych trafieniach pola do ... | [
"0.6618446",
"0.6302622",
"0.6142502",
"0.5897853",
"0.5800527",
"0.5788575",
"0.57520497",
"0.5750701",
"0.5698028",
"0.5644027",
"0.5611908",
"0.5591729",
"0.55636525",
"0.5544171",
"0.54995185",
"0.54791355",
"0.54693854",
"0.5446539",
"0.5399032",
"0.53752416",
"0.5299137... | 0.63299644 | 1 |
Metoda wybiera losowe pole dostepne do ostrzelania na planszy przeciwnika i zwraca obiekt typu Pozycja zawierajacy te wspolrzedne. | private Pozycja losujPole(Plansza oPlanszaPrzeciwnika)
{
try
{
Pozycja oWylosowanePole = new Pozycja(2);
int iWylosowanePole = oRand.nextInt( oPlanszaPrzeciwnika.getIloscNieznanych() ) + 1;
//obliczenie x i y dla wylosowanego pola
int iX = 0;
int iY = 0;
while (iWylosowanePole > 0)
{
if (oPlanszaPrzeciwnika.getPole(iX, iY) == PlanszaTypPola.PLANSZA_POLE_PUSTE || oPlanszaPrzeciwnika.getPole(iX, iY) == PlanszaTypPola.PLANSZA_STATEK)
--iWylosowanePole;
if (iWylosowanePole > 0)
{
++iX;
if (iX == oPlanszaPrzeciwnika.getSzerokosc())
{
++iY;
iX = 0;
}
}
}
oWylosowanePole.setX(iX);
oWylosowanePole.setY(iY);
return oWylosowanePole;
}
catch (ParametrException e)
{
throw new ProgramistaException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void AwansSpoleczny() {\n\t\tSystem.out.println(\"AwansSpoleczny\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getNiewolnikNaPLanszy() instanceof Niewolnicy) {\n\t\t\tPlansza.setNiewolnikNaPlanszy(new Mieszczanie(Plansza.getNiewolnikNaPLanszy()))... | [
"0.693179",
"0.6576491",
"0.65090394",
"0.62326735",
"0.6222938",
"0.6143573",
"0.6053629",
"0.60403013",
"0.60112673",
"0.59928876",
"0.5987126",
"0.5970017",
"0.5881975",
"0.58439195",
"0.584304",
"0.5834343",
"0.58000594",
"0.5794014",
"0.57842964",
"0.57833064",
"0.568585... | 0.664155 | 1 |
/ Function to unequip weapon for hero | public void unequip(Hero h) {
// TODO Auto-generated method stub
for(Weapon w : h.getInventory().getWeaponList()) {
if(w.equipped && w.getName().equals(this.getName())) {
setEquipped(false);
statsDecrease(h, StatType.STRENGTH, getWeaponDmg());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void unequip(Equip e)\r\n { \r\n if (e.getType()==Equip.WEAPON)\r\n {\r\n attack -= e.getRating();\r\n items.add(e);\r\n }\r\n else if (e.getType() == Equip.ARMOR)\r\n {\r\n items.add(e);\r\n defense -= e.getRating();\r\n ... | [
"0.7584809",
"0.73911446",
"0.7337222",
"0.7219148",
"0.6995097",
"0.69914436",
"0.6937901",
"0.6808449",
"0.66477627",
"0.6619541",
"0.6511492",
"0.6449314",
"0.63677007",
"0.63343763",
"0.632234",
"0.6293772",
"0.62578934",
"0.624703",
"0.6210731",
"0.61954176",
"0.6192578"... | 0.79199487 | 0 |
/ Function to equip weapon for hero | public void equip(Hero h) {
for(Weapon w : h.getInventory().getWeaponList()) {
if(w.getName().equals(this.getName())) {
w.setEquipped(true);
w.statsIncrease(h, StatType.STRENGTH, getWeaponDmg());
} else {
w.unequip(h);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void equipSelectedWeapon() {\n }",
"public void equip();",
"static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item == '0')\r\n\t \t\t{\r\n\t \t... | [
"0.80261403",
"0.7731195",
"0.75855905",
"0.7506207",
"0.7439644",
"0.7275433",
"0.71027243",
"0.70777524",
"0.69249463",
"0.68321323",
"0.6784808",
"0.67702883",
"0.6741703",
"0.6687947",
"0.6685124",
"0.66617954",
"0.66117936",
"0.65970814",
"0.65569454",
"0.6530297",
"0.65... | 0.7762137 | 1 |
/ Function to clone this instance of weapon | public Weapon clone() {
return new Weapon(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Weapon copy() {\r\n\t\treturn new Weapon(this.getName(), this.getDescription(), this.getType(), this.getSize(), this.getPrice(), this.getMultChanged());\r\n\t}",
"public Weapon clone( Sprite s )\n {\n return this.clone( s, s.getSpriteData().getDirFacing() );\n }",
"protected Enemy copy()\r\... | [
"0.79877377",
"0.7107779",
"0.68023497",
"0.67218494",
"0.67128927",
"0.66410744",
"0.6626251",
"0.6539826",
"0.65151215",
"0.64956486",
"0.6482416",
"0.64668983",
"0.6463346",
"0.64400995",
"0.6432846",
"0.63919365",
"0.6390796",
"0.637779",
"0.6346587",
"0.63435465",
"0.633... | 0.85731125 | 0 |
The constructor for a new score indicator. | public ScoreIndicator(Counter score, int width, int fontSize, int textY) {
this.score = score;
this.width = width;
this.fontSize = fontSize;
this.textY = textY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ScoreIndicator(Counter score) {\r\n this.score = score;\r\n }",
"public Score()\n {\n // initialize instance variables\n score = 0;\n }",
"public Scores(int score) {\r\n this.score = score;\r\n }",
"public Score() {\n this.date = new Date();\n this... | [
"0.86600083",
"0.721749",
"0.7057549",
"0.6940942",
"0.6891425",
"0.6867385",
"0.6845631",
"0.6730682",
"0.6678728",
"0.6667432",
"0.6570337",
"0.65429264",
"0.6531045",
"0.65176976",
"0.6516225",
"0.6498264",
"0.64494085",
"0.64229",
"0.6333054",
"0.6268798",
"0.62654734",
... | 0.71766853 | 2 |
A timePassed method for the ScoreIndicator because he implements Sprite. Currently we do nothing with this method. | @Override
public void timePassed() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void timePassed() {\r\n }",
"public void timePassed() {\r\n }",
"@Override\r\n public void timePassed() {\r\n }",
"public void timePassed() {\r\n\r\n }",
"public void timePassed() { }",
"public void timePassed() {\n }",
"public void timePassed() {\n }",
"@Override\r\n p... | [
"0.73287153",
"0.73287153",
"0.72776544",
"0.7265213",
"0.72493434",
"0.7157145",
"0.7157145",
"0.7071743",
"0.7071743",
"0.683316",
"0.6747915",
"0.6693586",
"0.6647395",
"0.6630172",
"0.66077673",
"0.66077673",
"0.64873147",
"0.6438254",
"0.6427134",
"0.63461846",
"0.625234... | 0.7200361 | 5 |
Add the score indicator to the sprites list of the given game. | public void addToGame(GameLevel g) {
g.addSprite(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addTestScore(int score){\n test_score.add(test_count,score);\n test_count++;\n }",
"public void addScore(int score);",
"public void addScore(){\n\n // ong nuoc 1\n if(birdS.getX() == waterPipeS.getX1() +50){\n bl = true;\n }\n if (bl == true &... | [
"0.63610196",
"0.6354216",
"0.62838274",
"0.6274573",
"0.61972994",
"0.61560446",
"0.6046679",
"0.5965584",
"0.58807415",
"0.58490443",
"0.5835675",
"0.5827471",
"0.58270675",
"0.5809972",
"0.5790714",
"0.5772608",
"0.5771409",
"0.57495093",
"0.57466346",
"0.573906",
"0.57363... | 0.55207396 | 41 |
Get Session und Request Attribute | @Override
public Optional<Response> handle(HandlerInput input) {
Map<String,Object> sessionAttribute = getSessionAttributes(input);
Intent requestIntent = ((IntentRequest) input.getRequestEnvelope().getRequest()).getIntent();
//Frage nach der Anzahl der Spieler
if((requestIntent.getSlots().get(Parameter.ANZAHL_SPIELER).getValue() == null || requestIntent.getSlots().get(Parameter.ANZAHL_SPIELER).getValue().equals("?")) && sessionAttribute.get(Parameter.ANZAHL_SPIELER) == null){
//if (requestIntent.getSlots().get(Parameter.ANZAHL_SPIELER).getValue() == null || requestIntent.getSlots().get(Parameter.ANZAHL_SPIELER).getValue().equals("?")) {
System.out.println("Ermittle Anzahl Spieler");
return frageAnzahlSpieler(input,requestIntent);
}
else {
System.out.println("SessionAttribute Zweig");
//Frage nach den Namen der Spieler
//Prüfe das sessionAttribut nicht leer ist
if(sessionAttribute.get(Parameter.SPIELER_NAMEN) != null){
System.out.println("Session Attribute nicht leer Zweig");
//Attribute auslesen
String neuerSpielerName = requestIntent.getSlots().get(Parameter.NEUER_SPIELER_NAME).getValue();
String spielerNamen[] = readPlayers(sessionAttribute);
int players = (int) sessionAttribute.get(Parameter.ANZAHL_SPIELER);
System.out.println("NeuerSpielerName: "+neuerSpielerName);
//Ermittle die Anzahl der ermittelnden Namen
int zaehleSpieler = zaehleSpieler(spielerNamen);
System.out.println("ZaehleSpieler = "+zaehleSpieler);
System.out.println("players = "+players);
//Prüfe ob es so viele Namen wie Spieler gibt
if (++zaehleSpieler < players){
System.out.println("ZahleSpieler != Players Zweig");
//Nummer des neuen Spielers ermitteln
int neuerSpieler = platzDesNeuenSpielersErmitteln(spielerNamen);
System.out.println("NeuerSpielerInt: "+neuerSpieler);
//Neuen Spieler an ersten zu findenden null Stelle hinzufügen
input = neuenSpielerHinzufuegen(spielerNamen,sessionAttribute,neuerSpielerName,input);
return frageSpielerNamen(input,neuerSpieler+2,requestIntent);
}
else if(zaehleSpieler==players){
System.out.println("ELSE Zweig ZahleSpieler != Players Zweig");
input = neuenSpielerHinzufuegen(spielerNamen,sessionAttribute,neuerSpielerName,input);
}
}
else {
System.out.println("Session Attribute leer Zweig");
//Wenn sessionAttribute leer sind
initialSessionAttribute(input,requestIntent,sessionAttribute);
return frageSpielerNamen(input,1,requestIntent);
}
}
sessionAttribute = setSpielcounter(sessionAttribute);
input.getAttributesManager().setSessionAttributes(sessionAttribute);
return ermittleNaechsteAktion(input,sessionAttribute);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t\treq.getSession().setAttribute(\"attr\", req.getParameter(\"session\"));\n\t\tSystem.out.println(req.getSession().getAttr... | [
"0.70312536",
"0.6713213",
"0.67117125",
"0.65581393",
"0.6533672",
"0.6531095",
"0.65006745",
"0.64759797",
"0.6444007",
"0.6418484",
"0.6401764",
"0.6399429",
"0.6369515",
"0.63383025",
"0.63383025",
"0.6334952",
"0.6317966",
"0.6317358",
"0.63109",
"0.6306016",
"0.6285266"... | 0.0 | -1 |
Spielernamen auslesen, konfigurieren und in Array speichern | private String[] readPlayers(Map<String,Object> sessionAttribute){
Object spielerNamen2 = sessionAttribute.get(Parameter.SPIELER_NAMEN);
System.out.println(spielerNamen2.toString());
String convertSpielerNamen = spielerNamen2.toString();
convertSpielerNamen = convertSpielerNamen.replace("[", "");
convertSpielerNamen = convertSpielerNamen.replace("]", "");
return convertSpielerNamen.split(", ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[][] arrayAusgabe(){\n\t\treturn spielfeld;\n\t}",
"public Spieler(String spielfigur) {\n\n this.kontostand = 30000;\n this.spielfigur = spielfigur;\n this.istGefängnis = false;\n\n liste.put(\"braun\", braun);\n liste.put(\"hellblau\", hellblau);\n liste.pu... | [
"0.60889566",
"0.5539262",
"0.5426713",
"0.5329979",
"0.53180856",
"0.52505434",
"0.5207947",
"0.51877314",
"0.5186714",
"0.5177333",
"0.51665914",
"0.51632833",
"0.5152",
"0.51451033",
"0.5143768",
"0.51370853",
"0.5098942",
"0.5084155",
"0.5082935",
"0.5079245",
"0.50418913... | 0.5235487 | 6 |
Inner x = new Inner(); | private void demoInnerClass2() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Inner getInner(){\n Outer.this.toString();\n return this.new Inner();\n }",
"public static void main(String args[]){\n\tOuter.createInner();\r\n\t//new Outer.Inner();\r\n\t//new Outer.new Inner();\r\n}",
"void outerMethod() {\n\t\n\tclass Inner {\n\t \n\t protected Inner() { }\n\t p... | [
"0.763393",
"0.73734355",
"0.6908401",
"0.6901275",
"0.68996966",
"0.6723017",
"0.6636543",
"0.65682864",
"0.64535916",
"0.6430626",
"0.64274204",
"0.63659126",
"0.63164735",
"0.63003445",
"0.6274776",
"0.62710905",
"0.5989528",
"0.5970635",
"0.5887985",
"0.58808434",
"0.5850... | 0.6298102 | 14 |
TODO Autogenerated method stub | public void setActiveEditor(IAction action, IEditorPart targetEditor) {
action.setEnabled(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 |
Get the full path of this replica's data file. | @VisibleForTesting
public File getBlockFile() {
return new File(getDir(), getBlockName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDataFilePath() {\r\n \t\treturn dataFile;\r\n \t}",
"private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n ... | [
"0.73204887",
"0.71337533",
"0.70460016",
"0.6962477",
"0.6811593",
"0.67940813",
"0.6768709",
"0.67398566",
"0.6734608",
"0.6701541",
"0.66356236",
"0.66103137",
"0.66091794",
"0.65726906",
"0.6549185",
"0.654503",
"0.6514674",
"0.6484256",
"0.64732003",
"0.64732003",
"0.644... | 0.0 | -1 |
Get the full path of this replica's meta file. | @VisibleForTesting
public File getMetaFile() {
return new File(getDir(),
DatanodeUtil.getMetaName(getBlockName(), getGenerationStamp()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMetaFile() {\r\n return metaFile;\r\n }",
"public String getFullPath()\n {\n return( fullPath );\n }",
"public String getMetaDataFileName() {\n return null;\n }",
"public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}",
"public String getPath() {\n\t\t... | [
"0.70902354",
"0.6455019",
"0.62872326",
"0.6280424",
"0.6235555",
"0.6133137",
"0.60631055",
"0.6049344",
"0.6018001",
"0.6012094",
"0.60059536",
"0.59950614",
"0.5991921",
"0.5939168",
"0.59061164",
"0.5902771",
"0.5900265",
"0.5897243",
"0.58531195",
"0.5835934",
"0.583578... | 0.6893212 | 1 |
Return the parent directory path where this replica is located. | protected File getDir() {
return hasSubdirs ? DatanodeUtil.idToBlockDir(baseDir,
getBlockId()) : baseDir;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public File getWorkingParent()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n }",
"public String getParent() {\n Path path = getPathNIO();\n if (path == null) {\n return \"\";\n }\n\n Path parent = Paths.get(this.dataSource).toAbsol... | [
"0.7477085",
"0.74165463",
"0.6903848",
"0.6833138",
"0.6563253",
"0.65422434",
"0.65295863",
"0.64952284",
"0.6454258",
"0.64431036",
"0.6415412",
"0.63491374",
"0.63452554",
"0.6290644",
"0.62690705",
"0.62529176",
"0.62428653",
"0.62253344",
"0.62041384",
"0.6170881",
"0.6... | 0.5640654 | 99 |
Set the parent directory where this replica is located. | private void setDirInternal(File dir) {
if (dir == null) {
baseDir = null;
return;
}
ReplicaDirInfo dirInfo = parseBaseDir(dir, getBlockId());
this.hasSubdirs = dirInfo.hasSubidrs;
synchronized (internedBaseDirs) {
if (!internedBaseDirs.containsKey(dirInfo.baseDirPath)) {
// Create a new String path of this file and make a brand new File object
// to guarantee we drop the reference to the underlying char[] storage.
File baseDir = new File(dirInfo.baseDirPath);
internedBaseDirs.put(dirInfo.baseDirPath, baseDir);
}
this.baseDir = internedBaseDirs.get(dirInfo.baseDirPath);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWorkingParent(String path) throws IllegalArgumentException\n {\n ServerSettings.getInstance().setProperty(\n ServerSettings.WORKING_PARENT,\n \"\"+validatePath(path)\n );\n }",
"public void setParent(String aParent) {\n _theParent = aParent;\n }",
"public void s... | [
"0.68353754",
"0.61835766",
"0.60569406",
"0.5922813",
"0.591475",
"0.5913333",
"0.587766",
"0.58624357",
"0.585566",
"0.5847257",
"0.5767707",
"0.5763134",
"0.57559687",
"0.57496744",
"0.5742406",
"0.57338184",
"0.5715586",
"0.57096046",
"0.56865513",
"0.5654666",
"0.5651804... | 0.5480481 | 40 |
Copy specified file into a temporary file. Then rename the temporary file to the original name. This will cause any hardlinks to the original file to be removed. The temporary files are created in the same directory. The temporary files will be recovered (especially on Windows) on datanode restart. | private void breakHardlinks(File file, Block b) throws IOException {
final FileIoProvider fileIoProvider = getFileIoProvider();
final File tmpFile = DatanodeUtil.createFileWithExistsCheck(
getVolume(), b, DatanodeUtil.getUnlinkTmpFile(file), fileIoProvider);
try {
try (FileInputStream in = fileIoProvider.getFileInputStream(
getVolume(), file)) {
try (FileOutputStream out = fileIoProvider.getFileOutputStream(
getVolume(), tmpFile)) {
IOUtils.copyBytes(in, out, 16 * 1024);
}
}
if (file.length() != tmpFile.length()) {
throw new IOException("Copy of file " + file + " size " + file.length()
+ " into file " + tmpFile + " resulted in a size of "
+ tmpFile.length());
}
fileIoProvider.replaceFile(getVolume(), tmpFile, file);
} catch (IOException e) {
if (!fileIoProvider.delete(getVolume(), tmpFile)) {
DataNode.LOG.info("detachFile failed to delete temporary file " +
tmpFile);
}
throw e;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private File moveTempFile(final CommonsMultipartFile fileData, final String originalFileName) throws IOException {\n String deployFileName = buildDeployFileName(originalFileName);\n logger.info(\"Moving to {}\", deployFileName);\n final File tempFile = new File(deployFileName);\n fileDa... | [
"0.63194627",
"0.6129217",
"0.6016188",
"0.59620935",
"0.59073186",
"0.5899682",
"0.5836104",
"0.5826138",
"0.5701778",
"0.5681258",
"0.5669165",
"0.5658914",
"0.5576389",
"0.55576795",
"0.5482945",
"0.5482863",
"0.54804635",
"0.54719114",
"0.54247457",
"0.5385117",
"0.537991... | 0.5682017 | 9 |
This function "breaks hardlinks" to the current replica file. When doing a DataNode upgrade, we create a bunch of hardlinks to each block file. This cleverly ensures that both the old and the new storage directories can contain the same block file, without using additional space for the data. However, when we want to append to the replica file, we need to "break" the hardlink to ensure that the old snapshot continues to contain the old data length. If we failed to do that, we could roll back to the previous/ directory during a downgrade, and find that the block contents were longer than they were at the time of upgrade. | public boolean breakHardLinksIfNeeded() throws IOException {
final File file = getBlockFile();
final FileIoProvider fileIoProvider = getFileIoProvider();
if (file == null || getVolume() == null) {
throw new IOException("detachBlock:Block not found. " + this);
}
File meta = getMetaFile();
int linkCount = fileIoProvider.getHardLinkCount(getVolume(), file);
if (linkCount > 1) {
DataNode.LOG.info("Breaking hardlink for " + linkCount + "x-linked " +
"block " + this);
breakHardlinks(file, this);
}
if (fileIoProvider.getHardLinkCount(getVolume(), meta) > 1) {
breakHardlinks(meta, this);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void breakHardlinks(File file, Block b) throws IOException {\n final FileIoProvider fileIoProvider = getFileIoProvider();\n final File tmpFile = DatanodeUtil.createFileWithExistsCheck(\n getVolume(), b, DatanodeUtil.getUnlinkTmpFile(file), fileIoProvider);\n try {\n try (FileInputStrea... | [
"0.7113509",
"0.63051337",
"0.60755634",
"0.55016726",
"0.54200673",
"0.52881193",
"0.5243504",
"0.5206455",
"0.5189131",
"0.5162679",
"0.5083207",
"0.50212884",
"0.50039124",
"0.5002779",
"0.500273",
"0.49497902",
"0.4933996",
"0.48949704",
"0.48889732",
"0.48889002",
"0.484... | 0.6566458 | 1 |
for local replicas, the replica location is assumed to be a file. | @Override
public void updateWithReplica(StorageLocation replicaLocation) {
File diskFile = null;
try {
diskFile = new File(replicaLocation.getUri());
} catch (IllegalArgumentException e) {
diskFile = null;
}
if (null == diskFile) {
setDirInternal(null);
} else {
setDirInternal(diskFile.getParentFile());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String getFileLocation();",
"public Replica( String replica )\n {\n if ( StringTools.isEmpty( replica ) )\n {\n log.error( \"Null or empty replica are not allowed\" );\n throw new IllegalArgumentException( \"Null or empty Replica \" );\n }\n ... | [
"0.5477617",
"0.5430574",
"0.53795457",
"0.5253207",
"0.5131484",
"0.5121071",
"0.5112115",
"0.50835073",
"0.50716347",
"0.4969949",
"0.49615592",
"0.4918371",
"0.48560798",
"0.48560435",
"0.484454",
"0.48283276",
"0.48273504",
"0.48255217",
"0.48225272",
"0.48196688",
"0.481... | 0.72079587 | 0 |
for local replicas, we assume the destination URI is file | @Override
public void copyMetadata(URI destination) throws IOException {
getFileIoProvider().nativeCopyFileUnbuffered(
getVolume(), getMetaFile(), new File(destination), true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFileTransferServer();",
"@Override\n\tpublic URI copy(URI uri, URI toURI) throws StorageSecuirtyException,\n\t\t\tResourceAccessException {\n\t\treturn null;\n\t}",
"private Step copyRemoteFiles() {\n return stepBuilderFactory.get(STEP_COPY_REMOTE_FILES)\n ... | [
"0.59290475",
"0.5856111",
"0.57896036",
"0.56967664",
"0.5643194",
"0.5599683",
"0.55848694",
"0.5549758",
"0.5519098",
"0.55015653",
"0.54970074",
"0.54617286",
"0.54327697",
"0.53997177",
"0.539906",
"0.5394496",
"0.53751594",
"0.5370427",
"0.5363962",
"0.535455",
"0.53319... | 0.52718663 | 23 |
for local replicas, we assume the destination URI is file | @Override
public void copyBlockdata(URI destination) throws IOException {
getFileIoProvider().nativeCopyFileUnbuffered(
getVolume(), getBlockFile(), new File(destination), true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFileTransferServer();",
"@Override\n\tpublic URI copy(URI uri, URI toURI) throws StorageSecuirtyException,\n\t\t\tResourceAccessException {\n\t\treturn null;\n\t}",
"private Step copyRemoteFiles() {\n return stepBuilderFactory.get(STEP_COPY_REMOTE_FILES)\n ... | [
"0.59290475",
"0.5856111",
"0.57896036",
"0.56967664",
"0.5643194",
"0.5599683",
"0.55848694",
"0.5549758",
"0.5519098",
"0.55015653",
"0.54970074",
"0.54617286",
"0.54327697",
"0.53997177",
"0.539906",
"0.5394496",
"0.53751594",
"0.5370427",
"0.5363962",
"0.535455",
"0.53319... | 0.5040294 | 57 |
Get input stream for a local file and optionally seek to the offset. | private FileInputStream getDataInputStream(File f, long seekOffset)
throws IOException {
FileInputStream fis;
final FileIoProvider fileIoProvider = getFileIoProvider();
if (NativeIO.isAvailable()) {
fis = fileIoProvider.getShareDeleteFileInputStream(
getVolume(), f, seekOffset);
} else {
try {
fis = fileIoProvider.openAndSeek(getVolume(), f, seekOffset);
} catch (FileNotFoundException fnfe) {
throw new IOException("Expected block file at " + f +
" does not exist.");
}
}
return fis;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InputStream getInputStream(long position);",
"protected abstract InputStream getInStreamImpl(String filename) throws IOException;",
"@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }",
"public InputStream getInpu... | [
"0.67780626",
"0.637108",
"0.6324546",
"0.6180201",
"0.617452",
"0.6134188",
"0.6123156",
"0.6082035",
"0.58940357",
"0.5829503",
"0.5806769",
"0.5800266",
"0.5797691",
"0.5788617",
"0.57878727",
"0.57878727",
"0.57741773",
"0.57741773",
"0.57741773",
"0.5742133",
"0.57414675... | 0.6224357 | 3 |
Get pin status of a file by checking the sticky bit. | public boolean getPinning(LocalFileSystem localFS, Path path) throws
IOException {
boolean stickyBit =
localFS.getFileStatus(path).getPermission().getStickyBit();
return stickyBit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean canRead() {\n\t\treturn fileStatus;\n\t}",
"public ZipStatus getStatus(String token) {\n synchronized (statusMap) {\n return statusMap.get(token);\n }\n }",
"public int getRawFlag() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\",... | [
"0.5379971",
"0.5351397",
"0.53447014",
"0.5343717",
"0.5288044",
"0.52091426",
"0.5208509",
"0.5202015",
"0.5192077",
"0.518255",
"0.5151856",
"0.51243234",
"0.5102955",
"0.5100699",
"0.5090609",
"0.50893986",
"0.5077895",
"0.50379026",
"0.49882445",
"0.4956503",
"0.4943857"... | 0.6777464 | 0 |
Set sticky bit on path to pin file. | public void setPinning(LocalFileSystem localFS, Path path) throws
IOException {
FsPermission oldPermission = localFS.getFileStatus(path).getPermission();
FsPermission permission = new FsPermission(oldPermission.getUserAction(),
oldPermission.getGroupAction(), oldPermission.getOtherAction(), true);
localFS.setPermission(path, permission);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPin(int pin);",
"private void setStickyFlag(final PinTask task, final String pool)\n {\n Date pinExpiration = task.freezeExpirationTime();\n \n /* To allow for some drift in clocks we add a safety margin to\n * the lifetime of the sticky bit.\n */\n lo... | [
"0.61370087",
"0.58878374",
"0.57707787",
"0.5641576",
"0.56354415",
"0.5520435",
"0.5505602",
"0.5505602",
"0.5402066",
"0.5354317",
"0.5246318",
"0.5237789",
"0.51975054",
"0.5118124",
"0.51145416",
"0.50937974",
"0.50880826",
"0.50876975",
"0.50757074",
"0.50673276",
"0.50... | 0.58282095 | 2 |
Sync the parent directory changes to durable device. | public void fsyncDirectory() throws IOException {
File dir = getDir();
try {
getFileIoProvider().dirSync(getVolume(), getDir());
} catch (IOException e) {
throw new IOException("Failed to sync " + dir, e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void sync() \n\t{\n\t\tFileTableEntry ftEntry = open(\"/\", \"w\");\t\t//read directory from disk\n\t\tbyte[] buffer = directory.directory2bytes();\n\t\twrite(ftEntry, buffer);\n\t\tclose(ftEntry);\n\t\tsuperblock.sync();\t\t\t\t\t//write superblock back to disk\n\t}",
"@Test\r\n public void moveToDirWithSameNa... | [
"0.60863554",
"0.5905738",
"0.58106804",
"0.54907143",
"0.5330103",
"0.5313105",
"0.5249376",
"0.5242159",
"0.51646656",
"0.51419115",
"0.5091694",
"0.5044761",
"0.50225186",
"0.50175476",
"0.49971762",
"0.49909943",
"0.49880412",
"0.4922629",
"0.4918815",
"0.48991004",
"0.48... | 0.5901558 | 2 |
bypasses the interceptor if user calls an anonymous api | public void handleMessage(Message inMessage) {
if (RestApiUtil.checkIfAnonymousAPI(inMessage)) {
return;
}
handleRequest(inMessage, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(groups=\"authentication\")\n public void anonymousGet() throws Exception {\n given().\n auth().basic(\"anonymous\", \"anonymous\").\n expect().\n body(\"error\", equalTo(401)).\n when().\n get(\"/openidm/managed/user?_queryId=query-all-ids\... | [
"0.5978915",
"0.59779966",
"0.5905664",
"0.58736473",
"0.58621836",
"0.5851089",
"0.58120114",
"0.577485",
"0.5763669",
"0.5758965",
"0.5708461",
"0.5681924",
"0.5623823",
"0.55213743",
"0.55165577",
"0.5506005",
"0.54534703",
"0.5433501",
"0.54163945",
"0.53779745",
"0.53654... | 0.49672246 | 81 |
isUserPermitted requests received at the ml endpoint, using HTTP basicauth headers as the authentication mechanism. This method returns a null value which indicates that the request to be processed. | public boolean handleRequest(Message message, ClassResourceInfo resourceInfo) {
if (logger.isDebugEnabled()) {
logger.debug(String.format("Authenticating request: " + message.getId()));
}
AuthorizationPolicy policy = message.get(AuthorizationPolicy.class);
if (policy == null) {
logger.error("Authentication failed: Basic authentication header is missing");
return false;
}
Object certObject = null;
String username = StringUtils.trim(policy.getUserName());
if (StringUtils.isEmpty(username)) {
logger.error("Username cannot be null/empty.");
return false;
}
return isUserPermitted(username, (String) message.get(Message.REQUEST_URI),
(String) message.get(Message.HTTP_REQUEST_METHOD), null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isPermitted(HttpServletRequest request, int permittedRole) {\n boolean result = false;\n HttpSession session = request.getSession();\n String userName = (String) session.getAttribute(\"userName\");\n String token = (String) session.getAttribute(\"token\");\... | [
"0.5796731",
"0.57621485",
"0.5680389",
"0.55889755",
"0.5565422",
"0.55564827",
"0.5544465",
"0.55241066",
"0.5435833",
"0.5378283",
"0.5365524",
"0.5326487",
"0.53066766",
"0.5296956",
"0.52835053",
"0.5276834",
"0.5267661",
"0.5243893",
"0.52410114",
"0.52155876",
"0.52153... | 0.60491943 | 0 |
Constructor de la clase componente. | public Componente(Image image, Componente entrada1, Componente entrada2,String name) {
Image = image;
Entrada1=entrada1;
Entrada2=entrada2;
Name=name;
Output=2;
ID=IDt;
IDt++;
input=false;
input1=2;
input2=2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public Pasien() {\r\n }",
"public Component() {\n }",
"public AntrianPasien() {\r\n\r\n }",
"public Curso() {\r\n }",
"public Carrera(){\n }",
"public CadastroComplemento() {\n initComponents();\n \n }... | [
"0.8157319",
"0.7694207",
"0.7605625",
"0.7595417",
"0.74869263",
"0.7462998",
"0.74312466",
"0.7412561",
"0.74074936",
"0.7402376",
"0.73905385",
"0.73668146",
"0.7313459",
"0.7303904",
"0.7296205",
"0.72679126",
"0.7267081",
"0.7244566",
"0.7238459",
"0.7233183",
"0.7193342... | 0.0 | -1 |
Metodo para establecer un input | @Override
public void setPrimeraEntrada(Componente entrada) {
if(Name.equals("NOT")){
Entrada1=entrada;
Entrada2=entrada;
}else {
this.Entrada1 = entrada;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getInput();",
"public void setInput(String input) { this.input = input; }",
"public abstract void input();",
"public void setInput(String input){\n this.input = input;\n }",
"public void setInput(String input);",
"protected abstract void getInput();",
"@Override\n\tpublic void input() ... | [
"0.77166986",
"0.7633297",
"0.7500411",
"0.73431015",
"0.7307967",
"0.7293292",
"0.71396875",
"0.7136517",
"0.7134955",
"0.70641994",
"0.70591426",
"0.701546",
"0.7008499",
"0.6969762",
"0.6913935",
"0.6888475",
"0.6879645",
"0.6870887",
"0.6855151",
"0.68399924",
"0.6829986"... | 0.0 | -1 |
Metodo para establecer un input | @Override
public void setSegundaEntrada(Componente entrada) {
this.Entrada2=entrada;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getInput();",
"public void setInput(String input) { this.input = input; }",
"public abstract void input();",
"public void setInput(String input){\n this.input = input;\n }",
"public void setInput(String input);",
"protected abstract void getInput();",
"@Override\n\tpublic void input() ... | [
"0.77154684",
"0.76325214",
"0.7499578",
"0.7342326",
"0.7306816",
"0.7292928",
"0.7139498",
"0.71357113",
"0.71347916",
"0.7062221",
"0.7057436",
"0.70150846",
"0.70080626",
"0.6969961",
"0.69131976",
"0.68874216",
"0.68791497",
"0.68707204",
"0.6855482",
"0.68392473",
"0.68... | 0.0 | -1 |
Metodo base para retornar una salida segun el componente. | @Override
public int getSalida() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void salir() {\n\t\t\n\t}",
"public long obtenerNoSalida() throws GenericPersistenceEAOException;",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tpublic void salvar() {\n\r\n\t}",
"@Override\n\tpublic Parcela salvar(Parcela entidade) {\n\t\treturn null;\n\t}",
"@Ove... | [
"0.6796437",
"0.6416407",
"0.64156306",
"0.62267494",
"0.5947141",
"0.5900508",
"0.58829486",
"0.5873976",
"0.58255255",
"0.57976246",
"0.5739377",
"0.5739377",
"0.57144773",
"0.57046145",
"0.568394",
"0.5672894",
"0.56644595",
"0.5607419",
"0.5483972",
"0.5475319",
"0.541980... | 0.6608503 | 1 |
Metodo para obtener la imagen del componente. | public ImageView getImage() {
ImageView and = new ImageView(Image);
and.setFitWidth(70);
and.setFitHeight(50);
return and;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getImage();",
"public String getImagen() {\n return imagen;\n }",
"Imagem getImagem();",
"String getImage();",
"Picture identifyComponentImage() throws Exception;",
"@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}",
"public Image getImagenI() {\n ... | [
"0.6948323",
"0.6865293",
"0.68631023",
"0.68549526",
"0.68424386",
"0.6838729",
"0.67394817",
"0.67086464",
"0.6705469",
"0.6625476",
"0.6619396",
"0.6618936",
"0.65329003",
"0.65300786",
"0.65300786",
"0.65300786",
"0.6528974",
"0.6528974",
"0.6528974",
"0.65281755",
"0.652... | 0.0 | -1 |
Metodo que retorna el atributo de input1. | public int getInput1() {
return input1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getInput1() {\n return input1;\n }",
"public String getInput2() {\n return input2;\n }",
"public int getInput2() {\n return input2;\n }",
"public String getAttr1() {\n return attr1;\n }",
"public String getAttr1() {\n return attr1;\n }",
"pu... | [
"0.71975756",
"0.6727689",
"0.66125536",
"0.6381672",
"0.6381672",
"0.62782854",
"0.6240828",
"0.61063963",
"0.60453796",
"0.60050464",
"0.5881969",
"0.584987",
"0.57733405",
"0.5693626",
"0.5646471",
"0.5640984",
"0.5629907",
"0.5629907",
"0.5597703",
"0.55790967",
"0.555884... | 0.7187308 | 1 |
Metodo que retorna el atributo de input2. | public int getInput2() {
return input2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getInput2() {\n return input2;\n }",
"public String getAttr2() {\n return attr2;\n }",
"public String getAttr2() {\n return attr2;\n }",
"public void setInput2(final String input2) {\n this.input2 = input2;\n }",
"public String getInput1() {\n re... | [
"0.75381446",
"0.67521507",
"0.67521507",
"0.65531147",
"0.6547684",
"0.6481341",
"0.6462556",
"0.63342416",
"0.6294313",
"0.62544703",
"0.6164706",
"0.6051284",
"0.60219294",
"0.60219294",
"0.60219294",
"0.60219294",
"0.60219294",
"0.59913737",
"0.5950473",
"0.58204836",
"0.... | 0.738085 | 1 |
Metodo que le da un valor al atributo de input1. | public void setInput1(int input1) {
this.input1 = input1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getInput1() {\n return input1;\n }",
"public void setInput1(final String input1) {\n this.input1 = input1;\n }",
"public String getInput1() {\n return input1;\n }",
"public int input1(){\n int Input1 = Integer.parseInt(numerator1.getText());\n return Inp... | [
"0.7400656",
"0.7359631",
"0.73301864",
"0.68328035",
"0.66168135",
"0.660611",
"0.6545903",
"0.6212271",
"0.61757874",
"0.6120428",
"0.6065748",
"0.6031427",
"0.59643066",
"0.594905",
"0.5806244",
"0.57884055",
"0.57501423",
"0.5696265",
"0.56531924",
"0.56266457",
"0.561515... | 0.75052476 | 0 |
Metodo que le da un valor al atributo de input2. | public void setInput2(int input2) {
this.input2 = input2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getInput2() {\n return input2;\n }",
"public int getInput2() {\n return input2;\n }",
"public void setInput2(final String input2) {\n this.input2 = input2;\n }",
"public int getInput1() {\n return input1;\n }",
"public String getInput1() {\n retu... | [
"0.7575633",
"0.75192153",
"0.74649185",
"0.6755586",
"0.6743385",
"0.66186005",
"0.64568037",
"0.6389697",
"0.63140726",
"0.62128973",
"0.6020778",
"0.5968423",
"0.5961389",
"0.59296584",
"0.5899466",
"0.5849596",
"0.5849596",
"0.5822913",
"0.5758967",
"0.57237285",
"0.56378... | 0.7584492 | 0 |
Metodo para obtener el componente enlazado en el input 2. | public Componente getEntrada2() {
return Entrada2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override public Object getComponente(String componente){\n return getBlindaje(componente);\n }",
"public String getCoda2Component() {\n return coda2Component;\n }",
"Component getComponent() {\n/* 224 */ return this.component;\n/* */ }",
"public final int component1() {\n ... | [
"0.67288923",
"0.66998607",
"0.6524375",
"0.6423778",
"0.6097187",
"0.6061862",
"0.5979805",
"0.5979805",
"0.59502816",
"0.591346",
"0.5893973",
"0.5866774",
"0.569974",
"0.56995064",
"0.5689245",
"0.5656258",
"0.56484646",
"0.56116945",
"0.5591255",
"0.558524",
"0.55487955",... | 0.61096305 | 4 |
Metodo para obtener el componente enlazado en el input 1. | public Componente getEntrada1() {
return Entrada1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int component1() {\n return 0;\n }",
"@Override public Object getComponente(String componente){\n return getBlindaje(componente);\n }",
"Component getComponent() {\n/* 224 */ return this.component;\n/* */ }",
"public String getComponent() {\n return thi... | [
"0.69080216",
"0.65737903",
"0.65251714",
"0.6111951",
"0.60826576",
"0.60826576",
"0.59878665",
"0.59592104",
"0.5946021",
"0.5932717",
"0.5842894",
"0.5710091",
"0.57095945",
"0.56859493",
"0.56643325",
"0.56385845",
"0.56298316",
"0.55990875",
"0.5596201",
"0.5589752",
"0.... | 0.60589004 | 6 |
Metodo que retorna el atributo input. | public boolean isInput() {
return input;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Attributes getAttributes();",
"Input getObjetivo();",
"Attribute getAttribute();",
"String getAttribute();",
"java.lang.String getAttribute();",
"Pair<String, String> getAdditionalAttribute();",
"String attributeToGetter(String name);",
"public String getattribut() \n\t{\n\t\treturn attribut;\n\t}",
... | [
"0.63299173",
"0.6279621",
"0.6184549",
"0.61257255",
"0.6083126",
"0.59060913",
"0.5852017",
"0.58509666",
"0.5809546",
"0.5798827",
"0.5741381",
"0.56340796",
"0.5598461",
"0.55897176",
"0.5537575",
"0.55210865",
"0.5519919",
"0.549343",
"0.5491667",
"0.5491375",
"0.5489003... | 0.0 | -1 |
Metodo que sobreescribe el valor de input. | public void setInput(boolean input) {
this.input = input;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }",
"pro... | [
"0.682887",
"0.67793256",
"0.66174394",
"0.6408096",
"0.6331107",
"0.6311111",
"0.6265582",
"0.6264121",
"0.621745",
"0.61023265",
"0.609561",
"0.6062222",
"0.6012976",
"0.5987235",
"0.59867287",
"0.5962207",
"0.5962207",
"0.5962207",
"0.5962207",
"0.5962207",
"0.5962207",
... | 0.0 | -1 |
String que representa el tipo de componente que es. | public String getName() {
return Name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String componentTypeName();",
"String getTypeAsString();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String get... | [
"0.76602656",
"0.7117175",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.6837745",
"0.68280643",
"0.6718574",
"0.66758865",
"0.66265553",
"0.6625164",
"0.6625164",... | 0.0 | -1 |
Retorna el atributo ID. | public int getID() {
return ID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getAttrId() {\n return attrId;\n }",
"@XmlAttribute\n\tpublic Long getId() {\n\t\treturn id;\n\t}",
"public String getIdAttribute() {\n return idAttribute;\n }",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String g... | [
"0.7080711",
"0.7010405",
"0.700817",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
"0.69815546",
... | 0.0 | -1 |
Metodo para obtener el valor del output | public int getOutput() {
return Output;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getOutput();",
"String getOutput();",
"public TestOut getOutput() {\n\treturn(output);\n }",
"public String getOutput() {\n myLock.lock();\n try {\n return myOutput.toString();\n }\n finally {\n myLock.unlock();\n }\n }",
"publ... | [
"0.7927441",
"0.7788283",
"0.7591977",
"0.7510022",
"0.7472421",
"0.73761654",
"0.73072505",
"0.7235558",
"0.7064722",
"0.70342696",
"0.69497925",
"0.6944343",
"0.68605614",
"0.68547326",
"0.68528664",
"0.68205756",
"0.68019885",
"0.67823696",
"0.671851",
"0.6714743",
"0.6667... | 0.71972686 | 8 |
Metodo para establecer un valor en el atributo output. | public void setOutput(int output) {
Output = output;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String toString() {\n\t\treturn getValor();\r\n\t}",
"@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}",
"@Override\n public String getValue() {\n return this.value.toString();\n }",
"public String ge... | [
"0.66108197",
"0.6524551",
"0.64921653",
"0.6471087",
"0.6463488",
"0.64602995",
"0.645958",
"0.6422156",
"0.6422123",
"0.6402911",
"0.63871247",
"0.6368558",
"0.6355588",
"0.63484013",
"0.63484013",
"0.63359445",
"0.6311681",
"0.6301206",
"0.62884456",
"0.6271626",
"0.626354... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.