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 |
|---|---|---|---|---|---|---|
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to install it inside the SupportMapFragment. This method will only be triggered once the user has installed Google Play services and returned to the app. | @Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
UiSettings uiSettings = mMap.getUiSettings();
uiSettings.setZoomControlsEnabled(true);
// Add a marker in Sydney and move the camera
LatLng barcelona = new LatLng(41.3887901, 2.1589899);
LatLng marcador1 = new LatLng(41.379564, 2.167203);
LatLng marcador2 = new LatLng(41.394327, 2.191843);
LatLng marcador3 = new LatLng(41.398121, 2.199290);
LatLng marcador4 = new LatLng(41.386235, 2.146300);
LatLng marcador5 = new LatLng(41.395933, 2.136832);
LatLng marcador6 = new LatLng(41.441696, 2.237285);
LatLng marcador7 = new LatLng(41.457493, 2.255982);
LatLng marcador8 = new LatLng(41.316202, 2.028248);
LatLng marcador9 = new LatLng(41.333813, 2.035098);
LatLng marcador10 = new LatLng(41.357954, 2.061158);
mMap.addMarker(new MarkerOptions().position(marcador1).title("Los amigos"));
mMap.addMarker(new MarkerOptions().position(marcador2).title("El dorado"));
mMap.addMarker(new MarkerOptions().position(marcador3).title("Juan y Luca"));
mMap.addMarker(new MarkerOptions().position(marcador4).title("Durums"));
mMap.addMarker(new MarkerOptions().position(marcador5).title("Restaurante Jose Fina"));
mMap.addMarker(new MarkerOptions().position(marcador6).title("Los Hermanos"));
mMap.addMarker(new MarkerOptions().position(marcador7).title("Paella para todos"));
mMap.addMarker(new MarkerOptions().position(marcador8).title("Señor Pollo"));
mMap.addMarker(new MarkerOptions().position(marcador9).title("Restaurante Boliviano"));
mMap.addMarker(new MarkerOptions().position(marcador10).title("Laguna Alalay"));
//mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(barcelona,12), 4000,null);
mMap.setMaxZoomPreference(1000);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ... | [
"0.8187529",
"0.8042839",
"0.80367285",
"0.8032506",
"0.79978335",
"0.7976724",
"0.7957471",
"0.7957164",
"0.7953694",
"0.79421705",
"0.7936087",
"0.79299027",
"0.79150516",
"0.7904874",
"0.7888333",
"0.78849447",
"0.78849447",
"0.78849447",
"0.78849447",
"0.78772956",
"0.784... | 0.0 | -1 |
List of constructors. Contains a constructor that accepts a parameter of type String representing the name of the list and a parameter of type ArrayList representing the list of Icosahedron objects. | public IcosahedronList(String listIn, ArrayList<Icosahedron> icosListIn) {
list = listIn;
icosList = icosListIn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List constructors();",
"public List<Constructor<?>> getConstructors(int paramCount) {\n return getConstructors(this.type, paramCount);\n }",
"public List getConstructorList() {\n return null;\n }",
"public cCONS(Object... list)\r\n\t{\r\n\t\tinitCons(false, list);\r\n\t}",
"public static List... | [
"0.7417797",
"0.6170489",
"0.61074245",
"0.6023596",
"0.58698916",
"0.5719787",
"0.56460834",
"0.5551555",
"0.55499",
"0.5505194",
"0.54399526",
"0.54394495",
"0.54173166",
"0.5409429",
"0.5405652",
"0.53693587",
"0.53467256",
"0.53291756",
"0.53265333",
"0.5311183",
"0.53081... | 0.68548226 | 1 |
List of methods. Returns a String representing the name of the list. | public String getName() {
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();",
"public List<IMethod> getMethods();",
"public List<IMethod> getMethods();",
"List<Method> getAllMethods();",
"public List<ServiceMethod> getMethodList()\n {\n return Collection... | [
"0.7365527",
"0.7044263",
"0.7044263",
"0.69506437",
"0.6830249",
"0.6823973",
"0.6776593",
"0.6773323",
"0.6669991",
"0.6628715",
"0.66164094",
"0.654714",
"0.6493892",
"0.6489884",
"0.6467349",
"0.6435191",
"0.6333945",
"0.627984",
"0.62223583",
"0.6187025",
"0.61759025",
... | 0.5875125 | 31 |
Returns an int representing the number of Icosahedron objects in the IcosahedronList. If there are zero Icosahedron objects in the list, zero is returned. | public int numberOfIcosahedrons() {
return icosList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int size() {\n\t\tint numElements = 0;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (list[i] != null) {\n\t\t\t\tnumElements++;\n\t\t\t}\n\t\t}\n\t\treturn numElements;\n\t}",
"public int numberOfEllipsoids() { \r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n return... | [
"0.68961203",
"0.6878877",
"0.6837006",
"0.67511916",
"0.67291397",
"0.6714151",
"0.66655886",
"0.66369987",
"0.6606443",
"0.6593741",
"0.6593741",
"0.6588188",
"0.6584741",
"0.65795684",
"0.6542965",
"0.6540425",
"0.6540425",
"0.65219766",
"0.6503141",
"0.6470212",
"0.645246... | 0.85377276 | 0 |
Returns a double representing the total surface areas for all Icosahedron objects in the list. If there are zero Icosahedron objects in the list, zero is returned. | public double totalSurfaceArea() {
int index = 0;
double total = 0.0;
while (index < icosList.size()) {
total += icosList.get(index).surfaceArea();
index++;
}
return total;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double totalSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return total;\r\n ... | [
"0.81859213",
"0.7956162",
"0.7636591",
"0.71663064",
"0.7087739",
"0.6756359",
"0.65840054",
"0.64566934",
"0.63802314",
"0.63774836",
"0.6373212",
"0.63593566",
"0.6293299",
"0.62742865",
"0.6238181",
"0.6209355",
"0.62025154",
"0.6179383",
"0.6070121",
"0.60408294",
"0.603... | 0.81251764 | 1 |
Returns a double representing the total volumes for all Icosahedron objects in the list. If there are zero Icosahedron objects in the list, zero int returned. | public double totalVolume() {
int index = 0;
double total = 0.0;
while (index < icosList.size()) {
total += icosList.get(index).volume();
index++;
}
return total;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double totalVolume() { \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n \r\n total += list.get(index).volume();\r\n index++; \r\n } \r\n return total;\r\n ... | [
"0.7348473",
"0.73266673",
"0.72505414",
"0.7058543",
"0.666135",
"0.6630053",
"0.65239775",
"0.6478722",
"0.64566267",
"0.645365",
"0.6411907",
"0.63505775",
"0.63366956",
"0.63241714",
"0.6277001",
"0.6251496",
"0.6221605",
"0.62123525",
"0.61368924",
"0.61347944",
"0.60352... | 0.7200284 | 3 |
Returns a double representing the average surface areafor all Icosahedronobjects in the list. If there are zero Icosahedron objects in the list, zero should be returned. | public double averageSurfaceArea() {
if (numberOfIcosahedrons() == 0) {
return 0;
}
else {
return totalSurfaceArea() / numberOfIcosahedrons();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double averageSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n if (index == 0)\r\... | [
"0.818619",
"0.78111154",
"0.77859956",
"0.77786404",
"0.7707803",
"0.7585364",
"0.6784704",
"0.67605853",
"0.6583091",
"0.64085054",
"0.63234776",
"0.6241981",
"0.6230874",
"0.6212799",
"0.62009746",
"0.6199561",
"0.61957854",
"0.6195523",
"0.61674505",
"0.61217165",
"0.6089... | 0.7905895 | 1 |
Returns a double representing the average volume for all Icosahedron objects in the list. If there are zero Icosahedronobjects in the list, zero should be returned. | public double averageVolume() {
if (numberOfIcosahedrons() == 0) {
return 0;
}
else {
return totalVolume() / numberOfIcosahedrons();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double averageSurfaceToVolumeRatio() {\n int index = 0;\n double total = 0.0;\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceToVolumeRatio();\n index++;\n ... | [
"0.82123226",
"0.76756865",
"0.7394509",
"0.712803",
"0.6974748",
"0.692704",
"0.6808787",
"0.6795138",
"0.67002326",
"0.65680456",
"0.65458834",
"0.6456715",
"0.6377156",
"0.63621384",
"0.6333795",
"0.62870944",
"0.6279118",
"0.6239754",
"0.623882",
"0.62343246",
"0.6200502"... | 0.80658287 | 1 |
Returns a double representing the average surface to volume ratio for all Icosahedron objects in the list. If there are zero Icosahedron objects in the list, zero is returned. | public double averageSurfaceToVolumeRatio() {
int index = 0;
double total = 0.0;
if (numberOfIcosahedrons() == 0) {
return 0;
}
else {
while (index < icosList.size()) {
total += icosList.get(index).surfaceToVolumeRatio();
index++;
}
}
return total / icosList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double averageVolume() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalVolume() / numberOfIcosahedrons();\n }\n }",
"public double averageSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() =... | [
"0.7492196",
"0.7488533",
"0.73052925",
"0.7120166",
"0.7040114",
"0.69460726",
"0.67249185",
"0.6721093",
"0.6714386",
"0.66277623",
"0.6505776",
"0.6361349",
"0.63453954",
"0.6310279",
"0.6267343",
"0.62009186",
"0.616106",
"0.6153427",
"0.61516154",
"0.6144792",
"0.61106",... | 0.8703853 | 0 |
Returns a String containing the name of the list followed by each Icosahedron in the ArrayList. In the process of creating the return result, toString() method includes a while loop that calls the toString() method for each Icosahedron object in the list | public String toString() {
String totalOutput = "";
int index = 0;
while (index < icosList.size()) {
totalOutput += icosList.get(index).toString();
index++;
}
return totalOutput;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\r\n String output = \"\";\r\n int index = 0;\r\n output = getName() + \"\\n\\n\";\r\n while (index < list.size()) {\r\n output += (list.get(index) + \"\\n\\n\");\r\n index++;\r\n }\r\n return output;\r\n }",
"@Override\r\n public String ... | [
"0.68387973",
"0.68382716",
"0.68343747",
"0.65166974",
"0.6431827",
"0.6410126",
"0.63986325",
"0.63971174",
"0.63805944",
"0.6316651",
"0.6280793",
"0.6264292",
"0.6220637",
"0.62149477",
"0.61630493",
"0.6158984",
"0.61549544",
"0.6145802",
"0.6140055",
"0.6133876",
"0.610... | 0.6185485 | 14 |
Returns a String containing the name of the list followed by various summary items: number of Icosahedrons, total surface area, total volume, average surface area, average volume, and average surface to volume ratio. | public String summaryInfo() {
DecimalFormat form2 = new DecimalFormat("#,##0.0##");
String result = "";
result += "----- Summary for " + getName() + " -----";
result += "\nNumber of Icosahedrons: " + (numberOfIcosahedrons());
result += "\nTotal Surface Area: "
+ form2.format(totalSurfaceArea());
result += "\nTotal Volume: " + form2.format(totalVolume());
result += "\nAverage Surface Area: "
+ form2.format(averageSurfaceArea());
result += "\nAverage Volume: " + form2.format(averageVolume());
result += "\nAverage Surface/Volume Ratio: "
+ form2.format(averageSurfaceToVolumeRatio());
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.f... | [
"0.77241725",
"0.7302504",
"0.62735975",
"0.6194811",
"0.6021682",
"0.60024995",
"0.599071",
"0.5875346",
"0.58683985",
"0.5852001",
"0.5829693",
"0.5815834",
"0.57668954",
"0.5760572",
"0.57531106",
"0.5729699",
"0.5713453",
"0.56892836",
"0.566934",
"0.56661826",
"0.5652676... | 0.72300124 | 2 |
Registriert ein Tier auf einem bestimmten Feld. | public void placeAnimal(AnimalSol animal, String where) {
for (int i = 0; i < myAnimals.length; i++) {
if (null == myAnimals[i]) {
myAnimals[i] = animal;
animal.square = where;
animal.position = this;
nrAnimals++;
return;
} else if (animal == myAnimals[i]) {
throw new RuntimeException("Animal " + animal + " already placed :(");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void registrarLlegada() {\n\t}",
"@Override\n\tpublic void registrarLlegada() {\n\t\t\n\t}",
"public void register(T t);",
"@Override\n\tpublic void registrarSalida() {\n\n\t}",
"@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}",
"@Override\n\tpublic void registrarSalida() {\n\... | [
"0.5974048",
"0.5965704",
"0.56674236",
"0.56379074",
"0.56334233",
"0.56334233",
"0.5609401",
"0.5549941",
"0.5456251",
"0.5412173",
"0.538739",
"0.53810555",
"0.53530145",
"0.5310929",
"0.5305471",
"0.5293483",
"0.5293483",
"0.5269547",
"0.5267993",
"0.52471656",
"0.5232511... | 0.0 | -1 |
Entfernt ein Tier von einem bestimmten Feld. | public void removeAnimal(AnimalSol animal) {
for (int i = 0; i < myAnimals.length; i++) {
if (animal == myAnimals[i]) {
nrAnimals--;
myAnimals[i]=myAnimals[nrAnimals];
myAnimals[nrAnimals]=null;
return;
} else if (null == myAnimals[i]) {
throw new RuntimeException("Animal " + animal + " not found :(");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void compareFichierTo(Fichier f) {\n\t\t\n\t}",
"public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\... | [
"0.60610193",
"0.59465826",
"0.57805246",
"0.5558706",
"0.54374564",
"0.53749704",
"0.5343828",
"0.5335048",
"0.53170896",
"0.5296826",
"0.5286593",
"0.52792984",
"0.5266909",
"0.52408546",
"0.52169234",
"0.5177395",
"0.5134761",
"0.51066965",
"0.50904495",
"0.5086032",
"0.50... | 0.0 | -1 |
Bewegt ein Tier auf ein bestimmtes Feld. | public void moveAnimal(AnimalSol animal, String from, String to) {
removeAnimal(animal);
placeAnimal(animal, to);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.ad... | [
"0.5863117",
"0.5857763",
"0.5671542",
"0.5621972",
"0.55785257",
"0.5510351",
"0.5488653",
"0.54847825",
"0.5461419",
"0.5453531",
"0.54521966",
"0.5420453",
"0.54202235",
"0.53817004",
"0.5380196",
"0.5356422",
"0.5318279",
"0.53002506",
"0.5295019",
"0.52786785",
"0.527689... | 0.0 | -1 |
Zufallszahl zwischen low und high | private static int myRandom(int low, int high) {
return (int) (Math.random() * (high + 1 - low) + low);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getLow() {return low;}",
"public double getHigh() { return high;}",
"public double getLow() {\n return low;\n }",
"double getUpperThreshold();",
"public int getLowerBound ();",
"@Override\r\n\tprotected Integer deriveLower() {\r\n\t return 0;\r\n\t}",
"@Override\r\n\tprotecte... | [
"0.6604263",
"0.6348055",
"0.60752237",
"0.60015476",
"0.59942436",
"0.5976795",
"0.58894175",
"0.5880801",
"0.58589536",
"0.58544886",
"0.58397055",
"0.58299",
"0.5811736",
"0.58023727",
"0.576835",
"0.5758299",
"0.5728998",
"0.57231325",
"0.5718105",
"0.5703914",
"0.569982"... | 0.58560735 | 9 |
time = random.nextInt(4) + 1; | @Override
public void run() {
int orders = random.nextInt(5) + 2;
hCrowd.setBreakTimeBetweenOrders(time);
hCrowd.setOrderedAmount(orders);
hCrowd.setDish(Dish.getRandomDish());
System.out.println(hCrowd.getBreakTimeBetweenOrders()+" "+hCrowd.getOrderedAmount()+" "+hCrowd.getDish());;
++i;
if (i == 4) {
synchronized (Main.start) {
Main.start.notify();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static long randomTime() {\n return (random.nextInt(11) + 25)*1000;\n }",
"public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}",
"public static int randomNext() { return 0; }",
"private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;... | [
"0.7603894",
"0.73632103",
"0.72752076",
"0.71901304",
"0.7035197",
"0.6983668",
"0.6963006",
"0.6906816",
"0.68879014",
"0.6860718",
"0.6788131",
"0.67865676",
"0.67364746",
"0.6678105",
"0.66567",
"0.6656649",
"0.6637647",
"0.6589864",
"0.65717185",
"0.6555835",
"0.65510166... | 0.0 | -1 |
Create a matrix using the given 2D array | public Mat2(double[][] data) {
this.data = data;
rows = data.length; cols = (rows==0)? 0 : data[0].length;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix(int[][] array){\n this.matriz = array;\n }",
"public Matrix(int[][] array)\n {\n matrix = array;\n }",
"public void buildLinkedListMatrixfromArray(int[][] array){\r\n\t\tElementNode temp = null;\r\n\t\tElementNode prevRow = null;\r\n\t\tfor (int i = 0; i < this.head.getOrder(); i+... | [
"0.67564726",
"0.66519576",
"0.6234498",
"0.61611545",
"0.61203086",
"0.6098193",
"0.6059387",
"0.600898",
"0.60085213",
"0.5978721",
"0.59114885",
"0.59088725",
"0.5829444",
"0.5766511",
"0.5678845",
"0.5668751",
"0.55887735",
"0.5588616",
"0.5576862",
"0.5570921",
"0.555913... | 0.0 | -1 |
Initialize an empty matrix with the given dimensions | public Mat2(int rows, int cols) {
data = new double[rows][cols];
for(int i=0; i<rows; i++) {
for(int j=0; j<cols; j++) {
data[i][j] = 0;
}
}
this.rows = rows; this.cols = cols;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix(){\r\n\t\t\r\n\t\t//dim = dimension; for now, only 3-dim. matrices are being handled\r\n\t\tmat = new int[dim][dim];\r\n\t\t\r\n\t\tfor(int rowi = 0; rowi < dim; rowi++ )\r\n\t\t\tfor (int coli = 0; coli < dim; coli++)\r\n\t\t\t\tmat[rowi][coli]=0;\r\n\t}",
"public Matrix() {\n\tmatrix = new Object... | [
"0.7234714",
"0.71069586",
"0.70669025",
"0.6922624",
"0.67676467",
"0.6659391",
"0.66120905",
"0.66070795",
"0.65068537",
"0.6496498",
"0.643873",
"0.6405048",
"0.63486475",
"0.63136506",
"0.63116026",
"0.63018966",
"0.6263074",
"0.62036324",
"0.6195014",
"0.61745507",
"0.61... | 0.0 | -1 |
Initialize an empty square matrix of the given size | public Mat2(int size) {
this(size, size);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"public Matrix() {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"static public Matrix identityMatrix(int size) {\n Matrix identity = new Matrix(size, size);\n\n for (int i = 0; i < size; i++) {\n ... | [
"0.69483304",
"0.6860943",
"0.6828393",
"0.6746176",
"0.6690906",
"0.6682014",
"0.66735435",
"0.6670181",
"0.6642585",
"0.64932805",
"0.64704216",
"0.6389488",
"0.63495433",
"0.62979114",
"0.62471896",
"0.6227389",
"0.620763",
"0.6199633",
"0.61928046",
"0.61618334",
"0.61294... | 0.5445422 | 87 |
Initialize an identity matrix of the given size | public static Mat2 initIdentity(int size) {
double[][] data = new double[size][size];
for(int i=0; i<size; i++) {
for(int j=0; j<size; j++) {
data[i][j] = 0;
if(i==j) data[i][j] = 1;
}
}
return new Mat2(data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public Matrix identityMatrix(int size) {\n Matrix identity = new Matrix(size, size);\n\n for (int i = 0; i < size; i++) {\n identity.data[i][i] = 1;\n }\n\n return identity;\n }",
"public static Matrix getIdentityMatrix(int size) {\r\n Matrix m = new Matrix... | [
"0.82193124",
"0.78107",
"0.7317985",
"0.70557404",
"0.6624536",
"0.6610463",
"0.6610463",
"0.6594454",
"0.659254",
"0.65803677",
"0.65642667",
"0.65619475",
"0.6509648",
"0.6410799",
"0.6238799",
"0.62307096",
"0.6192926",
"0.6165245",
"0.61321944",
"0.60771793",
"0.6070696"... | 0.7825504 | 1 |
Get a specific element of the matrix | public double get(int i, int j) {
return data[i][j];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int get(int x, int y){\n return matriz[x][y];\n }",
"public double getElement(int i, int j){\r\n \treturn this.matrix[i][j];\r\n \t}",
"private Object get( int r, int c ) {\n\treturn matrix[r][c];\n }",
"public final float getElement(int row, int column) {\n\tif (row == 0)\n\t ... | [
"0.7295162",
"0.710051",
"0.7067147",
"0.6958817",
"0.69451016",
"0.6923483",
"0.68366563",
"0.6830456",
"0.67515373",
"0.67509425",
"0.674588",
"0.6592055",
"0.6592055",
"0.6540397",
"0.653987",
"0.6494251",
"0.6472126",
"0.6451843",
"0.6446339",
"0.64216936",
"0.6389833",
... | 0.0 | -1 |
Set an element to a value | public double set(int i, int j, double value) {
data[i][j] = value;
return value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setValue(T element) {\n\t\t\n\t}",
"public void setElement(T newvalue);",
"void setElementValue(SetElementValue cmd);",
"public void setValue(T v){\n \telement = v;\n }",
"public void setElement(T elem)\n {\n\n element = elem;\n }",
"void set(int index, Object element);",
... | [
"0.82229495",
"0.8167128",
"0.7944945",
"0.79443824",
"0.749653",
"0.7457201",
"0.7433626",
"0.7308634",
"0.72945815",
"0.7285555",
"0.7272339",
"0.72402465",
"0.72351074",
"0.71604234",
"0.7142928",
"0.71426404",
"0.7135816",
"0.7135816",
"0.71164167",
"0.7107785",
"0.707676... | 0.0 | -1 |
Perform scalar multiplication on the matrix | public Mat2 mult(double s) {
double[][] newData = new double[rows][cols];
for(int i=0; i<rows; i++) {
for(int j=0; j<cols; j++) {
newData[i][j] = data[i][j] * s;
}
}
return new Mat2(newData);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix multiply(double scalar) {\n Matrix result = new Matrix(this.rows, this.cols);\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.cols; j++) {\n result.data[i][j] = this.data[i][j] * scalar;\n }\n }\n\n return result;\n ... | [
"0.7612111",
"0.7555338",
"0.73296875",
"0.72368616",
"0.7228951",
"0.69438946",
"0.69158113",
"0.6856788",
"0.6849229",
"0.6789268",
"0.6764683",
"0.6759577",
"0.66476756",
"0.663726",
"0.6634501",
"0.6524826",
"0.65021837",
"0.6480186",
"0.6453657",
"0.6357867",
"0.63509583... | 0.56330156 | 87 |
Perform the product A B where A = this matrix and B = m | public Mat2 mult(Mat2 m) {
double[][] newData = new double[rows][m.cols];
//if(rows != m.cols) throw new IllegalArgumentException("cannot multiply a " + rows + " by " + cols +
// " matrix and a " + m.rows + " by " + m.cols + " matrix");
for(int i=0; i<rows; i++) {
for(int j=0; j<m.cols; j++) {
double total = 0.0;
for(int c=0; c<cols; c++) {
total += data[i][c] * m.data[c][j];
}
newData[i][j] = total;
}
}
return new Mat2(newData);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract <M extends AbstractMatrix> M elementwiseProduct(M b);",
"Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m... | [
"0.76287025",
"0.72468054",
"0.70508057",
"0.69056624",
"0.68772286",
"0.6855001",
"0.67400265",
"0.67103845",
"0.6708326",
"0.67080116",
"0.66699153",
"0.6654684",
"0.6633656",
"0.6551992",
"0.65162635",
"0.6506749",
"0.6488021",
"0.64569515",
"0.64478135",
"0.64158446",
"0.... | 0.5958667 | 52 |
Perform the product A B where A = this matrix and B = m | public void mult(Mat2 m, Mat2 dest) {
for(int i=0; i<rows; i++) {
for(int j=0; j<m.cols; j++) {
double total = 0.0f;
for(int c=0; c<cols; c++) {
total += data[i][c] * m.data[c][j];
}
dest.set(i, j, total);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract <M extends AbstractMatrix> M elementwiseProduct(M b);",
"Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m... | [
"0.76275563",
"0.7247203",
"0.70510024",
"0.6906605",
"0.68784195",
"0.6851212",
"0.6740527",
"0.6710429",
"0.67075",
"0.67072517",
"0.66726553",
"0.66565",
"0.66335064",
"0.65516615",
"0.65163034",
"0.6508859",
"0.6488219",
"0.6455797",
"0.6448578",
"0.64172775",
"0.6377682"... | 0.60508204 | 40 |
Performs multiplication the given vector by this matrix | public double[] mult(double[] vector) {
if(this.cols != vector.length) return null;
double[] result = new double[this.rows];
for(int i=0; i<this.rows; i++) {
for(int j=0; j<this.cols; j++) {
result[i] += data[i][j] * vector[j];
}
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void multiply(Double[] vector, Double multiplier) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] * multiplier;\r\n }\r\n }",
"public Vector<T> multiply(T aScalar);",
"public Vector tensorProduct( final Vector a);",
"public ... | [
"0.7177874",
"0.6947472",
"0.69315714",
"0.6790862",
"0.66632044",
"0.6655343",
"0.6517989",
"0.65128785",
"0.6501568",
"0.6474028",
"0.64494896",
"0.6436513",
"0.6361098",
"0.6352228",
"0.63190526",
"0.62587637",
"0.6235337",
"0.6233058",
"0.62096035",
"0.6194952",
"0.617924... | 0.7334237 | 0 |
Add the two matrices | public Mat2 add(Mat2 m) {
if(this.getRows()!=m.getRows() || this.getCols()!=m.getCols()) return null;
Mat2 m2 = new Mat2(this.getRows(), this.getCols());
for(int i=0; i<this.getRows(); i++) {
for(int j=0; j<this.getCols(); j++) {
m2.set(i, j, this.get(i, j)+m.get(i, j));
}
}
return m2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix addMatrices(Matrix mat1, Matrix mat2){\r\n\t\t\r\n\t\tMatrix resultMat = new Matrix();\r\n\t\t\r\n\t\tfor(int rowi = 0; rowi < dim; rowi++ )\r\n\t\t\tfor (int coli = 0; coli < dim; coli++)\r\n\t\t\tresultMat.setElement(mat1.getElement(rowi, coli) + mat2.getElement(rowi, coli), rowi, coli);\r\n\t\tret... | [
"0.7849462",
"0.76766723",
"0.74303293",
"0.7394096",
"0.7362798",
"0.7353918",
"0.7311268",
"0.7245026",
"0.7206089",
"0.72041994",
"0.70857084",
"0.70105696",
"0.6885614",
"0.68851733",
"0.6836696",
"0.6803839",
"0.677767",
"0.67129225",
"0.66630065",
"0.6651936",
"0.662946... | 0.62124425 | 32 |
Ideally would not be public, but needed something to test | public int generateNumber(int difficulty) {
Random generator = new Random();
return 1 + generator.nextInt((int) Math.pow(10, difficulty));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private stendhal() {\n\t}",
"private void test() {\n\n\t}",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private test5() {\r\n\t\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"pri... | [
"0.6049149",
"0.6009396",
"0.59659666",
"0.5863901",
"0.5863901",
"0.5793543",
"0.57544214",
"0.570624",
"0.56881",
"0.5655897",
"0.56352854",
"0.55726075",
"0.5525435",
"0.5498976",
"0.5480937",
"0.54606706",
"0.545835",
"0.545749",
"0.54524326",
"0.54524326",
"0.54524326",
... | 0.0 | -1 |
Searches for 'Animal Shelters' near me | @Override
public void onClick(View view) {
Uri gmmIntentUri = Uri.parse("geo:0, 0?q=Animal+Shelter+near+me");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void searchAnimalByName() {\n\t\tshowMessage(\"type in the animal's name: \\n\");\n\t\t\n\t\tString name = getUserTextTyped();\n\t\tToScreen.listAnimal(AnimalSearch.byName(name), true);\n\t\t\n\t\t//condition to do another search by name or go back to the main menu\n\t\t//if the user decide for doin... | [
"0.6287115",
"0.6044298",
"0.5962924",
"0.57776356",
"0.56935054",
"0.56854373",
"0.5675335",
"0.5675335",
"0.56314707",
"0.560975",
"0.5570901",
"0.55556774",
"0.5547043",
"0.55060595",
"0.54879266",
"0.54791933",
"0.54683465",
"0.5448647",
"0.5446465",
"0.5445338",
"0.54325... | 0.0 | -1 |
/ perform your actions here | @Override
public void onSuccess(AuthResult authResult) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}",
"@Override\n protected void doAct() {\n }",
"public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"public void act() \r\n {\r\n \r\n ... | [
"0.6735331",
"0.66611767",
"0.6630897",
"0.6608044",
"0.65401614",
"0.6531968",
"0.6455636",
"0.64211726",
"0.64211726",
"0.64211726",
"0.63896674",
"0.63838017",
"0.636537",
"0.63592464",
"0.6292882",
"0.6290442",
"0.6266849",
"0.6240044",
"0.6240044",
"0.62334955",
"0.62238... | 0.0 | -1 |
key save user info get string preference | public static String getStringPreference(Context pContext, String strKey) {
if (pContext.getSharedPreferences(PREF_KEY, 0) != null) {
return pContext.getSharedPreferences(PREF_KEY, 0)
.getString(strKey, "");
} else {
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeUserInro(String name,String key){\n SharedPreferences user = context.getSharedPreferences(\"user_info\",0);\n SharedPreferences.Editor mydata = user.edit();\n mydata.putString(\"uName\" ,name);\n mydata.putString(\"uKey\",key);\n mydata.commit();\n }",
"priv... | [
"0.6952658",
"0.6900851",
"0.67885846",
"0.67508715",
"0.6699854",
"0.6699854",
"0.6699854",
"0.6699854",
"0.6653818",
"0.6651611",
"0.66180253",
"0.66068727",
"0.65999335",
"0.6557622",
"0.65532935",
"0.6498802",
"0.64824784",
"0.6465273",
"0.64388907",
"0.643062",
"0.639857... | 0.0 | -1 |
These conditions are pulled from my withdraw/deposit conditions | @Override
public boolean isValid() {
return (27 - Inventory.getAll().length <= Inventory.find("Soft clay").length)
|| (Inventory.find("Soft clay").length < 1 || Inventory
.find("Astral rune").length < 1)
&& !Banking.isBankScreenOpen()
&& GlassBlower.antiban.canInteractObject();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void makeWithdraw() {\n\t\t\r\n\t}",
"public static void main(String[]args){\n\t\n\tdouble budget =500;\n\t\n\tdouble phone =250.0;\n\tdouble watch =105.5;\n\tdouble bag = 80.00;\n\t\n\t\n\tif(budget< 80.0) {\n\t\tSystem.out.println(\"Cannot buy anything\");\n\t\t\n\t}if (budget >=435.5) {\n\t\tSystem.ou... | [
"0.60001194",
"0.57735056",
"0.5715922",
"0.57122165",
"0.57114905",
"0.5698737",
"0.5581068",
"0.5573175",
"0.5526552",
"0.552376",
"0.5509915",
"0.55004287",
"0.5492873",
"0.5485451",
"0.5463934",
"0.5460895",
"0.54543316",
"0.5448259",
"0.5436212",
"0.5422637",
"0.5415281"... | 0.0 | -1 |
Toast.makeText(this, "in book", Toast.LENGTH_SHORT).show(); | void CheckFirebase(String bks)
{
DBR = FDB.getReference("Books");
//DBR.orderByChild("NAME").equals(b);
b = bks.split(",");
i=0;
DBR.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
//if(data.NAME.equals(b))
// Toast.makeText(ViewBooksActivity.this, "***"+dataSnapshot.getKey(), Toast.LENGTH_SHORT).show();
if(dataSnapshot.getKey().equals(b[i]) && i<b.length)
{
MyDataSetGet data = dataSnapshot.getValue(MyDataSetGet.class);
// Toast.makeText(ViewBooksActivity.this, "value aded"+i, Toast.LENGTH_SHORT).show();
listData.add(data);
i++;
}
rv2.setAdapter(adapter);
}
@Override
public void onChildChanged(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }",
"void showToast(String message);",
"void showToast(String message);",
"public ... | [
"0.7446859",
"0.7446055",
"0.7446055",
"0.73769844",
"0.7371049",
"0.73395395",
"0.73295534",
"0.7285358",
"0.72826076",
"0.72742915",
"0.7253731",
"0.7253731",
"0.7234076",
"0.72216314",
"0.7215667",
"0.71916443",
"0.71660197",
"0.71643054",
"0.7161829",
"0.7161799",
"0.7152... | 0.0 | -1 |
if(data.NAME.equals(b)) Toast.makeText(ViewBooksActivity.this, ""+dataSnapshot.getKey(), Toast.LENGTH_SHORT).show(); | @Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
if(dataSnapshot.getKey().equals(b[i]) && i<b.length)
{
MyDataSetGet data = dataSnapshot.getValue(MyDataSetGet.class);
// Toast.makeText(ViewBooksActivity.this, "value aded"+i, Toast.LENGTH_SHORT).show();
listData.add(data);
i++;
}
rv2.setAdapter(adapter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void CheckFirebase(String bks)\n {\n DBR = FDB.getReference(\"Books\");\n //DBR.orderByChild(\"NAME\").equals(b);\n b = bks.split(\",\");\n i=0;\n DBR.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dat... | [
"0.67897034",
"0.6557191",
"0.6433888",
"0.6368415",
"0.63503605",
"0.6307618",
"0.62789947",
"0.6168221",
"0.6142758",
"0.6140858",
"0.61135274",
"0.60826653",
"0.6080286",
"0.6059826",
"0.6059826",
"0.59990156",
"0.5974579",
"0.59159195",
"0.5906201",
"0.58939135",
"0.58938... | 0.6476353 | 2 |
Intent i = new Intent(ViewBooksActivity.this,DisplayActivity.class); i.putExtra("URL VALUE",url); startActivity(i); | @Override
public void onClick(View v) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClick(View v){\n EditText et = findViewById(R.id.et_1);\n String n;\n n = et.getText().toString();\n Bundle bundle = new Bundle();\n bundle.putString(\"url\",n);\n Intent intent = new Intent(getBaseContext(),t1.... | [
"0.7879128",
"0.75900596",
"0.75103664",
"0.7323278",
"0.72916216",
"0.72514963",
"0.7081915",
"0.6972045",
"0.689653",
"0.68620676",
"0.6849364",
"0.6845547",
"0.6836897",
"0.68345124",
"0.6828702",
"0.6827805",
"0.68182194",
"0.6813728",
"0.6810719",
"0.67881596",
"0.678678... | 0.0 | -1 |
Gets the value of the verformung property. | public double getVerformung() {
return verformung;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getVer() {\n return ver;\n }",
"public Integer getVer() {\n\t\treturn ver;\n\t}",
"public void setVerformung(double value) {\r\n this.verformung = value;\r\n }",
"public String getVer() {\r\n return this.ver;\r\n }",
"public double getVerdienst()\n {\n ... | [
"0.6801299",
"0.6779326",
"0.66434234",
"0.6604012",
"0.65369475",
"0.6524955",
"0.6468444",
"0.64410543",
"0.63982326",
"0.6386419",
"0.6371039",
"0.632676",
"0.6320527",
"0.62651074",
"0.62469095",
"0.622858",
"0.6179951",
"0.6160635",
"0.60881907",
"0.6051333",
"0.6051333"... | 0.83953696 | 0 |
Sets the value of the verformung property. | public void setVerformung(double value) {
this.verformung = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getVerformung() {\r\n return verformung;\r\n }",
"void setAnzahlVerkauft(String anzahlVerkauft);",
"public void setAantalVerwerkt(int aantalVerwerkt) {\n this.aantalVerwerkt = aantalVerwerkt;\n }",
"public void setVer(Integer ver) {\n this.ver = ver;\n }",
"publi... | [
"0.6977465",
"0.64672047",
"0.6216282",
"0.60773957",
"0.60303855",
"0.6000545",
"0.59534913",
"0.58169144",
"0.5810382",
"0.5797353",
"0.5744212",
"0.5731157",
"0.57204217",
"0.5666025",
"0.5637762",
"0.5628947",
"0.55912113",
"0.55911267",
"0.5515181",
"0.549083",
"0.545054... | 0.7901158 | 0 |
Creates a new notifications user with the primary key. Does not add the notifications user to the database. | public static com.b2b2000.agbar.historico.model.NotificationsUser createNotificationsUser(
long id) {
return getService().createNotificationsUser(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}",
"@Override\n public User create( User user ) {\n //- Save user to persistence -//\n final User newUser = this.userRepository.save(user);\n\n //-... | [
"0.6919166",
"0.6729048",
"0.66870844",
"0.6659923",
"0.65443385",
"0.64588374",
"0.64290977",
"0.64056593",
"0.6332637",
"0.63103133",
"0.6293025",
"0.6282213",
"0.62668633",
"0.62406915",
"0.62248915",
"0.6215895",
"0.621399",
"0.61975163",
"0.6196264",
"0.6176686",
"0.6176... | 0.73784375 | 0 |
Deletes the notifications user with the primary key from the database. Also notifies the appropriate model listeners. | public static com.b2b2000.agbar.historico.model.NotificationsUser deleteNotificationsUser(
long id)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().deleteNotificationsUser(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Notification delNotification(int idUser) {\n\t\treturn dao.delNotification(idUser);\n\t}",
"public static com.b2b2000.agbar.historico.model.NotificationsUser deleteNotificationsUser(\n\t\tcom.b2b2000.agbar.historico.model.NotificationsUser notificationsUser)\n\t\tthrows com.liferay.portal.ker... | [
"0.7687768",
"0.6759956",
"0.6635028",
"0.6614056",
"0.659058",
"0.65629643",
"0.65211517",
"0.64989185",
"0.6490664",
"0.64842856",
"0.6483274",
"0.6463334",
"0.6455158",
"0.64522237",
"0.6423965",
"0.6415377",
"0.63773906",
"0.63757265",
"0.63495535",
"0.63249683",
"0.63189... | 0.67911994 | 1 |
Deletes the notifications user from the database. Also notifies the appropriate model listeners. | public static com.b2b2000.agbar.historico.model.NotificationsUser deleteNotificationsUser(
com.b2b2000.agbar.historico.model.NotificationsUser notificationsUser)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().deleteNotificationsUser(notificationsUser);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Notification delNotification(int idUser) {\n\t\treturn dao.delNotification(idUser);\n\t}",
"public static com.b2b2000.agbar.historico.model.NotificationsUser deleteNotificationsUser(\n\t\tlong id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kerne... | [
"0.72960776",
"0.71314305",
"0.6690397",
"0.66801596",
"0.65721846",
"0.6531964",
"0.6508371",
"0.64876693",
"0.6486398",
"0.64755523",
"0.6473562",
"0.6466269",
"0.6464555",
"0.64614767",
"0.6443206",
"0.64400697",
"0.6404014",
"0.6386352",
"0.6376271",
"0.6370097",
"0.63495... | 0.73737323 | 0 |
Performs a dynamic query on the database and returns the matching rows. | @SuppressWarnings("rawtypes")
public static java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQuery(dynamicQuery);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Items[] findByDynamicSelect(String sql, Object[] sqlParams) throws ItemsDaoException;",
"public Faq[] findByDynamicSelect(String sql, Object[] sqlParams) throws FaqDaoException;",
"public Ruta[] findByDynamicSelect(String sql, Object[] sqlParams) throws RutaDaoException;",
"public Cliente[] findByDyna... | [
"0.7039451",
"0.6869426",
"0.6854438",
"0.67997193",
"0.675506",
"0.6705203",
"0.67030275",
"0.6669432",
"0.65296555",
"0.64960545",
"0.64750344",
"0.6344762",
"0.6338596",
"0.63130784",
"0.6290955",
"0.6276857",
"0.6232485",
"0.6220232",
"0.6211511",
"0.6207937",
"0.6198829"... | 0.0 | -1 |
Returns the number of rows that match the dynamic query. | public static long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQueryCount(dynamicQuery);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getRowsCount();",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery);",
"public int selectRowCount (final String sql) throws DataAccessException;",
"public long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQ... | [
"0.72462654",
"0.72056246",
"0.7177561",
"0.7133431",
"0.7091408",
"0.70823574",
"0.70776063",
"0.7060437",
"0.705862",
"0.7013256",
"0.6983294",
"0.6960493",
"0.69587326",
"0.6958094",
"0.69572556",
"0.69308513",
"0.693003",
"0.6921807",
"0.69071466",
"0.6876162",
"0.6875529... | 0.6676359 | 46 |
Returns the notifications user with the primary key. | public static com.b2b2000.agbar.historico.model.NotificationsUser getNotificationsUser(
long id)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().getNotificationsUser(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Notification getNotification(int idUser) {\n\t\treturn dao.getNotification(idUser);\n\t}",
"SysUser selectByPrimaryKey(Long userId);",
"@Override\n\tpublic Long getUserId() {\n\t\treturn user.getKey().getId();\n\t}",
"UUser selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Inte... | [
"0.66922235",
"0.666805",
"0.6593188",
"0.6565589",
"0.6530818",
"0.6484061",
"0.6474766",
"0.6474766",
"0.64617014",
"0.64232266",
"0.6410659",
"0.6399137",
"0.63817817",
"0.6366274",
"0.6366274",
"0.6366274",
"0.6366274",
"0.6366274",
"0.63432527",
"0.63323855",
"0.63277996... | 0.6449877 | 9 |
Returns the number of notifications users. | public static int getNotificationsUsersCount()
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getNotificationsUsersCount();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"public int numberOfUsers() {\r\n \tint anzahlUser=userDAO.getUserList().size();\r\n \treturn anzahlUser;\r\n }",
"public int getUsersCount() {\n return users_.size();\n }",
"public int getUsersCount() {\n return... | [
"0.7714997",
"0.7714997",
"0.7714997",
"0.7424203",
"0.73866856",
"0.73864067",
"0.7380001",
"0.72910035",
"0.72910035",
"0.7287787",
"0.7195665",
"0.7179181",
"0.71392894",
"0.71302414",
"0.71209717",
"0.70949155",
"0.7061942",
"0.7060911",
"0.7011751",
"0.6960718",
"0.69487... | 0.8230302 | 0 |
Updates the notifications user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. | public static com.b2b2000.agbar.historico.model.NotificationsUser updateNotificationsUser(
com.b2b2000.agbar.historico.model.NotificationsUser notificationsUser)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().updateNotificationsUser(notificationsUser);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Notification addNotification(Notification notification, int idUser) {\n\t\treturn dao.addNotification(notification, idUser);\n\t}",
"public static com.b2b2000.agbar.historico.model.NotificationsUser createNotificationsUser(\n\t\tlong id) {\n\t\treturn getService().createNotificationsUser(id);... | [
"0.6174101",
"0.607049",
"0.6037889",
"0.5935691",
"0.5904508",
"0.5875508",
"0.5872691",
"0.58649474",
"0.5833116",
"0.5805206",
"0.58031785",
"0.578462",
"0.5774115",
"0.5757506",
"0.5731136",
"0.57109165",
"0.5684019",
"0.56810236",
"0.567619",
"0.5674034",
"0.5673517",
... | 0.70418936 | 0 |
Returns the Spring bean ID for this bean. | public static java.lang.String getBeanIdentifier() {
return getService().getBeanIdentifier();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().get... | [
"0.8218848",
"0.8218848",
"0.8218848",
"0.8218848",
"0.8218848",
"0.7810215",
"0.7757243",
"0.7632713",
"0.748587",
"0.74818814",
"0.74818814",
"0.74818814",
"0.73971653",
"0.7265513",
"0.717723",
"0.71664697",
"0.7084225",
"0.70497847",
"0.70097995",
"0.6987446",
"0.69093156... | 0.82252425 | 4 |
Sets the Spring bean ID for this bean. | public static void setBeanIdentifier(java.lang.String beanIdentifier) {
getService().setBeanIdentifier(beanIdentifier);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBeanIdentifier(java.lang.String beanIdentifier);",
"@Override\n public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",
"@Override\n public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",... | [
"0.73001695",
"0.6894381",
"0.6894381",
"0.6894381",
"0.664812",
"0.6621329",
"0.6578381",
"0.65493035",
"0.6548348",
"0.6495965",
"0.64489466",
"0.64489466",
"0.64489466",
"0.64489466",
"0.64489466",
"0.64489466",
"0.63313663",
"0.63125855",
"0.6295864",
"0.62330645",
"0.621... | 0.636182 | 19 |
Created by titam on 02/11/16. | public interface OUTPUT_RESULTSDao {
List<OUTPUT_RESULTS> getAllOutputReults();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Over... | [
"0.6097675",
"0.60542995",
"0.6030543",
"0.5952136",
"0.59280133",
"0.59177953",
"0.59177953",
"0.5877156",
"0.58749014",
"0.5858086",
"0.5852595",
"0.58200985",
"0.5816794",
"0.5811466",
"0.5782288",
"0.5777836",
"0.5776908",
"0.5767775",
"0.575923",
"0.57572037",
"0.5757203... | 0.0 | -1 |
Constructs an OleAccountFilterEvent with the given errorPathPrefix, document. | public OleAccountFilterEvent(String errorPathPrefix, Document document) {
super("Accounting Details of" + getDocumentId(document), errorPathPrefix, document);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OleAccountFilterEvent(Document document, String chartOfAccountsCode,\r\n String accountNumber, String objectCode) {\r\n this(\"\", document);\r\n this.accountNumber = accountNumber;\r\n this.chartOfAccountsCode = chartOfAccountsCode;\r\n this.objec... | [
"0.6435869",
"0.44782022",
"0.43295598",
"0.42666382",
"0.42146817",
"0.41240278",
"0.40989524",
"0.4062212",
"0.40588716",
"0.4013701",
"0.39656332",
"0.39319915",
"0.39295703",
"0.3926278",
"0.38957623",
"0.38899365",
"0.38850787",
"0.38467574",
"0.38458672",
"0.38437504",
... | 0.7831285 | 0 |
Constructs an OleAccountFilterEvent with the given document, chartOfAccountsCode, accountNumber, objectCode. | public OleAccountFilterEvent(Document document, String chartOfAccountsCode,
String accountNumber, String objectCode) {
this("", document);
this.accountNumber = accountNumber;
this.chartOfAccountsCode = chartOfAccountsCode;
this.objectCode = objectCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OleAccountFilterEvent(String errorPathPrefix, Document document) {\r\n super(\"Accounting Details of\" + getDocumentId(document), errorPathPrefix, document);\r\n }",
"public void setAccountFilter(Filter<Account> accountFilter) {\n this.accountFilter = accountFilter;\n }",
"@Override\... | [
"0.60051095",
"0.48459178",
"0.47463527",
"0.47095534",
"0.47095534",
"0.47001663",
"0.46945232",
"0.46888235",
"0.4586711",
"0.4508003",
"0.44246018",
"0.4422641",
"0.44167864",
"0.4356616",
"0.43327424",
"0.43046618",
"0.42808327",
"0.4268289",
"0.4266982",
"0.42590526",
"0... | 0.8959794 | 0 |
Overridden to call parent and then clean up the error messages. | @Override
public boolean invokeRuleMethod(BusinessRule rule) {
boolean result = super.invokeRuleMethod(rule);
cleanErrorMessages();
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cleanErrorMessages() {\r\n\r\n }",
"@Override\n public void clearError() {\n\n }",
"public void clearErrors() {\n super.resetErrors();\n }",
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"public abstract void setError(String message);",
"protected void finalizeSy... | [
"0.7287438",
"0.70032305",
"0.68929285",
"0.656342",
"0.60916036",
"0.60913956",
"0.60904723",
"0.6070622",
"0.6065236",
"0.6060961",
"0.60570574",
"0.6055521",
"0.6001887",
"0.60013187",
"0.5982931",
"0.59376",
"0.5921015",
"0.59039694",
"0.58896047",
"0.58756566",
"0.586305... | 0.0 | -1 |
Logic to replace generic amount error messages, especially those where extraordinarily large amounts caused format errors | public void cleanErrorMessages() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\... | [
"0.59412974",
"0.58440804",
"0.5830976",
"0.58154666",
"0.57633156",
"0.57633156",
"0.57633156",
"0.57633156",
"0.5743687",
"0.5709696",
"0.56943464",
"0.5689755",
"0.56871825",
"0.55986965",
"0.55796427",
"0.5564354",
"0.556424",
"0.54907745",
"0.5489395",
"0.5479766",
"0.54... | 0.583538 | 2 |
Find the _Fields constant that matches fieldId, or null if its not found. | public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FUNCTION_NAME
return FUNCTION_NAME;
case 2: // SCHEMA_NAME
return SCHEMA_NAME;
case 3: // CLASS_NAME
return CLASS_NAME;
case 4: // RESOURCES
return RESOURCES;
default:
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n ... | [
"0.79869914",
"0.7915354",
"0.78808534",
"0.78808534",
"0.78808534",
"0.78808534",
"0.78808534",
"0.78808534",
"0.77862614",
"0.7779145",
"0.77291805",
"0.7727816",
"0.7721567",
"0.77125883",
"0.77125883",
"0.7709597",
"0.7708822",
"0.7701162",
"0.7699386",
"0.76957756",
"0.7... | 0.0 | -1 |
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. | public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields find... | [
"0.7626537",
"0.7626537",
"0.7626537",
"0.7626537",
"0.7626537",
"0.7626537",
"0.7626537",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.... | 0.0 | -1 |
Find the _Fields constant that matches name, or null if its not found. | public static _Fields findByName(String name) {
return byName.get(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache... | [
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"... | 0.0 | -1 |
Performs a deep copy on other. | public CatalogFunctionObject(CatalogFunctionObject other) {
if (other.isSetFunctionName()) {
this.functionName = other.functionName;
}
if (other.isSetSchemaName()) {
this.schemaName = other.schemaName;
}
if (other.isSetClassName()) {
this.className = other.className;
}
if (other.isSetResources()) {
List<String> __this__resources = new ArrayList<String>(other.resources);
this.resources = __this__resources;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Prototype makeCopy();",
"public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperti... | [
"0.7214815",
"0.6982586",
"0.6743959",
"0.66792786",
"0.6563397",
"0.6549605",
"0.65230364",
"0.652084",
"0.64842516",
"0.64743775",
"0.6450891",
"0.6438907",
"0.64186275",
"0.640633",
"0.6403375",
"0.63743764",
"0.6373319",
"0.6358263",
"0.6322797",
"0.63214344",
"0.62839",
... | 0.0 | -1 |
Returns true if field functionName is set (has been assigned a value) and false otherwise | public boolean isSetFunctionName() {
return this.functionName != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getHasSetFunc() {\n return localHasSetFunc;\n }",
"boolean hasFunction(String functionName);",
"boolean hasFieldId();",
"public boolean isFunction() {\n return this.type != null;\n }",
"public boolean isNotNullFns() {\n return genClient.cacheValueIsNotNull(CacheKey.fns... | [
"0.664429",
"0.6594245",
"0.6580318",
"0.6533624",
"0.65212184",
"0.6414083",
"0.6406115",
"0.63369334",
"0.63369334",
"0.62364054",
"0.62364054",
"0.62347084",
"0.62205005",
"0.6216396",
"0.6148862",
"0.6120835",
"0.60958695",
"0.60958695",
"0.6069283",
"0.60658604",
"0.6065... | 0.8250387 | 0 |
Returns true if field schemaName is set (has been assigned a value) and false otherwise | public boolean isSetSchemaName() {
return this.schemaName != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetSchema_name() {\n return this.schema_name != null;\n }",
"public boolean isSetSchema_id() {\n return this.schema_id != null;\n }",
"public boolean isSetDbName() {\n return this.dbName != null;\n }",
"public boolean isSetCatalogSchema() {\n return this.catalogSchema != null;... | [
"0.8396473",
"0.7439983",
"0.6939263",
"0.6919736",
"0.67401415",
"0.662555",
"0.6558801",
"0.64842033",
"0.6478681",
"0.6471916",
"0.646136",
"0.64286107",
"0.6426455",
"0.6426455",
"0.6426455",
"0.6426455",
"0.64151186",
"0.64146495",
"0.63940245",
"0.6383926",
"0.6362834",... | 0.8359834 | 1 |
Returns true if field className is set (has been assigned a value) and false otherwise | public boolean isSetClassName() {
return this.className != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(JAVACLASS$24) != null;\r\n }\r\n }",
"public boolean validate() {\n\t\tif (StringUtils.isEmpty(cla... | [
"0.6484149",
"0.62525624",
"0.6190877",
"0.6187892",
"0.6154746",
"0.6129966",
"0.6074017",
"0.6026963",
"0.5918446",
"0.5879957",
"0.58487433",
"0.58487433",
"0.5811071",
"0.5811071",
"0.5808629",
"0.5808629",
"0.5807455",
"0.57949394",
"0.57917154",
"0.5777565",
"0.5753329"... | 0.76420075 | 0 |
Returns true if field resources is set (has been assigned a value) and false otherwise | public boolean isSetResources() {
return this.resources != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSetRequiredResources();",
"boolean isHasResources();",
"public boolean isSetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COMPARESOURCE$2) != 0;\r\n }\r\n ... | [
"0.7977869",
"0.71584624",
"0.7016985",
"0.6785692",
"0.65895635",
"0.64615893",
"0.62950724",
"0.6248606",
"0.6192654",
"0.6176271",
"0.61719584",
"0.6160744",
"0.6153168",
"0.612709",
"0.6126738",
"0.60688746",
"0.6067211",
"0.6050555",
"0.6043015",
"0.60393083",
"0.6029051... | 0.83037746 | 1 |
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise | public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FUNCTION_NAME:
return isSetFunctionName();
case SCHEMA_NAME:
return isSetSchemaName();
case CLASS_NAME:
return isSetClassName();
case RESOURCES:
return isSetResources();
}
throw new IllegalStateException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n ... | [
"0.79056656",
"0.79056656",
"0.78333884",
"0.78036314",
"0.77937067",
"0.7780796",
"0.7780796",
"0.7780796",
"0.7780796",
"0.76468164",
"0.754723",
"0.75451803",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179... | 0.0 | -1 |
check for required fields | public void validate() throws org.apache.thrift.TException {
if (functionName == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'functionName' was not present! Struct: " + toString());
}
if (className == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'className' was not present! Struct: " + toString());
}
if (resources == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'resources' was not present! Struct: " + toString());
}
// check for sub-struct validity
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldVali... | [
"0.75287306",
"0.7430543",
"0.7430543",
"0.7430543",
"0.7394445",
"0.73590785",
"0.7280072",
"0.7234574",
"0.72328943",
"0.72021484",
"0.7163772",
"0.71448237",
"0.7141192",
"0.7092876",
"0.7075819",
"0.7058885",
"0.70559984",
"0.70541537",
"0.70536923",
"0.7030236",
"0.70288... | 0.0 | -1 |
Fixture initialization (common initialization for all tests). | @Before public void setUp() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeAll\n static void init() {\n }",
"@Before\n public void init() {\n }",
"@Before\n\tpublic void init() {\n\t}",
"@BeforeClass\n public static void init() {\n InitializrMetadataBuilder initializrMetadataBuilder = InitializrMetadataBuilder.fromInitializrProperties(\n ... | [
"0.75034183",
"0.7310419",
"0.7300194",
"0.7290766",
"0.72479784",
"0.72159034",
"0.71773154",
"0.716951",
"0.7117647",
"0.70500344",
"0.703414",
"0.70302707",
"0.6992388",
"0.69710135",
"0.69579",
"0.6936861",
"0.6903842",
"0.6903006",
"0.6893639",
"0.68809694",
"0.6874737",... | 0.6710439 | 48 |
Test for negative return value. | @Test public void negativeTest() {
Cat c = new Cat("Owner 1", "Kitty", "House Cat", 15.0, 7, 9);
Dog d = new Dog("Owner 2", "Rex", "Boxer", 90.0, 7);
Assert.assertEquals(-1, test.compare(d, c));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isNegative();",
"public boolean isNegative()\n\t{\n\t\t// TO DO\n\t\treturn isNeg;\n\t}",
"public boolean isNegative()\n {\n return Native.fpaIsNumeralNegative(getContext().nCtx(), getNativeObject());\n }",
"boolean isNeg();",
"T negativeResult();",
"public double hasNegSign(d... | [
"0.83369946",
"0.7453574",
"0.74122006",
"0.73703927",
"0.7349234",
"0.7290403",
"0.7285853",
"0.7024292",
"0.6642283",
"0.6588533",
"0.65785646",
"0.654129",
"0.6528995",
"0.6521286",
"0.64942235",
"0.6440748",
"0.63808954",
"0.63290477",
"0.63125604",
"0.62772995",
"0.62504... | 0.5533925 | 92 |
Test for positive return value. | @Test public void positiveTest() {
Cat c = new Cat("Owner 1", "Kitty", "House Cat", 15.0, 7, 9);
Dog d = new Dog("Owner 2", "Rex", "Boxer", 90.0, 7);
Assert.assertEquals(1, test.compare(c, d));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean isPositive();",
"public boolean isNegative();",
"public boolean isPositive()\n\t{\n\t\treturn _bIsPositive;\n\t}",
"private boolean isPositive() {\n return this._isPositive;\n }",
"public double hasNegSign(double value) {\n if (value < 0) {\n retu... | [
"0.74707913",
"0.7098259",
"0.70270264",
"0.691281",
"0.6853749",
"0.6763327",
"0.664505",
"0.65657663",
"0.6521027",
"0.65168595",
"0.65142095",
"0.6493402",
"0.64011765",
"0.6345885",
"0.6303865",
"0.6216586",
"0.61837476",
"0.6179614",
"0.615849",
"0.614264",
"0.6137147",
... | 0.0 | -1 |
Test for equal (0) return value. | @Test public void equalTest() {
Dog d = new Dog("Owner 1", "Rex", "Boxer", 90.0, 7);
Dog d2 = new Dog("Owner 2", "Spot", "Pit Bull", 90.0, 7);
Assert.assertEquals(0, test.compare(d, d2));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int result() {\n return EQUAL;\n }",
"@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}",
"public boolean hasResult()\n/* */ {\n/* 119 */ return this.result != RESULT_NONE;\n/* */ }",
"static void return_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_return_... | [
"0.6741882",
"0.6371996",
"0.62074465",
"0.61175025",
"0.60953206",
"0.5933782",
"0.5895778",
"0.5890602",
"0.5886255",
"0.5874003",
"0.58341956",
"0.58266526",
"0.58151186",
"0.58147264",
"0.5775381",
"0.57633644",
"0.57582235",
"0.5750699",
"0.573569",
"0.5711662",
"0.56906... | 0.0 | -1 |
callback.onFailure(new RuntimeException("Failed to create security context for "+id, caught)); | @Override
public void onFailure(Throwable caught) {
Console.warning("Failed to create security context for "+id+ ", fallback to temporary read-only context", caught.getMessage());
contextMapping.put(id, READ_ONLY);
callback.onSuccess(READ_ONLY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}",
"void failure(ServiceExecutionEvent e) {\n\n }",
"void onFailure() {\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t\t\t}",
"@Override\n public void onCreateFailure(St... | [
"0.6094234",
"0.58878994",
"0.58753914",
"0.5862427",
"0.58428425",
"0.58428425",
"0.5806529",
"0.5806368",
"0.5806368",
"0.5802945",
"0.57986104",
"0.5779084",
"0.5756239",
"0.57437",
"0.574082",
"0.5721447",
"0.57210493",
"0.57210493",
"0.57180756",
"0.57180756",
"0.5718075... | 0.7601442 | 0 |
Fallback for some forms | @Override
public Set<String> getReadOnlyJavaNames(Class<?> type, SecurityContext securityContext) {
if(type == Object.class || type == null)
return Collections.EMPTY_SET;
return new MetaDataAdapter(Console.MODULES.getApplicationMetaData())
.getReadOnlyJavaNames(type, securityContext);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String usesFormWithAttributes()\r\n {\r\n return \"\";\r\n }",
"@Override\n\tpublic ActionResult defaultMethod(PortalForm form, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}",
"public boolean isForm();",
"@Override\r\n\tprotected Result validate(Key... | [
"0.6364229",
"0.6200705",
"0.6148092",
"0.58784413",
"0.57795",
"0.57270896",
"0.5713734",
"0.57029223",
"0.56671816",
"0.5660397",
"0.562059",
"0.556478",
"0.55629176",
"0.55532503",
"0.5533295",
"0.5521263",
"0.5490778",
"0.54640526",
"0.54555255",
"0.5439958",
"0.54321605"... | 0.0 | -1 |
TODO: at some point this should refer to the actual resource address | @Override
public Set<String> getReadOnlyDMRNames(String resourceAddress, List<String> formItemNames, SecurityContext securityContext) {
Set<String> readOnly = new HashSet<String>();
for(String item : formItemNames)
{
if(!securityContext.getAttributeWritePriviledge(item).isGranted())
readOnly.add(item);
}
return readOnly;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String resourceAddress(int augID) {\n\t\treturn Main.MODID + \":skills/novice/Rejuvenate.png\";\r\n\t}",
"private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath-... | [
"0.64338803",
"0.6126641",
"0.5885472",
"0.58752614",
"0.58677745",
"0.58651",
"0.58557105",
"0.5819914",
"0.58177656",
"0.5773959",
"0.57380956",
"0.573775",
"0.5735888",
"0.56998104",
"0.56925905",
"0.56812567",
"0.5677524",
"0.5650092",
"0.5646529",
"0.56096834",
"0.558258... | 0.0 | -1 |
Constructs a new Colour test case with the given name. | public ColourTest(String name)
{
super(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ColorClass( String name) {\n this(name, false);\n }",
"public Fruit(String color, String name) {\r\n\t\tthis.color = color;\r\n\t\tthis.name = name;\r\n\t}",
"public TestCase(String name) {\n\t\tsetName(name);\n\t}",
"public SchemeTest (String name)\n {\n super (name);\n /*\... | [
"0.67940867",
"0.6327741",
"0.61147445",
"0.60772204",
"0.6048537",
"0.6034173",
"0.600196",
"0.59932053",
"0.5970034",
"0.59318143",
"0.592067",
"0.5901064",
"0.5812817",
"0.5792693",
"0.5789694",
"0.57764184",
"0.575777",
"0.57460576",
"0.5745676",
"0.56717443",
"0.5664034"... | 0.81646115 | 0 |
Sets the fixture for this Colour test case. | protected void setFixture(Colour fixture)
{
this.fixture = fixture;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setFixture(PropertyInstance fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(DatabaseOptions fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(Grid<?, ?> fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(ColumnGroup fixtu... | [
"0.74140626",
"0.7367158",
"0.723645",
"0.71430665",
"0.713549",
"0.70987624",
"0.707859",
"0.69789886",
"0.69781685",
"0.6933029",
"0.68870384",
"0.6807492",
"0.68065923",
"0.6749714",
"0.67486644",
"0.6729788",
"0.66392493",
"0.65804523",
"0.6563776",
"0.6443089",
"0.643698... | 0.8387372 | 0 |
Returns the fixture for this Colour test case. | protected Colour getFixture()
{
return fixture;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected PropertyInstance getFixture() {\n\t\treturn fixture;\n\t}",
"protected Grid<?, ?> getFixture() {\n\t\treturn fixture;\n\t}",
"protected DatabaseOptions getFixture() {\n\t\treturn fixture;\n\t}",
"protected SaveParameters getFixture() {\n\t\treturn fixture;\n\t}",
"protected SokobanService getFixt... | [
"0.7138892",
"0.70177853",
"0.6784505",
"0.6741486",
"0.67115694",
"0.67056346",
"0.67012376",
"0.67005557",
"0.6632062",
"0.66064376",
"0.65993637",
"0.6550011",
"0.65194523",
"0.64776695",
"0.6431397",
"0.64242053",
"0.6378375",
"0.63722837",
"0.63706994",
"0.63652503",
"0.... | 0.8621632 | 0 |
Created by kim on 08/03/2018. | public interface IBlueToothService {
boolean initialize();
void function_data(byte[] data);
void enable_JDY_ble(int p);
void disconnect();
/**
* 执行指令
* @param g
* @param string_or_hex_data
* @return
*/
int command(String g, boolean string_or_hex_data);
void Delay_ms(int ms);
/**
* 设置密码
* @param pss
*/
void set_APP_PASSWORD(String pss);
boolean connect(String address);
/**
* 获取连接的ble设备所提供的服务列表
* @return
*/
List<BluetoothGattService> getSupportedGattServices();
int get_connected_status(List<BluetoothGattService> gattServices);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Overri... | [
"0.5884582",
"0.57825375",
"0.5599341",
"0.5595957",
"0.55910677",
"0.5574508",
"0.556666",
"0.5564286",
"0.5564286",
"0.5515553",
"0.5487205",
"0.54822975",
"0.54458714",
"0.5434079",
"0.5422689",
"0.54210734",
"0.54090035",
"0.54046106",
"0.53912824",
"0.53833467",
"0.53814... | 0.0 | -1 |
Create a new filter. | public static SMFMemoryMeshFilterType create(
final SMFSchemaIdentifier in_schema,
final Path in_file)
{
return new SMFMemoryMeshFilterMetadataAdd(in_schema, in_file);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Filter newFilter()\r\n {\r\n Filter filter = new Filter(\"filter1\", new Source(\"display1\", \"name1\", \"server\", \"key1\"));\r\n filter.getOtherSources().add(filter.getSource());\r\n Group group = new Group();\r\n group.addFilterCriteria(new Criteria(\"field1\", Co... | [
"0.7644378",
"0.75955623",
"0.7592488",
"0.752606",
"0.7506796",
"0.7326673",
"0.7224866",
"0.72032094",
"0.71838254",
"0.6968975",
"0.6906743",
"0.687787",
"0.68592596",
"0.68262255",
"0.6772591",
"0.6763919",
"0.6742765",
"0.6741797",
"0.6723293",
"0.6693231",
"0.66726494",... | 0.0 | -1 |
Attempt to parse a command. | public static SMFPartialLogged<SMFMemoryMeshFilterType> parse(
final Optional<URI> file,
final int line,
final List<String> text)
{
Objects.requireNonNull(file, "file");
Objects.requireNonNull(text, "text");
if (text.size() == 4) {
try {
final SMFSchemaName name = SMFSchemaName.of(text.get(0));
final int major = Integer.parseUnsignedInt(text.get(1));
final int minor = Integer.parseUnsignedInt(text.get(2));
final Path path = Paths.get(text.get(3));
return SMFPartialLogged.succeeded(create(
SMFSchemaIdentifier.of(
name,
major,
minor),
path));
} catch (final IllegalArgumentException e) {
return errorExpectedGotValidation(file, line, makeSyntax(), text);
}
}
return errorExpectedGotValidation(file, line, makeSyntax(), text);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void parseCommand(String command){\n\t\tif(command!=null && command.length()>0){\n\t\t\tif(!subMenuFlag){\n\t\t\t\tmainMenuCommand(command);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tsubMenuCommand(command);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Please enter a valid command.\");\n\t\t}\n\t}",
"public Comma... | [
"0.76493907",
"0.75711983",
"0.7566395",
"0.73932695",
"0.7371335",
"0.7352558",
"0.7299774",
"0.72384286",
"0.7230605",
"0.71793723",
"0.7169169",
"0.71343327",
"0.71320117",
"0.7118996",
"0.7076305",
"0.6992555",
"0.6991926",
"0.69141114",
"0.68443805",
"0.67944115",
"0.677... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] arr = {1, 2, 5, 5, 5, 10, 20};
int search = 5;
int index = Arrays.binarySearch(arr, search);
//System.out.println(index);
if(index < 0) {
int lowerBound = Math.abs(index) - 2;
int upperBound = Math.abs(index) - 1;
System.out.println(lowerBound + " " + upperBound);
}
} | {
"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 |
Each defrecord in array has a masterCriteriaList: GROUP_DEF_KEY attributeList: ATTRIBUTE_DEF_KEY | static public boolean boolForString(String s) {
return ERXValueUtilities.booleanValue(s);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<SalesforceMetadataTree> metaDataList(ArrayList<String> objectArray,ArrayList<String> fieldArray, Map<String, SalesforceSetupDetail> hashTable,List<SalesforceMetadataTree> treeMapDataList,String type) {\r\n\r\n\t\tint i=0 ;\r\n\t\tif(!type.equalsIgnoreCase(\"Custom\")){\r\n\t\t\ti=1;\r\n\t\t}\r\n\t\tfor... | [
"0.5307061",
"0.51322603",
"0.50222856",
"0.4976156",
"0.49681678",
"0.49368888",
"0.49314642",
"0.49287638",
"0.49085516",
"0.48875543",
"0.48812848",
"0.48064557",
"0.47816676",
"0.47692138",
"0.47628132",
"0.4750394",
"0.4742353",
"0.47394955",
"0.47364265",
"0.47272205",
... | 0.0 | -1 |
NSArray rawpossVals = (NSArray)smcdict.objectForKey("possibleValues"); | static public NSArray possibleValues(NSDictionary smcdict) {
Object rawpossVals = smcdict.objectForKey("possibleValues");
//String non = (String)smcdict.objectForKey("nonNumberOrDate");
if (rawpossVals == null) {
return null;
}
NSArray possVals = null;
if (rawpossVals instanceof String) {
WOXMLDecoder decoder = WOXMLDecoder.decoder();
String xmlString = new String(Base64.decodeBase64((String) rawpossVals));
log.info("xmlString: {}", xmlString);
StringReader stringReader = new StringReader(xmlString);
InputSource is = new InputSource(stringReader);
// invoke setEncoding (on the input source) if the XML contains multibyte characters
try {
possVals = (NSArray)decoder.decodeRootObject(is);
} catch(Exception e) {
//OWDebug.println(1, "e:"+e);
}
//possVals = NSArchiver .unarchiveObjectWithData(rawpossVals);
} else if(rawpossVals instanceof NSArray){
possVals = (NSArray)rawpossVals;
}
return possVals;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object[] getValues();",
"Object[] getValues();",
"List getValues();",
"Values values();",
"@Override\n public Map<String, List<PairModel>> getPairValues(String[] keyArr) {\n return null;\n }",
"Map<String, Object> getValues(boolean deep);",
"List<String> getLookupValues();",
"public Stri... | [
"0.55014324",
"0.55014324",
"0.54235345",
"0.532579",
"0.5318482",
"0.52814096",
"0.52774775",
"0.5243519",
"0.5243519",
"0.5218511",
"0.5181181",
"0.5150459",
"0.5134765",
"0.51127094",
"0.50993305",
"0.5093304",
"0.50667953",
"0.5041538",
"0.50226784",
"0.5009779",
"0.49738... | 0.76259065 | 0 |
Used to recache derived values in Record objects | public int attributeListDepth() {
return _attributeListDepth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refreshObjectCache();",
"protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }",
"public void resetCache() {\n logger.info(\"resetCache(): refilling clinical at... | [
"0.57548374",
"0.57465243",
"0.5644432",
"0.54817754",
"0.54789245",
"0.53786415",
"0.5338852",
"0.5331996",
"0.531974",
"0.5297537",
"0.52775073",
"0.52744824",
"0.52651733",
"0.5264085",
"0.5236568",
"0.52289414",
"0.5200022",
"0.51886684",
"0.5149513",
"0.5116314",
"0.5115... | 0.0 | -1 |
sets our heat setting and keeps it in an appropriate range | public void setheat_setting(int setting)
{
this.heat_setting = setting;
if( setting <1 || setting >5)
this.heat_setting = 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void refreshHeat(){\n\n if (this.selectedTrain.getHeat() == 1){\n\n this.heatOnRadioButton.setSelected(true);\n // update heat until set heat\n if (this.selectedTrain.getTemp() <= this.setTemp){ this.selectedTrain.updateTemp();}\n }\n else if (this.sele... | [
"0.6311158",
"0.5999153",
"0.5992468",
"0.5977254",
"0.5921433",
"0.58645564",
"0.58066285",
"0.5705796",
"0.5673352",
"0.56402683",
"0.55935776",
"0.5548933",
"0.5542909",
"0.54632187",
"0.54536897",
"0.54471695",
"0.5418976",
"0.53796315",
"0.5374509",
"0.5371082",
"0.53305... | 0.74193585 | 0 |
sets whether or not we have auto shutoff and adjusts the price | public void setauto_shutoff(int shutoff)
{
if(shutoff == 1 && auto_shutoff == 0)
super.update_price(5.75);
if(shutoff == 0 && auto_shutoff == 1)
super.update_price(-5.75);
this.auto_shutoff = shutoff;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIsFixPrice (String IsFixPrice);",
"public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}",
"public void setIsSetPriceLimit (boolean IsSetPriceLimit);",
"public void setPotatoesPrice(double p);",
"pu... | [
"0.66567826",
"0.66146344",
"0.65798455",
"0.65735006",
"0.65502506",
"0.6518021",
"0.6486299",
"0.6471549",
"0.6455167",
"0.6418938",
"0.6394199",
"0.6380685",
"0.6380685",
"0.63735855",
"0.63658947",
"0.6354827",
"0.6354827",
"0.6354827",
"0.63328284",
"0.6316141",
"0.63161... | 0.8626845 | 0 |
returns whether or not we have auto shutoff | public int getauto_shutoff()
{
return auto_shutoff;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isShuttingDown() {\n return myShutdown.get();\n }",
"boolean isShutdown();",
"public boolean isShuttingDown() {\n return shuttingDown;\n }",
"boolean isShutdownGraceful();",
"public boolean isShutdown() {\r\n\t\treturn shutdown;\r\n\t}",
"public boolean isShutdown() {\n ... | [
"0.7632354",
"0.7553895",
"0.7510942",
"0.7465445",
"0.7434557",
"0.72173184",
"0.71958375",
"0.7118408",
"0.6997218",
"0.6910312",
"0.68152916",
"0.6706365",
"0.6684969",
"0.6560601",
"0.64443636",
"0.6431312",
"0.64027745",
"0.6389313",
"0.63582623",
"0.634723",
"0.63426983... | 0.8091611 | 0 |
returns what the heat setting is | public int getheat_setting()
{
return heat_setting;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getRunHeat() {\n return engine.getRunHeat();\n }",
"@Override\n public int getSprintHeat() {\n return engine.getSprintHeat();\n }",
"@Nullable\n Heat getHeat();",
"int getHeatCode(int x, int y);",
"public void setheat_setting(int setting)\n {\n ... | [
"0.7116919",
"0.70638615",
"0.67746866",
"0.6597034",
"0.6585494",
"0.65530837",
"0.6496295",
"0.61680573",
"0.6162286",
"0.6095377",
"0.5997687",
"0.59598786",
"0.591457",
"0.589767",
"0.5884603",
"0.58588815",
"0.5798203",
"0.57910395",
"0.5774176",
"0.57307476",
"0.5711129... | 0.83520055 | 0 |
to string method for this class | @Override
public String toString()
{
return String.format("%s Heat setting:%d Automatic Shutoff:%d", super.toString(), heat_setting, auto_shutoff);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() { return stringify(this, true); }",
"public String toString() ;",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toStr... | [
"0.77552855",
"0.7594906",
"0.7508153",
"0.7488936",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
... | 0.0 | -1 |
When a collectors interface extends ThreadReporter it adds the ability for metrics reported to that collectors interface to be associated with each other if reported from the same thread. Imagine a rest call where you want to report various metrics and different points along the call path that you want to tag with the url path the request came in on. You would create a collectors interface that extends ThreadReporter and then call addTag to set the resource url as a tag. Then each call on the collectors will put that tag. Items set on the ThreadReporter will only effect calls to the collectors on the same thread. | public interface ThreadReporter
{
/**
Set the time for data points to be reported
@param time
*/
void setReportTime(long time);
/**
This lets you put a tag to all data points submitted to sub interfaces of
ThreadReporter
@param name
@param value
*/
void addTag(String name, String value);
void removeTag(String name);
void clearTags();
void clearAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void collect(MetricsCollector collector);",
"@ApiStatus.Internal\npublic interface ICollector {\n\n void setup();\n\n void collect(final @NotNull PerformanceCollectionData performanceCollectionData);\n}",
"void addThreadFilter(ThreadReference thread);",
"public interface GaugeDataCollector {\n\n /**\n *... | [
"0.55179936",
"0.5408589",
"0.5339902",
"0.51343745",
"0.5134173",
"0.5112958",
"0.5081982",
"0.4982092",
"0.4964946",
"0.495875",
"0.49290106",
"0.49034953",
"0.48874465",
"0.48651662",
"0.48641762",
"0.48546946",
"0.47972038",
"0.47911164",
"0.47909525",
"0.47569555",
"0.47... | 0.74595606 | 0 |
Set the time for data points to be reported | void setReportTime(long time); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTime(double time) {_time = time;}",
"public void setTime(float time) {\n this.time = time;\n }",
"public void setPointTime(Date pointTime) {\n this.pointTime = pointTime;\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(... | [
"0.73440903",
"0.7089496",
"0.70375246",
"0.69435525",
"0.69435525",
"0.69435525",
"0.69357866",
"0.69281197",
"0.6909788",
"0.69071865",
"0.69071865",
"0.69071865",
"0.69071865",
"0.6883637",
"0.688338",
"0.6880907",
"0.6875564",
"0.68378013",
"0.6833899",
"0.6820987",
"0.68... | 0.7163002 | 1 |
This lets you put a tag to all data points submitted to sub interfaces of ThreadReporter | void addTag(String name, String value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ThreadReporter\n{\n\t/**\n\t Set the time for data points to be reported\n\t @param time\n\t */\n\tvoid setReportTime(long time);\n\n\t/**\n\t This lets you put a tag to all data points submitted to sub interfaces of\n\t ThreadReporter\n\t @param name\n\t @param value\n\t */\n\tvoid addTag(String ... | [
"0.80791163",
"0.54044676",
"0.5266374",
"0.52248967",
"0.5133603",
"0.5124724",
"0.50689435",
"0.5030399",
"0.49935165",
"0.494422",
"0.4930138",
"0.49286065",
"0.4911088",
"0.4898707",
"0.48726365",
"0.4864743",
"0.48557407",
"0.48517308",
"0.48464048",
"0.48405087",
"0.483... | 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void alert(Context context, String msg) {
try {
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(Html.fromHtml(msg));
alertDialogBuilder.setPositiveButton(android.R.string.ok , new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK)
dialog.dismiss();
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbo... | [
"0.75701165",
"0.7047615",
"0.7030644",
"0.70234317",
"0.6972196",
"0.68567014",
"0.6844488",
"0.6787543",
"0.6787543",
"0.67708606",
"0.6770286",
"0.6766505",
"0.6650396",
"0.6630184",
"0.6623259",
"0.66229105",
"0.66169024",
"0.6578804",
"0.6569774",
"0.6542295",
"0.6535602... | 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void alert(Context context, String title, String msg) {
try {
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(Html.fromHtml(msg));
alertDialogBuilder.setTitle(title);
alertDialogBuilder.setPositiveButton(android.R.string.ok , new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK)
dialog.dismiss();
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbo... | [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411"... | 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void alert(Context context, String msg, final IL il) {
try {
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setPositiveButton(android.R.string.ok , new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbo... | [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411"... | 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void confirmDialog(Context context, String msg, final IL il) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbo... | [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411"... | 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void confirmDialog(Context context, String title, String msg, final IL il) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setTitle(title);
alertDialogBuilder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbo... | [
"0.75701165",
"0.7047615",
"0.7030644",
"0.70234317",
"0.6972196",
"0.68567014",
"0.6844488",
"0.6787543",
"0.6787543",
"0.67708606",
"0.6770286",
"0.6766505",
"0.6650396",
"0.6630184",
"0.6623259",
"0.66229105",
"0.66169024",
"0.6578804",
"0.6569774",
"0.6542295",
"0.6535602... | 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void confirmDialog(Context context, String msg, String positiveBtnText,
String negativeBtnText, final IL il) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setPositiveButton(positiveBtnText, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(negativeBtnText, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbo... | [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411"... | 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void confirmDialog(Context context, String title, String msg, String positiveBtnText,
String negativeBtnText, final IL il) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setTitle(title);
alertDialogBuilder.setPositiveButton(positiveBtnText, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(negativeBtnText, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbo... | [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411"... | 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void showAlertDialogOKCancelWithView(Activity context, final View view, final IL il, String positiveBtnText,
String negativeBtnText) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setView(view);
alertDialogBuilder.setPositiveButton(positiveBtnText, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(negativeBtnText, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbo... | [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411"... | 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void showAlertDialogAction(Activity context, String msg, final IL il, String positiveBtnText,
String negativeBtnText) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setPositiveButton(positiveBtnText, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(negativeBtnText, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbo... | [
"0.75701165",
"0.7047615",
"0.7030644",
"0.70234317",
"0.6972196",
"0.68567014",
"0.6844488",
"0.6787543",
"0.6787543",
"0.67708606",
"0.6770286",
"0.6766505",
"0.6650396",
"0.6630184",
"0.6623259",
"0.66229105",
"0.66169024",
"0.6578804",
"0.6569774",
"0.6542295",
"0.6535602... | 0.0 | -1 |
Recursively finds all descendants of a parent group. | public List<Group> getAllDescendants(Group parent) {
synchronized(groupMutex) {
return getAllDescendants(parent, new ArrayList<>());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<Group> getAllDescendants(Group parent, List<Group> descendants) {\n\t\tfor(Group group : groups.values()) {\n\t\t\tif (!descendants.contains(group) && group.parent==parent) {\n\t\t\t\tdescendants.add(group);\n\t\t\t\tgetAllDescendants(group, descendants);\n\t\t\t}\n\t\t}\n\t\treturn descendants;\n\t}"... | [
"0.7064957",
"0.5418761",
"0.53618723",
"0.51685214",
"0.5146019",
"0.5139314",
"0.51352304",
"0.51151526",
"0.5101384",
"0.50284004",
"0.50260293",
"0.49527395",
"0.49507082",
"0.49322873",
"0.4880893",
"0.48694173",
"0.48550442",
"0.48468643",
"0.48131153",
"0.4797182",
"0.... | 0.72944516 | 0 |
Internal version of getAllDescendants. MUST BE EXTERNALLY SYNCHRONIZED on groupMutex! | private List<Group> getAllDescendants(Group parent, List<Group> descendants) {
for(Group group : groups.values()) {
if (!descendants.contains(group) && group.parent==parent) {
descendants.add(group);
getAllDescendants(group, descendants);
}
}
return descendants;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Group> getAllDescendants(Group parent) {\n\t\tsynchronized(groupMutex) {\n\t\t\treturn getAllDescendants(parent, new ArrayList<>());\n\t\t}\n\t}",
"@Test\n public void testTraverseDescendants() {\n System.out.println(\"testTraverseDescendants\");\n List<Person> people = dao.listDesce... | [
"0.66667527",
"0.651814",
"0.61438376",
"0.5976416",
"0.5922946",
"0.57233876",
"0.5694823",
"0.5587147",
"0.555422",
"0.5527125",
"0.5496075",
"0.54601175",
"0.5446878",
"0.5441086",
"0.5426277",
"0.54105574",
"0.5399818",
"0.5390043",
"0.538965",
"0.53797036",
"0.5360156",
... | 0.6087347 | 3 |
The fixture is taken from the real bank holidays API. | private BankHolidays loadFixture() throws IOException {
String input = ResourceReader.readString("/bank-holidays.json");
return new ObjectMapper().readValue(input, BankHolidays.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected SokobanService getFixture() {\n\t\treturn fixture;\n\t}",
"public Holidays (){\n name= \"Exotic Beach Holiday of a Lifetime\";\n cost = 5000;\n location = \"Fesdu Island, Maldives\";\n type = \"beach\";\n }",
"@Override\r\n\tprotected RJB getFixture(... | [
"0.5993881",
"0.58137345",
"0.57257855",
"0.5630868",
"0.56136614",
"0.55695444",
"0.5462878",
"0.5456696",
"0.54392827",
"0.5428593",
"0.54212993",
"0.5410833",
"0.5400015",
"0.5389011",
"0.5348048",
"0.53432554",
"0.53056055",
"0.5281751",
"0.5274528",
"0.527093",
"0.524612... | 0.75784343 | 0 |
/ Google Play services can resolve some errors it detects. If the error has a resolution, try sending an Intent to start a Google Play services activity that can resolve error. | @Override
public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {
if (connectionResult.hasResolution()) {
try {
// Start an Activity that tries to resolve the error
connectionResult.startResolutionForResult(getActivity(), CONNECTION_FAILURE_RESOLUTION_REQUEST);
/*
* Thrown if Google Play services canceled the original
* PendingIntent
*/
} catch (IntentSender.SendIntentException e) {
// Log the error
e.printStackTrace();
}
} else {
/*
* If no resolution is available, display a dialog to the
* user with the error.
*/
Log.e("Error", "Location services connection failed with code " + connectionResult.getErrorCode());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\t/*\n\t\t * Google Play services can resolve some errors it detects. If the error\n\t\t * has a resolution, try sending an Intent to start a Google Play\n\t\t * services activity that can resolve error.\n\t\t */\n\t\tif (connectio... | [
"0.7295942",
"0.7289509",
"0.6994372",
"0.69848216",
"0.68990433",
"0.6874277",
"0.68474406",
"0.68438905",
"0.68339884",
"0.6821433",
"0.6821201",
"0.6821201",
"0.680698",
"0.67798984",
"0.66855896",
"0.6683068",
"0.66571397",
"0.665188",
"0.66499025",
"0.65941596",
"0.65902... | 0.6626639 | 19 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.