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 |
|---|---|---|---|---|---|---|
For a mass of 1969, the fuel required is 654. | @Test
void testPartA_Example3() {
assertEquals(654, Day01.getFuelNeededForMass(1969));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double fuelneeded(int miles) {\n\t\treturn (double) miles / mpg;\n\t}",
"public double getBurntFuelMass();",
"public double fuelneeded (int miles) {\n\t\treturn (double) miles / mpg;\n\t}",
"public int getFuel(){\r\n\t\treturn this.fuel;\r\n\t}",
"@Override\n\tpublic double CalcularFuel() {\n\t\tdouble con... | [
"0.6989135",
"0.6915112",
"0.68059206",
"0.6479784",
"0.6352325",
"0.63499874",
"0.6324785",
"0.62826777",
"0.6268712",
"0.6195289",
"0.6161705",
"0.6077086",
"0.6033037",
"0.60247076",
"0.59770006",
"0.5976406",
"0.59224653",
"0.5843653",
"0.58160764",
"0.58062315",
"0.58008... | 0.0 | -1 |
For a mass of 100756, the fuel required is 33583. | @Test
void testPartA_Example4() {
assertEquals(33583, Day01.getFuelNeededForMass(100756));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double fuelneeded(int miles) {\n\t\treturn (double) miles / mpg;\n\t}",
"public double fuelneeded (int miles) {\n\t\treturn (double) miles / mpg;\n\t}",
"public double getBurntFuelMass();",
"public double fuelQuantity() throws Exception;",
"@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=th... | [
"0.74608123",
"0.723902",
"0.7186658",
"0.6810034",
"0.6639057",
"0.66213185",
"0.6578369",
"0.6545713",
"0.648369",
"0.647952",
"0.6471362",
"0.64334786",
"0.628399",
"0.6277331",
"0.6273023",
"0.61861885",
"0.6163256",
"0.61592436",
"0.6146629",
"0.61124015",
"0.60319936",
... | 0.0 | -1 |
Any mass that would require negative fuel should instead be treated as if it requires zero fuel | @Test
void testPartB_Example0() {
assertEquals(0, Day01.getFuelNeededForMass(4));
assertEquals(0, Day01.getFuelNeededForMass(0));
assertEquals(0, Day01.getFuelNeededForMass(-5));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public double getMass() {\n return 0;\n }",
"double fuelneeded(int miles) {\n\t\treturn (double) miles / mpg;\n\t}",
"public void consumeFuel(double amount);",
"@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.... | [
"0.6281197",
"0.618469",
"0.61716485",
"0.61174554",
"0.60989255",
"0.5964421",
"0.5964405",
"0.5918046",
"0.5858851",
"0.582767",
"0.58215135",
"0.5777434",
"0.5757208",
"0.5757142",
"0.572783",
"0.5713046",
"0.56703985",
"0.5657824",
"0.5643827",
"0.55921954",
"0.5574404",
... | 0.5528701 | 23 |
A module of mass 14 requires 2 fuel. This fuel requires no further fuel (2 divided by 3 and rounded down is 0, which would call for a negative fuel), so the total fuel required is still just 2. | @Test
void testPartB_Example1() {
assertEquals(2, Day01.getFuelNeededForMassIncludingFuelWeight(14));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}",
"public double getBurntFuelMass();",
"double fuelneeded(int miles) {\n\t\treturn (double) miles / mpg;\n\t}",
"public void buyFuel() {\n this.fuelMod++;\n fuelMax += +7... | [
"0.70087737",
"0.69637156",
"0.6958023",
"0.683618",
"0.67240024",
"0.6723153",
"0.67178875",
"0.67012644",
"0.66814655",
"0.6664482",
"0.66622484",
"0.66142756",
"0.6577821",
"0.6558382",
"0.6511976",
"0.64788526",
"0.6459079",
"0.64567727",
"0.6442227",
"0.64074117",
"0.635... | 0.0 | -1 |
At first, a module of mass 1969 requires 654 fuel. Then, this fuel requires 216 more fuel (654 / 3 2). 216 then requires 70 more fuel, which requires 21 fuel, which requires 5 fuel, which requires no further fuel. So, the total fuel required for a module of mass 1969 is 654 + 216 + 70 + 21 + 5 = 966. | @Test
void testPartB_Example2() {
assertEquals(966, Day01.getFuelNeededForMassIncludingFuelWeight(1969));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}",
"public double getBurntFuelMass();",
"double fuelneeded(int miles) {\n\t\treturn (double) miles / mpg;\n\t}",
"float calFuelConsumption(float distance, float numLiters);",
"void ad... | [
"0.7069048",
"0.696387",
"0.68164396",
"0.6721594",
"0.67123866",
"0.65653145",
"0.6473181",
"0.64219487",
"0.64161175",
"0.6405709",
"0.63857216",
"0.63529456",
"0.6243121",
"0.62164885",
"0.6177816",
"0.6166348",
"0.6108401",
"0.61017287",
"0.60926586",
"0.60844916",
"0.605... | 0.0 | -1 |
The fuel required by a module of mass 100756 and its fuel is: 33583 + 11192 + 3728 + 1240 + 411 + 135 + 43 + 12 + 2 = 50346. | @Test
void testPartB_Example3() {
assertEquals(50346, Day01.getFuelNeededForMassIncludingFuelWeight(100756));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getBurntFuelMass();",
"@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}",
"double fuelneeded(int miles) {\n\t\treturn (double) miles / mpg;\n\t}",
"public int getFuel(){\r\n\t\treturn this.fuel;\r\n\t}",
"public int g... | [
"0.70950955",
"0.70179987",
"0.67884934",
"0.67358685",
"0.6720916",
"0.6622894",
"0.6607749",
"0.6581819",
"0.6579568",
"0.6553171",
"0.6517022",
"0.64901656",
"0.64403385",
"0.6379307",
"0.63690656",
"0.63473994",
"0.6320577",
"0.6231298",
"0.60409474",
"0.60078716",
"0.594... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.medicine_info, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Listener to listen on invalid inputs in the UI. | public interface InvalidInputListener extends EventListener {
/**
* Fired when the status is updated.
*
* @param invalid if true we have some invalid input fields in the UI.
*/
void statusUpdate(boolean invalid);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void invalid() {\r\n\t\tSystem.out.println(\"Please enter a valid input\");\r\n\t}",
"void onValidationFailed();",
"protected void validateInput()\r\n\t{\r\n\t\tString errorMessage = null;\r\n\t\tif ( validator != null ) {\r\n\t\t\terrorMessage = validator.isValid(text.getText());\r\n\t\t}\r\n\t\t// Bug... | [
"0.70349276",
"0.6822009",
"0.67796475",
"0.641234",
"0.63474447",
"0.62364256",
"0.62111723",
"0.6207438",
"0.62050307",
"0.6159951",
"0.61557",
"0.6100066",
"0.60627735",
"0.5988624",
"0.5967342",
"0.59480196",
"0.58858186",
"0.58497643",
"0.58432186",
"0.58205646",
"0.5815... | 0.76285684 | 0 |
Fired when the status is updated. | void statusUpdate(boolean invalid); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onStatusUpdate(int status);",
"void onStatusChanged(Status newStatus);",
"@Override\n public void onStatusChange(int status) {\n }",
"public void handleStatusUpdated() {\n copyWifiStates();\n notifyListenersIfNecessary();\n }",
"@Override\n public void... | [
"0.83211493",
"0.8194115",
"0.7766172",
"0.7607302",
"0.75145316",
"0.7473764",
"0.73915696",
"0.73915696",
"0.7333636",
"0.7310329",
"0.73035747",
"0.72668445",
"0.7245095",
"0.7245095",
"0.7229655",
"0.72188497",
"0.71612936",
"0.70985985",
"0.70733577",
"0.70532864",
"0.70... | 0.67958915 | 34 |
This method receives a camel case string, and split it into its components | public static String splitCamelCase(String s) {
return s.replaceAll(
String.format("%s|%s|%s",
"(?<=[A-Z])(?=[A-Z][a-z])",
"(?<=[^A-Z])(?=[A-Z])",
"(?<=[A-Za-z])(?=[^A-Za-z])"),
" ").replaceAll("[-_]", "").replaceAll(" ", " ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String splitCamelCase(String s) {\n return s.replaceAll(\n String.format(\"%s|%s|%s\",\n \"(?<=[A-Z])(?=[A-Z][a-z])\",\n \"(?<=[^A-Z])(?=[A-Z])\",\n \"(?<=[A-Za-z])(?=[^A-Za-z])\"\n ),\n ... | [
"0.6951558",
"0.67624426",
"0.6324382",
"0.6233524",
"0.6188279",
"0.6152621",
"0.60456765",
"0.5938051",
"0.5883612",
"0.58794713",
"0.5872559",
"0.58567226",
"0.5806689",
"0.57878137",
"0.57852125",
"0.57802004",
"0.57592505",
"0.5742349",
"0.5736528",
"0.5730738",
"0.57126... | 0.7364766 | 0 |
This method retrieves a list of camel case words, contained in the string passed as argument | public static List<String> getCamelCaseWords(String content) {
List<String> camelCaseList = new ArrayList<>();
// for (String word : content.split(" ")) {
// if(word.matches("[aA-zZ]([A-Z0-9]*[a-z][a-z0-9]*[A-Z]|[a-z0-9]*[A-Z][A-Z0-9]*[a-z])[A-Za-z0-9]*")){
// camelCaseList.add(word);
// }
// }
Pattern regex = Pattern.compile("[aA-zZ]([A-Z0-9]*[a-z][a-z0-9]*[A-Z]|[a-z0-9]*[A-Z][A-Z0-9]*[a-z])[A-Za-z0-9]*");
Matcher regexMatcher = regex.matcher(content);
while (regexMatcher.find()) {
camelCaseList.add(regexMatcher.group());
}
return camelCaseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<Pair<Integer,String>> getIndexedCamelCaseWords(String content) {\n List<Pair<Integer,String>> camelCaseList = new ArrayList<>();\n// for (String word : content.split(\" \")) {\n// if(word.matches(\"[aA-zZ]([A-Z0-9]*[a-z][a-z0-9]*[A-Z]|[a-z0-9]*[A-Z][A-Z0-9]*[a-z])[A-Za-z... | [
"0.7182734",
"0.6388411",
"0.62382126",
"0.6196617",
"0.6158092",
"0.6029198",
"0.5963761",
"0.5957112",
"0.5856552",
"0.5829043",
"0.5828561",
"0.5811038",
"0.57952553",
"0.5790598",
"0.5729179",
"0.5695053",
"0.564556",
"0.5582399",
"0.5582296",
"0.55609626",
"0.5554626",
... | 0.7894295 | 0 |
This method retrieves a list of camel case words, contained in the string passed as argument | public static List<Pair<Integer,String>> getIndexedCamelCaseWords(String content) {
List<Pair<Integer,String>> camelCaseList = new ArrayList<>();
// for (String word : content.split(" ")) {
// if(word.matches("[aA-zZ]([A-Z0-9]*[a-z][a-z0-9]*[A-Z]|[a-z0-9]*[A-Z][A-Z0-9]*[a-z])[A-Za-z0-9]*")){
// camelCaseList.add(word);
// }
// }
Pattern regex = Pattern.compile("[aA-zZ]([A-Z0-9]*[a-z][a-z0-9]*[A-Z]|[a-z0-9]*[A-Z][A-Z0-9]*[a-z])[A-Za-z0-9]*");
Matcher regexMatcher = regex.matcher(content);
while (regexMatcher.find()) {
if(regexMatcher.group().length()<=40){
camelCaseList.add(new Pair<>(regexMatcher.start(), regexMatcher.group()));
}
}
return camelCaseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<String> getCamelCaseWords(String content) {\n List<String> camelCaseList = new ArrayList<>();\n// for (String word : content.split(\" \")) {\n// if(word.matches(\"[aA-zZ]([A-Z0-9]*[a-z][a-z0-9]*[A-Z]|[a-z0-9]*[A-Z][A-Z0-9]*[a-z])[A-Za-z0-9]*\")){\n// camel... | [
"0.7894295",
"0.6388411",
"0.62382126",
"0.6196617",
"0.6158092",
"0.6029198",
"0.5963761",
"0.5957112",
"0.5856552",
"0.5829043",
"0.5828561",
"0.5811038",
"0.57952553",
"0.5790598",
"0.5729179",
"0.5695053",
"0.564556",
"0.5582399",
"0.5582296",
"0.55609626",
"0.5554626",
... | 0.7182734 | 1 |
TODO Autogenerated method stub | @Override
public void deleteUser(user theUser) {
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateUser(user theUser) {
} | {
"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 dbsize() {
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 |
TODO Autogenerated method stub | @Override
public user getUser(int i) {
return userdb.get(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public ArrayList<user> getAllUser() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void logout(user theUser) {
} | {
"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 |
actual or possible members of the cluster | public Ms2Cluster() { super(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasCluster();",
"boolean isAllowClusterGet();",
"public SME_Cluster[] getClusters();",
"public String getCluster() {\n return this.cluster;\n }",
"public String getCluster() {\n return this.cluster;\n }",
"protected boolean isClusterRequired() {\n return true;\n }",
... | [
"0.6486518",
"0.61003804",
"0.5860576",
"0.57440466",
"0.57440466",
"0.5704754",
"0.56953424",
"0.5679264",
"0.5667827",
"0.5632169",
"0.56278044",
"0.5623498",
"0.56220865",
"0.5616152",
"0.55614597",
"0.55399084",
"0.5539242",
"0.5530577",
"0.55214",
"0.5493964",
"0.5484026... | 0.0 | -1 |
the head is already a part of the candidates and members | public int size() { return mMembers!=null?mMembers.size():0; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Collection<Node> getCandidates(State state) {\n\t\treturn new ArrayList<Node>(Basic_ILS.graph.getNodes());\n\t}",
"public Set pack(Set addfirstfrom) throws PackingException, ParallelException {\r\n Set res = new HashSet(); // Set<Node>\r\n\t\tRandom rand = RndUtil.getInstance().getRandom();\r\n if... | [
"0.55529803",
"0.5489781",
"0.54473644",
"0.54111254",
"0.52743036",
"0.52699",
"0.5265601",
"0.526416",
"0.52212614",
"0.5198815",
"0.51952434",
"0.51926184",
"0.51925206",
"0.51845884",
"0.5181358",
"0.5176172",
"0.517144",
"0.5148938",
"0.5136203",
"0.5134458",
"0.5117548"... | 0.0 | -1 |
the head is already a part of the candidates and members | public int getNbyMz() { return mByMz; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Collection<Node> getCandidates(State state) {\n\t\treturn new ArrayList<Node>(Basic_ILS.graph.getNodes());\n\t}",
"public Set pack(Set addfirstfrom) throws PackingException, ParallelException {\r\n Set res = new HashSet(); // Set<Node>\r\n\t\tRandom rand = RndUtil.getInstance().getRandom();\r\n if... | [
"0.5553195",
"0.54895896",
"0.5446453",
"0.5413268",
"0.52761096",
"0.52692574",
"0.5267043",
"0.5266135",
"0.5222788",
"0.52001065",
"0.5197609",
"0.5194255",
"0.51941097",
"0.51854163",
"0.51829416",
"0.51779705",
"0.5172403",
"0.51499754",
"0.51363546",
"0.5135867",
"0.511... | 0.0 | -1 |
/ start the method section /// from the HEAD to the candidates at high cutoff | public Ms2Cluster cluster(Map<Ms2Pointer, MsnSpectrum> spectra, Float lowmass, OffsetPpmTolerance tol, double min_dp, int miss_index)
{
// quit if the master or input are not present!
if (mHead==null || !Tools.isSet(spectra)) return null;
mHead.cluster=this;
// setting the seed spectrum
if (getMaster()==null && spectra.get(getHead())!=null)
setMaster(spectra.get(getHead()).copy(new PurgingPeakProcessor()));
// MsnSpectrum HEAD = (mMaster!=null?mMaster:spectra.get(mHead));
// setup the master first
List<Peak> head = Spectra.toListOfPeaks(getMaster(), lowmass);
// get the index of the HEAD spectrum
List<Peak> index = Similarity.index(head, 7, 0, 1, 5, 0);
// the collections
if (mMembers!=null) mMembers.clear(); else mMembers = new ArrayList<>();
// new members from this round
Collection<MsnSpectrum> members = new ArrayList<>();
// the error tolerance
double delta = tol.calcError(500);
for (Ms2Pointer member : mCandidates)
{
MsnSpectrum scan = spectra.get(member);
// need to exclude the head itself
if (member.hcode==getHead().hcode)
{
member.dp=1; // being the self
member.cluster=this;
mMembers.add(member);
continue;
}
if (scan!=null)
{
// calc the forward and backward DPs and choose the smallest
List<Peak> pks = Spectra.toListOfPeaks(scan,lowmass);
// make sure a min number of the index peaks are found
if (miss_index>=0 && index.size()-Peaks.overlap_counts(pks, index, delta, true)>miss_index) continue;
member.dp=(float )Similarity.bidirectional_dp(head, pks, tol, true, true, true);
// now the matching probability
member.prob = (float )Similarity.similarity_hg(head, pks, delta);
if (member.dp>=min_dp)
{
member.cluster=this;
mMembers.add(member);
members.add(spectra.get(member));
}
}
}
mMaster = Spectra.accumulate(getMaster(), tol, 0.5f, members);
mMz = (float )mMaster.getPrecursor().getMz();
mRT = (float )getMaster().getRetentionTimes().getFirst().getTime()/60f;
mCharge = getMaster().getPrecursor().getCharge();
// mID = Tools.d2s(getMz(),3)+"|"+getCharge()+"|"+Tools.d2s(getRT(),1);
mID = toString();
// remove the local objects
head = (List )Tools.dispose(head);
index = (List )Tools.dispose(index);
members = Tools.dispose(members);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"MethodStart createMethodStart();",
"@Override public Iterable<JflowModel.Method> getStartMethods()\n{\n Vector<JflowModel.Method> v = new Vector<JflowModel.Method>();\n\n for (JflowMethod cm : model_master.getStartMethods()) {\n ModelMethod cs = complete_calls.get(cm);\n if (cs != null) v.add(cs);\... | [
"0.59429",
"0.5557254",
"0.5509626",
"0.54385686",
"0.53962976",
"0.5263911",
"0.52392995",
"0.51825494",
"0.5178804",
"0.5172361",
"0.51710653",
"0.5170418",
"0.5162003",
"0.51529914",
"0.51290286",
"0.5086135",
"0.5078751",
"0.50556827",
"0.50538003",
"0.50515646",
"0.50503... | 0.0 | -1 |
trim away the members in the cluster by the matching probability to the 'center'. | public Ms2Cluster trimByMatchProb(Map<Ms2Pointer, MsnSpectrum> spectra, int regions, double cut)
{
// quit if the master or input are not present!
if (mMaster==null || !Tools.isSet(spectra)) return null;
// grab the index from our master first
List<Peak> master = Similarity.index(Spectra.toListOfPeaks(mMaster), regions, 0, 1, 5, 0);
long bins = (long )(Math.log(2)/Math.log(1d+5E-6)), npks = master.size();
Iterator<Ms2Pointer> itr = mCandidates.iterator();
while (itr.hasNext())
{
MsnSpectrum scan = spectra.get(itr.next());
if (scan!=null)
{
List<Peak> member = Similarity.index(Spectra.toListOfPeaks(scan), regions, 0, 1, 5, 0);
int overlap = Peaks.overlap_counts(master, member, 0.01, true);
double prob = Stats.hypergeom(overlap, npks, member.size(), bins);
// check the exit condition
if (-1d*prob<cut) itr.remove();
// clean up the objects
member = (List )Tools.dispose(member);
}
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void recenter()\n {\n PointF center = centroid();\n\n for (PointF point : points)\n {\n point.x -= center.x;\n point.y -= center.y;\n }\n }",
"public Centroid removeCentroid();",
"public void prune(double belowThreshold) {\n \n for(T ... | [
"0.62059146",
"0.6072836",
"0.58596563",
"0.5716251",
"0.5607946",
"0.5454432",
"0.53814596",
"0.5371403",
"0.5356034",
"0.522316",
"0.52227414",
"0.51507664",
"0.51190424",
"0.50816834",
"0.5061623",
"0.5051006",
"0.5043596",
"0.5040717",
"0.5022785",
"0.4996399",
"0.4978870... | 0.51703715 | 11 |
trim the matching candidates by matching probability | public Ms2Cluster trimByDotP(Map<Ms2Pointer, MsnSpectrum> spectra, Tolerance tol, double min_dp)
{
// quit if the master or input are not present!
if (mMaster==null || !Tools.isSet(spectra)) return null;
// setup the master first
List<Peak> master = Spectra.toListOfPeaks(mMaster);
Iterator<Ms2Pointer> itr = mCandidates.iterator();
while (itr.hasNext())
{
MsnSpectrum scan = spectra.get(itr.next());
if (scan!=null && Similarity.dp(master, Spectra.toListOfPeaks(scan), tol, true, true)<min_dp) itr.remove();
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void prune(ArrayList<Morphism> candidates,\n\t\t\tAutomaton automaton) {\n\t\t// this is really inefficient!\n\t\t// at a minimum, we could avoid recomputing lessThan twice for each\n\t\t// candidate.\n\t\tMorphism least = candidates.get(0);\n\t\tfor (Morphism candidate : candidates) {\n\t\t\tif (le... | [
"0.6249524",
"0.570042",
"0.5666094",
"0.5619659",
"0.5454526",
"0.53144014",
"0.52717924",
"0.5218913",
"0.52049553",
"0.51745576",
"0.5163348",
"0.51208264",
"0.504088",
"0.5036984",
"0.5010881",
"0.49966592",
"0.49610084",
"0.49424055",
"0.49335796",
"0.49226147",
"0.4914"... | 0.47696394 | 31 |
Created by wangjianchun on 2017/12/7. | public interface EnterpriseAbbreviationService {
boolean save(EnterpriseAbbreviation entity);
boolean delete(Long id);
boolean batchDelete(Set<Long> ids);
Page<EnterpriseAbbreviation> findPageList(EnterpriseAbbreviation entity);
boolean isExist(String enterpriseId, String shortName);
EnterpriseAbbreviation findByEnterpriseNameAndAbbreviation(String enterpriseName, String abbreviation);
List<EnterpriseAbbreviation> findAllByEnterpriseName(String enterpriseName);
List<EnterpriseAbbreviation> findAll();
EnterpriseAbbreviation findById(Long id);
boolean update(EnterpriseAbbreviation entity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\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\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n ... | [
"0.59705555",
"0.5897596",
"0.5770674",
"0.56718934",
"0.56718934",
"0.56322783",
"0.5623247",
"0.562294",
"0.56111044",
"0.5609783",
"0.56097287",
"0.55940264",
"0.5569696",
"0.5543058",
"0.553873",
"0.5493128",
"0.5480611",
"0.54528326",
"0.545158",
"0.545158",
"0.545158",
... | 0.0 | -1 |
/ Applies gravity by incrementing the Y component of the ball's velocity whenever the method is called (every .02 seconds). In other words, this method applies a constant acceleration of 100 pixles / second / second | public static void applyGravity() {
for (Ball b : Panel.balls) {
b.setyVelocity(b.getyVelocity() + 2);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updatePhysics() {\n ball.setLayoutX(ball.getLayoutX() + velX);\n ball.setLayoutY(ball.getLayoutY() - velY);\n\n velY += accelY;\n velX += accelX;\n }",
"private void updateVelWithAccel(Ball ball, double timeDelta) {\n if (!ball.isHeld()) {\n // Updatin... | [
"0.7115956",
"0.6980368",
"0.68875307",
"0.6835507",
"0.67875713",
"0.67875713",
"0.6772037",
"0.67581695",
"0.6748773",
"0.6660452",
"0.6616962",
"0.65774584",
"0.6566832",
"0.65479475",
"0.64755285",
"0.64575255",
"0.6434495",
"0.64136505",
"0.6405688",
"0.63788575",
"0.637... | 0.73731875 | 0 |
/ moves the balls by adding the balls velocity to it's position. before moving the ball, boundries are checked and velocity is reversed if a boundry collision is going to happen in the next frame. Also makes the balls "lose energy" on each collision with the bottom boundry | public static void moveBalls() {
for (Ball b : Panel.balls) {
if (b.getxPOS() + b.getxVelocity() < 410 || b.getxPOS() + b.getxVelocity() > (1200 - (b.getMass() * 7))) { //checking next frame for boundry collision
b.setxVelocity(-b.getxVelocity()); //reverseing velocity if true
}
if (b.getyPOS() + b.getyVelocity() < 0) {
b.setyVelocity(-(b.getyVelocity()));
}
if (b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22) { //on each collision with the floor, decrease the balls X and Y velocity
b.setyVelocity(-(b.getyVelocity() - energyLost));
if (Panel.tick % 7 == 0 && Panel.Gravity) {
if (b.getxVelocity() < 0) {
b.setxVelocity(b.getxVelocity() + 1);
}
if (b.getxVelocity() > 0) {
b.setxVelocity(b.getxVelocity() - 1);
}
}
}
if (!(b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22)) { //applying motion in the Y direction only if the ball is not resting on the floor
b.setyPOS(b.getyPOS() + b.getyVelocity());
}
else {
b.setyPOS((800 - (b.getMass() * 7)) - 22);
}
b.setxPOS(b.getxPOS() + b.getxVelocity()); //motion is always applied in the X direction
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void move() { check for bounce and make the ball bounce if necessary\n\t\t//\n\t\tif (x < 0 && dx < 0) {\n\t\t\t// bounce off the left wall\n\t\t\tx = 0;\n\t\t\tdx = -dx;\n\t\t}\n\t\tif (y < 0 && dy < 0) {\n\t\t\t// bounce off the top wall\n\t\t\ty = 0;\n\t\t\tdy = -dy;\n\t\t}\n\t\tif (x > panel.getWidth() ... | [
"0.7362863",
"0.7244823",
"0.72306746",
"0.7230293",
"0.715574",
"0.7121984",
"0.70505136",
"0.6986767",
"0.6965116",
"0.6958921",
"0.69401014",
"0.69380164",
"0.6930301",
"0.691115",
"0.6869835",
"0.6842838",
"0.68423706",
"0.6799418",
"0.6785713",
"0.6782061",
"0.6730342",
... | 0.8387592 | 0 |
/ Collisions are check by comparing each Ball object to each other Ball object in the arrayList using .intersects() (no equal comparisions) If a collision is found, reverse the velocity of the two Ball objects | public static void checkCollisions() {
for (Ball b1 : Panel.balls) {
for (Ball b2 : Panel.balls) {
if (b1.Bounds().intersects(b2.Bounds()) && !b1.equals(b2)) { //checking for collision and no equals comparisions
int vX = b1.getxVelocity();
int vY = b1.getyVelocity();
b1.setxVelocity(b2.getxVelocity()); //reversing velocities of each Ball object
b1.setyVelocity(b2.getyVelocity());
b2.setxVelocity(vX);
b2.setyVelocity(vY);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void CheckCollision(Ball b){\n\n if( b.getDirX() < 0f ){\n if( (b.getPosX() - b.getSizeX() ) < px + sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDir... | [
"0.69989467",
"0.66909814",
"0.6662834",
"0.66418636",
"0.66258734",
"0.657518",
"0.6555991",
"0.65183794",
"0.6503789",
"0.6495582",
"0.6437106",
"0.6405682",
"0.6382393",
"0.63779545",
"0.63323134",
"0.63309133",
"0.6266835",
"0.6191568",
"0.618609",
"0.61738956",
"0.617207... | 0.71308005 | 0 |
Populates the ArrayList of Balls with new Ball objects | public static void addBalls() {
for (int i = 0; i < numberOfBalls; i++) {
Panel.balls.add(new Ball());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createBalls() {\n // add the required amount of balls according to the levelinfo.\n for (int i = 0; i < this.levelInfo.numberOfBalls(); i++) {\n Ball ball = new Ball(new Point(400, 580), 5, java.awt.Color.WHITE);\n // let the ball know the frame limits.\n ... | [
"0.73390365",
"0.7052526",
"0.7032886",
"0.6986997",
"0.6942254",
"0.68747973",
"0.681119",
"0.6719716",
"0.668297",
"0.6676842",
"0.6640449",
"0.6623704",
"0.6382338",
"0.6354913",
"0.6335266",
"0.6297133",
"0.6241116",
"0.62133557",
"0.61168855",
"0.6043132",
"0.6040709",
... | 0.7824923 | 0 |
Draws the balls at their given X, Y, and sixeX, and sizeY values | public static void drawBalls(Graphics2D g2) {
for (Ball b : Panel.balls) {
g2.setColor(b.getColor());
g2.fillOval(b.getxPOS(), b.getyPOS(), b.getMass() * 7, b.getMass() * 7);
g2.setColor(Color.black);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void paintBalls(Graphics g);",
"public void draw()\n {\n Rectangle hatbox = new Rectangle(x, y, 20, 20);\n hatbox.fill();\n Rectangle brim = new Rectangle(x-10, y+20, 40, 0);\n brim.draw();\n Ellipse circle = new Ellipse (x, y+20, 20, 20);\n circle.draw();\n ... | [
"0.6751135",
"0.6538239",
"0.6374672",
"0.63567257",
"0.6308327",
"0.62937903",
"0.62402976",
"0.6195539",
"0.617959",
"0.61775494",
"0.61076826",
"0.60832286",
"0.60697484",
"0.6031933",
"0.6011131",
"0.5998812",
"0.59787875",
"0.5976008",
"0.59693265",
"0.59581846",
"0.5957... | 0.6026508 | 14 |
Created by Babu on 10/3/2016. | public interface GitFollowingsService {
@GET("users/{username}/following")
Observable<List<Follow>> getGitFollowings(@Path("username") String username);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\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}",
"public final void mo51373a() {\n }"... | [
"0.6103699",
"0.59443396",
"0.5930533",
"0.5930533",
"0.5919326",
"0.5900393",
"0.5859532",
"0.58114105",
"0.5800222",
"0.5773395",
"0.5718813",
"0.57108086",
"0.57072824",
"0.5680192",
"0.5678671",
"0.5672608",
"0.5664108",
"0.5662727",
"0.56573266",
"0.5641967",
"0.5623644"... | 0.0 | -1 |
Display the first 500 characters of the response string. | @Override
public void onResponse(String response) {
String [] arrOfStr = response.split("#", 28);
znmo=arrOfStr[0];
znst=arrOfStr[1];
znrt=arrOfStr[2];
znei=arrOfStr[3];
znKp=arrOfStr[4];
znKi=arrOfStr[5];
znKd=arrOfStr[6];
ccmo=arrOfStr[7];
ccst=arrOfStr[8];
ccrt=arrOfStr[9];
ccei=arrOfStr[10];
ccKp=arrOfStr[11];
ccKi=arrOfStr[12];
ccKd=arrOfStr[13];
imcmo=arrOfStr[14];
imcst=arrOfStr[15];
imcrt=arrOfStr[16];
imcei=arrOfStr[17];
imcKp=arrOfStr[18];
imcKi=arrOfStr[19];
imcKd=arrOfStr[20];
hmmo=arrOfStr[21];
hmst=arrOfStr[22];
hmrt=arrOfStr[23];
hmei=arrOfStr[24];
hmKp=arrOfStr[25];
hmKi=arrOfStr[26];
hmKd=arrOfStr[27];
tvznmo.setText(znmo);
tvznst.setText(znst);
tvznrt.setText(znrt);
tvznei.setText(znei);
tvznKp.setText(znKp);
tvznKi.setText(znKi);
tvznKd.setText(znKd);
tvccmo.setText(ccmo);
tvccst.setText(ccst);
tvccrt.setText(ccrt);
tvccei.setText(ccei);
tvccKp.setText(ccKp);
tvccKi.setText(ccKi);
tvccKd.setText(ccKd);
tvimcmo.setText(imcmo);
tvimcst.setText(imcst);
tvimcrt.setText(imcrt);
tvimcei.setText(imcei);
tvimcKp.setText(imcKp);
tvimcKi.setText(imcKi);
tvimcKd.setText(imcKd);
tvhmmo.setText(hmmo);
tvhmst.setText(hmst);
tvhmrt.setText(hmrt);
tvhmei.setText(hmei);
tvhmKp.setText(hmKp);
tvhmKi.setText(hmKi);
tvhmKd.setText(hmKd);
//Log.i("end:",response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void responseHandler(StringBuilder sb)\n\t{\n\t\tString s = sb.toString();\t\t\n\t\tString[] lines = s.split(\"\\n\");\t\t\n\t\tString firstLine = \"\";\n\t\t\n\t\t// Only search through the first five lines. If it isn't \n\t\t// in the first five lines it probably isn't there.\n\t\tfor(int i = 0; i... | [
"0.6098763",
"0.5462494",
"0.52524203",
"0.5198244",
"0.5148647",
"0.51042295",
"0.5014053",
"0.5012863",
"0.5007059",
"0.49552792",
"0.49431968",
"0.4936323",
"0.49273297",
"0.48955184",
"0.4895279",
"0.4885787",
"0.48645523",
"0.48620734",
"0.485772",
"0.4851627",
"0.483383... | 0.0 | -1 |
String fullid = view.getResources().getResourceName(view.getId()); String[] idsplit = fullid.split("/"); String id = idsplit[1]; System.out.println(fullid); | public void sendDataToESP(String data){
URL remoteurl = null;
String baseurl = "http://"+IpAddress+"/";
String urlString = baseurl + data;
System.out.println(urlString);
try {
remoteurl = new URL(urlString);
} catch (MalformedURLException e) {
e.printStackTrace();
}
new AutoActivity.pingit().execute(remoteurl);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getResourceID();",
"String getUview_id();",
"String resourceGuid();",
"int getResourceId();",
"public String _s(int res_id) {\n\t\treturn mContext.getResources().getString(res_id);\n\t}",
"public String getStringID() {\r\n\t\treturn uri.getPath();\r\n\t}",
"protected static String isolateName(St... | [
"0.67884344",
"0.6198389",
"0.6126304",
"0.5873906",
"0.5797547",
"0.57958835",
"0.5748842",
"0.5697965",
"0.5696407",
"0.5689264",
"0.5618201",
"0.5601447",
"0.5599083",
"0.5544699",
"0.551522",
"0.54973114",
"0.54973114",
"0.54973114",
"0.54973114",
"0.54973114",
"0.5497311... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setLocale(Keypay_Odeme.getSys_Language());
setContentView(R.layout.settings);
loadSetting();
rdB_TR=(RadioButton)findViewById(R.id.rdB_TR);
rdB_EN=(RadioButton)findViewById(R.id.rdB_EN);
final RadioGroup radioGroup = (RadioGroup) findViewById(R.id.switchcontainer);
radioGroup.setOnCheckedChangeListener(this.radioGroup);
Button btn_language=(Button)findViewById(R.id.btnLanguages);
View panelProfile = findViewById(R.id.panelProfile);
panelProfile.setVisibility(View.GONE);
btn_language.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// DO STUFF
View panelProfile = findViewById(R.id.panelProfile);
if(panelProfile.getVisibility()==8)//panel kapalý demek
panelProfile.setVisibility(View.VISIBLE);
else
panelProfile.setVisibility(View.GONE);
}
});
} | {
"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 onCheckedChanged(RadioGroup group, int checkedId) {
String str="";
if(rdB_TR.isChecked())
str="TR";
else
str="EN";
SharedPreferences ayar=PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
SharedPreferences.Editor editor = ayar.edit();
editor.putString(UYARI, str);
editor.commit(); // Very important
Keypay_Odeme.setSys_Language(str);
setLocale(str);
setContentView(R.layout.settings);
loadSetting();
finish();
} | {
"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 |
Byte code: 0: aload_1 1: invokevirtual getCdr : ()Ljava/lang/Object; 4: astore_1 5: aload_3 6: instanceof gnu/expr/ModuleExp 9: ifne > 48 12: aload 4 14: bipush 101 16: new java/lang/StringBuilder 19: dup 20: invokespecial : ()V 23: ldc ''' 25: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; 28: aload_0 29: invokevirtual getName : ()Ljava/lang/String; 32: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; 35: ldc '' not at module level' 37: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; 40: invokevirtual toString : ()Ljava/lang/String; 43: invokevirtual error : (CLjava/lang/String;)V 46: iconst_1 47: ireturn 48: aload_3 49: checkcast gnu/expr/ModuleExp 52: astore_2 53: aload_1 54: instanceof gnu/lists/Pair 57: ifeq > 143 60: aload_1 61: checkcast gnu/lists/Pair 64: astore 5 66: aload 5 68: invokevirtual getCdr : ()Ljava/lang/Object; 71: getstatic gnu/lists/LList.Empty : Lgnu/lists/LList; 74: if_acmpne > 143 77: aload 5 79: invokevirtual getCar : ()Ljava/lang/Object; 82: instanceof java/lang/Boolean 85: ifeq > 143 88: aload 5 90: invokevirtual getCar : ()Ljava/lang/Object; 93: getstatic java/lang/Boolean.FALSE : Ljava/lang/Boolean; 96: if_acmpne > 134 99: aload_2 100: ldc 65536 102: invokevirtual setFlag : (I)V 105: aload_2 106: ldc 65536 108: invokevirtual getFlag : (I)Z 111: ifeq > 46 114: aload_2 115: ldc 32768 117: invokevirtual getFlag : (I)Z 120: ifeq > 46 123: aload 4 125: bipush 101 127: ldc 'inconsistent modulestatic specifiers' 129: invokevirtual error : (CLjava/lang/String;)V 132: iconst_1 133: ireturn 134: aload_2 135: ldc 32768 137: invokevirtual setFlag : (I)V 140: goto > 105 143: aload_1 144: instanceof gnu/lists/Pair 147: ifeq > 292 150: aload_1 151: checkcast gnu/lists/Pair 154: astore 5 156: aload 5 158: invokevirtual getCdr : ()Ljava/lang/Object; 161: getstatic gnu/lists/LList.Empty : Lgnu/lists/LList; 164: if_acmpne > 292 167: aload 5 169: invokevirtual getCar : ()Ljava/lang/Object; 172: instanceof gnu/lists/Pair 175: ifeq > 292 178: aload 5 180: invokevirtual getCar : ()Ljava/lang/Object; 183: checkcast gnu/lists/Pair 186: astore 5 188: aload 4 190: aload 5 192: invokevirtual getCar : ()Ljava/lang/Object; 195: ldc 'quote' 197: invokevirtual matches : (Ljava/lang/Object;Ljava/lang/String;)Z 200: ifeq > 292 203: aload 5 205: invokevirtual getCdr : ()Ljava/lang/Object; 208: checkcast gnu/lists/Pair 211: astore_1 212: aload_1 213: getstatic gnu/lists/LList.Empty : Lgnu/lists/LList; 216: if_acmpeq > 256 219: aload_1 220: invokevirtual getCar : ()Ljava/lang/Object; 223: instanceof gnu/mapping/SimpleSymbol 226: ifeq > 256 229: aload_1 230: invokevirtual getCar : ()Ljava/lang/Object; 233: invokevirtual toString : ()Ljava/lang/String; 236: ldc 'initrun' 238: if_acmpne > 256 241: aload_2 242: ldc 32768 244: invokevirtual setFlag : (I)V 247: aload_2 248: ldc 262144 250: invokevirtual setFlag : (I)V 253: goto > 105 256: aload 4 258: bipush 101 260: new java/lang/StringBuilder 263: dup 264: invokespecial : ()V 267: ldc 'invalid quoted symbol for '' 269: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; 272: aload_0 273: invokevirtual getName : ()Ljava/lang/String; 276: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; 279: bipush 39 281: invokevirtual append : (C)Ljava/lang/StringBuilder; 284: invokevirtual toString : ()Ljava/lang/String; 287: invokevirtual error : (CLjava/lang/String;)V 290: iconst_0 291: ireturn 292: aload_2 293: ldc 65536 295: invokevirtual setFlag : (I)V 298: aload_1 299: getstatic gnu/lists/LList.Empty : Lgnu/lists/LList; 302: if_acmpeq > 105 305: aload_1 306: instanceof gnu/lists/Pair 309: ifeq > 327 312: aload_1 313: checkcast gnu/lists/Pair 316: astore_1 317: aload_1 318: invokevirtual getCar : ()Ljava/lang/Object; 321: instanceof gnu/mapping/Symbol 324: ifne > 363 327: aload 4 329: bipush 101 331: new java/lang/StringBuilder 334: dup 335: invokespecial : ()V 338: ldc 'invalid syntax in '' 340: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; 343: aload_0 344: invokevirtual getName : ()Ljava/lang/String; 347: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; 350: bipush 39 352: invokevirtual append : (C)Ljava/lang/StringBuilder; 355: invokevirtual toString : ()Ljava/lang/String; 358: invokevirtual error : (CLjava/lang/String;)V 361: iconst_0 362: ireturn 363: aload_3 364: aload_1 365: invokevirtual getCar : ()Ljava/lang/Object; 368: checkcast gnu/mapping/Symbol 371: invokevirtual getNoDefine : (Ljava/lang/Object;)Lgnu/expr/Declaration; 374: astore 5 376: aload 5 378: ldc2_w 512 381: invokevirtual getFlag : (J)Z 384: ifeq > 393 387: aload 5 389: aload_1 390: invokestatic setLine : (Lgnu/expr/Declaration;Ljava/lang/Object;)V 393: aload 5 395: ldc2_w 2048 398: invokevirtual setFlag : (J)V 401: aload_1 402: invokevirtual getCdr : ()Ljava/lang/Object; 405: astore_1 406: goto > 298 | public boolean scanForDefinitions(Pair paramPair, Vector paramVector, ScopeExp paramScopeExp, Translator paramTranslator) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public final void run() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 1: monitorenter \n // 2: ldc \"-\"\n // 4: putstatic ao.j:Ljava/lang/String;\n // 7: aconst_null ... | [
"0.637822",
"0.6169662",
"0.589518",
"0.5865094",
"0.5850423",
"0.5831241",
"0.5783826",
"0.57776296",
"0.57704276",
"0.5718144",
"0.57028866",
"0.56960106",
"0.56917965",
"0.56571555",
"0.5627704",
"0.56244284",
"0.56085294",
"0.5607656",
"0.5596366",
"0.5569346",
"0.5567468... | 0.0 | -1 |
Creates a new join point compiler instance. | FieldSetJoinPointCompiler(final CompilationInfo.Model model) {
super(model);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Join createJoin();",
"public BaseJoin compileJoin(Condition condition, int position, Rule rule, Condition previousCond) {\n\t\tTestCondition tc = (TestCondition)condition;\n ShellFunction fn = (ShellFunction)tc.getFunction();\n fn.lookUpFunction(ruleCompiler.getEngine());\n Parameter[] oldpm... | [
"0.5806182",
"0.5014174",
"0.47648656",
"0.47194564",
"0.47007546",
"0.46768367",
"0.4676187",
"0.46566895",
"0.45982954",
"0.45208073",
"0.44298917",
"0.44204777",
"0.44122678",
"0.44105917",
"0.44072965",
"0.4401434",
"0.4379118",
"0.4372141",
"0.4370135",
"0.43677092",
"0.... | 0.45506412 | 9 |
Creates join point specific fields. | protected void createJoinPointSpecificFields() {
String[] fieldNames = null;
// create the field argument field
Type fieldType = Type.getType(m_calleeMemberDesc);
fieldNames = new String[1];
String fieldName = ARGUMENT_FIELD + 0;
fieldNames[0] = fieldName;
m_cw.visitField(ACC_PRIVATE, fieldName, fieldType.getDescriptor(), null, null);
m_fieldNames = fieldNames;
m_cw.visitField(
ACC_PRIVATE + ACC_STATIC,
SIGNATURE_FIELD_NAME,
FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE,
null,
null
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createC... | [
"0.6039044",
"0.5569753",
"0.5466703",
"0.5359722",
"0.5273116",
"0.52629447",
"0.5204312",
"0.5155271",
"0.51288986",
"0.50662875",
"0.5040584",
"0.50230813",
"0.50125813",
"0.5009119",
"0.49791613",
"0.49786997",
"0.49385858",
"0.49188173",
"0.48575866",
"0.4817026",
"0.480... | 0.68326384 | 0 |
Creates the signature for the join point. FIXME signature field should NOT be of type Signature but of the specific type (update all refs as well) | protected void createSignature(final MethodVisitor cv) {
cv.visitFieldInsn(GETSTATIC, m_joinPointClassName, TARGET_CLASS_FIELD_NAME_IN_JP, CLASS_CLASS_SIGNATURE);
cv.visitLdcInsn(Integer.valueOf(m_joinPointHash));
cv.visitMethodInsn(
INVOKESTATIC,
SIGNATURE_FACTORY_CLASS,
NEW_FIELD_SIGNATURE_METHOD_NAME,
NEW_FIELD_SIGNATURE_METHOD_SIGNATURE,
false
);
cv.visitFieldInsn(PUTSTATIC, m_joinPointClassName, SIGNATURE_FIELD_NAME, FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.apache.calcite.avatica.proto.Common.Signature getSignature();",
"SignatureIdentification createSignatureIdentification();",
"org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder();",
"protected void createGetSignatureMethod() {\n MethodVisitor cv = m_cw.visitMethod(\n ... | [
"0.60759914",
"0.6064154",
"0.6007891",
"0.591095",
"0.57908064",
"0.5775666",
"0.5775666",
"0.5775666",
"0.575508",
"0.57125247",
"0.5696655",
"0.5690864",
"0.5599922",
"0.55624974",
"0.55441",
"0.5538997",
"0.5535614",
"0.5434824",
"0.54211205",
"0.5407702",
"0.53846586",
... | 0.6160986 | 0 |
Optimized implementation that does not retrieve the parameters from the join point instance but is passed directly to the method from the input parameters in the 'invoke' method. Can only be used if no around advice exists. | protected void createInlinedJoinPointInvocation(final MethodVisitor cv, final CompilerInput input) {
// load the target instance (arg0 else not available for static target)
if (!Modifier.isStatic(m_calleeMemberModifiers)) {
cv.visitVarInsn(ALOAD, 0);
}
loadArgumentMemberFields(cv, input.argStartIndex);
// do we have a public field ? If so don't use the wrappers
if (Modifier.isPublic(m_calleeMemberModifiers)) {
if (Modifier.isStatic(m_calleeMemberModifiers)) {
cv.visitFieldInsn(PUTSTATIC, m_calleeClassName, m_calleeMemberName, m_calleeMemberDesc);
} else {
cv.visitFieldInsn(PUTFIELD, m_calleeClassName, m_calleeMemberName, m_calleeMemberDesc);
}
} else {
String joinPointName = null; // can be prefixed
joinPointName = m_calleeMemberName;
joinPointName = TransformationUtil.getWrapperMethodName(
joinPointName,
m_calleeMemberDesc,
m_calleeClassName,
PUTFIELD_WRAPPER_METHOD_PREFIX
);
StringBuffer sig = new StringBuffer();
sig.append('(');
sig.append(m_calleeMemberDesc);
sig.append(')');
sig.append('V');
if (Modifier.isStatic(m_calleeMemberModifiers)) {
cv.visitMethodInsn(INVOKESTATIC, m_calleeClassName, joinPointName, sig.toString(), false);
} else {
cv.visitMethodInsn(INVOKEVIRTUAL, m_calleeClassName, joinPointName, sig.toString(), false);
}
}
AsmHelper.addDefaultValue(cv, m_argumentTypes[0]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object proceed() throws Throwable {\n if (joinPoint!=null) {\n return joinPoint.proceed();\n }\n return method.invoke(myObject, args);\n }",
"public Object logCall(ProceedingJoinPoint joinPoint) {\n Method method = ((MethodSignature) joinPoint.getSignature()).getM... | [
"0.6543868",
"0.63289267",
"0.6321671",
"0.61074156",
"0.5973536",
"0.58935237",
"0.58236",
"0.5813817",
"0.57854974",
"0.57391036",
"0.57356894",
"0.56685656",
"0.5654808",
"0.5600312",
"0.5550707",
"0.5527195",
"0.5479691",
"0.5474909",
"0.54632175",
"0.5433624",
"0.5422020... | 0.5636326 | 13 |
Creates a call to the target join point, the parameter(s) to the join point are retrieved from the invocation local join point instance. | protected void createJoinPointInvocation(final MethodVisitor cv) {
// load the target instance member field unless calleeMember is static
if (!Modifier.isStatic(m_calleeMemberModifiers)) {
cv.visitVarInsn(ALOAD, 0);
cv.visitFieldInsn(GETFIELD, m_joinPointClassName, CALLEE_INSTANCE_FIELD_NAME, m_calleeClassSignature);
}
loadArguments(cv);
// do we have a public field ? If so don't use the wrappers
if (Modifier.isPublic(m_calleeMemberModifiers)) {
if (Modifier.isStatic(m_calleeMemberModifiers)) {
cv.visitFieldInsn(PUTSTATIC, m_calleeClassName, m_calleeMemberName, m_calleeMemberDesc);
} else {
cv.visitFieldInsn(PUTFIELD, m_calleeClassName, m_calleeMemberName, m_calleeMemberDesc);
}
} else {
String joinPointName = TransformationUtil.getWrapperMethodName(
m_calleeMemberName,
m_calleeMemberDesc,
m_calleeClassName,
PUTFIELD_WRAPPER_METHOD_PREFIX
);
StringBuffer putFieldWrapperDesc = new StringBuffer();
putFieldWrapperDesc.append('(');
putFieldWrapperDesc.append(m_calleeMemberDesc);
putFieldWrapperDesc.append(')');
putFieldWrapperDesc.append('V');
if (Modifier.isStatic(m_calleeMemberModifiers)) {
cv.visitMethodInsn(INVOKESTATIC, m_calleeClassName, joinPointName, putFieldWrapperDesc.toString(), false);
} else {
cv.visitMethodInsn(INVOKEVIRTUAL, m_calleeClassName, joinPointName, putFieldWrapperDesc.toString(), false);
}
}
AsmHelper.addDefaultValue(cv, m_argumentTypes[0]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void createInlinedJoinPointInvocation(final MethodVisitor cv, final CompilerInput input) {\n\n // load the target instance (arg0 else not available for static target)\n if (!Modifier.isStatic(m_calleeMemberModifiers)) {\n cv.visitVarInsn(ALOAD, 0);\n }\n\n loadArgumentMemberFields(cv, in... | [
"0.59002125",
"0.57544875",
"0.5507998",
"0.5385697",
"0.5247969",
"0.52001363",
"0.51189995",
"0.50178486",
"0.49395132",
"0.49366727",
"0.4933351",
"0.48741356",
"0.4841202",
"0.48214877",
"0.47834298",
"0.47822395",
"0.4779461",
"0.4775205",
"0.47412187",
"0.47357756",
"0.... | 0.6368128 | 0 |
Returns the join points return type. | protected Type getJoinPointReturnType() {
return Type.getType(m_calleeMemberDesc);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getJoinType() {\n if (joinQueryInputs.queryType == null) {\n return null;\n }\n switch (joinQueryInputs.queryType) {\n case Constants.JOIN_TYPE_INNER_JOIN:\n return Constants.JOIN_INNER_JOIN;\n case Constants.JOIN_TYPE_LEFT_JOIN:\n... | [
"0.64143986",
"0.60005534",
"0.590376",
"0.57803464",
"0.57503474",
"0.5716556",
"0.56675273",
"0.5666198",
"0.5594928",
"0.5546962",
"0.5546587",
"0.54808056",
"0.54481065",
"0.54380393",
"0.53792274",
"0.53745544",
"0.53721845",
"0.53659624",
"0.53540903",
"0.53353363",
"0.... | 0.67415106 | 0 |
Returns the join points argument type(s). | protected Type[] getJoinPointArgumentTypes() {
return new Type[]{Type.getType(m_calleeMemberDesc)};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }",
"private String getJoinType() {\n if (joinQueryInpu... | [
"0.61586905",
"0.6078585",
"0.598844",
"0.5714049",
"0.5643942",
"0.553156",
"0.55287784",
"0.552601",
"0.5462774",
"0.54627246",
"0.5378821",
"0.5344212",
"0.5335863",
"0.53076106",
"0.52888125",
"0.5251978",
"0.5244604",
"0.5242663",
"0.5194717",
"0.5183025",
"0.5166777",
... | 0.7088569 | 0 |
Creates the getRtti method | protected void createGetRttiMethod() {
MethodVisitor cv = m_cw.visitMethod(ACC_PUBLIC, GET_RTTI_METHOD_NAME, GET_RTTI_METHOD_SIGNATURE, null, null);
// new FieldRttiImpl( .. )
cv.visitTypeInsn(NEW, FIELD_RTTI_IMPL_CLASS_NAME);
cv.visitInsn(DUP);
cv.visitFieldInsn(GETSTATIC, m_joinPointClassName, SIGNATURE_FIELD_NAME, FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE);
cv.visitVarInsn(ALOAD, 0);
cv.visitFieldInsn(GETFIELD, m_joinPointClassName, CALLER_INSTANCE_FIELD_NAME, m_callerClassSignature);
cv.visitVarInsn(ALOAD, 0);
cv.visitFieldInsn(GETFIELD, m_joinPointClassName, CALLEE_INSTANCE_FIELD_NAME, m_calleeClassSignature);
cv.visitMethodInsn(
INVOKESPECIAL, FIELD_RTTI_IMPL_CLASS_NAME, INIT_METHOD_NAME, FIELD_RTTI_IMPL_INIT_SIGNATURE, false
);
// set the value
cv.visitInsn(DUP);
if (AsmHelper.isPrimitive(m_returnType)) {
AsmHelper.prepareWrappingOfPrimitiveType(cv, m_returnType);
cv.visitVarInsn(ALOAD, 0);
cv.visitFieldInsn(GETFIELD, m_joinPointClassName, RETURN_VALUE_FIELD_NAME, m_returnType.getDescriptor());
AsmHelper.wrapPrimitiveType(cv, m_returnType);
} else {
cv.visitVarInsn(ALOAD, 0);
cv.visitFieldInsn(GETFIELD, m_joinPointClassName, RETURN_VALUE_FIELD_NAME, m_returnType.getDescriptor());
}
cv.visitMethodInsn(
INVOKEVIRTUAL,
FIELD_RTTI_IMPL_CLASS_NAME,
SET_FIELD_VALUE_METHOD_NAME,
SET_FIELD_VALUE_METHOD_SIGNATURE,
false
);
cv.visitInsn(ARETURN);
cv.visitMaxs(0, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract RlcpMethod getMethod();",
"public abstract int mo12580RT(int i);",
"TR createTR();",
"public abstract RobustEstimatorMethod getMethod();",
"public abstract RobustEstimatorMethod getMethod();",
"public abstract RobustEstimatorMethod getMethod();",
"public abstract int getTribeID();",
"... | [
"0.57325464",
"0.56136763",
"0.5520436",
"0.5507375",
"0.5507375",
"0.5507375",
"0.5506451",
"0.54801273",
"0.5400819",
"0.5381386",
"0.53775024",
"0.53602743",
"0.53592944",
"0.5301724",
"0.52601033",
"0.5239686",
"0.5239431",
"0.523474",
"0.5232903",
"0.52222264",
"0.520863... | 0.7621457 | 0 |
Creates the getSignature method. | protected void createGetSignatureMethod() {
MethodVisitor cv = m_cw.visitMethod(
ACC_PUBLIC,
GET_SIGNATURE_METHOD_NAME,
GET_SIGNATURE_METHOD_SIGNATURE,
null,
null
);
cv.visitFieldInsn(
GETSTATIC, m_joinPointClassName,
SIGNATURE_FIELD_NAME, FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE
);
cv.visitInsn(ARETURN);
cv.visitMaxs(0, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Signature getSignature();",
"public abstract String getSignature();",
"String getSignature();",
"String getSignature();",
"String getSignature();",
"org.apache.calcite.avatica.proto.Common.Signature getSignature();",
"int getSignature ();",
"public abstract byte[] getSignature();",
"ISModifySignatu... | [
"0.7645928",
"0.7595838",
"0.7594149",
"0.7594149",
"0.7594149",
"0.7253234",
"0.7191193",
"0.71651447",
"0.6907955",
"0.6831235",
"0.68224853",
"0.6815314",
"0.6761295",
"0.6670106",
"0.6549137",
"0.6488642",
"0.647769",
"0.64520746",
"0.64472604",
"0.64472604",
"0.641771",
... | 0.83066887 | 0 |
Creates new form AccesoLogin | public AccesoLogin() {
initComponents();
this.setSize(410, 500);
this.setResizable(false);
this.setLocationRelativeTo(null);
this.setIconImage(new ImageIcon(getClass().getResource("/imagenes/principal/logo.png")).getImage());
this.setTitle("ACCESO - SISTEMA ENRAMADA SALAS (SIENSA)");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }",
"public JanelaLogin() {\n \t\n \tConexao c = new Conexao();\n \t\n \t\n initComponents();\n }",
"publi... | [
"0.7089265",
"0.66195756",
"0.65891385",
"0.6537256",
"0.64706594",
"0.6462482",
"0.6452903",
"0.64431363",
"0.64396554",
"0.6375515",
"0.63678336",
"0.63396156",
"0.629843",
"0.6292135",
"0.6292135",
"0.62776935",
"0.6247083",
"0.6228381",
"0.6170758",
"0.61648834",
"0.61306... | 0.5962356 | 57 |
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();
panel1 = new org.edisoncor.gui.panel.Panel();
labelMetric3 = new org.edisoncor.gui.label.LabelMetric();
jLabel3 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
salir = new javax.swing.JButton();
entrar = new javax.swing.JButton();
jPanel2 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
contraseña = new jpass.JRPasswordField();
usuario = new app.bolivia.swing.JCTextField();
jLabel2 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
formWindowClosing(evt);
}
});
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
panel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/principal/loginImagen.jpg"))); // NOI18N
labelMetric3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
labelMetric3.setText("¡¡¡ bienvenido a siensa !!!");
labelMetric3.setFont(new java.awt.Font("Showcard Gothic", 1, 24)); // NOI18N
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/principal/logoAcceso.png"))); // NOI18N
javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);
panel1.setLayout(panel1Layout);
panel1Layout.setHorizontalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(labelMetric3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
panel1Layout.setVerticalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(22, 22, 22)
.addComponent(labelMetric3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/principal/user.png"))); // NOI18N
jLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(14, 148, 193), 2));
salir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/principal/salir2.png"))); // NOI18N
salir.setBorder(null);
salir.setBorderPainted(false);
salir.setContentAreaFilled(false);
salir.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
salir.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/principal/salir1.png"))); // NOI18N
salir.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
salirActionPerformed(evt);
}
});
entrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/principal/entrar2.png"))); // NOI18N
entrar.setBorder(null);
entrar.setBorderPainted(false);
entrar.setContentAreaFilled(false);
entrar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
entrar.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/principal/entrar1.png"))); // NOI18N
entrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
entrarActionPerformed(evt);
}
});
jPanel2.setBackground(new java.awt.Color(0, 102, 153));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 33, Short.MAX_VALUE)
);
jPanel3.setBackground(new java.awt.Color(255, 255, 255));
jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
contraseña.setBackground(new java.awt.Color(34, 102, 145));
contraseña.setBorder(null);
contraseña.setForeground(new java.awt.Color(255, 255, 255));
contraseña.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
contraseña.setOpaque(false);
contraseña.setPhColor(new java.awt.Color(255, 255, 255));
contraseña.setPlaceholder("CONTRSEÑA");
jPanel3.add(contraseña, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 180, -1));
usuario.setBackground(new java.awt.Color(34, 102, 145));
usuario.setBorder(null);
usuario.setForeground(new java.awt.Color(255, 255, 255));
usuario.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
usuario.setOpaque(false);
usuario.setPhColor(new java.awt.Color(255, 255, 255));
usuario.setPlaceholder("USUARIO");
usuario.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
usuarioKeyReleased(evt);
}
});
jPanel3.add(usuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 180, -1));
jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/principal/campoLoginUs.png"))); // NOI18N
jPanel3.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 52));
jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/principal/campoLoginPass.png"))); // NOI18N
jPanel3.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 60, -1, 52));
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(panel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(entrar)
.addGap(18, 18, 18)
.addComponent(salir)
.addGap(46, 46, 46))
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(salir)
.addComponent(entrar))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
} | {
"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.73207104",
"0.7291319",
"0.7291319",
"0.7291319",
"0.7286366",
"0.7249061",
"0.7213687",
"0.7208364",
"0.7196237",
"0.7191069",
"0.7185096",
"0.7159581",
"0.7148432",
"0.70938945",
"0.707995",
"0.7056585",
"0.69874734",
"0.697786",
"0.6955647",
"0.6953296",
"0.69459146",
... | 0.0 | -1 |
Initialize the contents of the frame. | private void initialize() {
frame = new JFrame();
frame.addWindowListener(new WindowAdapter() {
@Override
public void windowOpened(WindowEvent e) {
Showdata();
}
});
frame.setBounds(100, 100, 1058, 592);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
JScrollPane scrollPane = new JScrollPane();
scrollPane.setBounds(10, 149, 1022, 376);
frame.getContentPane().add(scrollPane);
table = new JTable();
scrollPane.setViewportView(table);
lblNewLabel = new JLabel("DEATH IS LIKE THE WIND ALWAYS BY MY SIDE !\r\nHasagi");
lblNewLabel.setFont(new Font("Times New Roman", Font.BOLD | Font.ITALIC, 25));
lblNewLabel.setBounds(205, 11, 699, 84);
frame.getContentPane().add(lblNewLabel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BreukFrame() {\n super();\n initialize();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r... | [
"0.77704835",
"0.75652915",
"0.7442664",
"0.7369101",
"0.7366378",
"0.7358479",
"0.73146075",
"0.73096764",
"0.72987294",
"0.72978777",
"0.7278321",
"0.72729623",
"0.7269468",
"0.7269468",
"0.7215727",
"0.7180792",
"0.71682984",
"0.7140954",
"0.7140953",
"0.7126852",
"0.71079... | 0.0 | -1 |
Creates a logger for the instance that declares the injection point. | @Produces
public Logger logger(InjectionPoint injectionPoint) {
return Logger.getLogger(
injectionPoint.getMember().getDeclaringClass().getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyLoggingFacade(Logger logger) {\n this.logger = logger;\n }",
"Object createLogger(String name);",
"protected abstract Logger newInstance(String name);",
"public Logger getLogger() {\t\t\n\t\treturn logger = LoggerFactory.getLogger(getClazz());\n\t}",
"private ExtentLogger() {}",
"Objec... | [
"0.701708",
"0.7005185",
"0.6402245",
"0.6375262",
"0.63197935",
"0.6269741",
"0.6242742",
"0.6220958",
"0.61646414",
"0.6164083",
"0.61499405",
"0.6135272",
"0.61184615",
"0.60979086",
"0.6076071",
"0.6063066",
"0.606198",
"0.6060751",
"0.6045925",
"0.6043519",
"0.6023213",
... | 0.76124895 | 0 |
Interface for the event type specification. | public interface IEventType<T> {
/**
* It sets the event name for an event instance.
* @param name A simple name for the event instance.
*/
public void setEventName(String name);
/**
* It returns the event name for an event instance.
* @return A simple name for the event instance.
*/
public String getEventName();
/**
* It sets the class name for the event type.
* @param clazz The full class name for the event instance.
*/
public void setClazzName(String clazz);
/**
* It returns the class name for the event type.
* @return The full class name for the event instance.
*/
public String getClazzName();
/**
* It returns the super types for a specific event.
* @return array of the super types.
*/
public IEventType<T>[] getSuperTypes();
/**
* It returns the deep super types.
* @return an iteration of the deep super types.
*/
public Iterator<IEventType<T>> getDeepSuperTypes();
/**
* It sets the properties for the event type.
* @param propSchema minimum schema for a property.
*/
public void setProperties(List<IPropertyDescriptor<T>> propSchema);
/**
* It returns the properties for the event type.
* @param propSchema minimum schema for a property.
*/
public List<IPropertyDescriptor<T>> getProperties();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String event_type () throws BaseException;",
"String getEventType();",
"public String getTypeEvent() {\n\t\treturn typeEvent;\n\t}",
"public EventType type() {\n return _type;\n }",
"public interface Event\n\t{\n\t\tpublic static final String EVENT_ID = \"aether.event.id\";\n\t\tp... | [
"0.6949772",
"0.6771963",
"0.67715925",
"0.66609716",
"0.66583127",
"0.6530956",
"0.6521026",
"0.6491208",
"0.64371556",
"0.6393439",
"0.63765043",
"0.6367138",
"0.6359065",
"0.63586676",
"0.63567",
"0.6348204",
"0.63450295",
"0.63284624",
"0.630825",
"0.6257961",
"0.62556255... | 0.6829826 | 1 |
It sets the event name for an event instance. | public void setEventName(String name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Event setName(String name) {\n this.name = name;\n return this;\n }",
"public void setName(String name) {\n Errors e = Errors.getInstance();\n if (name.length() > 50) {\n e.setError(\"Event name cannot be over 50 characters long\");\n }\n else if (name.length(... | [
"0.7287438",
"0.692204",
"0.6474556",
"0.6347706",
"0.6316597",
"0.63021326",
"0.6291098",
"0.6261452",
"0.6229899",
"0.6193183",
"0.61738646",
"0.6170513",
"0.6166069",
"0.61602384",
"0.61316913",
"0.6129956",
"0.61241585",
"0.61241585",
"0.61241585",
"0.61241585",
"0.612071... | 0.74329585 | 0 |
It returns the event name for an event instance. | public String getEventName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EventName getName() {\n return this.name;\n }",
"public String getEventTypeName()\n {\n return eventTypeName;\n }",
"@Override\n\tpublic String getName() {\n\t\treturn name + instanceName;\n\t}",
"public String getEventTitle()\n {\n EventTitle = EventNameField.getText(... | [
"0.7539974",
"0.7475619",
"0.6895993",
"0.67380834",
"0.66984147",
"0.6696766",
"0.6696766",
"0.6696766",
"0.6648737",
"0.6556134",
"0.6530169",
"0.65092534",
"0.64131075",
"0.6351996",
"0.63265604",
"0.63016653",
"0.6289793",
"0.62853014",
"0.62774307",
"0.62240106",
"0.6218... | 0.6718827 | 4 |
It sets the class name for the event type. | public void setClazzName(String clazz); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setClassType(String classType);",
"public void setEventtype(java.lang.String newValue) {\n\tthis.eventtype = newValue;\n}",
"public void setEventClass(String eventClass) {\n this.eventClass = eventClass == null ? null : eventClass.trim();\n }",
"public void makeEvent(String type) {\n\t\teventN... | [
"0.68267006",
"0.68102527",
"0.6689645",
"0.66374296",
"0.65492284",
"0.65012866",
"0.6464815",
"0.6461241",
"0.6416056",
"0.6379064",
"0.6242155",
"0.624096",
"0.6213529",
"0.6202518",
"0.61581373",
"0.61188865",
"0.6089878",
"0.6043439",
"0.60384053",
"0.60384053",
"0.60384... | 0.6460987 | 8 |
It returns the class name for the event type. | public String getClazzName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEventClass() {\n return eventClass;\n }",
"public String getEventTypeName()\n {\n return eventTypeName;\n }",
"java.lang.String getClassName();",
"public String getClassname() {\n return classname;\n }",
"public String getName_Class() {\n\t\treturn name;\n\... | [
"0.7502009",
"0.7245092",
"0.706218",
"0.7023158",
"0.697826",
"0.69763654",
"0.6906992",
"0.6888279",
"0.6888279",
"0.6888279",
"0.68371856",
"0.6803384",
"0.67996585",
"0.6768223",
"0.6751596",
"0.66776466",
"0.6677418",
"0.6671504",
"0.6669875",
"0.6669875",
"0.6627769",
... | 0.66501033 | 20 |
It returns the super types for a specific event. | public IEventType<T>[] getSuperTypes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Iterator<IEventType<T>> getDeepSuperTypes();",
"protected abstract List<EventType> getAllowedEventTypes();",
"protected Set<NewType> getNewSubTypes() {\r\n\t\tfinal Set<NewType> subTypes = new HashSet<NewType>();\r\n\r\n\t\tfinal GeneratorContext context = this.getGeneratorContext();\r\n\t\tfinal Iterat... | [
"0.71442103",
"0.65552706",
"0.59826493",
"0.5947742",
"0.59170353",
"0.5877919",
"0.57626754",
"0.5703753",
"0.5655265",
"0.5651104",
"0.5628045",
"0.5624615",
"0.55892783",
"0.5468452",
"0.54600114",
"0.54427725",
"0.5435417",
"0.54325396",
"0.5411674",
"0.540351",
"0.53969... | 0.82545763 | 0 |
It returns the deep super types. | public Iterator<IEventType<T>> getDeepSuperTypes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public default List<Type> getProperDirectSuperTypes() throws LookupException {\n\t\tList<Type> result = Lists.create();\n\t\tfor(InheritanceRelation element:inheritanceRelations()) {\n\t\t\tType type = element.superType();\n\t\t\tif (type!=null) {\n\t\t\t\tresult.add(type);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}... | [
"0.73870623",
"0.67329776",
"0.65027755",
"0.6489853",
"0.6443976",
"0.63735265",
"0.635156",
"0.6321884",
"0.6263962",
"0.6252789",
"0.62233096",
"0.62002957",
"0.6191033",
"0.61698496",
"0.6168185",
"0.6118621",
"0.6081799",
"0.6079836",
"0.607269",
"0.6070928",
"0.60551894... | 0.7392083 | 0 |
It sets the properties for the event type. | public void setProperties(List<IPropertyDescriptor<T>> propSchema); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setEventType(String eventType)\n\t{\n\t\tsomethingChanged = true;\n\t\tthis.eventType = eventType;\n\t}",
"public abstract void setEventType(Context context, NAEventType type);",
"public void makeEvent(String type) {\n\t\teventName = type;\n\t}",
"public void setEventtype(java.lang.String newVal... | [
"0.6889897",
"0.68550795",
"0.6811047",
"0.673575",
"0.66725904",
"0.66250336",
"0.6579707",
"0.6549069",
"0.63029546",
"0.6266045",
"0.62125665",
"0.6206469",
"0.6181931",
"0.6088142",
"0.60577035",
"0.6011978",
"0.5960931",
"0.5953719",
"0.5916476",
"0.5870389",
"0.58427554... | 0.0 | -1 |
It returns the properties for the event type. | public List<IPropertyDescriptor<T>> getProperties(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getEventtype() {\n\treturn eventtype;\n}",
"@JsonProperty(\"EventType\")\r\n\tpublic EventRequest.EventType getEventType() {\r\n\t\treturn eventType;\r\n\t}",
"EProperties getProperties();",
"public EventType getEventType() {\n return this.eventType;\n }",
"public String g... | [
"0.66042113",
"0.65999836",
"0.6511981",
"0.6452858",
"0.64497507",
"0.6435066",
"0.64198536",
"0.63860977",
"0.63666105",
"0.6359272",
"0.632801",
"0.6316218",
"0.62414634",
"0.61441743",
"0.60493684",
"0.6028539",
"0.6018451",
"0.60169446",
"0.5950374",
"0.59315693",
"0.588... | 0.0 | -1 |
Sends a plugin message that will reconnect the player to another server on Bungee | public static void connect(@NonNull Player player, @NonNull String serverName) {
final ByteArrayOutputStream byteArray = new ByteArrayOutputStream();
final DataOutputStream out = new DataOutputStream(byteArray);
try {
out.writeUTF("Connect");
out.writeUTF(serverName);
} catch (final Throwable t) {
Common.error(t,
"Unable to connect " + player.getName() + " to server " + serverName,
"Error: %error");
}
player.sendPluginMessage(SimplePlugin.getInstance(), "BungeeCord", byteArray.toByteArray());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void notifyPlayerReconnected(String username);",
"public void reconnectServer() throws RemoteException {\r\n server.reConnect(this.agentID, this);\r\n }",
"@Override\n\tpublic void reconnect() {\n\n\t}",
"private void reconnectBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_re... | [
"0.6547315",
"0.63729817",
"0.6119761",
"0.6058093",
"0.59721947",
"0.5941651",
"0.58522993",
"0.5814477",
"0.57789576",
"0.57253885",
"0.5677468",
"0.56761473",
"0.5658251",
"0.5623195",
"0.56156015",
"0.5604707",
"0.5571857",
"0.5562682",
"0.55600667",
"0.55552334",
"0.5552... | 0.552505 | 28 |
Return either the first online player or the server itself through which we send the bungee message as | private static PluginMessageRecipient getThroughWhomSendMessage() {
return Remain.getOnlinePlayers().isEmpty() ? Bukkit.getServer() : Remain.getOnlinePlayers().iterator().next();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Player getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? null : Remain.getOnlinePlayers().iterator().next();\n\t}",
"private String getFirstPlayer() {\n\t\treturn firstPlayer;\n\t}",
"public ServerPlayer whoWon() {\r\n\t\tif (winner(CROSS)) {\r\n\t\t\treturn getP1()... | [
"0.7390585",
"0.65429056",
"0.65394086",
"0.6446904",
"0.6446904",
"0.632756",
"0.6235449",
"0.61954147",
"0.615344",
"0.61115384",
"0.6071219",
"0.60602814",
"0.6019472",
"0.5993917",
"0.59751785",
"0.5964743",
"0.5929429",
"0.59170276",
"0.59050673",
"0.5883087",
"0.5873313... | 0.7199337 | 1 |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/plain;charset=UTF-8");
Date date = new Date();
String email = request.getParameter("email");
boolean valido = false;
UtenteQueries uq = new UtenteQueries(manager);
try {
valido = uq.emailValida(email);
} catch (SQLException ex) {
}
if(valido){
Timestamp time = new Timestamp(date.getTime());
String timestamp = time.toString();
MessageDigest md = null;
try {
md = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException ex) {
//
}
md.update((email + timestamp).getBytes());
byte[] md5 = md.digest();
StringBuffer sb = new StringBuffer();
for (byte b : md5) {
sb.append(String.format("%02x", b & 0xff));
}
String md5Str = sb.toString();
PasswordRecoveryQueries prq = new PasswordRecoveryQueries(manager);
try {
PasswordRecovery pr = new PasswordRecovery();
pr.setHash(md5Str);
pr.setEmail(email);
pr.setTime(time);
prq.insertRecuperaPassword(pr);
MailSender instance = new MailSender();
try {
instance.changePassword(email, "http://localhost:8084/Multisala/password-recovery.html?key=" + md5Str);
response.getWriter().println("success");
} catch (MessagingException ex) {
response.getWriter().println("fail");
}
} catch (SQLException ex) {
response.getWriter().println("fail");
}
}else
response.getWriter().println("noemail");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_... | [
"0.7005406",
"0.66572356",
"0.6604074",
"0.65101326",
"0.64464515",
"0.64432913",
"0.6439602",
"0.64311135",
"0.642902",
"0.6425377",
"0.6425377",
"0.6420841",
"0.6420841",
"0.6420841",
"0.6417446",
"0.64133376",
"0.64133376",
"0.6399404",
"0.6395047",
"0.6395047",
"0.6393712... | 0.0 | -1 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doGet( )\n {\n \n }",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro... | [
"0.7589609",
"0.71665615",
"0.71148175",
"0.705623",
"0.7030174",
"0.70291144",
"0.6995984",
"0.697576",
"0.68883485",
"0.6873811",
"0.6853569",
"0.6843572",
"0.6843572",
"0.6835363",
"0.6835363",
"0.6835363",
"0.68195957",
"0.6817864",
"0.6797789",
"0.67810035",
"0.6761234",... | 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n ... | [
"0.73289514",
"0.71383566",
"0.7116213",
"0.7105215",
"0.7100045",
"0.70236707",
"0.7016248",
"0.6964149",
"0.6889435",
"0.6784954",
"0.67733276",
"0.67482096",
"0.66677034",
"0.6558593",
"0.65582114",
"0.6525548",
"0.652552",
"0.652552",
"0.652552",
"0.65229493",
"0.6520197"... | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short d... | [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
... | 0.0 | -1 |
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(ModBlocks.nestBlock), Block.getStateId(ModBlocks.nestBlock.getDefaultState()), new ModelResourceLocation(ModBlocks.nestBlock.getRegistryName(), "inventory")); | @Override
public void preInit(FMLPreInitializationEvent e) {
ModBlocks.registerBlockModels();
net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityTribeling.class, RenderTribeling.FACTORY);
super.preInit(e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void render(Block block) {\n\t\tItem item = Item.getItemFromBlock(block);\n\t\tModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), \"inventory\"));\n\t}",
"@SideOnly(Side.CLIENT)\n ModelResourceLocation getBlockModelResourceLocation();",
"@Side... | [
"0.728387",
"0.71794033",
"0.71214104",
"0.59133434",
"0.585845",
"0.58178025",
"0.5731021",
"0.57244503",
"0.5649687",
"0.56321645",
"0.562542",
"0.5598267",
"0.5589202",
"0.55716896",
"0.5571134",
"0.556708",
"0.556657",
"0.55509174",
"0.5457802",
"0.5444464",
"0.53941697",... | 0.5880405 | 4 |
Initializes a new Shipment | public Shipment(Person sender, Person receiver, int startTime,
int transportDuration) {
this.sender = sender;
this.receiver = receiver;
this.startTime = startTime;
this.transportDuration = transportDuration; //wäre sinnvoller hier zu berechnen ?!
shipmentID = shipmentCounter;
shipmentCounter++;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Ship(){\n\t}",
"public New_shipment() {\n initComponents();\n init();\n \n }",
"Shipment createShipment();",
"public Ship(String name) {\r\n this.name = name;\r\n }",
"public Ship(int indexX, int indexY) {\n this(indexX, indexY, indexX, indexY);\n }",
"p... | [
"0.7591972",
"0.71219677",
"0.7012584",
"0.67481744",
"0.6556231",
"0.646366",
"0.6431196",
"0.636439",
"0.63608885",
"0.6299474",
"0.6284751",
"0.62449473",
"0.6233664",
"0.61765885",
"0.6111808",
"0.6075075",
"0.6068168",
"0.6061538",
"0.605717",
"0.6002908",
"0.5979457",
... | 0.6548825 | 5 |
Has the Shipment been delivered yet? | public abstract boolean isDelivered(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@java.lang.Override\n public boolean hasDeliver() {\n return stepInfoCase_ == 12;\n }",
"public boolean isDelivered() {\n return !getMode().isCollection() && !isCarried();\n }",
"public boolean isSettled()\n {\n synchronized (_amqpConnection)\n {\n return _deliv... | [
"0.7279057",
"0.72531915",
"0.7237831",
"0.7233313",
"0.6978734",
"0.68652004",
"0.68614733",
"0.66682357",
"0.66194934",
"0.66151357",
"0.6607903",
"0.6598437",
"0.65046585",
"0.64402604",
"0.64245844",
"0.64192724",
"0.6409724",
"0.63956076",
"0.63536626",
"0.6352689",
"0.6... | 0.76296425 | 0 |
updates the current time for simulation purposes | public abstract void updateTime(int currentTime); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateTime() {\n\t\tthis.currentTime = System.currentTimeMillis();\n\t}",
"public static void update() \r\n {\r\n lastTime = currentTime; \r\n currentTime = getTime(); ... | [
"0.8312472",
"0.81105846",
"0.75835663",
"0.755931",
"0.7496377",
"0.7252409",
"0.71541953",
"0.71311706",
"0.71300095",
"0.7068921",
"0.7044859",
"0.7021255",
"0.69511163",
"0.69438684",
"0.6943828",
"0.6924611",
"0.6896356",
"0.6867857",
"0.6857985",
"0.6821539",
"0.6807309... | 0.769668 | 2 |
Context ctx = SHiTApplication.getContext(); DateFormat dateFormatter = android.text.format.DateFormat.getTimeFormat(ctx); | @Override
public String getStartInfo() {
return startTime(null, DateFormat.SHORT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String date(Long time, Context context){\n\t\t\n //FORMAT TIME\n\t\tString res = \"\";\n Long tsLong = System.currentTimeMillis()/1000;\t\n \tlong dv = Long.valueOf(time)*1000;// its need to be in milisecond\n \tDate df = new java.util.Date(dv);\n \t//LESS THAN 24\n \tif(... | [
"0.66482884",
"0.6554374",
"0.6500185",
"0.6392647",
"0.62687224",
"0.62687224",
"0.6267743",
"0.6266678",
"0.6265462",
"0.6249641",
"0.6210598",
"0.612431",
"0.6107929",
"0.6070703",
"0.6069225",
"0.6067038",
"0.6052925",
"0.60417163",
"0.6037208",
"0.6032515",
"0.6012735",
... | 0.0 | -1 |
DateFormat dateFormatter = android.text.format.DateFormat.getTimeFormat(); | @Override
public String getEndInfo() {
return null;
//return dateFormatter.stringFromDate(checkOutTime!)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static java.text.SimpleDateFormat getFormatter() {\r\n\r\n\t\treturn getDBLayer().getDateFormatter();\r\n\t}",
"public synchronized static DateFormat getDateFormat()\n\t{\n\t\treturn DATE_FORMAT;\n\t}",
"DateFormat getDisplayDateFormat();",
"protected abstract DateFormat getDateFormat();",
"private... | [
"0.6806229",
"0.6633809",
"0.6618475",
"0.6560306",
"0.65141904",
"0.6446221",
"0.63797754",
"0.6349618",
"0.63167566",
"0.62808245",
"0.6239064",
"0.6180056",
"0.6094302",
"0.60921985",
"0.6084032",
"0.60822344",
"0.60748047",
"0.60748047",
"0.6069474",
"0.60519385",
"0.6042... | 0.0 | -1 |
Encode to JSON for saving to file | @Override
public JSONObject toJSON() throws JSONException {
JSONObject jo = super.toJSON();
jo.putOpt(Constants.JSON.ELEM_EVENT_VENUE_NAME, venueName);
jo.putOpt(Constants.JSON.ELEM_EVENT_VENUE_ADDR, venueAddress);
jo.putOpt(Constants.JSON.ELEM_EVENT_VENUE_POST_CODE, venuePostCode);
jo.putOpt(Constants.JSON.ELEM_EVENT_VENUE_CITY, venueCity);
jo.putOpt(Constants.JSON.ELEM_EVENT_VENUE_PHONE, venuePhone);
jo.putOpt(Constants.JSON.ELEM_EVENT_START_TIME, startTimeText);
jo.putOpt(Constants.JSON.ELEM_EVENT_TIMEZONE, timezone);
if (travelTime != TRAVEL_TIME_UNKNOWN) {
jo.putOpt(Constants.JSON.ELEM_EVENT_TRAVEL_TIME, travelTime);
}
jo.putOpt(Constants.JSON.ELEM_EVENT_ACCESS_INFO, accessInfo);
return jo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String toJson() throws IOException;",
"public void guardarEnJSON () {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String s = gson.toJson(this);\n try {\n FileWriter fw = new FileWriter(\"files/graph.json\");\n fw.write(s);\n fw.close();\n ... | [
"0.74276596",
"0.7321161",
"0.7255452",
"0.7178308",
"0.7081405",
"0.69634724",
"0.6840703",
"0.6714715",
"0.6690686",
"0.66906387",
"0.6615847",
"0.658976",
"0.6570983",
"0.6570983",
"0.65604323",
"0.6498497",
"0.6481014",
"0.64692855",
"0.6447536",
"0.64232117",
"0.6414723"... | 0.0 | -1 |
New, simplified version First delete any existing notifications for this trip element (not needed in Android?) cancelNotifications(); Set notification (if we have a start time) | @Override
public void setNotification() {
if (getTense() == Tense.FUTURE) {
//Context ctx = SHiTApplication.getContext();
//SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(ctx);
int leadTimeEventMinutes = SHiTApplication.getPreferenceInt(Constants.Setting.ALERT_LEAD_TIME_EVENT, LEAD_TIME_MISSING);
if (leadTimeEventMinutes != LEAD_TIME_MISSING) {
if (travelTime > 0) {
leadTimeEventMinutes += travelTime;
}
setNotification(Constants.Setting.ALERT_LEAD_TIME_EVENT
, leadTimeEventMinutes
, R.string.alert_msg_event
, getNotificationClickAction()
, null);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeOldNotification();",
"void clearPersistentNotifications();",
"void cancelAllNotifications();",
"boolean removeNotification(List<String> stopIDs, String lineID, String deleteDescription) throws Exception;",
"public void setNotifications(ArrayList<TaskModel> temp, Context context){\n if (te... | [
"0.65334916",
"0.64710134",
"0.64074636",
"0.6294614",
"0.6289926",
"0.61601686",
"0.59438074",
"0.59437686",
"0.5850762",
"0.56981283",
"0.56514704",
"0.5638562",
"0.56161195",
"0.55853176",
"0.5530419",
"0.55109996",
"0.54740363",
"0.54670966",
"0.5435857",
"0.54235667",
"0... | 0.555399 | 14 |
TODO Autogenerated method stub | @Override
public boolean delete(int id) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean update(Carrera entity, int id) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Carrera get(int id) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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<Carrera> getAll() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS | public DriveTrain() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
leftFrontTalon = new WPI_TalonSRX(11);
leftRearTalon = new WPI_TalonSRX(12);
rightFrontTalon = new WPI_TalonSRX(13);
rightRearTalon = new WPI_TalonSRX(14);
victorTestController = new WPI_VictorSPX(4);
robotDrive41 = new RobotDrive(leftRearTalon, leftFrontTalon,rightFrontTalon, rightRearTalon);
robotDrive41.setSafetyEnabled(false);
robotDrive41.setExpiration(0.1);
robotDrive41.setSensitivity(0.5);
robotDrive41.setMaxOutput(1.0);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void pramitiTechTutorials() {\n\t\n}",
"public void masterDeclaration();",
"public AutonomousCommand() {\n \t\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTB... | [
"0.5780295",
"0.573422",
"0.5710236",
"0.5688195",
"0.5611009",
"0.55136764",
"0.5444828",
"0.5353169",
"0.5349941",
"0.5349941",
"0.53229976",
"0.529432",
"0.52474827",
"0.52333915",
"0.520786",
"0.5201803",
"0.51884943",
"0.51760113",
"0.5150621",
"0.5145215",
"0.51351637",... | 0.0 | -1 |
BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND | @Override
public void initDefaultCommand() {
Robot.driveTrain.setDefaultCommand(new xboxDrive());
// Set the default command for a subsystem here.
// setDefaultCommand(new MySpecialCommand());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AutonomousCommand() {\n \t\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUI... | [
"0.68143886",
"0.66187966",
"0.629497",
"0.6170862",
"0.61567837",
"0.6093378",
"0.6062903",
"0.59860206",
"0.59840703",
"0.5959496",
"0.5919742",
"0.57980925",
"0.56041694",
"0.55673325",
"0.5557065",
"0.5533272",
"0.54827046",
"0.5415455",
"0.539947",
"0.53962666",
"0.53962... | 0.0 | -1 |
Put code here to be run every loop | @Override
public void periodic() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void loop() {\r\n //CodeHere\r\n }",
"public void loop(){\n \n \n }",
"public void loop(){\n\t\t\n\t}",
"@Override public void loop() {\n }",
"@Override public void loop () {\n }",
"public void loop(){\n\t}",
"@Override\n public void loop()\n ... | [
"0.73380244",
"0.7313149",
"0.7192856",
"0.7151348",
"0.7053871",
"0.70516235",
"0.7035081",
"0.70200396",
"0.70200396",
"0.6911936",
"0.69054997",
"0.6766083",
"0.6766083",
"0.67335695",
"0.6625499",
"0.6625499",
"0.6625499",
"0.6625499",
"0.6625499",
"0.6625499",
"0.6625499... | 0.0 | -1 |
BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CMDPIDGETTERS END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CMDPIDGETTERS Put methods for controlling this subsystem here. Call these from Commands. | public void victorTest(){
victorTestController.set(0.5);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n /**\n * Set the default command for a subsystem here\n */\n public void initDefaultCommand() \n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=R... | [
"0.60953057",
"0.60868806",
"0.58361274",
"0.58126754",
"0.57981473",
"0.57981473",
"0.57642937",
"0.5731656",
"0.5703803",
"0.5685258",
"0.56826484",
"0.5678829",
"0.5674162",
"0.56678176",
"0.5654921",
"0.56301695",
"0.55991673",
"0.558868",
"0.55613256",
"0.55591",
"0.5548... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void eat() {
super.eat();
System.out.println("喝奶.......");
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
verifies character is unique or not | public boolean verifyNameAlreadyRegistered(Player player) {
return playerService.findPlayerByName(player.getName()) == null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testIsUniqueOnUniqueString() {\n\t\tassertTrue(ArraysAndStrings.isUnique(UNIQUE_CHARACTERS));\n\t}",
"public static boolean isUniqueChars(String str) {\n\t if(str.length() > 128) return false;\n\t \n\t //created hash table boolean to flag duplicate characters\n\t boolean [] check... | [
"0.755564",
"0.7440977",
"0.7367325",
"0.72476643",
"0.7229065",
"0.71874624",
"0.7173599",
"0.7150523",
"0.7141178",
"0.7138211",
"0.7111755",
"0.7108817",
"0.7106212",
"0.7097241",
"0.7093734",
"0.703385",
"0.70291024",
"0.7006166",
"0.7003607",
"0.69913274",
"0.6986588",
... | 0.0 | -1 |
A rich text string (see ISO320001 12.7.3.4, "Rich Text Strings") that shall be displayed in the popup window when the annotation is opened. | public PdfObject getRichText() {
return getPdfObject().get(PdfName.RC);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void displayPreviewMessage(String str) {\n }",
"public String getPlainText();",
"@SuppressLint({\"NewApi\"})\n private void showPasteMessage(String str) {\n if (Build.VERSION.SDK_INT >= 11) {\n Toast makeText = Toast.makeText(this.webView.getContext(), str, 1);\n makeT... | [
"0.59546506",
"0.5866739",
"0.58643556",
"0.5773062",
"0.5717614",
"0.5664259",
"0.56546247",
"0.56156975",
"0.5580134",
"0.55777",
"0.5525762",
"0.5430229",
"0.54205954",
"0.54046726",
"0.54046726",
"0.54046726",
"0.54046726",
"0.54039603",
"0.537398",
"0.53682834",
"0.53634... | 0.52515584 | 43 |
/ / / / / / / / / / / / / / / / / | public static <K, V> void fastForEach(Reference2ObjectMap<K, V> map, Consumer<? super Reference2ObjectMap.Entry<K, V>> consumer) {
/* 70 */ ObjectSet<Reference2ObjectMap.Entry<K, V>> entries = map.reference2ObjectEntrySet();
/* 71 */ if (entries instanceof Reference2ObjectMap.FastEntrySet) {
/* 72 */ ((Reference2ObjectMap.FastEntrySet)entries).fastForEach(consumer);
/* */ } else {
/* 74 */ entries.forEach(consumer);
/* */ }
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"static int ... | [
"0.5398624",
"0.5302166",
"0.50988036",
"0.50856084",
"0.50632095",
"0.505399",
"0.50325966",
"0.5016769",
"0.49988022",
"0.49945837",
"0.49838054",
"0.49793383",
"0.49702466",
"0.4950869",
"0.4929731",
"0.49185315",
"0.4905335",
"0.49045703",
"0.49035764",
"0.48944765",
"0.4... | 0.0 | -1 |
/ / / / / / / / / / / / / | public static <K, V> ObjectIterable<Reference2ObjectMap.Entry<K, V>> fastIterable(Reference2ObjectMap<K, V> map) {
/* 90 */ final ObjectSet<Reference2ObjectMap.Entry<K, V>> entries = map.reference2ObjectEntrySet();
/* 91 */ return (entries instanceof Reference2ObjectMap.FastEntrySet) ?
/* 92 */ (ObjectIterable)new ObjectIterable<Reference2ObjectMap.Entry<Reference2ObjectMap.Entry<K, V>, V>>() {
/* */ public ObjectIterator<Reference2ObjectMap.Entry<K, V>> iterator() {
/* 94 */ return ((Reference2ObjectMap.FastEntrySet<K, V>)entries).fastIterator();
/* */ }
/* */ public void forEach(Consumer<? super Reference2ObjectMap.Entry<K, V>> consumer) {
/* 97 */ ((Reference2ObjectMap.FastEntrySet<K, V>)entries).fastForEach(consumer);
/* */ }
/* 100 */ } : entries;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"int getWidth() {return width;}",
"double passer();",
"public abstract void bepaalGrootte();",
"private double[] getExten... | [
"0.5511054",
"0.54129165",
"0.51372945",
"0.511903",
"0.50692093",
"0.50639486",
"0.50610137",
"0.5056326",
"0.50562686",
"0.5020084",
"0.5008243",
"0.50073624",
"0.4987515",
"0.4968476",
"0.49637726",
"0.4947741",
"0.49458793",
"0.49450463",
"0.49411407",
"0.49279913",
"0.49... | 0.0 | -1 |
/ / / / / / | public boolean containsValue(Object v) {
/* 119 */ return false;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf(... | [
"0.5472371",
"0.5383522",
"0.52979374",
"0.5293668",
"0.5211566",
"0.51842105",
"0.5161626",
"0.51377255",
"0.5100369",
"0.5067393",
"0.5064298",
"0.50376177",
"0.49875325",
"0.49361488",
"0.49140826",
"0.49058613",
"0.49058613",
"0.48946288",
"0.48945552",
"0.48931476",
"0.4... | 0.0 | -1 |
/ / / / / / / / / / | public static <K, V> Reference2ObjectMap<K, V> emptyMap() {
/* 178 */ return EMPTY_MAP;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50... | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.491564... | 0.0 | -1 |
/ / / / | public ObjectSet<Map.Entry<K, V>> entrySet() {
/* 217 */ return (ObjectSet)reference2ObjectEntrySet();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public abstract String division();",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"private boolean slash() {\r\n return MARK(OPERATOR) ... | [
"0.5906264",
"0.55749613",
"0.5428019",
"0.53241616",
"0.5294036",
"0.527193",
"0.52582306",
"0.5256754",
"0.51585066",
"0.5141374",
"0.51100975",
"0.5097357",
"0.5026707",
"0.50235814",
"0.50100124",
"0.49757177",
"0.4967908",
"0.49668512",
"0.4931213",
"0.49272057",
"0.4915... | 0.0 | -1 |
/ / / / / / / / / / / / / / / / | public static <K, V> Reference2ObjectMap<K, V> singleton(K key, V value) {
/* 271 */ return new Singleton<>(key, value);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"public void... | [
"0.5431348",
"0.5333387",
"0.5090851",
"0.50783765",
"0.5063882",
"0.50604403",
"0.50265205",
"0.5018537",
"0.501404",
"0.5012664",
"0.50078535",
"0.49925476",
"0.49917418",
"0.49510515",
"0.4924102",
"0.49210846",
"0.4917222",
"0.49082106",
"0.4906311",
"0.49006793",
"0.4900... | 0.0 | -1 |
/ / / / | public ObjectSet<Map.Entry<K, V>> entrySet() {
/* 315 */ return (ObjectSet)reference2ObjectEntrySet();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public abstract String division();",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"private boolean slash() {\r\n return MARK(OPERATOR) ... | [
"0.5906264",
"0.55749613",
"0.5428019",
"0.53241616",
"0.5294036",
"0.527193",
"0.52582306",
"0.5256754",
"0.51585066",
"0.5141374",
"0.51100975",
"0.5097357",
"0.5026707",
"0.50235814",
"0.50100124",
"0.49757177",
"0.4967908",
"0.49668512",
"0.4931213",
"0.49272057",
"0.4915... | 0.0 | -1 |
/ / / / / / / / / / | public static <K, V> Reference2ObjectMap<K, V> synchronize(Reference2ObjectMap<K, V> m) {
/* 433 */ return new SynchronizedMap<>(m);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50... | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.491564... | 0.0 | -1 |
/ / / / / / / / / / / / | public static <K, V> Reference2ObjectMap<K, V> synchronize(Reference2ObjectMap<K, V> m, Object sync) {
/* 447 */ return new SynchronizedMap<>(m, sync);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth()... | [
"0.5528792",
"0.54315263",
"0.51737124",
"0.5150286",
"0.5077775",
"0.5064908",
"0.50597715",
"0.5045933",
"0.5037415",
"0.5019393",
"0.50050676",
"0.50032693",
"0.499702",
"0.49949083",
"0.49852678",
"0.4973753",
"0.4970428",
"0.49669605",
"0.49542087",
"0.4945966",
"0.49211... | 0.0 | -1 |
/ / / / | public ObjectSet<Map.Entry<K, V>> entrySet() {
/* 481 */ return (ObjectSet)reference2ObjectEntrySet();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public abstract String division();",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"private boolean slash() {\r\n return MARK(OPERATOR) ... | [
"0.5906264",
"0.55749613",
"0.5428019",
"0.53241616",
"0.5294036",
"0.527193",
"0.52582306",
"0.5256754",
"0.51585066",
"0.5141374",
"0.51100975",
"0.5097357",
"0.5026707",
"0.50235814",
"0.50100124",
"0.49757177",
"0.4967908",
"0.49668512",
"0.4931213",
"0.49272057",
"0.4915... | 0.0 | -1 |
/ / / / / / / / / / | public static <K, V> Reference2ObjectMap<K, V> unmodifiable(Reference2ObjectMap<K, V> m) {
/* 564 */ return new UnmodifiableMap<>(m);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50... | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.491564... | 0.0 | -1 |
Checks to make sure that no gift cards exist in the transaction. | public boolean roadClear(BusIfc bus)
{
VoidCargo cargo = (VoidCargo)bus.getCargo();
VoidTransactionADO voidTransactionADO = (VoidTransactionADO)cargo.getCurrentTransactionADO();
boolean result = voidTransactionADO.isGiftCardReversalRequired();
return(result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int checkAllCardsAppliedHaveZeroBalance() {\r\n boolean allCardsValuesAreZero = true;\r\n Iterator giftCardIterator = getGiftCardList().iterator();\r\n GiftCard tempGiftCard = null;\r\n int numBlankCards = 0;\r\n \r\n while (giftCardIterator.hasNext()) {\r\n tempGiftCard = (GiftCar... | [
"0.6491177",
"0.6200541",
"0.605681",
"0.6051922",
"0.6021759",
"0.5972824",
"0.59546363",
"0.59475523",
"0.5918295",
"0.5917868",
"0.58802795",
"0.5852053",
"0.58137625",
"0.5787211",
"0.5780945",
"0.5734232",
"0.5726368",
"0.5678529",
"0.567781",
"0.5669166",
"0.56436265",
... | 0.0 | -1 |
Returns a string representation of the object. | public String toString()
{ // begin toString()
// verbose flag
boolean bVerbose = false;
// result string
String strResult = new String("Class: DeactivationIsNotRequiredSignal (Revision " +
getRevisionNumber() +
")" + hashCode());
// if verbose mode, do inspection gig
if (bVerbose)
{ // begin verbose mode
// theClass will ascend through the inheritance hierarchy
Class theClass = getClass();
// type of the field currently being examined
Class fieldType = null;
// name of the field currently being examined
String fieldName = "";
// value of the field currently being examined
Object fieldValue = null;
// Ascend through the class hierarchy, capturing field information
while (theClass != null)
{ // begin loop through fields
// fields contains all noninherited field information
Field[] fields = theClass.getDeclaredFields();
// Go through each field, capturing information
for (int i = 0; i < fields.length; i++)
{
fieldType = fields[i].getType();
fieldName = fields[i].getName();
// get the field's value, if possible
try
{
fieldValue = fields[i].get(this);
}
// if the value can't be gotten, say so
catch (IllegalAccessException ex)
{
fieldValue = "*no access*";
}
// If it is a "simple" field, use the value
if (Util.isSimpleClass(fieldType))
{
strResult += "\n\t" + fieldName + ":\t" + fieldValue;
} // if simple
// If it is a null value, say so
else if (fieldValue == null)
{
strResult += "\n\t" + fieldName + ":\t(null)";
}
// Otherwise, use <type<hashCode>
else
{
strResult += "\n\t" + fieldName + ":\t" +
fieldType.getName() + "@" +
fieldValue.hashCode();
}
} // for each field
theClass = theClass.getSuperclass();
} // end loop through fields
} // end verbose mode
// pass back result
return(strResult);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the ... | [
"0.8125818",
"0.7958652",
"0.7928028",
"0.7911684",
"0.7888281",
"0.7888281",
"0.7795634",
"0.7731775",
"0.7731416",
"0.76538444",
"0.764448",
"0.7639164",
"0.76137227",
"0.75786316",
"0.75499994",
"0.75237125",
"0.75237125",
"0.75237125",
"0.75237125",
"0.75237125",
"0.75237... | 0.0 | -1 |
end toString() Returns the revision number of the class. | public String getRevisionNumber()
{ // begin getRevisionNumber()
// return string
return(revisionNumber);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRevision() {\n return revision;\n }",
"public long getRevision() {\n\n return revision;\n }",
"public abstract String getRevision();",
"public String getRevision() {\n\t\treturn RevisionUtils.extract(\"$Revision: 1.9 $\");\n\t}",
"public String getRevisionNumber()\n ... | [
"0.73720473",
"0.72886246",
"0.7280625",
"0.7261814",
"0.72229713",
"0.71880114",
"0.7118555",
"0.70802015",
"0.70754063",
"0.7057509",
"0.69863135",
"0.69606364",
"0.6918067",
"0.68988764",
"0.6892804",
"0.6885112",
"0.68693894",
"0.68207216",
"0.6792029",
"0.6783979",
"0.67... | 0.7421834 | 1 |
end getRevisionNumber() Main to run a test.. | public static void main(String args[])
{ // begin main()
// instantiate class
DeactivationIsNotRequiredSignal obj = new DeactivationIsNotRequiredSignal();
// output toString()
System.out.println(obj.toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testCanReadGitRevision() throws Exception {\n MatcherAssert.assertThat(\n new TestJenkins().jobs().findByName(\n \"test-parametrised-job\"\n ).next().builds().findByNumber(\"#4\").next().details().gitRevision(),\n new IsEqual<>(\"3d21ea7... | [
"0.70483786",
"0.6788657",
"0.6782047",
"0.65986556",
"0.65568495",
"0.6544535",
"0.6529813",
"0.6517529",
"0.6492359",
"0.6492359",
"0.63921994",
"0.63415825",
"0.63348514",
"0.6332466",
"0.6270404",
"0.624945",
"0.6186871",
"0.6186372",
"0.61396503",
"0.6135087",
"0.6102534... | 0.0 | -1 |
OutputDataBuilderRegular outputDataBuilderRegular = new OutputDataBuilderRegular(); | @Test
public void test() {
try {
Long userId = Long.valueOf(1);
User user = new User(userId, "testUser", new Date());
// Creates tree of 6 accounts
// AccountTreeRoot treeRoot = TestDataFactory.buildAccounts(userId);
// Account boligAccount = new Account(Long.valueOf(1), Long.valueOf(-1), userId, "Bolig", "", 0, Type.TYPE_REGULAR, new Date());
// Account boligAccountFinans = new Account(Long.valueOf(2), Long.valueOf(1), userId,"Finans", "Bolig", 1, Type.TYPE_REGULAR, new Date());
// Account boligAccountFinansLaan = new Account(Long.valueOf(3), Long.valueOf(2), userId, "Lån", "Bolig/Finans", 2, Type.TYPE_REGULAR, new Date());
//
// Account boligAccountTag = new Account(Long.valueOf(4), Long.valueOf(1), userId, "Tag", "Bolig", 1, Type.TYPE_REGULAR, new Date());
//
// Account boligAccountVVS = new Account(Long.valueOf(5), Long.valueOf(1), userId, "VVS", "Bolig", 1 , Type.TYPE_NON_REGULAR, new Date());
// Account boligAccountVVSExtra = new Account(Long.valueOf(6), Long.valueOf(5), userId, "Extra", "Bolig/VVS", 2 , Type.TYPE_EXTRAORDINAIRE, new Date());
// Account boligAccountVVSCheck = new Account(Long.valueOf(7), Long.valueOf(5), userId, "Check", "Bolig/VVS", 2 , Type.TYPE_NON_REGULAR, new Date());
// regular, Bolig/Finans/Lån
Match match = null;
match = new Match(null, null, userId, new Long(3), new Long(1), null, null);
Line line1 = new Line(new Long(1), userId, "test1", sdFormat.parse("2013-09-20"), "Lån1", new BigDecimal(-4000), null, match);
match = new Match(null, null, userId, new Long(3), new Long(2), null, null);
Line line2 = new Line(new Long(2), userId, "test2", sdFormat.parse("2013-09-21"), "Lån2", new BigDecimal(-400), null, match);
// regular, Bolig/tag
match = new Match(null, null, userId, new Long(4), new Long(3), null, null);
Line line3 = new Line(new Long(3), userId, "test3", sdFormat.parse("2013-09-23"), "Tag", new BigDecimal(-3000), null, match);
match = new Match(null, null, userId, new Long(4), new Long(4), null, null);
Line line4 = new Line(new Long(4), userId, "test4", sdFormat.parse("2013-11-20"), "Tag2", new BigDecimal(-300), null, match);
// extra, Bolig/VVS/Extra
match = new Match(null, null, userId, new Long(6), new Long(5), null, null);
Line line5 = new Line(new Long(5), userId, "test", sdFormat.parse("2013-09-20"), "VVSExt1", new BigDecimal(-2000), null, match);
match = new Match(null, null, userId, new Long(6), new Long(6), null, null);
Line line6 = new Line(new Long(6), userId, "test", sdFormat.parse("2013-10-20"), "VVSExt2", new BigDecimal(-200), null, match);
match = new Match(null, null, userId, new Long(6), new Long(7), null, null);
Line line7 = new Line(new Long(7), userId, "test", sdFormat.parse("2013-11-20"), "VVSExt3", new BigDecimal(-20), null, match);
// regular, Bolig/Finans/Lån
match = new Match(null, null, userId, new Long(3), new Long(8), null, null);
Line line8 = new Line(new Long(8), userId, "test", sdFormat.parse("2013-09-22"), "Lån3", new BigDecimal(-40), null, match);
// nonregular, Bolig/VVS/Check
match = new Match(null, null, userId, new Long(7), new Long(9), null, null);
Line line9 = new Line(new Long(9), userId, "test", sdFormat.parse("2013-10-12"), "VVSBesøg", new BigDecimal(-500), null, match);
// // regular, Bolig/Finans/Lån
// Line line1 = new Line(new Long(1), new Long(3), userId, "test1", sdFormat.parse("2013-09-20"), "Lån1", new BigDecimal(-4000), null);
// Line line2 = new Line(new Long(2), new Long(3), userId, "test2", sdFormat.parse("2013-09-21"), "Lån2", new BigDecimal(-400), null);
//
// // regular, Bolig/tag
// Line line3 = new Line(new Long(3), new Long(4), userId, "test3", sdFormat.parse("2013-09-23"), "Tag", new BigDecimal(-3000), null);
// Line line4 = new Line(new Long(4), new Long(4), userId, "test4", sdFormat.parse("2013-11-20"), "Tag2", new BigDecimal(-300), null);
//
// // extra, Bolig/VVS/Extra
// Line line5 = new Line(new Long(5), new Long(6), userId, "test", sdFormat.parse("2013-09-20"), "VVSExt1", new BigDecimal(-2000), null);
// Line line6 = new Line(new Long(6), new Long(6), userId, "test", sdFormat.parse("2013-10-20"), "VVSExt2", new BigDecimal(-200), null);
// Line line7 = new Line(new Long(7), new Long(6), userId, "test", sdFormat.parse("2013-11-20"), "VVSExt3", new BigDecimal(-20), null);
//
// // regular, Bolig/Finans/Lån
// Line line8 = new Line(new Long(8), new Long(3), userId, "test", sdFormat.parse("2013-09-22"), "Lån3", new BigDecimal(-40), null);
// // nonregular, Bolig/VVS/Check
// Line line9 = new Line(new Long(9), new Long(7), userId, "test", sdFormat.parse("2013-10-12"), "VVSBesøg", new BigDecimal(-500), null);
// Bolig:
// 09: total=4000+400+3000+40+2000, reg=4000+400+3000+40, nonreg=0,extra=2000
BigDecimal per1Total = new BigDecimal("-9440.00");
BigDecimal per1Reg = new BigDecimal("-7440.00");
BigDecimal per1NonReg = new BigDecimal("0.00");
BigDecimal per1Extra = new BigDecimal("-2000.00");
// 10 total=200+500, reg=0, nonreg=500,extra=200
BigDecimal per2Total = new BigDecimal("-700.00");
BigDecimal per2Reg = new BigDecimal("0.00");
BigDecimal per2NonReg = new BigDecimal("-500.00");
BigDecimal per2Extra = new BigDecimal("-200.00");
// 11: total=300,29 reg=300, nonreg=0,extra=20
BigDecimal per3Total = new BigDecimal("-320.00");
BigDecimal per3Reg = new BigDecimal("-300.00");
BigDecimal per3NonReg = new BigDecimal("0.00");
BigDecimal per3Extra = new BigDecimal("-20.00");
// VisitorLogTree treeLogger = new VisitorLogTree(true);
// treeRoot.accept(treeLogger);
TimeLineImpl timeLine = new TimeLineImpl();
AccountPersisterTestIFactorympl accPersister = new AccountPersisterTestIFactorympl(user);
AccountTreeRoot buildAccountTree = accPersister.buildAccountTree(user.getId());
VisitorLogTree visitorLogTree = new VisitorLogTree();
buildAccountTree.accept(visitorLogTree);
timeLine.setUser(user);
timeLine.setAccountPersister(accPersister);
timeLine.createTimelineForPeriod(line1.getDate(), line7.getDate());
List<Period> periods = timeLine.getPeriods();
assertEquals(3, periods.size());
assertEquals(sdFormat.parse("2013-09-01"), periods.get(0).getStartDate());
assertEquals(sdFormat.parse("2013-10-01"), periods.get(1).getStartDate());
assertEquals(sdFormat.parse("2013-11-01"), periods.get(2).getStartDate());
// Creates 3 periods
timeLine.addLine(line1);
timeLine.addLine(line2);
timeLine.addLine(line3);
timeLine.addLine(line4);
timeLine.addLine(line5);
timeLine.addLine(line6);
timeLine.addLine(line7);
timeLine.addLine(line8);
timeLine.addLine(line9);
//*************************************************
OutputChartDataBuilder dataBuilder = null;
dataBuilder = new OutputChartDataBuilderBigDecimalRegular();
dataBuilder.buildOutData(timeLine, "/Bolig", 1);
Date[] dates = dataBuilder.getDates();
assertEquals(3, dates.length);
assertEquals(sdFormat.parse("2013-09-01"), dates[0]);
assertEquals(sdFormat.parse("2013-10-01"), dates[1]);
assertEquals(sdFormat.parse("2013-11-01"), dates[2]);
BigDecimal[][] values = (BigDecimal[][]) dataBuilder.getValues();
assertEquals(3, values.length);
assertEquals(1, values[0].length);
assertEquals(1, values[1].length);
assertEquals(1, values[2].length);
assertEquals(per1Reg, values[0][0]);
assertEquals(per2Reg, values[1][0]);
assertEquals(per3Reg, values[2][0]);
String[][] categories = dataBuilder.getCategories();
assertEquals(categories.length, 1);
assertEquals(categories[0].length, 1);
assertEquals("/Bolig", categories[0][0]);
//***************************
// Account boligAccountVVS = new Account(Long.valueOf(5), Long.valueOf(1), userId, "VVS", "Bolig", 1 , Type.TYPE_NON_REGULAR, new Date());
// Account boligAccountVVSExtra = new Account(Long.valueOf(6), Long.valueOf(5), userId, "Extra", "Bolig/VVS", 2 , Type.TYPE_EXTRAORDINAIRE, new Date());
// Account boligAccountVVSCheck = new Account(Long.valueOf(7), Long.valueOf(5), userId, "Check", "Bolig/VVS", 2 , Type.TYPE_NON_REGULAR, new Date());
// extra, Bolig/VVS/Extra
// Line line5 = new Line(new Long(5), new Long(6), userId, "test", sdFormat.parse("2013-09-20"), "VVSExt1", new BigDecimal(-2000), null);
// Line line6 = new Line(new Long(6), new Long(6), userId, "test", sdFormat.parse("2013-10-20"), "VVSExt2", new BigDecimal(-200), null);
// Line line7 = new Line(new Long(7), new Long(6), userId, "test", sdFormat.parse("2013-11-20"), "VVSExt3", new BigDecimal(-20), null);
// nonregular, Bolig/VVS/Check
// Line line9 = new Line(new Long(9), new Long(7), userId, "test", sdFormat.parse("2013-10-12"), "VVSBesøg", new BigDecimal(-500), null);
BigDecimal zero = new BigDecimal("0.00");
dataBuilder = new OutputChartDataBuilderBigDecimalRegular();
dataBuilder.buildOutData(timeLine, "/Bolig/VVS", 2);
values = (BigDecimal[][]) dataBuilder.getValues();
categories = dataBuilder.getCategories();
dates = dataBuilder.getDates();
assertEquals(0, categories.length);
assertEquals(0, values.length);
assertEquals(0, dates.length);
// ******************************
dataBuilder = new OutputChartDataBuilderBigDecimalNonRegular();
dataBuilder.buildOutData(timeLine, "/Bolig/VVS", 2);
values = (BigDecimal[][]) dataBuilder.getValues();
categories = dataBuilder.getCategories();
dates = dataBuilder.getDates();
assertEquals(6, values.length);
assertEquals(2, values[0].length);
assertEquals(2, values[1].length);
assertEquals(2, values[2].length);
assertEquals(2, values[3].length);
assertEquals(2, values[4].length);
assertEquals(2, values[5].length);
assertEquals(zero, values[0][0]);
assertEquals(null, values[0][1]);
assertEquals(null, values[1][0]);
assertEquals(zero, values[1][1]);
assertEquals(new BigDecimal("-500.00"), values[2][0]);
assertEquals(null, values[2][1]);
assertEquals(null, values[3][0]);
assertEquals(new BigDecimal("-500.00"), values[3][1]);
assertEquals(zero, values[4][0]);
assertEquals(null, values[4][1]);
assertEquals(null, values[5][0]);
assertEquals(zero, values[5][1]);
assertEquals("/Bolig/VVS", categories[0][0]);
assertEquals("/Bolig/VVS", categories[0][1]);
assertEquals(null, categories[1][0]);
assertEquals("Check", categories[1][1]);
assertEquals(3, dates.length);
assertEquals(sdFormat.parse("2013-09-01"), dates[0]);
assertEquals(sdFormat.parse("2013-10-01"), dates[1]);
assertEquals(sdFormat.parse("2013-11-01"), dates[2]);
//***************************
dataBuilder = new OutputChartDataBuilderBigDecimalExtraordinaire();
dataBuilder.buildOutData(timeLine, "/Bolig/VVS", 2);
values = (BigDecimal[][]) dataBuilder.getValues();
categories = dataBuilder.getCategories();
dates = dataBuilder.getDates();
assertEquals(6, values.length);
assertEquals(2, values[0].length);
assertEquals(2, values[1].length);
assertEquals(2, values[2].length);
assertEquals(2, values[3].length);
assertEquals(2, values[4].length);
assertEquals(2, values[5].length);
// BigDecimal zero = new BigDecimal("0.00");
assertEquals(new BigDecimal("-2000.00"), values[0][0]);
assertEquals(null, values[0][1]);
assertEquals(null, values[1][0]);
assertEquals(new BigDecimal("-2000.00"), values[1][1]);
assertEquals(new BigDecimal("-200.00"), values[2][0]);
assertEquals(null, values[2][1]);
assertEquals(null, values[3][0]);
assertEquals(new BigDecimal("-200.00"), values[3][1]);
assertEquals(new BigDecimal("-20.00"), values[4][0]);
assertEquals(null, values[4][1]);
assertEquals(null, values[5][0]);
assertEquals(new BigDecimal("-20.00"), values[5][1]);
assertEquals("/Bolig/VVS", categories[0][0]);
assertEquals("/Bolig/VVS", categories[0][1]);
assertEquals(null, categories[1][0]);
assertEquals("Extra", categories[1][1]);
assertEquals(3, dates.length);
assertEquals(sdFormat.parse("2013-09-01"), dates[0]);
assertEquals(sdFormat.parse("2013-10-01"), dates[1]);
assertEquals(sdFormat.parse("2013-11-01"), dates[2]);
//***************************
dataBuilder = new OutputChartDataBuilderBigDecimalTotal();
dataBuilder.buildOutData(timeLine, "/Bolig/VVS", 2);
values = (BigDecimal[][]) dataBuilder.getValues();
categories = dataBuilder.getCategories();
dates = dataBuilder.getDates();
assertEquals(6, values.length);
assertEquals(3, values[0].length);
assertEquals(3, values[1].length);
assertEquals(3, values[2].length);
assertEquals(3, values[3].length);
assertEquals(3, values[4].length);
assertEquals(3, values[5].length);
// BigDecimal zero = new BigDecimal("0.00");
assertEquals(new BigDecimal("-2000.00"), values[0][0]);
assertEquals(null, values[0][1]);
assertEquals(null, values[0][2]);
assertEquals(null, values[1][0]);
assertEquals(new BigDecimal("-2000.00"), values[1][1]);
assertEquals(zero, values[1][2]);
assertEquals(new BigDecimal("-700.00"), values[2][0]);
assertEquals(null, values[2][1]);
assertEquals(null, values[2][2]);
assertEquals(null, values[3][0]);
assertEquals(new BigDecimal("-200.00"), values[3][1]);
assertEquals(new BigDecimal("-500.00"), values[3][2]);
assertEquals(new BigDecimal("-20.00"), values[4][0]);
assertEquals(null, values[4][1]);
assertEquals(null, values[4][2]);
assertEquals(null, values[5][0]);
assertEquals(new BigDecimal("-20.00"), values[5][1]);
assertEquals(zero, values[5][2]);
assertEquals("/Bolig/VVS", categories[0][0]);
assertEquals("/Bolig/VVS", categories[0][1]);
assertEquals("/Bolig/VVS", categories[0][2]);
assertEquals(null, categories[1][0]);
assertEquals("Extra", categories[1][1]);
assertEquals("Check", categories[1][2]);
assertEquals(3, dates.length);
assertEquals(sdFormat.parse("2013-09-01"), dates[0]);
assertEquals(sdFormat.parse("2013-10-01"), dates[1]);
assertEquals(sdFormat.parse("2013-11-01"), dates[2]);
//**************************************************
dataBuilder = new OutputChartDataBuilderAccount();
dataBuilder.buildOutData(timeLine, "/Bolig/VVS", 2);
Account[][] accountValues = (Account[][]) dataBuilder.getValues();
categories = dataBuilder.getCategories();
dates = dataBuilder.getDates();
assertEquals(6, accountValues.length);
assertEquals(3, accountValues[0].length);
assertEquals(3, accountValues[1].length);
assertEquals(3, accountValues[2].length);
assertEquals(3, accountValues[3].length);
assertEquals(3, accountValues[4].length);
assertEquals(3, accountValues[5].length);
// BigDecimal zero = new BigDecimal("0.00");
assertEquals(new BigDecimal("-2000.00"), accountValues[0][0].getExpensesTotal());
assertEquals(null, accountValues[0][1]);
assertEquals(null, accountValues[0][2]);
assertEquals(null, accountValues[1][0]);
assertEquals(new BigDecimal("-2000.00"), accountValues[1][1].getExpensesTotal());
assertEquals(zero, accountValues[1][2].getExpensesTotal());
assertEquals(new BigDecimal("-700.00"), accountValues[2][0].getExpensesTotal());
assertEquals(null, accountValues[2][1]);
assertEquals(null, accountValues[2][2]);
assertEquals(null, accountValues[3][0]);
assertEquals(new BigDecimal("-200.00"), accountValues[3][1].getExpensesTotal());
assertEquals(new BigDecimal("-500.00"), accountValues[3][2].getExpensesTotal());
assertEquals(new BigDecimal("-20.00"), accountValues[4][0].getExpensesTotal());
assertEquals(null, accountValues[4][1]);
assertEquals(null, accountValues[4][2]);
assertEquals(null, accountValues[5][0]);
assertEquals(new BigDecimal("-20.00"), accountValues[5][1].getExpensesTotal());
assertEquals(zero, accountValues[5][2].getExpensesTotal());
assertEquals("/Bolig/VVS", categories[0][0]);
assertEquals("/Bolig/VVS", categories[0][1]);
assertEquals("/Bolig/VVS", categories[0][2]);
assertEquals(null, categories[1][0]);
assertEquals("Extra", categories[1][1]);
assertEquals("Check", categories[1][2]);
assertEquals(3, dates.length);
assertEquals(sdFormat.parse("2013-09-01"), dates[0]);
assertEquals(sdFormat.parse("2013-10-01"), dates[1]);
assertEquals(sdFormat.parse("2013-11-01"), dates[2]);
} catch (Exception e) {
LOG.error(e.getMessage(), e);
fail(e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public mainData() {\n }",
"Output createOutput();",
"private Output() {}",
"OutputDeviations createOutputDeviations();",
"@Test\n public void testConstruction() {\n System.out.println(\"testConstruction\");\n OutputLiteralDataDescription desc = new OutputLiteralDataDescription();\n ... | [
"0.620815",
"0.61316633",
"0.6127612",
"0.59939414",
"0.5891325",
"0.5873859",
"0.5853254",
"0.57841897",
"0.5766061",
"0.57358754",
"0.57043433",
"0.56716186",
"0.5671542",
"0.56597745",
"0.5659424",
"0.56286746",
"0.56061625",
"0.5600734",
"0.55635786",
"0.5560156",
"0.5551... | 0.0 | -1 |
Set onClick events using Butterknife | @OnClick({R.id.address_img, R.id.address})
void OnClickMap() {
// Open location on map
Intent mapIntent=new Intent(Intent.ACTION_VIEW);
mapIntent.setData(Uri.parse("geo:0,0?q=" + getString(R.string.latitude) + ","
+ getString(R.string.longitude)));
if (mapIntent.resolveActivity(getPackageManager()) != null) {
startActivity(mapIntent);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void OnClick(){\n onWidgetClickListener.onClick(getViewId());\n }",
"public void onClick(View v) {\n\n }",
"public void onClick(View v) {\n\n }",
"@OnClick(R.id.tv_guankan)\n public void guankan() {\n\n }",
"@Override\n\tpublic void setOnClick() {\n\n\t}",
"p... | [
"0.7123205",
"0.70149887",
"0.70149887",
"0.70135516",
"0.6985016",
"0.6976968",
"0.6976968",
"0.69542974",
"0.6921706",
"0.6874397",
"0.6873939",
"0.685434",
"0.68347174",
"0.67754006",
"0.67722684",
"0.6760574",
"0.6760574",
"0.6760574",
"0.6760574",
"0.67564917",
"0.675232... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.