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 |
|---|---|---|---|---|---|---|
C.Reg08 A forename must be given | @Test
public void testMissingForename() {
for (String forename : new String[]{"", null}) {
registerUser(username, password, password, email, email, forename, surname, null);
assertNull(userService.getUser(username));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setFistName(String fname) {\n\t\tif (fname == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (fname.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.first_name =... | [
"0.57361937",
"0.564881",
"0.55844253",
"0.55647904",
"0.5518714",
"0.5518714",
"0.5517703",
"0.55067146",
"0.54844904",
"0.54332787",
"0.541417",
"0.5395655",
"0.5383769",
"0.534217",
"0.53311294",
"0.531469",
"0.53049606",
"0.52786607",
"0.5272784",
"0.5272015",
"0.5241169"... | 0.55029523 | 8 |
C.Reg09 A surname must be given | @Test
public void testMissingSurname() {
for (String surname : new String[]{"", null}) {
registerUser(username, password, password, email, email, forename, surname, null);
assertNull(userService.getUser(username));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getSurname();",
"String getSurname();",
"boolean hasSurname();",
"protected void validateFirstName(){\n Boolean firstName = Pattern.matches(\"[A-Z][a-z]{2,}\",getFirstName());\n System.out.println(nameResult(firstName));\n }",
"protected void validateLastName(){\n ... | [
"0.7699305",
"0.7551685",
"0.73862314",
"0.7201791",
"0.7105597",
"0.70281345",
"0.7026656",
"0.68602645",
"0.6806313",
"0.6720622",
"0.6685814",
"0.6591604",
"0.65736717",
"0.65713406",
"0.65713406",
"0.65713406",
"0.65713406",
"0.65666753",
"0.6536755",
"0.6480519",
"0.6479... | 0.62980044 | 30 |
C.Reg10 A user should be able to register denoting their birth date | @Test
public void testBirthDate() {
registerUser(username, password, password, email, email, forename, surname, "01/01/1990");
assertNotNull(userService.getUser(username));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Date getBirthDate();",
"abstract void birthDateValidity();",
"public Date getBirthDate();",
"@Test\n public void testInvalidBirthDate() {\n registerUser(username, password, password, email, email, forename, surname, \"01011990\");\n assertNull(userService.getUser(username));\n }",
"publ... | [
"0.7068159",
"0.69445086",
"0.6881475",
"0.68718827",
"0.68335617",
"0.68228996",
"0.67085314",
"0.6700526",
"0.6700526",
"0.663311",
"0.66238725",
"0.661786",
"0.661786",
"0.66101336",
"0.65965",
"0.65878725",
"0.65874773",
"0.6570848",
"0.65648955",
"0.6564494",
"0.6563909"... | 0.72148424 | 0 |
C.Reg11 A user should be able to register not denoting their birth date | @Test
public void testMissingBirthDate() {
registerUser(username, password, password, email, email, forename, surname, null);
assertNotNull(userService.getUser(username));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testInvalidBirthDate() {\n registerUser(username, password, password, email, email, forename, surname, \"01011990\");\n assertNull(userService.getUser(username));\n }",
"abstract void birthDateValidity();",
"@Test\n public void testBirthDate() {\n registerUser(... | [
"0.68710285",
"0.67700976",
"0.66741127",
"0.6308438",
"0.6205644",
"0.6202979",
"0.62012273",
"0.61948794",
"0.6060673",
"0.6059544",
"0.6059544",
"0.6047423",
"0.60411644",
"0.601347",
"0.5994121",
"0.59933686",
"0.5983555",
"0.5956615",
"0.5956615",
"0.5944767",
"0.5938290... | 0.64929473 | 3 |
C.Reg12 A birth date must be a valid date | @Test
public void testInvalidBirthDate() {
registerUser(username, password, password, email, email, forename, surname, "01011990");
assertNull(userService.getUser(username));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n format.parse(date_of_birth);\n } catch (ParseException exception) {\n System.out.println(\"Invalid Input!\");\n return true;\n }\n ... | [
"0.7858245",
"0.7727952",
"0.73495835",
"0.728637",
"0.71810526",
"0.71513844",
"0.71263725",
"0.7009319",
"0.6803831",
"0.6772367",
"0.6754594",
"0.6748183",
"0.6744418",
"0.6641726",
"0.65704626",
"0.6531393",
"0.65220606",
"0.6517144",
"0.64992577",
"0.64968795",
"0.647901... | 0.70030046 | 8 |
C.Reg14 The user should be notified if their registration has been successfully submitted | @Test
public void testUserNotifiedOnRegistrationSubmission() throws Exception {
ResponseEntity<String> response = registerUser(username, password);
assertNotNull(userService.getUser(username));
assertEquals(successUrl, response.getHeaders().get("Location").get(0));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void confirmRegistration(RegistrationData d) {}",
"private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgno... | [
"0.7641318",
"0.7417356",
"0.72241867",
"0.7211431",
"0.6981077",
"0.689751",
"0.68646795",
"0.6841043",
"0.6833489",
"0.6826733",
"0.68185097",
"0.6818426",
"0.67955965",
"0.67579377",
"0.67507505",
"0.6741109",
"0.6700361",
"0.66943955",
"0.6683992",
"0.6609455",
"0.6580047... | 0.0 | -1 |
C.Reg16 The confirmation email should contain a link that activates the user account | @Test
public void testConfirmationEmail() throws Exception {
User user = new User(username, password);
user = userService.save(user);
String token = registerController.generateUserToken(user);
assert !user.isEnabled();
String response = restTemplate.getForObject(url + "/toke... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void activateUser(String email, String activationToken);",
"private String sendConfirmationEmail(UserEntity user) {\n try {\n Properties emailAccountProperties = new Properties();\n try {\n emailAccountProperties.load(getClass().getResourceAsStream(\"/registration.prop... | [
"0.7005122",
"0.69045013",
"0.6698793",
"0.6353074",
"0.6327735",
"0.6185398",
"0.6152515",
"0.6116181",
"0.603224",
"0.60305107",
"0.60269165",
"0.6018643",
"0.5993788",
"0.59925693",
"0.59462905",
"0.5931452",
"0.5920418",
"0.5893373",
"0.58892936",
"0.5878088",
"0.58414274... | 0.5381807 | 78 |
Construct an empty list | public int size() {
return headReference == null ? 0 : headReference.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static <T> List<T> createList() {\n\t\treturn Collections.emptyList();\n\t}",
"public void makeEmpty() {\r\n\t\tArrays.fill(list, -1);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"public List()\n... | [
"0.78212774",
"0.7214653",
"0.7009123",
"0.7004504",
"0.6977844",
"0.69731045",
"0.695063",
"0.6899796",
"0.6891791",
"0.6878837",
"0.6869469",
"0.6850948",
"0.6835927",
"0.68334335",
"0.6775636",
"0.6773693",
"0.67661047",
"0.6749901",
"0.67474294",
"0.67458093",
"0.6744689"... | 0.0 | -1 |
Created by Gao Yuan on 2015/8/22. | public interface ISecurityVerifier {
public static final String COMPONENT_NAME = "ISecurityVerifier";
Access getAllPossibleAccess(SecurityAccessor accessor, String resourceEntity, Access mask);
boolean canAccess(SecurityAccessor accessor, String resourceEntity, Access access);
boolean canAccess(Secur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpubli... | [
"0.61987686",
"0.60768455",
"0.6040314",
"0.60001004",
"0.5982635",
"0.59792626",
"0.59792626",
"0.5966816",
"0.58915615",
"0.588227",
"0.58604443",
"0.5855946",
"0.58558595",
"0.5841195",
"0.58141",
"0.5811733",
"0.5790185",
"0.5761768",
"0.571643",
"0.57125324",
"0.5695284"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
init();
} | {
"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 |
/getSumFrom1toX this method should calculate the sum the numbers from 1 to the number passed | public static int getSumFrom1toX(int num ){
int sum = 0;
for (int x=1; x<=num; x++){
sum+= x;
}
return sum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int getSumFrom1toX (int x){\n int sum = 0 ;\n for (int i = 1; i <=x ; i++) {\n sum += i ;\n\n }\n return sum ;\n\n }",
"public static int obtenerSumauno(int x){\n // dclaracion de variable\n int suma = 0;\n // ciclo usado para la suma c... | [
"0.808174",
"0.72404873",
"0.69546086",
"0.67850095",
"0.67414093",
"0.6427093",
"0.6370629",
"0.63071907",
"0.6272057",
"0.6272057",
"0.62185574",
"0.61499196",
"0.6111133",
"0.60850054",
"0.6042967",
"0.6037487",
"0.60364294",
"0.6009582",
"0.6008597",
"0.5992204",
"0.59551... | 0.80086434 | 1 |
/ build_GOT_Email This method should build email using user's first and last name | public static String build_GOT_Email(String fName, String lName){
//String email = fName.substring(0,1)+lName+"@NightWatch.com";
//String email = fName.charAt(0)+lName+"@NightWatch.com";
//return email;
return fName.charAt(0)+lName+"@NightWatch.com";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String build_GOT_Email(String firstName, String lastName){\n String email = firstName.charAt(0)+lastName+\"@NightWatch.com\";\n return email;\n }",
"public static String buildEmail (String first, String last){\n\n String firstNameFixed = \"\";\n firstNameFixed+=firstN... | [
"0.7826288",
"0.7455601",
"0.7387285",
"0.6509246",
"0.6304763",
"0.6272814",
"0.6272814",
"0.6272814",
"0.6272814",
"0.6272814",
"0.6272814",
"0.61900574",
"0.6166977",
"0.58499384",
"0.5833137",
"0.5825547",
"0.5815707",
"0.5815707",
"0.5815707",
"0.5815707",
"0.5815707",
... | 0.7149208 | 3 |
Created by zbsz on 2017/6/9. | public interface IFingerPrintView {
void onSetImg(Bitmap bmp);
void onText(String msg);
void onFpSucc(String msg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r... | [
"0.6106053",
"0.594521",
"0.58975816",
"0.58557403",
"0.58557403",
"0.5837246",
"0.5754515",
"0.57414305",
"0.5737717",
"0.5714668",
"0.5673735",
"0.56708246",
"0.56705695",
"0.56687146",
"0.5665761",
"0.5662702",
"0.56527776",
"0.565138",
"0.5644952",
"0.563631",
"0.5615575"... | 0.0 | -1 |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static MaintainDeliveryRequestFragment newInstance(String userId, String mode) {
MaintainDeliveryRequestFragment fragment = new MaintainDeliveryRequestFragment();
Bundle args = new Bundle();
args.putString(ARG_USERID, userId);
args.putString(ARG_MODE, mode);
fragment.setAr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n ... | [
"0.7259329",
"0.72331375",
"0.71140355",
"0.69909847",
"0.69902235",
"0.6834592",
"0.683074",
"0.68134046",
"0.6801526",
"0.6801054",
"0.67653185",
"0.6739714",
"0.6739714",
"0.6727412",
"0.6717231",
"0.6705855",
"0.6692112",
"0.6691661",
"0.66869426",
"0.66606814",
"0.664618... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_maintain_delivery_request, container, false);
//setup reference to UI Objects and setup listener for buttons
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information. | public interface OnFragmentInteractionListener {
void onFinishCreatingRequest();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public int... | [
"0.73250246",
"0.7208194",
"0.7135128",
"0.7124374",
"0.7122289",
"0.7015256",
"0.6976415",
"0.6976415",
"0.6976415",
"0.697415",
"0.69679785",
"0.69658804",
"0.6961106",
"0.6953952",
"0.6943612",
"0.69336414",
"0.6929252",
"0.69277585",
"0.692306",
"0.6909864",
"0.69028807",... | 0.67864025 | 37 |
Create a new demo | public AbstractDemo(String title) {
this.title = title;
pressed = new HashSet<Integer>();
foreground = Color.black;
background = Color.white;
bodyColor = Color.black;
rayColor = Color.red;
BruteForce bf = new BruteForce();
ConfigurableBodyOverlapper overl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void newDemo() {\r\n \t\t\r\n \t\tString date = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\").format(new Date());\r\n \t\tthis.fileName = this.demoFolder + this.map.replace(\".xml\", \"\") + \"_\" + date + \".r2d\";\r\n \t\ttry {\r\n \t\t\tthis.fos = (FileOutputStream)this.fileIO.writeFile(this.fileName);\r... | [
"0.67341244",
"0.6724742",
"0.6151388",
"0.6066514",
"0.6012713",
"0.6002509",
"0.59882325",
"0.5959346",
"0.58323896",
"0.58041066",
"0.5795907",
"0.57909125",
"0.57484233",
"0.5738002",
"0.57379156",
"0.57364327",
"0.5730244",
"0.57293427",
"0.5670682",
"0.56607425",
"0.565... | 0.0 | -1 |
Gets the space (already configured for overlap and rays). | protected Space getSpace() {
return space;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DSpace getSpace();",
"public Point getSpace(){\r\n return this.space;\r\n }",
"public Space getSpace() {\n return space;\n }",
"public float getSpace() {\r\n return space;\r\n }",
"public double getSpace() {\n\treturn space;\n }",
"public static JavaSpace05 getSpace() {\n... | [
"0.7954839",
"0.7416969",
"0.73610526",
"0.70815516",
"0.69599676",
"0.69030905",
"0.68653446",
"0.6728522",
"0.6693602",
"0.6599521",
"0.63968366",
"0.6215924",
"0.61209506",
"0.61161476",
"0.6081448",
"0.602002",
"0.59496737",
"0.5904221",
"0.58763516",
"0.58682597",
"0.584... | 0.73178625 | 3 |
Retrieve the title of the demo | public String getTitle() {
return title;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String title();",
"String title();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String ge... | [
"0.7885867",
"0.7885867",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76901644",
"0.76703674",
"0.76703674",
"0.76703674",
... | 0.0 | -1 |
Called when a key is released. | protected void keyHit(int keyCode) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void keyReleased(KeyEvent key) {\n gsm.keyReleased(key.getKeyCode());\n }",
"@Override\n\tpublic void keyReleased(int k) {\n\n\t}",
"public void keyReleased() {\t\t\r\n \t\t\r\n \t\tkeys[keyCode] = false;\r\n \t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent key) {\r\n\t\... | [
"0.81566626",
"0.81326836",
"0.79397255",
"0.7917568",
"0.7907643",
"0.7871763",
"0.78680515",
"0.7854274",
"0.78408027",
"0.7811016",
"0.7811016",
"0.78051513",
"0.78051513",
"0.78051513",
"0.78051513",
"0.78051513",
"0.78051513",
"0.78051513",
"0.7795908",
"0.7795908",
"0.7... | 0.0 | -1 |
Start the simulation running | public void start() {
initGUI();
initDemo();
float target = 1000 / 60.0f;
float frameAverage = target;
long lastFrame = System.currentTimeMillis();
float yield = 10000f;
float damping = 0.1f;
while (running) {
// adaptive timing loop from Mas... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startSimulation();",
"public void start() {\n notifyStart();\n simloop();\n notifyStop();\n }",
"public void start(){\n\t\t//System.out.println(\"SimulationTime.start\");\n\t\tthis.running\t\t\t= true;\n\t\tthis.pause\t\t\t\t= false;\n\t}",
"public void startSimulation(){\... | [
"0.8298504",
"0.79269475",
"0.7918094",
"0.74981236",
"0.74345666",
"0.72812486",
"0.7271595",
"0.7205596",
"0.7139991",
"0.71319216",
"0.70677936",
"0.70507896",
"0.7007114",
"0.6954787",
"0.68361455",
"0.67832875",
"0.67684954",
"0.67652863",
"0.6760685",
"0.67200065",
"0.6... | 0.64628863 | 61 |
Demo customisable GUI render | protected void renderGUI(Graphics2D g) {
g.setColor(foreground);
g.drawString("ESC - Exit", 15, 430);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onRenderGui(RenderArguments arguments);",
"private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\tLevelEditor le = new LevelEditor();\n\t}",
"public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n\n createAndShowG... | [
"0.69794184",
"0.6751023",
"0.67389184",
"0.669709",
"0.6692281",
"0.664908",
"0.6636192",
"0.6620477",
"0.66143703",
"0.6584928",
"0.65496874",
"0.6487521",
"0.64774096",
"0.6465392",
"0.6461605",
"0.644844",
"0.64181435",
"0.64174014",
"0.6415532",
"0.6408598",
"0.64050096"... | 0.0 | -1 |
Draw a line into the demo | protected void drawLineBody(Graphics2D g, Body body, Line line) {
g.setColor(bodyColor);
ROVector2f[] verts = line.getVertices();
g.drawLine(
(int)verts[0].getX(),
(int)verts[0].getY(),
(int)verts[1].getX(),
(int)verts[1].getY());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void drawLine(float x, float y, float x2, float y2, float width, float u, float v, float texW, float texH) {\n throw new NotImplementedException(); // TODO Implement\n }",
"public void drawLine(int x, int y, int x2, int y2, int color);",
"public void drawLine(float[] line) {\n\t\tparent.line(l... | [
"0.7581963",
"0.7345342",
"0.7322442",
"0.7316437",
"0.7283681",
"0.7195594",
"0.7128319",
"0.71223164",
"0.7007562",
"0.69608897",
"0.6954981",
"0.69355565",
"0.6935093",
"0.68789685",
"0.6836608",
"0.68347704",
"0.6815199",
"0.676553",
"0.675021",
"0.6749691",
"0.6730221",
... | 0.6279186 | 62 |
Name of this element that generator uses. | public String getGName()
{
return generatorName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}",
"@Override\n public String getName() {\n return name();\n }",
"public String name() {\n this.use();\n\n return name;\n }",
"@Override\r\n\tprotected String getName() {\n\t\treturn NAME;\r\n\t}",
"@Overr... | [
"0.75344944",
"0.75225264",
"0.7512193",
"0.7471153",
"0.745341",
"0.7437818",
"0.74226975",
"0.7369087",
"0.7362245",
"0.73568904",
"0.73448116",
"0.73448116",
"0.7343878",
"0.7341637",
"0.7332018",
"0.7326277",
"0.7325094",
"0.7325094",
"0.73154616",
"0.7313209",
"0.7313209... | 0.0 | -1 |
Sets the name of this element that generator uses. | public void setGName(String generatorName)
{
this.generatorName = generatorName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setName(String name) {\n this._name = name;\n }",
"public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name... | [
"0.7594354",
"0.7590935",
"0.7590593",
"0.7582813",
"0.75691384",
"0.75691384",
"0.75681025",
"0.75681025",
"0.75510204",
"0.7534168",
"0.7530042",
"0.7515804",
"0.7515804",
"0.7515804",
"0.751091",
"0.7509245",
"0.75018656",
"0.75018656",
"0.75018656",
"0.7494676",
"0.749467... | 0.0 | -1 |
Sets the encoding of the provided form to UTF8, see for details. | public void addUtf8Charset(final Form form) {
FormElement.as(form.getElement()).setAcceptCharset("UTF-8");
final Hidden field = new Hidden();
field.setName("utf8char");
field.setValue("\u8482");
form.add(field);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setCharacterEncoding(String arg0) {\n\n }",
"public void setEncoding(String e) {\n\t\tthis.encoding = e;\n\t}",
"public void setEncoding (String encoding) {\n this.encoding = encoding;\n }",
"public void setEncoding(String encoding) {\r\n this.encoding = encoding;\r\n ... | [
"0.70636505",
"0.678441",
"0.67341614",
"0.6520358",
"0.6492588",
"0.6492588",
"0.6492588",
"0.6410615",
"0.6401564",
"0.63979053",
"0.63487613",
"0.6311029",
"0.6218237",
"0.6199833",
"0.61421365",
"0.61173296",
"0.60688233",
"0.6014917",
"0.5982307",
"0.587319",
"0.58522457... | 0.7001476 | 1 |
/ access modifiers changed from: protected / renamed from: a | public <T> T mo2521a(MetadataField<T> metadataField) {
return metadataField.mo2717c(this.f379nE, this.f381qU, this.f380nH);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void ... | [
"0.75464964",
"0.73093235",
"0.71735907",
"0.692263",
"0.68435764",
"0.6787232",
"0.67364866",
"0.6659923",
"0.6635336",
"0.6635336",
"0.65571475",
"0.65408033",
"0.65371394",
"0.6500136",
"0.6494878",
"0.6494545",
"0.6485399",
"0.6476603",
"0.64670885",
"0.6403744",
"0.63941... | 0.0 | -1 |
/ renamed from: cK | public Metadata freeze() {
MetadataBundle cX = MetadataBundle.m557cX();
for (MetadataField a : C0249c.m575cW()) {
a.mo2715a(this.f379nE, cX, this.f381qU, this.f380nH);
}
return new C0180b(cX);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void kk12() {\n\n\t}",
"public void func_70295_k_() {}",
"@Override\n\tpublic void KYCMandate() {\n\t\t\n\t}",
"public boolean k_()\r\n/* 450: */ {\r\n/* 451:464 */ return false;\r\n/* 452: */ }",
"private static void cajas() {\n\t\t\n\t}",
"public void mo21786K() {\n }",
"@Ove... | [
"0.71249956",
"0.6418828",
"0.6157778",
"0.6113327",
"0.60654926",
"0.6008948",
"0.59595776",
"0.59212637",
"0.590179",
"0.58810395",
"0.5880694",
"0.58655196",
"0.583764",
"0.5831816",
"0.5792939",
"0.57632774",
"0.57472837",
"0.5708392",
"0.5690201",
"0.5683454",
"0.5644428... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public StoneBalanceExample() {
oredCriteria = new ArrayList<Criteria>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6257401",
"0.6254438",
"0.6161535",
"0.6054013",
"0.60082215",
"0.5993809",
"0.5983186",
"0.5981287",
"0.5967813",
"0.5967191",
"0.5949743",
"0.59459656",
"0.59459656",
"0.59297687",
"0.5890412",
"0.587308",
"0.5872259",
"0.584036",
"0.5810854",
"0.57962006",
"0.579471",
... | 0.55804604 | 57 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6256659",
"0.6253897",
"0.6161887",
"0.6052792",
"0.6007962",
"0.5992738",
"0.598382",
"0.59808713",
"0.59671104",
"0.59655404",
"0.59493804",
"0.5944475",
"0.5944475",
"0.5929044",
"0.58891714",
"0.58717656",
"0.5871257",
"0.5839201",
"0.58093864",
"0.5794495",
"0.5794373... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public String getOrderByClause() {
return orderByClause;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6256659",
"0.6253897",
"0.6161887",
"0.6052792",
"0.6007962",
"0.5992738",
"0.598382",
"0.59808713",
"0.59671104",
"0.59655404",
"0.59493804",
"0.5944475",
"0.5944475",
"0.5929044",
"0.58891714",
"0.58717656",
"0.5871257",
"0.5839201",
"0.58093864",
"0.5794495",
"0.5794373... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public void setDistinct(boolean distinct) {
this.distinct = distinct;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6254246",
"0.6251309",
"0.61570585",
"0.60492665",
"0.60057724",
"0.5992073",
"0.5980547",
"0.5977196",
"0.59642655",
"0.5963503",
"0.59486586",
"0.5940858",
"0.5940858",
"0.59254086",
"0.58854914",
"0.5869225",
"0.58683485",
"0.5837839",
"0.5806156",
"0.5791228",
"0.57907... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public boolean isDistinct() {
return distinct;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6257401",
"0.6254438",
"0.6161535",
"0.6054013",
"0.60082215",
"0.5993809",
"0.5983186",
"0.5981287",
"0.5967813",
"0.5967191",
"0.5949743",
"0.59459656",
"0.59459656",
"0.59297687",
"0.5890412",
"0.587308",
"0.5872259",
"0.584036",
"0.5810854",
"0.57962006",
"0.579471",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public List<Criteria> getOredCriteria() {
return oredCriteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6256659",
"0.6253897",
"0.6161887",
"0.6052792",
"0.6007962",
"0.5992738",
"0.598382",
"0.59808713",
"0.59671104",
"0.59655404",
"0.59493804",
"0.5944475",
"0.5944475",
"0.5929044",
"0.58891714",
"0.58717656",
"0.5871257",
"0.5839201",
"0.58093864",
"0.5794495",
"0.5794373... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public void or(Criteria criteria) {
oredCriteria.add(criteria);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6256659",
"0.6253897",
"0.6161887",
"0.6052792",
"0.6007962",
"0.5992738",
"0.598382",
"0.59808713",
"0.59671104",
"0.59655404",
"0.59493804",
"0.5944475",
"0.5944475",
"0.5929044",
"0.58891714",
"0.58717656",
"0.5871257",
"0.5839201",
"0.58093864",
"0.5794495",
"0.5794373... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6254246",
"0.6251309",
"0.61570585",
"0.60492665",
"0.60057724",
"0.5992073",
"0.5980547",
"0.5977196",
"0.59642655",
"0.5963503",
"0.59486586",
"0.5940858",
"0.5940858",
"0.59254086",
"0.58854914",
"0.5869225",
"0.58683485",
"0.5837839",
"0.5806156",
"0.5791228",
"0.57907... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6257401",
"0.6254438",
"0.6161535",
"0.6054013",
"0.60082215",
"0.5993809",
"0.5983186",
"0.5981287",
"0.5967813",
"0.5967191",
"0.5949743",
"0.59459656",
"0.59459656",
"0.59297687",
"0.5890412",
"0.587308",
"0.5872259",
"0.584036",
"0.5810854",
"0.57962006",
"0.579471",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6256659",
"0.6253897",
"0.6161887",
"0.6052792",
"0.6007962",
"0.5992738",
"0.598382",
"0.59808713",
"0.59671104",
"0.59655404",
"0.59493804",
"0.5944475",
"0.5944475",
"0.5929044",
"0.58891714",
"0.58717656",
"0.5871257",
"0.5839201",
"0.58093864",
"0.5794495",
"0.5794373... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table stone_balance | public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance... | [
"0.6256659",
"0.6253897",
"0.6161887",
"0.6052792",
"0.6007962",
"0.5992738",
"0.598382",
"0.59808713",
"0.59671104",
"0.59655404",
"0.59493804",
"0.5944475",
"0.5944475",
"0.5929044",
"0.58891714",
"0.58717656",
"0.5871257",
"0.5839201",
"0.58093864",
"0.5794495",
"0.5794373... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int apply(int[][] region) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getSize() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Initializes user ID, number of attempts, tries, deaths, and jams for a player of Bang. | public BangPlayer(long userId, int numTries, int numDeaths, int numJams) {
super(userId);
attempts = numTries;
deaths = numDeaths;
jams = numJams;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void initializeGame()\n {\n minSecret = 1;\n maxSecret = 100;\n secretNumber = newSecretNumber(minSecret,maxSecret);\n guessesLeft = 10;\n guessRange = 10;\n bestGuess = maxSecret + 1;\n extraGuesses = 5;\n isPlaying =... | [
"0.61264557",
"0.5917874",
"0.57214576",
"0.55069983",
"0.5491222",
"0.54345846",
"0.54280686",
"0.5387615",
"0.53151053",
"0.5285839",
"0.52634084",
"0.5224621",
"0.5190973",
"0.5164292",
"0.51462114",
"0.5143121",
"0.5135888",
"0.51355636",
"0.5121788",
"0.5117831",
"0.5087... | 0.80800366 | 0 |
Returns the number of times the user played Bang. | public int getAttempts() {
return attempts;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic long countchitietdonhang() {\n\t\treturn chiTietDonHangRepository.countchitietdonhang();\n\t}",
"public int getNumGuesses() {\n\t\treturn this.guessList.length;\n\t}",
"int getTotalBotCount() {\n int t = 0;\n\n for (Integer i : m_botTypes.values())\n t += i;\n\n ... | [
"0.59671193",
"0.5752294",
"0.57061654",
"0.56681204",
"0.5655155",
"0.5632641",
"0.56010664",
"0.55700296",
"0.55700296",
"0.5555746",
"0.55477613",
"0.5538558",
"0.55307",
"0.5515645",
"0.55110365",
"0.550374",
"0.5492669",
"0.54862875",
"0.5448714",
"0.5428054",
"0.5378629... | 0.5016725 | 91 |
Returns the number of times the user died in Bang. | public int getDeaths() {
return deaths;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumDeaths() {\n\t\treturn this.numDeaths;\n\t}",
"public int getDaysSinceDeath() {\n return daysSinceDeath;\n }",
"public String getDeadCount() {\n return deadCount;\n }",
"public int getDeaths()\n\t{\n \treturn currentDeath;\n\t}",
"public int getBadCount() {\n... | [
"0.61171377",
"0.6037423",
"0.58753014",
"0.5829067",
"0.58245325",
"0.57667625",
"0.5753741",
"0.5741983",
"0.56065714",
"0.5553235",
"0.55499",
"0.55182314",
"0.55079705",
"0.5492263",
"0.5397378",
"0.5397282",
"0.53961074",
"0.5370308",
"0.53554446",
"0.5353457",
"0.534591... | 0.59248686 | 2 |
Returns the number of times the user jammed the gun in Bang. | public int getJams() {
return jams;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int haveGun() {\n\t\treturn 108;\n\t}",
"public int hamming() {\n\t\treturn hamming;\n\t}",
"public int hamming() {\n return ham;\n }",
"public int hamming() {\n return hamming;\n }",
"public int getNumberGunsUsedInShooting(Shooting shooting) throws SQLException {\n int... | [
"0.63877285",
"0.6034218",
"0.6027851",
"0.6003246",
"0.59571207",
"0.5938666",
"0.58499736",
"0.5789362",
"0.5653386",
"0.5609455",
"0.55264807",
"0.5524934",
"0.55236083",
"0.55125934",
"0.5480633",
"0.54677314",
"0.5452324",
"0.5431374",
"0.54266834",
"0.5414355",
"0.54052... | 0.0 | -1 |
Returns the Bang survival rate of the user. | public double getSurvivalRate() {
return 100 - (Math.round((double) deaths / (double) attempts * 100d));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getEnemyGunFireRate()\n\t{\n\t\tfloat rate = 115 - (GameState._playerScore * .2f);\n\t\tif (rate < 20)\n\t\t{\n\t\t\trate = 20;\n\t\t}\n\t\treturn (int)rate;\n\t}",
"public double getStaySuccessRate() {\n if (total_stayed == 0)\n return 0;\n return (double) won_stayed / total_stayed * 100;... | [
"0.62743145",
"0.5989727",
"0.59682417",
"0.59251046",
"0.5810568",
"0.56113666",
"0.551745",
"0.5461067",
"0.5416179",
"0.5377624",
"0.53062284",
"0.53024787",
"0.5293829",
"0.52660614",
"0.5258487",
"0.5255664",
"0.525033",
"0.5247273",
"0.5245078",
"0.5243867",
"0.5223618"... | 0.7351278 | 0 |
Test of shortestPathEstacoes method, of class GraphAlgorithms. | @Test
public void testShortestPathEstacoes() {
completeMap = new Graph(false);
incompleteMap = new Graph(false);
completeMap.insertVertex(porto);
Company.getParkRegistry().getParkMap().put(porto, portoL);
completeMap.insertVertex(braga);
Company.getParkRegistry().get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test public void testPublic14() {\n Graph<String> graph= TestGraphs.testGraph2();\n List<String> shortestPath= new ArrayList<String>();\n\n assertEquals(1, graph.Dijkstra(\"apple\", \"banana\", shortestPath));\n assertEquals(\"apple banana\", TestGraphs.listToString(shortestPath));\n\n assertEquals... | [
"0.7208018",
"0.7186748",
"0.7085574",
"0.69262093",
"0.68303096",
"0.67900336",
"0.6753441",
"0.6748905",
"0.6742554",
"0.66635996",
"0.659788",
"0.65816045",
"0.6572075",
"0.6531801",
"0.6501777",
"0.6411482",
"0.6334679",
"0.63210416",
"0.62895226",
"0.62394345",
"0.623118... | 0.68892205 | 4 |
[END on_start_check_user] [START onactivityresult] | @Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
Log.d("check", "in onActivityResult");
// Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...);
if (requestCode... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onSuccess(@AttentionSuccessCodes int result, long timestamp) {\n if (!userState.mCurrentAttentionCheck.mIsFulfilled) {\n callbackInternal.onSuccess(result, timestamp);\n userState.mCurrentAttentionCheck.mIsFulfilled = true;\n ... | [
"0.5905918",
"0.5890543",
"0.58271825",
"0.58027005",
"0.5797931",
"0.579471",
"0.57450676",
"0.5725053",
"0.5669895",
"0.5660169",
"0.56567645",
"0.56372434",
"0.5606239",
"0.56028324",
"0.5597441",
"0.5588796",
"0.5564296",
"0.555388",
"0.55519533",
"0.5532067",
"0.553032",... | 0.0 | -1 |
[END onactivityresult] [START auth_with_google] | private void firebaseAuthWithGoogle(GoogleSignInAccount acct) {
Log.d(TAG, "firebaseAuthWithGoogle:" + acct.getId());
// [START_EXCLUDE silent]
showProgressDialog();
// [END_EXCLUDE]
AuthCredential credential = GoogleAuthProvider.getCredential(acct.getIdToken(), null);
m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void signInWithGoogle() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, ConstantValue.GOOGLE_SIGN_IN);\n }",
"public final void signInWithGoogle() {\n ActivityResult.startGoogleLogin(activity, googleApiClient);\n }",
"pr... | [
"0.7153405",
"0.6980162",
"0.69776356",
"0.69698954",
"0.69519305",
"0.69465184",
"0.692313",
"0.6757498",
"0.6751792",
"0.670028",
"0.6586455",
"0.6555029",
"0.6529486",
"0.6503771",
"0.65020305",
"0.6407122",
"0.6401328",
"0.6375363",
"0.63712573",
"0.6369708",
"0.63486856"... | 0.59648037 | 46 |
[END auth_with_google] [START signin] | private void signIn() {
Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);
startActivityForResult(signInIntent, RC_SIGN_IN);
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void signInWithGoogle() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, ConstantValue.GOOGLE_SIGN_IN);\n }",
"private void signInWithGoogle() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n... | [
"0.7785888",
"0.75681806",
"0.75617373",
"0.75269616",
"0.7520809",
"0.75104624",
"0.7377567",
"0.7339498",
"0.72633374",
"0.72633374",
"0.72633374",
"0.7237999",
"0.723239",
"0.723239",
"0.723239",
"0.723239",
"0.7215158",
"0.71908486",
"0.716748",
"0.71637326",
"0.68581784"... | 0.72089493 | 17 |
this method will be running on UI thread pdLoading.dismiss(); | @Override
protected void onPostExecute(String result) {
List<DataPlant> data = new ArrayList<>();
if (!result.equals("failed")) {
try {
JSONArray jArray = new JSONArray(result);
JSONObject user = jArray.getJSONObject(0);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void dismissProgressLoading() {\n if (progressDialog != null) {\n progressDialog.dismiss();\n }\n }",
"protected void dismissLoading()\n {\n progressBar.dismiss();\n }",
"@Override\n public void hideLoading() {\n if (progressDialog!=null && progressDialog.isSh... | [
"0.7880525",
"0.7809502",
"0.77320045",
"0.7164138",
"0.7132295",
"0.7132295",
"0.7041559",
"0.70284325",
"0.7024391",
"0.7016442",
"0.7006063",
"0.6963137",
"0.69513506",
"0.69509614",
"0.6942039",
"0.6939181",
"0.69222635",
"0.6907603",
"0.69021255",
"0.69000715",
"0.690007... | 0.0 | -1 |
Loads a car to the Ferry | public void load(Car c,int x,int y){
load.load(c,x,y);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadCarListings() {\r\n try {\r\n cars = Reader.readCars(new File(CARLISTINGS_FILE));\r\n } catch (IOException e) {\r\n cars = new Cars();\r\n }\r\n }",
"public static void loadcars() {\n Cars xx = new Cars();\n System.out.println(\"Load c... | [
"0.70054096",
"0.6579211",
"0.65090704",
"0.6258298",
"0.6019164",
"0.5994747",
"0.5905497",
"0.5856855",
"0.5839447",
"0.57950693",
"0.5772358",
"0.56232",
"0.56106156",
"0.56019634",
"0.55992895",
"0.55788887",
"0.5574516",
"0.5564074",
"0.55545354",
"0.55545354",
"0.554295... | 0.68462306 | 1 |
Unloads a car from the Ferry FIFO | public void unload(){
load.unloadFirst();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void btnUnparkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUnparkActionPerformed\n if(CbCarList.getSelectedItem() == null){\n alertWindow.output(\"There are no cars to unpark.\");\n } else { \n Car thisCar = (Car) CbCarList.getSelectedItem();\n ... | [
"0.6115237",
"0.5994611",
"0.59937245",
"0.59741724",
"0.58184385",
"0.5809943",
"0.57852864",
"0.57673424",
"0.57471",
"0.56747156",
"0.56673586",
"0.56222796",
"0.5573672",
"0.5573334",
"0.5551977",
"0.5550091",
"0.5518593",
"0.5502914",
"0.5467924",
"0.54580134",
"0.542394... | 0.53429323 | 29 |
Moves the car transporter and updates the coordinates of the cars inside | public void move(){
super.move();
load.updateCoordinates(this.x,this.y);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void moveEast(){\n\t\tcar.setXLocation(currentX + 1);\n\t\tcurrentX += 1;\n\t}",
"public void move() {\n float diffX = cDestination.getX() - getCenterX();\n float diffY = cDestination.getY() - getCenterY();\n\n float newX = cPosition.getX() + cSpeed * Math.signum(diffX);\n f... | [
"0.6792144",
"0.6780712",
"0.66816366",
"0.65882266",
"0.65427804",
"0.6484604",
"0.6461062",
"0.64373904",
"0.64018357",
"0.63233024",
"0.63093305",
"0.63065773",
"0.62749326",
"0.6240763",
"0.6199765",
"0.6199036",
"0.6189752",
"0.61842936",
"0.6173484",
"0.617287",
"0.6170... | 0.57235134 | 91 |
TELLER APP CITATION MODIFIES: this EFFECTS: processes user command | protected void processCommand(String command) throws EmptyException {
if (command.equals("a")) {
doAddTask();
} else if (command.equals("r")) {
doRemoveTask();
} else if (command.equals("p")) {
doViewList();
} else if (command.equals("m")) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUserCommand();",
"public abstract void exec(CommandSender sender, String[] args);",
"public void processUserInput(String input) {\n\t\tString[] request = this.getArguments(input); \n\t\tString command = request[0]; \n\n\t\ttry {\n\t\t\tswitch (command) {\n\t\t\t\tcase TUICommands.START_SESSION... | [
"0.6348348",
"0.61648536",
"0.6158162",
"0.6005309",
"0.5967138",
"0.59097165",
"0.58974797",
"0.5895198",
"0.5881082",
"0.5822056",
"0.58049643",
"0.57860035",
"0.57802844",
"0.5779157",
"0.57788616",
"0.5776945",
"0.5769471",
"0.5756771",
"0.5756771",
"0.5753492",
"0.573571... | 0.0 | -1 |
final String url = " | public void testDownloadFile(){
final String url = "http://www.zebrai.cn/login/picture/getCaptcha";
new Thread(new Runnable() {
@Override
public void run() {
downloadFile(url);
}
}).start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setURL(String _url) { url = _url; }",
"public String getUrl(){\n \treturn url;\n }",
"String url();",
"public String getURL() { return url; }",
"public static String requestURL(String url) {\n return \"\";\n }",
"public String getUrl() { return url; }",
"String getUrl();",
... | [
"0.7592618",
"0.7419734",
"0.7299806",
"0.72449607",
"0.71795434",
"0.71670926",
"0.71468365",
"0.71468365",
"0.71468365",
"0.71468365",
"0.71468365",
"0.711114",
"0.708377",
"0.7069438",
"0.7069438",
"0.706317",
"0.7049802",
"0.69977576",
"0.69534224",
"0.69534224",
"0.69226... | 0.0 | -1 |
final String url = " | public void testDownloadAndShowImage(){
final String url = "https://ict.image.alimmdn.com/banma_h5/zebrai/zebra_login_bg.png";
new Thread(new Runnable() {
@Override
public void run() {
String hash = DownImageUtils.downloadImage(url);
final String f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setURL(String _url) { url = _url; }",
"public String getUrl(){\n \treturn url;\n }",
"String url();",
"public String getURL() { return url; }",
"public static String requestURL(String url) {\n return \"\";\n }",
"public String getUrl() { return url; }",
"String getUrl();",
... | [
"0.7591977",
"0.7419793",
"0.7299509",
"0.7244194",
"0.7179829",
"0.7166426",
"0.7146126",
"0.7146126",
"0.7146126",
"0.7146126",
"0.7146126",
"0.7110335",
"0.7083264",
"0.7069149",
"0.7069149",
"0.70626956",
"0.7049564",
"0.6997195",
"0.69531",
"0.69531",
"0.6921981",
"0.6... | 0.0 | -1 |
Day 25: FourDimensional Adventure The reindeer's symptoms are getting worse, and neither you nor the whitebearded man have a solution. At least the reindeer has a warm place to rest: a small bed near where you're sitting. As you reach down, the reindeer looks up at you, accidentally bumping a button on your wristmounte... | @Override
public Integer part1() {
init(getLines());
distribute(stars, constellations);
return constellations.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setupAdventure() {\n\t\tArrayList<Ship> availableShips = new ArrayList<Ship>();\n\t\tavailableShips = game.getAvailableShips();\n\t\tint selectedDays = 0;\n\t\tboolean stateAskPlayingDays = false;\n\t\twhile (stateAskPlayingDays == false) {\n\t\t\tSystem.out.println(\"How many days you wan... | [
"0.49351567",
"0.49124482",
"0.48952755",
"0.48948875",
"0.4867839",
"0.48471537",
"0.48454332",
"0.48095903",
"0.47821912",
"0.472526",
"0.47160333",
"0.47138754",
"0.46874437",
"0.46743807",
"0.4660728",
"0.46589684",
"0.46449292",
"0.4641871",
"0.46376643",
"0.46357703",
"... | 0.0 | -1 |
Service interface for creating GeoTrak events. | public interface TrakkerService {
GeoTrak create(final GeoTrak trak);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}",
"private void createEvents() {\n\t}",
"ConferenceScheduleBuilderService createEventsFromLunchToNetwork();",
"BasicEvents createBasicEvents();",
"EventUse createEventUse();",
"ConferenceScheduleBuilder... | [
"0.6633074",
"0.6313725",
"0.6002454",
"0.5949874",
"0.59223205",
"0.58940035",
"0.5777664",
"0.5777664",
"0.5605618",
"0.56020355",
"0.55665195",
"0.5536347",
"0.5498922",
"0.54617935",
"0.54525256",
"0.5439144",
"0.54146075",
"0.5414336",
"0.5404899",
"0.54026395",
"0.53739... | 0.6656149 | 0 |
populates our list of student users with init data | public static ArrayList<Student> get_student_users() throws IOException {
ArrayList<Student> studentList = new ArrayList<Student>();
ReadCSV readStudentlist = new ReadCSV("students.csv");
try {
// auto-generated primary key for authors table
while (true) {
List<String> tuple = readStudentlist.next()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }",
"private static void initUsers() {\n\t\tusers = new ArrayList<User>();\n\n\t\tusers.add(new User(\"Majo\", \"abc\", true));\n\t\tusers.add(new User(\"Alvaro\", \"def\", false));\n\t\tusers.add(new ... | [
"0.76020014",
"0.7478837",
"0.74507946",
"0.74091786",
"0.70608",
"0.7049387",
"0.70237625",
"0.698359",
"0.69117683",
"0.6900979",
"0.6875947",
"0.6769537",
"0.6748518",
"0.6713417",
"0.6625145",
"0.65933573",
"0.6589966",
"0.6567094",
"0.6499525",
"0.6483519",
"0.6470496",
... | 0.622632 | 42 |
Resolves rules that weren't resolved during first parsing. That means that everything that was discovered during first walk and is saved as a string name will be replaced by reference to the this.rules element. Flattens lexer rules so that they become either strings or regexes. | public static GrammarInfo generateGrammar(ParserResult parserResult) throws IngridParserException {
GrammarInfo grammar = new GrammarInfo(parserResult.grammarName);
Map<String, Rule> rules = parserResult.rules;
// Lexer rules must be resolved first so that parser rules can reference them
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static FlatLexerRule flattenLexerRule(Rule rule, Map<String, Rule> rules) {\n // Because some rules were resolved as a dependency of another rule,\n // it might happen that it is already flattened.\n if (rule instanceof FlatLexerRule) {\n return (FlatLexerRule) rule;\n ... | [
"0.6492653",
"0.60348326",
"0.5414569",
"0.49536648",
"0.49206161",
"0.49084395",
"0.48261362",
"0.47826725",
"0.47817478",
"0.46746117",
"0.4650481",
"0.46471938",
"0.4629295",
"0.4624315",
"0.46154448",
"0.4602935",
"0.46027857",
"0.45945805",
"0.45902625",
"0.45493397",
"0... | 0.47767505 | 9 |
Matches (string) references inside rule alternatives with actual pointers to rule definitions. | private static void resolveParserRule(ParserRule rule, Map<String, Rule> rules) throws IngridParserException {
// For each alternative line..
for (Alternative alternative : rule.alternatives) {
// For each element on the line..
for (int i = 0; i < alternative.elements.size(); ++i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void ruleR() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:141:2: ( ( ( rule__R__Alternatives ) ) )\n // InternalMLRegression.g:142:2: ( ( rule__R__Alternatives ) )\n {\n ... | [
"0.5104273",
"0.5093072",
"0.50929695",
"0.5089387",
"0.50639516",
"0.5034386",
"0.5023303",
"0.50076985",
"0.499085",
"0.49775252",
"0.49746248",
"0.49659657",
"0.49533522",
"0.49226502",
"0.4866332",
"0.48659715",
"0.48341024",
"0.48291928",
"0.48272493",
"0.4813535",
"0.48... | 0.60948676 | 0 |
Flattens rule into a regex or string literal. When a cyclic rule is detected (references itself), an exception is raised. | private static FlatLexerRule flattenLexerRule(Rule rule, Map<String, Rule> rules) {
// Because some rules were resolved as a dependency of another rule,
// it might happen that it is already flattened.
if (rule instanceof FlatLexerRule) {
return (FlatLexerRule) rule;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getRule() {\n java.lang.Object ref = rule_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n rule_ = s;\n retur... | [
"0.53263515",
"0.53021723",
"0.52125424",
"0.51019555",
"0.508634",
"0.5000025",
"0.48952648",
"0.4864069",
"0.4802196",
"0.47023913",
"0.46961042",
"0.45796868",
"0.45460057",
"0.45444405",
"0.45362538",
"0.4528123",
"0.45258725",
"0.45154226",
"0.45154226",
"0.45154226",
"0... | 0.6589889 | 0 |
Escapes special regex characters inside of a literal, so it can be used as regex. | static String escapeLiteral(LiteralRule rule) {
String specialChars = ".[]{}()*+-?^$|";
StringBuilder sb = new StringBuilder();
for (int i = 0; i < rule.value.length(); ++i) {
char c = rule.value.charAt(i);
if (specialChars.indexOf(c) != -1) {
sb.append("... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String escape( String text )\n {\n return text.replaceAll( \"([`\\\\|*_])\", \"\\\\\\\\$1\" );\n }",
"private static String escape(String in) {\n // After regexp escaping \\\\\\\\ = 1 slash, \\\\\\\\\\\\\\\\ = 2 slashes.\n\n // Also, the second args of replaceAll are neither strings ... | [
"0.6808365",
"0.6651394",
"0.6446605",
"0.63687414",
"0.6174805",
"0.6047816",
"0.60052127",
"0.59896576",
"0.587684",
"0.58372474",
"0.5805006",
"0.57633704",
"0.5760116",
"0.5751699",
"0.5665114",
"0.56476784",
"0.5644022",
"0.55825686",
"0.5548741",
"0.5542327",
"0.5526127... | 0.7635412 | 0 |
System.out.println(getClass() + " finalize"); close(); | protected void finalize() throws Throwable {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void finalize() {\n close();\n }",
"protected void finalize() {\n\t\tclose();\n\t}",
"public void finalize() {\n\n System.out.println( \"This is finalize method\" );\n }",
"public void finalize()\r\n\t{\n\t}",
"@Override// opcional\n public void finalize(){\n\n }",
"@O... | [
"0.8782881",
"0.87678754",
"0.8759473",
"0.86637706",
"0.85920227",
"0.8583973",
"0.85626835",
"0.8556679",
"0.8498356",
"0.8464813",
"0.8364283",
"0.83553576",
"0.83337593",
"0.8293439",
"0.8258801",
"0.82078385",
"0.81810695",
"0.80952275",
"0.8083417",
"0.8073131",
"0.7928... | 0.79294616 | 20 |
Create an ArrayAdapter using the string array and a default spinner layout | private void loadSpinnerProvincias() {
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(
this, R.array.provincias, android.R.layout.simple_spinner_item);
// Specify the layout to use when the list of choices appears
adapter.setDropDownViewResource(android.R.la... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArrayAdapter<String> getAdapter(ArrayList<String> arr) {\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this, R.layout.support_simple_spinner_dropdown_item, arr);\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n\n return a... | [
"0.77827036",
"0.7167751",
"0.707887",
"0.70464206",
"0.7031589",
"0.69442147",
"0.6892288",
"0.68842876",
"0.6843304",
"0.6666929",
"0.6629984",
"0.65953",
"0.6584477",
"0.65602857",
"0.6542307",
"0.653414",
"0.65294194",
"0.64857537",
"0.63057846",
"0.62820894",
"0.6261547"... | 0.0 | -1 |
Instantiates a new Sensor log. | public SensorLog() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SensorLog(Date when, Float temperature) {\n this.when = when;\n this.temperature = temperature;\n }",
"public MyLogs() {\n }",
"public Log()\n {\n filePath = String.format(\"log-%d.sl\", System.currentTimeMillis());\n\n open();\n }",
"public SensorLog(String id,... | [
"0.65701777",
"0.65532696",
"0.6528035",
"0.65199256",
"0.6503362",
"0.6447434",
"0.6312588",
"0.6292965",
"0.6268334",
"0.62568516",
"0.6243232",
"0.62306905",
"0.61649275",
"0.60164285",
"0.6007314",
"0.60033995",
"0.59988004",
"0.5981224",
"0.5963795",
"0.5961021",
"0.5949... | 0.8172945 | 0 |
Instantiates a new Sensor log. | public SensorLog(Date when, Float temperature) {
this.when = when;
this.temperature = temperature;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SensorLog() {\n }",
"public MyLogs() {\n }",
"public Log()\n {\n filePath = String.format(\"log-%d.sl\", System.currentTimeMillis());\n\n open();\n }",
"public SensorLog(String id, Date when, Float temperature) {\n this.id = id;\n this.when = when;\n this... | [
"0.8172945",
"0.65532696",
"0.6528035",
"0.65199256",
"0.6503362",
"0.6447434",
"0.6312588",
"0.6292965",
"0.6268334",
"0.62568516",
"0.6243232",
"0.62306905",
"0.61649275",
"0.60164285",
"0.6007314",
"0.60033995",
"0.59988004",
"0.5981224",
"0.5963795",
"0.5961021",
"0.59492... | 0.65701777 | 1 |
Instantiates a new Sensor log. | public SensorLog(String id, Date when, Float temperature) {
this.id = id;
this.when = when;
this.temperature = temperature;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SensorLog() {\n }",
"public SensorLog(Date when, Float temperature) {\n this.when = when;\n this.temperature = temperature;\n }",
"public MyLogs() {\n }",
"public Log()\n {\n filePath = String.format(\"log-%d.sl\", System.currentTimeMillis());\n\n open();\n }... | [
"0.8172945",
"0.65701777",
"0.65532696",
"0.6528035",
"0.6503362",
"0.6447434",
"0.6312588",
"0.6292965",
"0.6268334",
"0.62568516",
"0.6243232",
"0.62306905",
"0.61649275",
"0.60164285",
"0.6007314",
"0.60033995",
"0.59988004",
"0.5981224",
"0.5963795",
"0.5961021",
"0.59492... | 0.65199256 | 4 |
todo: move to slf4j interface | public interface Log {
void debug(String msg, Object... args);
void info(String msg, Object... args);
void warn(String msg, Object... args);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void log()\n {\n }",
"@Override\n public void logs() {\n \n }",
"void log();",
"abstract public LoggingService getLoggingService();",
"public interface FsmLogger {\n\t/**\n\t * Get name of the logger.\n\t * \n\t * @return the name\n\t */\n\tpublic String getName... | [
"0.6509099",
"0.64638907",
"0.63505524",
"0.6189239",
"0.61662847",
"0.59998316",
"0.5994251",
"0.5966835",
"0.5955805",
"0.59346604",
"0.593411",
"0.5892771",
"0.58852404",
"0.5880967",
"0.5879186",
"0.58628505",
"0.5854717",
"0.5829675",
"0.58250403",
"0.58186114",
"0.58104... | 0.550793 | 59 |
TODO Autogenerated method stub | @Override
public List<User> getAllUser() {
List<User> listStudents = new ArrayList<User>();
listStudents = userReposotory.findAll();
return listStudents;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public User addUser(User user) {
return userReposotory.save(user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public User searchUser(Integer id) {
return userReposotory.getById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteByUser(User user) {
userReposotory.delete(user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteByIdUser(int id) {
userReposotory.deleteById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateUser(User user) {
userReposotory.save(user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void apiUpdateUser(User user) {
User a = findByIdUser(user.getId());
if (StringUtils.hasText(user.getUserName()))
{
a.setUserName(user.getUserName());
}
if (StringUtils.hasText(user.getPassWord()))
{
a.setPassWord(user.getPassWord());
}
userReposotory.save(a);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<User> timUser(String user) {
List<User> a =userReposotory.getByName(user);
return a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int checkInit(String name) {
int a = -1;
a = userReposotory.checkInitByName(name);
return a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public User findByIdUser(Integer id) {
return userReposotory.findById(id).get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Boolean kiemTonTaiTheoUserName(String id) {
return userReposotory.existsByUserName(id);
} | {
"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 static void main(String[] args) {
NReinas tablero = new NReinas(15);
tablero.busca();
} | {
"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 |
/ Method to call the ViewModel which will hit the API & will give the response. | void makeMainListCall() {
mViewModel.getProgressDialog().observe(this, isLoading -> {
if (isLoading != null) {
mLoadingView.setVisibility(isLoading ? View.VISIBLE : View.GONE);
if (isLoading) {
mErrorTextView.setVisibility(View.GONE);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"LiveData<WalletDataDecl.ListResultTmpl<Response>> results();",
"public ModelBags call() throws Exception {\n SyncHttpClient syncHttpClient = new SyncHttpClient(true, 80, 443);\n String a = UrlEnum.MODEL_SERVER.mo21104a();\n HttpEntity b = m11177b();\n GetListHttpHandler bVar = new Get... | [
"0.59509987",
"0.59149563",
"0.5843942",
"0.58087933",
"0.57438856",
"0.570195",
"0.5664319",
"0.56083226",
"0.5592582",
"0.5586291",
"0.5577326",
"0.556633",
"0.55291206",
"0.55216235",
"0.5519788",
"0.5518106",
"0.55145067",
"0.5512038",
"0.5508833",
"0.5498635",
"0.5491624... | 0.0 | -1 |
this method operates in almost the reverse of setBit(). fist, we create a number like 1110 1111 by creating the reverse of it (0001 0000) and negating it. then, we perform an AND with num. this will clear the ith bit and leave the remainder unchanged. | public static int clearBit(int num, int i) {
int mask = ~(1 << i);
return num & mask;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int clearBit(int num, int pos) {\n\t\t\tint mask = ~(1<<pos);\n\t\t\treturn num & mask;\n\t\t}",
"static int toggleBit(int n){\n return n & (n-1);\n }",
"static int isolateBit(int n){\n return n & (-n);\n }",
"private static void isSetOrUnset(long num, int pos) {\n\t\tlong temp =... | [
"0.68853724",
"0.67471313",
"0.6458302",
"0.6208582",
"0.6174647",
"0.60953796",
"0.602252",
"0.60190934",
"0.5978996",
"0.59640056",
"0.5926268",
"0.5909219",
"0.5875727",
"0.58350456",
"0.583422",
"0.5793214",
"0.5662562",
"0.56421",
"0.5607909",
"0.5590471",
"0.55884284",
... | 0.7137553 | 0 |
the most significant bit(MSB) is sometimes referred to as the leftmost bit due to the convention in positional notation of writing more significant digits further to the left the least significant bit (LSB) is sometimes referred to as the rightmost bit, due to the convention in positional notation of writing less signi... | public static int cleanBitsMSBthroughI(int num, int i) {
int mask = (1 << i) - 1;
return num & mask;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int clearBitsUpToLS(int n, int i) {\n return n & ~(-1>>(31-i));\n }",
"public static int clearBitsUpToMS(int n, int i) {\n return n & (1<<i)-1;\n }",
"public static int cleanBitsIthrough0(int num, int i) {\n int mask = (-1 << (i + 1));\n return num & mask;\n }",
"public static in... | [
"0.6800314",
"0.6600717",
"0.6519545",
"0.64930433",
"0.64907914",
"0.64390564",
"0.64171666",
"0.63713497",
"0.6368205",
"0.6284049",
"0.6281098",
"0.62492245",
"0.6233364",
"0.6051605",
"0.6020541",
"0.6012435",
"0.5996556",
"0.5972192",
"0.59630066",
"0.59508204",
"0.59403... | 0.7072461 | 0 |
to clear all bits from i through 0 (inclusive), we take a sequence of all 1s (which is 1) and shift it left by i + 1 bit. this gives us a sequence of 1s (in the most significant bits) followed by i 0 bits. | public static int cleanBitsIthrough0(int num, int i) {
int mask = (-1 << (i + 1));
return num & mask;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int clearBitsUpToLS(int n, int i) {\n return n & ~(-1>>(31-i));\n }",
"protected void clearAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.clearBitAt(i);\n } \t\n }",
"public static int clearBit(int num, int i) {\n int mask = ~(1 << i);\... | [
"0.66237324",
"0.6515706",
"0.6446545",
"0.6434919",
"0.63777524",
"0.6018041",
"0.589573",
"0.58884233",
"0.57173735",
"0.57133555",
"0.56650543",
"0.5554546",
"0.54829824",
"0.545864",
"0.5431187",
"0.5423641",
"0.5352806",
"0.5313683",
"0.5281762",
"0.52734435",
"0.5258113... | 0.64115655 | 4 |
Create Date: 11/01/16 Author: Peiweiwei Description: ProductCategoryContract | public interface ProductCategoryContract {
interface Presenter extends IPresenter {
void onCategoryClick(String pos);
}
interface View extends IView {
void onCateClickChange(String pos);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CategoryType createCategoryType();",
"public CategoryRecord() {\n\t\tsuper(com.cellarhq.generated.tables.Category.CATEGORY);\n\t}",
"public String getCategory_name(){return category_name;}",
"public ProductListContract() {}",
"public long createCategory(CategoryModel categoryModel){\n //access the ... | [
"0.56860995",
"0.56794894",
"0.5658219",
"0.562538",
"0.5597696",
"0.5571661",
"0.5561999",
"0.5557889",
"0.55502945",
"0.55311835",
"0.55309856",
"0.5525553",
"0.55205923",
"0.5496048",
"0.5468042",
"0.54440504",
"0.5432411",
"0.5424816",
"0.5411047",
"0.54103047",
"0.540486... | 0.0 | -1 |
FXML fields put in parameters to have access to them. Handles the File menutab Not all functionaries are working. | public static void fileHandler(ActionEvent actionEvent, Canvas canvas, Pane shapesPane, MenuItem itemNew,
MenuItem itemOpen, MenuItem itemSave, MenuItem itemSaveAs, MenuItem itemExit) {
// clearing pane to clear shapes and clearing canvas for free drawing
if (actionEvent.getSource() == itemNew) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFileConfig() {\n try {\n int col = 0, row = 0;\n fileType = new JFXComboBox();\n fileType.setPromptText(\"Select File Type\");\n fileType.setItems(getFileTypes());\n /*\n File Properties\n */\n srcSep = n... | [
"0.6803898",
"0.6755291",
"0.6581194",
"0.654627",
"0.64601535",
"0.6448161",
"0.6385787",
"0.6379826",
"0.634414",
"0.6282102",
"0.6260705",
"0.62264454",
"0.6138206",
"0.60863376",
"0.6074205",
"0.6052809",
"0.60347784",
"0.60315335",
"0.6023058",
"0.60188746",
"0.6008105",... | 0.5636223 | 60 |
private DeptTableModel model; Creates new form MasterDept | public MasterDept() {
initComponents();
setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/Images/icon.png")));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic Department getModel() {\n\t\treturn department;\r\n\t}",
"public Departments getDeptTable();",
"public void setDeptTable(Departments value);",
"@Override\n\t\t\t\tpublic TableModel getModel() {\n\t\t\t\t\treturn model;\n\t\t\t\t}",
"public formArticulo() {\r\n initComponents();... | [
"0.6784922",
"0.6742098",
"0.66929495",
"0.5928076",
"0.58705956",
"0.5848291",
"0.58359706",
"0.5803542",
"0.57672024",
"0.576508",
"0.5762371",
"0.57432014",
"0.57335985",
"0.57211965",
"0.57180965",
"0.5709673",
"0.56549037",
"0.56547934",
"0.5640543",
"0.563881",
"0.56333... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
idLabel = new javax.swing.JLabel();
nameLabel = new javax.swing.JLabel();
idField = new ja... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"... | 0.0 | -1 |
Basic Operation > Get number of integers in myList: my_get_length | public <T> int my_get_length(int index) throws myException{
int count = 0;
myNode current = null;
while(!current.getInfo()){
current.getLeft();
count++;
}
for(int i = 0; i < count; i++) {
this.push(current.setInfo(i));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int length()\n {\n if(integerList == null)\n return 0;\n else\n return integerList.length;\n }",
"public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNu... | [
"0.77141964",
"0.740894",
"0.7287384",
"0.7184048",
"0.71727693",
"0.71159214",
"0.7067542",
"0.6998058",
"0.6989763",
"0.69875705",
"0.6986345",
"0.6947774",
"0.6904299",
"0.68951005",
"0.6890195",
"0.6839519",
"0.6813864",
"0.6802476",
"0.67960405",
"0.67960405",
"0.6788311... | 0.0 | -1 |
Basic Operation > Get integer of myList at a concrete index: my_get_element | public <T> Object my_get_element(int index) throws myException{
if (index < 0){
return null;
}
myNode current = null;
if (Lnode != null) {
current = Lnode.getLeft();
for (int i = 0; i < index; i++) {
if (current.getLeft() == null)
return null;
current = current.getLeft();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T getElementFromIndex(int index) throws ListException;",
"public Integer get(int index){\n return list.get(index);\n }",
"public int get(int index);",
"@Override\n\tpublic E get(int idx) {\n\t\tE element = null;\n\t\tif (idx < 0 || idx >= size)\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\telement =... | [
"0.75697213",
"0.73234695",
"0.70761216",
"0.6992229",
"0.69773835",
"0.6961875",
"0.68777096",
"0.6854547",
"0.683246",
"0.68111956",
"0.6780082",
"0.6737489",
"0.67043155",
"0.6692978",
"0.6626815",
"0.6604613",
"0.6578244",
"0.6563679",
"0.65628725",
"0.65546393",
"0.65428... | 0.61438394 | 98 |
Basic Operation > Add integer to myList at a concrete index: my_add_element | public void my_add_element(int index,myNode T ,myNode newnode) throws myException{
if (Lnode == null) {
Lnode = new myNode(newnode);
}
myNode temp = new myNode(newnode);
myNode current = Lnode;
if (current != null ){
while(current.getLeft() != null){
current = current.getLeft();
}
curren... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add(int element);",
"void add(int index, Object element);",
"void add(int index, T element);",
"void add(int index, T element);",
"public abstract void add(T element, int index);",
"public void addElement(Integer e){\n list.add(e);\n }",
"public void addElement(Integer elem){\n\t\tlist.... | [
"0.7931962",
"0.79313165",
"0.78400034",
"0.78400034",
"0.7721009",
"0.76992315",
"0.7590565",
"0.7585687",
"0.755562",
"0.73350763",
"0.7333357",
"0.7228858",
"0.7153846",
"0.7104197",
"0.7102065",
"0.70970285",
"0.70211065",
"0.69350696",
"0.69260854",
"0.6903533",
"0.68945... | 0.0 | -1 |
Basic Operation > Remove index of myList: my_remove_element | public <T> void my_remove_element(int index) throws myException{
myNode current = Lnode;
for (int i =0; i< index;i++){
if (index < 0 || index > counterNo){
System.out.print("index out of bounds");
return;
}else if (current == null ){
System.out.print("This list is empty");
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeElementAt(int index);",
"public void remove(int index);",
"void remove(int index);",
"void remove(int index);",
"void remove(int index);",
"void remove(int index);",
"void remove( int index );",
"@Test\r\n\tpublic void testRemoveByIndex() {\r\n\t\tAssert.assertNull(list.remove(100))... | [
"0.7994699",
"0.7810898",
"0.78073955",
"0.78073955",
"0.78073955",
"0.78073955",
"0.7807332",
"0.7704101",
"0.7667972",
"0.7624221",
"0.7612805",
"0.7608481",
"0.75779927",
"0.75522816",
"0.75070184",
"0.74957585",
"0.74560297",
"0.74560297",
"0.7446564",
"0.74329454",
"0.74... | 0.7412996 | 21 |
The specified backbone distance tolerance value. | public int getBackboneDistanceTolerance() {
return backboneDistanceTolerance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getTolerance() {\n\treturn tolerance;\n }",
"public double tolerance() {return tolerance;}",
"public static double computeTolerance(vtkCanvas canvas, double tolerance)\n\t{\n\t\tdouble[] range = canvas.GetRenderer().GetActiveCamera().GetClippingRange();\n\t\tdouble n = range[0];\n\t\tdouble f ... | [
"0.7119589",
"0.7038351",
"0.6843916",
"0.6731978",
"0.64380956",
"0.6080313",
"0.59133804",
"0.5808072",
"0.56700057",
"0.5653436",
"0.56021285",
"0.55862725",
"0.5548429",
"0.5548252",
"0.55394447",
"0.55145586",
"0.5445109",
"0.53938377",
"0.5379117",
"0.5376415",
"0.53738... | 0.76731384 | 0 |
The specified sidechain distance tolerance value. | public int getSideChainDistanceTolerance() {
return sideChainDistanceTolerance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double tolerance() {return tolerance;}",
"public double getTolerance() {\n\treturn tolerance;\n }",
"public void setTolerance(double tolerance) {\n\tthis.tolerance = tolerance;\n }",
"public static double computeTolerance(vtkCanvas canvas, double tolerance)\n\t{\n\t\tdouble[] range = canvas.GetR... | [
"0.695717",
"0.67666274",
"0.64550686",
"0.64383924",
"0.6268123",
"0.57471514",
"0.57405955",
"0.56036645",
"0.55895096",
"0.5560739",
"0.5552942",
"0.5518844",
"0.54543567",
"0.54308075",
"0.54245716",
"0.5424434",
"0.541108",
"0.5401341",
"0.53967994",
"0.5384541",
"0.5310... | 0.7520727 | 0 |
The specified angle tolerance value. | public int getAngleTolerance() {
return angleTolerance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double tolerance() {return tolerance;}",
"public void setTolerance(double tolerance) {\n\tthis.tolerance = tolerance;\n }",
"public double getTolerance() {\n\treturn tolerance;\n }",
"@Override\r\n protected double getToleranceForAssertions(final double longitude, final double latitude) {\r\n... | [
"0.6606279",
"0.6359944",
"0.6199998",
"0.6150663",
"0.5658141",
"0.555413",
"0.5547633",
"0.54839504",
"0.54439265",
"0.5423014",
"0.5366946",
"0.5366946",
"0.53225094",
"0.5261602",
"0.52404505",
"0.5217417",
"0.5182146",
"0.5180581",
"0.5177018",
"0.5174776",
"0.5125099",
... | 0.76507646 | 0 |
At which score are hits filtered? | public double getScoreCutoff() {
return scoreCutoff;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int hit() {\r\n\t\treturn hits;\r\n\t}",
"void collect(Object key, float score);",
"public List<OWLObject> search(OWLObject queryObj) {\n\t\tList<OWLObject> hits = new ArrayList<OWLObject>(maxHits);\n\t\tSystem.out.println(\"gettings atts for \"+queryObj+\" -- \"+simEngine.comparisonProperty);\n\t\tS... | [
"0.61310077",
"0.59040946",
"0.5841003",
"0.5828477",
"0.5719088",
"0.570476",
"0.5695058",
"0.56789285",
"0.56641376",
"0.56600857",
"0.56600857",
"0.5608419",
"0.5561263",
"0.5540565",
"0.5528612",
"0.5526681",
"0.55057025",
"0.5501914",
"0.54976344",
"0.5492277",
"0.547460... | 0.55173033 | 16 |
At which RMSD are hits filtered? Only relevant when scored by alignment. | public double getRmsdCutoff() {
return rmsdCutoff;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean filterHits(int queryL, int alignL){\n return this.getResults().filter(queryL, alignL);\n }",
"@Override\n public boolean sampleDistance(Ray ray, Sampler sampler, MediumQueryRecord mRec) {\n Ray localRay = new Ray();\n worldToMedium.m.transform(ray.o, localRay.o);\n ... | [
"0.539731",
"0.539549",
"0.53396",
"0.5281883",
"0.51247185",
"0.5117174",
"0.5080053",
"0.49722168",
"0.49616796",
"0.49151632",
"0.4909388",
"0.4831373",
"0.48100787",
"0.48080894",
"0.4781737",
"0.4763436",
"0.47620994",
"0.47586143",
"0.4748292",
"0.47443917",
"0.47259074... | 0.0 | -1 |
How should hits be scored. | public ScoringStrategy getScoringStrategy() {
return scoringStrategy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int hit() {\r\n\t\treturn hits;\r\n\t}",
"long getHits();",
"public int getTotalHits() { return totalHits; }",
"Map<String, Long> hits();",
"public HitStatus hit() {\r\n\t\tnumHits++;\r\n\t\tif (type.length() <= numHits) {\r\n\t\t\treturn HitStatus.SUNK;\r\n\t\t}\r\n\t\treturn HitStatus.HIT;\r\n\... | [
"0.6999251",
"0.67569953",
"0.6539816",
"0.6167769",
"0.61538357",
"0.61092",
"0.6044094",
"0.6039419",
"0.6023338",
"0.6017192",
"0.59727335",
"0.5908428",
"0.59049845",
"0.58952886",
"0.58864164",
"0.58787787",
"0.58752066",
"0.58302796",
"0.58127",
"0.57961637",
"0.5795205... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.