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 |
|---|---|---|---|---|---|---|
Created by francisco on 22/03/16. | public interface OnLoadDeputadosHasFinished {
void onDeputadosFinishedLoading(ArrayList <Deputado> deputados);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private... | [
"0.5979",
"0.58776987",
"0.58552814",
"0.5795572",
"0.5727793",
"0.56891346",
"0.56755143",
"0.5667001",
"0.5649971",
"0.56413907",
"0.56413907",
"0.56310725",
"0.56243795",
"0.5590578",
"0.5589998",
"0.5562152",
"0.555721",
"0.5546509",
"0.5540126",
"0.5533545",
"0.55280864"... | 0.0 | -1 |
Created by Pablo Sevilla on 27/1/2017. | public interface PaisesDAO extends BaseGenericDAO<Paises, Integer> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpubl... | [
"0.6080143",
"0.58261967",
"0.5717967",
"0.5714783",
"0.571355",
"0.56938505",
"0.56938505",
"0.5653645",
"0.56497014",
"0.56431836",
"0.5636894",
"0.5623622",
"0.5584829",
"0.55845195",
"0.5555285",
"0.55174285",
"0.5509828",
"0.5504572",
"0.5503619",
"0.5500531",
"0.5468986... | 0.0 | -1 |
It is not necessary for this method of area calculation. | @Override
public void postProcess(NodeCT node) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public double calculateArea() {\n double area = 0;\r\n return area;\r\n }",
"public abstract double calculateArea();",
"public abstract double calculateArea();",
"double calculateArea();",
"public abstract double computeArea();",
"@Override\r\n\tpublic void calcArea() {\... | [
"0.85934645",
"0.8563371",
"0.8563371",
"0.85408694",
"0.8468977",
"0.84558",
"0.8430531",
"0.8430531",
"0.8430531",
"0.8430531",
"0.8375777",
"0.83612424",
"0.8266274",
"0.8262485",
"0.8262485",
"0.8250585",
"0.8250585",
"0.8250585",
"0.82462037",
"0.8190832",
"0.8190832",
... | 0.0 | -1 |
Guarda el contenido de la trama retornada a la base de datos | public Integer guardarTramaProcesoCompraBD(Map<String, String> parametros, String codFormaPago) {
try {
log.debug("MC- ingreso a guardar Trama");
if (!DBPinpad.guardarTramaPinpadMC(parametros.get("response_code"), parametros.get("amount"),
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_atencion_embarazada his_atencion_embarazada = new His_atencion_embarazada();\r\n\t\t\t\this_atenci... | [
"0.6108867",
"0.6089659",
"0.59963566",
"0.59516066",
"0.59346324",
"0.5902984",
"0.5900754",
"0.580848",
"0.57809454",
"0.5766452",
"0.57644504",
"0.5763113",
"0.57480466",
"0.57415074",
"0.5709575",
"0.57050407",
"0.5672679",
"0.56660414",
"0.5664272",
"0.56620985",
"0.5660... | 0.59239954 | 5 |
Guarda el contenido de la trama retornada a la base de datos | public Integer guardarTramaAnulacionBD(Map<String, String> parametros, String formaPago) {
try {
if (!DBPinpad.guardarTramaAnulPinpadMC(parametros.get("response_code"), parametros.get("amount"),
parametros.get("approval_code"), parametros.get("me... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_atencion_embarazada his_atencion_embarazada = new His_atencion_embarazada();\r\n\t\t\t\this_atenci... | [
"0.6108867",
"0.6089659",
"0.59963566",
"0.59516066",
"0.59346324",
"0.59239954",
"0.5902984",
"0.5900754",
"0.580848",
"0.57809454",
"0.5766452",
"0.57644504",
"0.5763113",
"0.57480466",
"0.57415074",
"0.5709575",
"0.57050407",
"0.5672679",
"0.5664272",
"0.56620985",
"0.5660... | 0.56660414 | 18 |
Guarda el contenido de la trama retornada a la base de datos | public Integer guardarTramaReimpresionBD(Map<String, String> parametros) {
try {
if (!DBPinpad.guardarTramaReimpPinpadMC(parametros.get("response_code"), parametros.get("message"),
parametros.get("ecr_currency_code"),
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_atencion_embarazada his_atencion_embarazada = new His_atencion_embarazada();\r\n\t\t\t\this_atenci... | [
"0.6108867",
"0.6089659",
"0.59963566",
"0.59516066",
"0.59346324",
"0.59239954",
"0.5902984",
"0.5900754",
"0.580848",
"0.57809454",
"0.5766452",
"0.57644504",
"0.5763113",
"0.57480466",
"0.57415074",
"0.5709575",
"0.57050407",
"0.5672679",
"0.56660414",
"0.5664272",
"0.5662... | 0.5525662 | 41 |
Guarda el contenido de la trama retornada a la base de datos | public Integer guardarTramaRepDetalladoBD(Map<String, String> parametros) {
try {
if (!DBPinpad.guardarTramaRepDetPinpadMC(parametros.get("response_code"), parametros.get("message"),
parametros.get("ecr_currency_code"),
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_atencion_embarazada his_atencion_embarazada = new His_atencion_embarazada();\r\n\t\t\t\this_atenci... | [
"0.6108867",
"0.6089659",
"0.59963566",
"0.59516066",
"0.59346324",
"0.59239954",
"0.5902984",
"0.5900754",
"0.580848",
"0.57809454",
"0.5766452",
"0.57644504",
"0.5763113",
"0.57480466",
"0.57415074",
"0.5709575",
"0.57050407",
"0.5672679",
"0.56660414",
"0.5664272",
"0.5662... | 0.5660924 | 21 |
Guarda el contenido de la trama retornada a la base de datos | public Integer guardarTramaRepTotalBD(Map<String, String> parametros) {
try {
if (!DBPinpad.guardarTramaRepTotPinpadMC(parametros.get("response_code"), parametros.get("message"),
parametros.get("ecr_currency_code"),
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_atencion_embarazada his_atencion_embarazada = new His_atencion_embarazada();\r\n\t\t\t\this_atenci... | [
"0.6108867",
"0.6089659",
"0.59963566",
"0.59516066",
"0.59346324",
"0.59239954",
"0.5902984",
"0.5900754",
"0.580848",
"0.57809454",
"0.5766452",
"0.57644504",
"0.5763113",
"0.57480466",
"0.57415074",
"0.5709575",
"0.57050407",
"0.5672679",
"0.56660414",
"0.5664272",
"0.5662... | 0.0 | -1 |
Guarda el contenido de la trama retornada a la base de datos | public Integer guardarTramaCierreBD(Map<String, String> parametros) {
try {
if (!DBPinpad.guardarTramaCierrePinpadMC(parametros.get("response_code"), parametros.get("message"),
parametros.get("ecr_currency_code"),
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_atencion_embarazada his_atencion_embarazada = new His_atencion_embarazada();\r\n\t\t\t\this_atenci... | [
"0.6108867",
"0.6089659",
"0.59963566",
"0.59516066",
"0.59346324",
"0.59239954",
"0.5902984",
"0.5900754",
"0.580848",
"0.57809454",
"0.5766452",
"0.57644504",
"0.5763113",
"0.57480466",
"0.57415074",
"0.5709575",
"0.57050407",
"0.5672679",
"0.56660414",
"0.5664272",
"0.5662... | 0.5652867 | 23 |
Parameter used to create all legal pairs of comparisons. | public LdShardToVariantPairs(long window) {
this.window = window;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Comparison createComparison();",
"Comparison createComparison();",
"private List<ComparisonExpression> comparisons(HashMap<TimeSelector, Long> lowerBounds,\n HashMap<TimeSelector, Long> upperBounds) {\n List<ComparisonExpression> newComparisons = new ArrayList... | [
"0.6405039",
"0.6405039",
"0.57683533",
"0.5653411",
"0.5609175",
"0.55377233",
"0.5515848",
"0.54006255",
"0.53595763",
"0.5359007",
"0.53428566",
"0.53268105",
"0.52876896",
"0.5268218",
"0.5254998",
"0.5251776",
"0.52376664",
"0.5217089",
"0.52018553",
"0.5174065",
"0.5171... | 0.0 | -1 |
Processes LdVariant lists to produce pairs of LdVariants. All the pairs that are emitted here must be desired comparisons with no duplicates no additional filters are done other than (optionally) on the LD value itself. | @Override
public void processElement(ProcessContext c) {
List<LdVariant> queryList = null;
List<LdVariant> targetList = null;
int inputListCount = 0;
for (KV<Boolean, List<LdVariant>> vl : c.element().getValue()) {
if (vl.getKey()) {
queryList = vl.getValue();
} else {
targ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Ld calculateLd(GeneticVariant variant1, GeneticVariant variant2) throws LdCalculatorException\n \t{\n \n \t\tif (variant1 == null)\n \t\t{\n \t\t\tthrow new IllegalArgumentException(\"Variant1 = null\");\n \t\t}\n \n \t\tif (variant2 == null)\n \t\t{\n \t\t\tthrow new IllegalArgumentException(\"Varia... | [
"0.5773134",
"0.4866034",
"0.47438315",
"0.47081956",
"0.4698146",
"0.46721023",
"0.4596372",
"0.45613372",
"0.4557675",
"0.4538177",
"0.45345262",
"0.45308098",
"0.45216456",
"0.44852883",
"0.44736797",
"0.44694564",
"0.44383502",
"0.44369468",
"0.44357717",
"0.44296968",
"0... | 0.51546055 | 1 |
C++ rules: If final, can have an empty name. I believe this means "name" can be empty, but can still have parent namespace. TODO: check this if we change to something more than String. | public boolean validate() {
if (StringUtils.isEmpty(className) && !isFinal) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name)\n/* */ {\n/* 368 */ this.name = name;\n/* 369 */ this.fullName = name;\n/* 370 */ this.namespace = null;\n/* */ }",
"public abstract boolean isQualifiedName(@Nullable String text);",
"private void clearName() {\n \n name_ = getDefaultInsta... | [
"0.5924005",
"0.58752054",
"0.5819667",
"0.57972807",
"0.57390255",
"0.57390255",
"0.57390255",
"0.56636745",
"0.5649035",
"0.5586314",
"0.55857086",
"0.5494593",
"0.5447011",
"0.54455477",
"0.54168516",
"0.54151547",
"0.5412043",
"0.54036367",
"0.5398872",
"0.53894997",
"0.5... | 0.0 | -1 |
not sure if user can see Type when returned. | public Type getType() {
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getType(){\r\n return type;\r\n }",
"public String getType() {return type;}",
"protected abstract String getType();",
"public String getType() { return type; }",
"public int getType() { return type; }",
"public int getType() { return type; }",
"public abstract String getType();",
... | [
"0.80668783",
"0.7856044",
"0.7830052",
"0.77763826",
"0.7752683",
"0.7752683",
"0.76912355",
"0.76912355",
"0.76912355",
"0.76912355",
"0.76912355",
"0.76912355",
"0.76912355",
"0.76912355",
"0.7685152",
"0.7685152",
"0.7685152",
"0.7685152",
"0.7685152",
"0.7685152",
"0.768... | 0.0 | -1 |
TODO: Taken from PdbUtil without change. Would have had to change access on class PdbUtil and this ensureSize method to public to make it accessible. Can revert to using PdbUtil once we move this new module from Contrib to Features/PDB. | final static void clearComponents(Composite composite) {
if (composite instanceof Structure) {
((Structure) composite).deleteAll();
}
else {
while (composite.getNumComponents() > 0) {
composite.delete(0);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long dbSize();",
"public long getDbsize()\n/* */ {\n/* 79 */ return this.dbsize;\n/* */ }",
"protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }",
"@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n ... | [
"0.628811",
"0.6103294",
"0.60793006",
"0.60561025",
"0.60511625",
"0.6042876",
"0.6002059",
"0.5906338",
"0.5906193",
"0.5868248",
"0.5862396",
"0.5861885",
"0.5848065",
"0.58284056",
"0.5807259",
"0.5802717",
"0.58017087",
"0.5801145",
"0.58000857",
"0.579982",
"0.57874954"... | 0.0 | -1 |
Class PDB member construction | ClassPdbMember(String name, DataType dataType, boolean isFlexibleArray, int offset,
String comment) {
super(name, dataType.getName(), offset, comment);
this.dataType = dataType;
this.isFlexibleArray = isFlexibleArray;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void __sep__Constructors__() {}",
"final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/... | [
"0.6730876",
"0.67068434",
"0.6444904",
"0.6444449",
"0.6418091",
"0.63486576",
"0.6306998",
"0.6280626",
"0.628049",
"0.62095314",
"0.6204619",
"0.6192417",
"0.61905783",
"0.61617196",
"0.6132895",
"0.611599",
"0.6065967",
"0.6053262",
"0.60045886",
"0.59941685",
"0.5976879"... | 0.0 | -1 |
TODO: maybe this should be called validateTableIndicies() | boolean validateOffset() {
int num = entriesByIndex.size() + 1; // assuming 0, plus 1-N)
for (int index : entriesByIndex.keySet()) {
if (index > num || index < 0) {
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void tableRows_()\n {\n }",
"private void setTable() {\n try {\n DefaultTableModel dtm = (DefaultTableModel) table.getModel();\n dtm.setRowCount(0);\n ArrayList<Item> itemList = ItemController.getAllItem();\n if (itemList != null) {\n... | [
"0.6559836",
"0.61718154",
"0.61456674",
"0.5981375",
"0.5955138",
"0.59404564",
"0.5898968",
"0.58732843",
"0.5854048",
"0.5821615",
"0.5782328",
"0.5782122",
"0.5777786",
"0.57603043",
"0.57547474",
"0.5744381",
"0.57384926",
"0.5720808",
"0.5700214",
"0.56986564",
"0.56855... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
ExcelParser parser = new ExcelParser();
FromStringToLog flg = new FromStringToLog();
flg.prepareForWriting();
parser.writeExcel(ErrorList.getErrorList());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ END Zoom and transate stuff | public GraphView(List<Account> accounts, List<Block> blocks) {
this.accounts = accounts;
this.blocks = blocks;
walletPositions = new List();
initComponent();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void zoomOut() {\n if (scale > 0.05) {\n double scaleFactor = (scale - 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2... | [
"0.7257503",
"0.7043602",
"0.7007457",
"0.69664735",
"0.69458944",
"0.67041963",
"0.67013156",
"0.660718",
"0.6601",
"0.65878624",
"0.6577437",
"0.65262234",
"0.6447546",
"0.63929904",
"0.63824725",
"0.6380527",
"0.6363989",
"0.6361688",
"0.63586557",
"0.6337621",
"0.63262653... | 0.0 | -1 |
/ Zoom and drag stuff | @Override
public void mouseWheelMoved(MouseWheelEvent e) {
zoomer = true;
//Zoom in
if (e.getWheelRotation() < 0) {
zoomFactor *= 1.1;
repaint();
}
//Zoom out
if (e.getWheelRotation() > 0) {
zoomFactor /= 1.1;
repaint(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void dragZoom() {\n\n\t\tint width = this.getWidth();\n\n\t\tint start = cont.getStart();\n\t\tdouble amount = cont.getLength();\n\n\t\tint newStart = (int) DrawingTools.calculatePixelPosition(x ,width,amount,start);\n\t\tint newStop = (int) DrawingTools.calculatePixelPosition(x2,width,amount,start);\n\t\... | [
"0.7854757",
"0.72759545",
"0.68667126",
"0.6805265",
"0.6676568",
"0.6576582",
"0.65615755",
"0.65436023",
"0.65343815",
"0.6527041",
"0.6523091",
"0.6483555",
"0.64504683",
"0.64454156",
"0.6438352",
"0.6438352",
"0.6435788",
"0.6434972",
"0.6432544",
"0.6432056",
"0.642731... | 0.6218221 | 60 |
Use OperatingHour.newBuilder() to construct. | private OperatingHour(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder setHour(final int hour) {\n this.hour = hour;\n return this;\n }",
"float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case W... | [
"0.64486593",
"0.6432525",
"0.6218166",
"0.62097543",
"0.6041318",
"0.60362333",
"0.59535617",
"0.592244",
"0.58901876",
"0.58574104",
"0.5854054",
"0.5804012",
"0.57501",
"0.5745874",
"0.56750184",
"0.56723917",
"0.5663181",
"0.5603109",
"0.5539954",
"0.5538105",
"0.553807",... | 0.8210418 | 0 |
int32 start_hour = 1 [json_name = "startHour"]; | @java.lang.Override
public int getStartHour() {
return startHour_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getStartHour();",
"public int getStartHour() {\n return startHour; // stub\n }",
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"public int getHour(){\n return hour;\n }",
"public int getHour() \n { \n return hour; \n }",
"@JsonProperty(\"startTime\")\n public S... | [
"0.6206214",
"0.61504173",
"0.590324",
"0.58036476",
"0.5738213",
"0.5721684",
"0.5690955",
"0.56536967",
"0.562999",
"0.55756235",
"0.55256",
"0.54705465",
"0.54322344",
"0.53970057",
"0.5383827",
"0.53753954",
"0.5326936",
"0.5291918",
"0.5276068",
"0.5267846",
"0.52619904"... | 0.57141316 | 6 |
int32 finish_hour = 2 [json_name = "finishHour"]; | @java.lang.Override
public int getFinishHour() {
return finishHour_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"static final /* synthetic */ Object m109665a(long j) throws Exception {\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"duration\", j);\n } catch (JSONException unused) {\n }\n C6759a.m20910a(... | [
"0.60758096",
"0.5842577",
"0.54594177",
"0.5401923",
"0.5357936",
"0.5325503",
"0.5299934",
"0.52867436",
"0.5273177",
"0.522407",
"0.5220313",
"0.51785034",
"0.5175855",
"0.5171843",
"0.51597744",
"0.5144109",
"0.51402444",
"0.51280516",
"0.50861424",
"0.5083618",
"0.508094... | 0.5281967 | 8 |
.hts.common.DayOfWeek day = 3 [json_name = "day"]; | @java.lang.Override public int getDayValue() {
return day_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.czht.face.recognition.Czhtdev.Week getWeekday();",
"io.dstore.values.StringValue getDay();",
"public int getDayOfWeek();",
"@JSProperty(\"startOfWeek\")\n double getStartOfWeek();",
"@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepa... | [
"0.6131328",
"0.61245066",
"0.5999135",
"0.5941413",
"0.5687417",
"0.5682057",
"0.56554824",
"0.5620294",
"0.5606591",
"0.56063324",
"0.560225",
"0.558017",
"0.5572138",
"0.5564908",
"0.5564908",
"0.5564908",
"0.5560289",
"0.5559266",
"0.5538089",
"0.55326855",
"0.5528263",
... | 0.5356896 | 44 |
.hts.common.DayOfWeek day = 3 [json_name = "day"]; | @java.lang.Override public app.onepass.apis.DayOfWeek getDay() {
@SuppressWarnings("deprecation")
app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);
return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.czht.face.recognition.Czhtdev.Week getWeekday();",
"io.dstore.values.StringValue getDay();",
"public int getDayOfWeek();",
"@JSProperty(\"startOfWeek\")\n double getStartOfWeek();",
"public Integer getDayOfWeek() {\n return dayOfWeek;\n }",
"@java.lang.Override\n public app.onepass.apis... | [
"0.6131328",
"0.61245066",
"0.5999135",
"0.5941413",
"0.5682057",
"0.56554824",
"0.5620294",
"0.5606591",
"0.56063324",
"0.560225",
"0.558017",
"0.5572138",
"0.5564908",
"0.5564908",
"0.5564908",
"0.5560289",
"0.5559266",
"0.5538089",
"0.55326855",
"0.5528263",
"0.5525973",
... | 0.5687417 | 4 |
int32 start_hour = 1 [json_name = "startHour"]; | @java.lang.Override
public int getStartHour() {
return startHour_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getStartHour();",
"public int getStartHour() {\n return startHour; // stub\n }",
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"public int getHour(){\n return hour;\n }",
"public int getHour() \n { \n return hour; \n }",
"@JsonProperty(\"startTime\")\n public S... | [
"0.6206214",
"0.61504173",
"0.590324",
"0.58036476",
"0.5738213",
"0.5721684",
"0.57141316",
"0.5690955",
"0.56536967",
"0.562999",
"0.55756235",
"0.54705465",
"0.54322344",
"0.53970057",
"0.5383827",
"0.53753954",
"0.5326936",
"0.5291918",
"0.5276068",
"0.5267846",
"0.526199... | 0.55256 | 11 |
int32 start_hour = 1 [json_name = "startHour"]; | public Builder setStartHour(int value) {
startHour_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getStartHour();",
"public int getStartHour() {\n return startHour; // stub\n }",
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"public int getHour(){\n return hour;\n }",
"public int getHour() \n { \n return hour; \n }",
"@JsonProperty(\"startTime\")\n public S... | [
"0.6206214",
"0.61504173",
"0.590324",
"0.58036476",
"0.5738213",
"0.5721684",
"0.57141316",
"0.5690955",
"0.56536967",
"0.562999",
"0.55756235",
"0.55256",
"0.54705465",
"0.54322344",
"0.53970057",
"0.5383827",
"0.53753954",
"0.5326936",
"0.5291918",
"0.5276068",
"0.5267846"... | 0.5195321 | 24 |
int32 start_hour = 1 [json_name = "startHour"]; | public Builder clearStartHour() {
startHour_ = 0;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getStartHour();",
"public int getStartHour() {\n return startHour; // stub\n }",
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"public int getHour(){\n return hour;\n }",
"public int getHour() \n { \n return hour; \n }",
"@JsonProperty(\"startTime\")\n public S... | [
"0.6206214",
"0.61504173",
"0.590324",
"0.58036476",
"0.5738213",
"0.5721684",
"0.57141316",
"0.5690955",
"0.56536967",
"0.562999",
"0.55756235",
"0.55256",
"0.54705465",
"0.54322344",
"0.53970057",
"0.5383827",
"0.53753954",
"0.5326936",
"0.5291918",
"0.5276068",
"0.5267846"... | 0.0 | -1 |
int32 finish_hour = 2 [json_name = "finishHour"]; | @java.lang.Override
public int getFinishHour() {
return finishHour_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"static final /* synthetic */ Object m109665a(long j) throws Exception {\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"duration\", j);\n } catch (JSONException unused) {\n }\n C6759a.m20910a(... | [
"0.60758096",
"0.5842577",
"0.54594177",
"0.5401923",
"0.5357936",
"0.5325503",
"0.5299934",
"0.52867436",
"0.5281967",
"0.5273177",
"0.522407",
"0.5220313",
"0.51785034",
"0.5175855",
"0.5171843",
"0.51597744",
"0.5144109",
"0.51402444",
"0.51280516",
"0.50861424",
"0.508094... | 0.5083618 | 20 |
int32 finish_hour = 2 [json_name = "finishHour"]; | public Builder setFinishHour(int value) {
finishHour_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"static final /* synthetic */ Object m109665a(long j) throws Exception {\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"duration\", j);\n } catch (JSONException unused) {\n }\n C6759a.m20910a(... | [
"0.60758096",
"0.5842577",
"0.54594177",
"0.5401923",
"0.5357936",
"0.5325503",
"0.5299934",
"0.52867436",
"0.5281967",
"0.5273177",
"0.522407",
"0.5220313",
"0.51785034",
"0.5175855",
"0.5171843",
"0.51597744",
"0.5144109",
"0.51402444",
"0.51280516",
"0.50861424",
"0.508361... | 0.49703324 | 31 |
int32 finish_hour = 2 [json_name = "finishHour"]; | public Builder clearFinishHour() {
finishHour_ = 0;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"static final /* synthetic */ Object m109665a(long j) throws Exception {\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"duration\", j);\n } catch (JSONException unused) {\n }\n C6759a.m20910a(... | [
"0.60758096",
"0.5842577",
"0.54594177",
"0.5401923",
"0.5357936",
"0.5325503",
"0.5299934",
"0.52867436",
"0.5281967",
"0.5273177",
"0.522407",
"0.5220313",
"0.51785034",
"0.5175855",
"0.5171843",
"0.51597744",
"0.5144109",
"0.51402444",
"0.51280516",
"0.50861424",
"0.508361... | 0.0 | -1 |
.hts.common.DayOfWeek day = 3 [json_name = "day"]; | @java.lang.Override public int getDayValue() {
return day_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.czht.face.recognition.Czhtdev.Week getWeekday();",
"io.dstore.values.StringValue getDay();",
"public int getDayOfWeek();",
"@JSProperty(\"startOfWeek\")\n double getStartOfWeek();",
"@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepa... | [
"0.6131328",
"0.61245066",
"0.5999135",
"0.5941413",
"0.5687417",
"0.5682057",
"0.56554824",
"0.5620294",
"0.5606591",
"0.56063324",
"0.560225",
"0.558017",
"0.5572138",
"0.5564908",
"0.5564908",
"0.5564908",
"0.5560289",
"0.5559266",
"0.5538089",
"0.55326855",
"0.5528263",
... | 0.5173576 | 56 |
.hts.common.DayOfWeek day = 3 [json_name = "day"]; | public Builder setDayValue(int value) {
day_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.czht.face.recognition.Czhtdev.Week getWeekday();",
"io.dstore.values.StringValue getDay();",
"public int getDayOfWeek();",
"@JSProperty(\"startOfWeek\")\n double getStartOfWeek();",
"@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepa... | [
"0.6131328",
"0.61245066",
"0.5999135",
"0.5941413",
"0.5687417",
"0.5682057",
"0.56554824",
"0.5620294",
"0.5606591",
"0.56063324",
"0.560225",
"0.558017",
"0.5572138",
"0.5564908",
"0.5564908",
"0.5564908",
"0.5560289",
"0.5559266",
"0.5538089",
"0.55326855",
"0.5528263",
... | 0.0 | -1 |
.hts.common.DayOfWeek day = 3 [json_name = "day"]; | @java.lang.Override
public app.onepass.apis.DayOfWeek getDay() {
@SuppressWarnings("deprecation")
app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);
return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.czht.face.recognition.Czhtdev.Week getWeekday();",
"io.dstore.values.StringValue getDay();",
"public int getDayOfWeek();",
"@JSProperty(\"startOfWeek\")\n double getStartOfWeek();",
"@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepa... | [
"0.6131328",
"0.61245066",
"0.5999135",
"0.5941413",
"0.5687417",
"0.5682057",
"0.5620294",
"0.5606591",
"0.56063324",
"0.560225",
"0.558017",
"0.5572138",
"0.5564908",
"0.5564908",
"0.5564908",
"0.5560289",
"0.5559266",
"0.5538089",
"0.55326855",
"0.5528263",
"0.5525973",
... | 0.56554824 | 6 |
.hts.common.DayOfWeek day = 3 [json_name = "day"]; | public Builder setDay(app.onepass.apis.DayOfWeek value) {
if (value == null) {
throw new NullPointerException();
}
day_ = value.getNumber();
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.czht.face.recognition.Czhtdev.Week getWeekday();",
"io.dstore.values.StringValue getDay();",
"public int getDayOfWeek();",
"@JSProperty(\"startOfWeek\")\n double getStartOfWeek();",
"@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepa... | [
"0.6131328",
"0.61245066",
"0.5999135",
"0.5941413",
"0.5687417",
"0.5682057",
"0.56554824",
"0.5620294",
"0.5606591",
"0.56063324",
"0.560225",
"0.558017",
"0.5572138",
"0.5564908",
"0.5564908",
"0.5564908",
"0.5560289",
"0.5559266",
"0.5538089",
"0.55326855",
"0.5528263",
... | 0.0 | -1 |
.hts.common.DayOfWeek day = 3 [json_name = "day"]; | public Builder clearDay() {
day_ = 0;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.czht.face.recognition.Czhtdev.Week getWeekday();",
"io.dstore.values.StringValue getDay();",
"public int getDayOfWeek();",
"@JSProperty(\"startOfWeek\")\n double getStartOfWeek();",
"@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepa... | [
"0.6131328",
"0.61245066",
"0.5999135",
"0.5941413",
"0.5687417",
"0.5682057",
"0.56554824",
"0.5620294",
"0.5606591",
"0.56063324",
"0.560225",
"0.558017",
"0.5572138",
"0.5564908",
"0.5564908",
"0.5564908",
"0.5560289",
"0.5559266",
"0.5538089",
"0.55326855",
"0.5528263",
... | 0.0 | -1 |
Register booking method, keeps track of new bookings | public void registerNewBooking(Booking b) {
if (!newBooking.contains(b)
&& !modifiedBooking.contains(b)) {
newBooking.add(b);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addBooking(Bookings b) {\n IController<Bookings> ic = new Controller<>();\n\n // Check whether the booking conflicts with another booking.\n for (Bookings booking : ic.readAll(Bookings.class)) {\n if (b.conflictsWith(booking)) {\n throw new IllegalArgument... | [
"0.71471727",
"0.707294",
"0.690238",
"0.67928284",
"0.6737543",
"0.6699555",
"0.66807044",
"0.65365356",
"0.65076643",
"0.64746463",
"0.64502615",
"0.643508",
"0.6388255",
"0.6364475",
"0.63144594",
"0.6313285",
"0.6204944",
"0.6187563",
"0.61009556",
"0.6098007",
"0.6093046... | 0.77515644 | 0 |
Register dirty booking method, keeps track of modefied bookings | public void registerDirtyBooking(Booking b) {
if (!newBooking.contains(b)
&& !modifiedBooking.contains(b)) {
modifiedBooking.add(b);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void registerNewBooking(Booking b) {\n if (!newBooking.contains(b)\n && !modifiedBooking.contains(b)) {\n newBooking.add(b);\n }\n }",
"public void completeBooking(){\r\n\t\tbookings.putAll(tempBookings);\r\n\t\ttempBookings.clear();\r\n\t}",
"void registerDele... | [
"0.69521755",
"0.62514323",
"0.624743",
"0.6115181",
"0.6075184",
"0.6034292",
"0.59969455",
"0.59811056",
"0.5948167",
"0.59409535",
"0.5814198",
"0.5812807",
"0.5780838",
"0.57789236",
"0.57518333",
"0.57398224",
"0.57047814",
"0.56897694",
"0.56311625",
"0.56307393",
"0.56... | 0.7377952 | 0 |
Register customer method, keeps track of new customers | public void registerNewCustomers(Customer c) {
if (!newCustomers.contains(c)
&& !modifiedCustomers.contains(c)) {
newCustomers.add(c);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void register(Customer c) {\n\t\tUser.customers.add(c);\n\t}",
"@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}",
"static void register() {\r\n\t\tSystem.out.println(\"enter no of customers\");\r\n\t\tint n=scan.nextInt();\r... | [
"0.7927342",
"0.7463314",
"0.74583817",
"0.74169767",
"0.7376649",
"0.73239607",
"0.7270576",
"0.72490925",
"0.71488214",
"0.71359056",
"0.7129848",
"0.6993342",
"0.6949236",
"0.6932522",
"0.68987274",
"0.6892046",
"0.6887752",
"0.6879463",
"0.6842936",
"0.6841593",
"0.682427... | 0.7771489 | 1 |
Register dirty customer method, keeps track of modified customers | public void registerDirtyCustomers(Customer c) {
if (!newCustomers.contains(c)
&& !modifiedCustomers.contains(c)) {
modifiedCustomers.add(c);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void registerNewCustomers(Customer c) {\n if (!newCustomers.contains(c)\n && !modifiedCustomers.contains(c)) {\n newCustomers.add(c);\n }\n }",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\n\t}",
"public void addFlag(Custo... | [
"0.6978185",
"0.6749978",
"0.668575",
"0.6667132",
"0.6632107",
"0.6593684",
"0.65212893",
"0.65172756",
"0.65172756",
"0.6477618",
"0.63485384",
"0.6246699",
"0.6182258",
"0.6170758",
"0.615308",
"0.610676",
"0.6099072",
"0.6092054",
"0.6068916",
"0.605896",
"0.6033562",
"... | 0.76119083 | 0 |
Method to save changes to database | public boolean commit(Connection conn) throws SQLException {
boolean status = true;
try {
// Start of system transaction
conn.setAutoCommit(false);
BookingMapper bm = new BookingMapper();
status = status && bm.addNewBooking(newBooking, conn);
s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void save();",
"public void save();",
"public void save();",
"public void save();",
"public void save() {\t\n\t\n\t\n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"public static void save() {\n if (instance != null) {\n // -> SyncedDatabases.syncAll... | [
"0.79296815",
"0.79296815",
"0.79296815",
"0.79296815",
"0.76342195",
"0.76313186",
"0.7586373",
"0.75440454",
"0.7498272",
"0.7498272",
"0.7498272",
"0.74665594",
"0.73788464",
"0.7320352",
"0.7320352",
"0.7252601",
"0.7250978",
"0.7250978",
"0.724878",
"0.7235837",
"0.71919... | 0.0 | -1 |
Method to save changes to database | public boolean commitCustomers(Connection conn) throws SQLException {
boolean status = true;
try {
// Start of system transaction
conn.setAutoCommit(false);
BookingMapper bm = new BookingMapper();
status = status && bm.addNewCustomer(newCustomers, conn);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void save();",
"public void save();",
"public void save();",
"public void save();",
"public void save() {\t\n\t\n\t\n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"public static void save() {\n if (instance != null) {\n // -> SyncedDatabases.syncAll... | [
"0.79296815",
"0.79296815",
"0.79296815",
"0.79296815",
"0.76342195",
"0.76313186",
"0.7586373",
"0.75440454",
"0.7498272",
"0.7498272",
"0.7498272",
"0.74665594",
"0.73788464",
"0.7320352",
"0.7320352",
"0.7252601",
"0.7250978",
"0.7250978",
"0.724878",
"0.7235837",
"0.71919... | 0.0 | -1 |
Method to read from database | public ArrayList getCustomers(String lname, Connection con) {
ArrayList c = null;;
try {
c = new BookingMapper().getCustomer(lname, con);
} catch (Exception e) {
System.out.println("fail in UnitOfWork - getOrder()");
System.err.println(e);
}
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void readDatabase(String path) {\n try {\n FileInputStream fileIn = new FileInputStream(path + \"/database.ser\");\n ObjectInputStream inStream = new ObjectInputStream(fileIn);\n database = (Database) inStream.readObject();\n inStream.close();\n fileIn.close();\n ... | [
"0.6975258",
"0.6937948",
"0.69209707",
"0.68505716",
"0.6821903",
"0.67159295",
"0.6612302",
"0.65634215",
"0.65026367",
"0.648982",
"0.6479548",
"0.64654714",
"0.63859063",
"0.6371562",
"0.63461995",
"0.62737066",
"0.6245345",
"0.62343174",
"0.6232838",
"0.618879",
"0.61579... | 0.0 | -1 |
Method to read from database | public ArrayList getBookingList(String arrival, String departure, Connection con) {
ArrayList b = null;
try {
b = new BookingMapper().getBookingList(arrival, departure, con);
} catch (Exception e) {
System.out.println("fail in UnitOfWork - getBookingList");
Sy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void readDatabase(String path) {\n try {\n FileInputStream fileIn = new FileInputStream(path + \"/database.ser\");\n ObjectInputStream inStream = new ObjectInputStream(fileIn);\n database = (Database) inStream.readObject();\n inStream.close();\n fileIn.close();\n ... | [
"0.6975258",
"0.6937948",
"0.69209707",
"0.68505716",
"0.6821903",
"0.67159295",
"0.6612302",
"0.65634215",
"0.65026367",
"0.648982",
"0.6479548",
"0.64654714",
"0.63859063",
"0.6371562",
"0.63461995",
"0.62737066",
"0.6245345",
"0.62343174",
"0.6232838",
"0.618879",
"0.61579... | 0.0 | -1 |
Method to delete a booking | void registerDeleteBooking(Booking b) {
if (!newBooking.contains(b)
&& !modifiedBooking.contains(b)
&& !deleteBooking.contains(b)) {
deleteBooking.add(b);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteBookingById(BookingKey bookingKey);",
"public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom(... | [
"0.8501494",
"0.7698926",
"0.76980764",
"0.76776695",
"0.7582282",
"0.72507024",
"0.7092658",
"0.68869126",
"0.6874266",
"0.6788169",
"0.67819935",
"0.67732465",
"0.6762764",
"0.6720217",
"0.66405696",
"0.6575377",
"0.65701175",
"0.65494245",
"0.65307534",
"0.6512112",
"0.650... | 0.5925296 | 73 |
Method to get the list of rooms. | public ArrayList getRoomsList(String arrival, String departure, Connection con) {
ArrayList r = null;
try {
r = new BookingMapper().getRoomsList(arrival, departure, con);
} catch (Exception e) {
System.out.println("fail in UnitOfWork - getRoomsList");
System.e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Room> getRooms() {\n return rooms;\n }",
"@GetMapping(path = \"/rooms\")\n public List<Room> findAllRooms() {\n return new ArrayList<>(roomService.findAllRooms());\n }",
"public ArrayList<Room> getRooms() {\n return rooms;\n }",
"public List<Room> findAllRooms();"... | [
"0.8442876",
"0.8429112",
"0.81197864",
"0.80130947",
"0.8010849",
"0.79823995",
"0.7828433",
"0.77236515",
"0.77224076",
"0.77041686",
"0.7670304",
"0.7648982",
"0.7555596",
"0.75441283",
"0.75042385",
"0.74723643",
"0.7460542",
"0.7451116",
"0.7425582",
"0.74053365",
"0.730... | 0.0 | -1 |
List to find a booking from the reservationnumber | public Booking findResNo(int resNo, Connection con) {
Booking r = null;
try {
r = new BookingMapper().findResNumber(resNo, con);
} catch (Exception e) {
System.out.println("fail in UnitOfWork - findResNo");
System.err.println(e);
}
return r;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Bill> findBillsForReservation(long reservationId);",
"List<Reservation> findReservationsByUserBookId (Long userId);",
"public List<Boardreservation> getBoardReservations(int boardID);",
"@Query(value = FIND_BOOKED_DATES)\n\tpublic List<BookingDate> getBooking(Date startDate, Date endDate);",
"public L... | [
"0.6970009",
"0.6751226",
"0.6491935",
"0.64390355",
"0.6379424",
"0.63520765",
"0.6322135",
"0.63004935",
"0.62901217",
"0.62812525",
"0.6231307",
"0.62221026",
"0.6214941",
"0.62149143",
"0.61908495",
"0.6173655",
"0.6166067",
"0.6125877",
"0.61049336",
"0.6054923",
"0.6052... | 0.0 | -1 |
Returns a string which contains the elements of the given array converted to strings and delimited by the given delimiter. | public static <T> String joinArrayItems(T[] array, String delimiter)
{
if (array.length == 0)
return "";
StringBuilder builder = new StringBuilder();
for (T item : array)
{
builder.append(item);
builder.append(delimiter);
}
String result = builder.toString();
return
result.substr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String stringArrayToString(String[] strA, String delimiter) {\r\n StringBuffer str = new StringBuffer();\r\n if (null == strA || strA.length == 0)\r\n return null;\r\n for (int i = 0; i < strA.length; i++) {\r\n str.append(strA[i]);\r\n if (i < st... | [
"0.7504175",
"0.741158",
"0.7139869",
"0.7044944",
"0.67748255",
"0.6698862",
"0.6679079",
"0.6528675",
"0.64508176",
"0.6419395",
"0.6407186",
"0.63999003",
"0.6305997",
"0.62749094",
"0.6265214",
"0.62569577",
"0.6241348",
"0.6172592",
"0.6160464",
"0.6157857",
"0.61569774"... | 0.77029014 | 0 |
HTTP status adatok loggolasa | protected String logStatus(ClientRequestContext requestContext, ClientResponseContext responseContext) throws IOException {
StringBuilder msg = new StringBuilder();
msg.append("< status: [");
if (responseContext.getStatusInfo() != null) {
msg.append(responseContext.getStatusInfo().ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Http.Status status();",
"@Override\n public void onSuccess(int statusCode, cz.msebera.android.httpclient.Header[] headers, JSONObject response) {\n try {\n String status = response.getString(\"status\");\n if (status.contains(\"status not ok\")) {\n... | [
"0.7231273",
"0.64081556",
"0.6359794",
"0.62704635",
"0.6191235",
"0.6169173",
"0.6168835",
"0.6168835",
"0.61490816",
"0.61413085",
"0.6120044",
"0.59869003",
"0.5980921",
"0.59768164",
"0.58826923",
"0.58818066",
"0.58680254",
"0.5818022",
"0.5782288",
"0.5756366",
"0.5754... | 0.0 | -1 |
HTTP header adatok loggolasa | protected String logHeader(ClientRequestContext requestContext, ClientResponseContext responseContext) throws IOException {
StringBuilder msg = new StringBuilder();
msg.append("< headers: [");
for (Entry<String, List<String>> header : responseContext.getHeaders().entrySet()) {
msg.ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getHeader(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return getAuthorizationHeader();\n } else {\n return super.getHeader(name);\n }\n }",
"RequestHeaders headers();",
"public HashMap<String, String> getHeader() {\n Has... | [
"0.61518604",
"0.6121864",
"0.6113999",
"0.6050566",
"0.60478854",
"0.6032886",
"0.59963506",
"0.5996228",
"0.5985769",
"0.5973951",
"0.59657663",
"0.59273547",
"0.5890665",
"0.58787584",
"0.5872791",
"0.5862717",
"0.5851045",
"0.5786053",
"0.5782603",
"0.5778662",
"0.5774298... | 0.5556013 | 43 |
/On doit recevoir la taille de la liste | public Max(ArrayList<Integer> data, int lenData) {
this.data = data;
this.lenData = lenData;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Liste(){\n\t\tsuper();\n\t\tthis.liste = new int[this.BASE_LENGTH];\n\t\tthis.nb = 0;\n\t}",
"@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista... | [
"0.6860893",
"0.68033695",
"0.6786189",
"0.6627272",
"0.6620443",
"0.66002715",
"0.6596591",
"0.65853786",
"0.6513166",
"0.65096635",
"0.6476844",
"0.6431597",
"0.63875467",
"0.6383132",
"0.6368728",
"0.63492006",
"0.63453346",
"0.63298213",
"0.6282673",
"0.62583447",
"0.6253... | 0.0 | -1 |
======================================================================= Static Helpers methods ======================================================================== | public static Frame getViewerFrame(IMimeViewer viewr)
{
Component comp = viewr.getViewComponent();
if (comp instanceof JComponent)
{
Container topComp=((JComponent)comp).getTopLevelAncestor();
if (topComp instanceof Frame)
{
return ((Fra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Util() { }",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private Util() {\n }",
"private BuilderUtils() {}",
"private FormatUtilities() {}",
"p... | [
"0.64919466",
"0.6046226",
"0.6046226",
"0.6046226",
"0.6046226",
"0.58315474",
"0.58315474",
"0.57683057",
"0.573449",
"0.56787646",
"0.56780463",
"0.56461877",
"0.56454694",
"0.562793",
"0.562793",
"0.56197256",
"0.56111294",
"0.5608605",
"0.56079835",
"0.56079835",
"0.5595... | 0.0 | -1 |
This method is called by the frame listener when a window closing event is received. Default implementation is to perform signalFinalize(); Override this method if the Viewer cannot be disposed. | public void handleWindowClosingEvent(WindowEvent e)
{
//debug("handleWindowClosingEvent:"+e);
// finalize in background:
signalFinalize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void windowClosed(WindowEvent arg0) {\n\n }",
"@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\n\t\t\t}",
"@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t... | [
"0.78607494",
"0.78383636",
"0.7834427",
"0.7791143",
"0.7791143",
"0.7791143",
"0.7791143",
"0.7791143",
"0.7791143",
"0.7791143",
"0.7761017",
"0.7761017",
"0.7739827",
"0.7739827",
"0.7736679",
"0.7711251",
"0.7709758",
"0.7709758",
"0.76033705",
"0.7572672",
"0.7572653",
... | 0.73255867 | 57 |
Create or update view panel with VRL. Starts in new thread. This is the method called by the main browser to start the viewer. This method first calls initViewer() in the main swing event thread so subclassed viewers MUST return from this method. Then in a seperate thread the startViewer() method is called. Subclassed ... | final public void startFor(final VRL location,final String optionalMethodName,final ActionContext actionContext)
throws VrsException
{
// ===
// Pre: Context: Startup environmnet
// ===
if (this.startTask!=null)
{
throw new nl.esciencecente... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void run() {\n\t\tshowViewer();\r\n\t}",
"final void initViewer()\n {\n if (viewer.getViewContext().getStartInStandaloneWindow() == true)\n {\n \n JFrame frame=null; \n // JFrame\n {\n frame = new JFrame();\n ... | [
"0.71386874",
"0.67098707",
"0.66772467",
"0.6321891",
"0.6298895",
"0.6196068",
"0.61507344",
"0.60960656",
"0.6060235",
"0.6001887",
"0.5986416",
"0.598335",
"0.59817773",
"0.59536237",
"0.5912027",
"0.58936054",
"0.5846686",
"0.584073",
"0.58060616",
"0.57999307",
"0.57741... | 0.56912667 | 26 |
applet: stop(); applet: destroy(); | public void stopTask()
{
viewer.stopViewer();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void destroy() {\r\n // applet is going away...\r\n }",
"public void stop()\n\t{\n\t\tif (m_thread != null)\n\t\t{\n\t\t\tm_thread.stop();\n\t\t\tm_thread = null;\n\t\t}\n\n\t\t// TODO: Place additional applet stop code here\n\t}",
"public void exit() {\n loader.getApplet().stop();\n ... | [
"0.8441163",
"0.7367907",
"0.7196805",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6886353",
"0.6799653",
"0.6799653",
"0.6799653",
"... | 0.0 | -1 |
Invokes finalizeViewer() in a separate thread. | final synchronized public void signalFinalize()
{
// run stop in a seperate thread:
//System.err.println("--- Signal finalize ---");
ActionTask stopTask = new ActionTask(this.taskSource,
"Stopping viewer:" + this)
{
public void doTask()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void finalizeViewer()\n {\n viewer.stopViewer();\n\n // check whether star tasks still is running ! \n if (startTask.isAlive() == true)\n startTask.interruptAll(); // send interrupt signal\n \n // Wait 1s. \n try\n {\n Thread.sleep(10... | [
"0.78353196",
"0.6932461",
"0.59849495",
"0.59690243",
"0.59257287",
"0.5898201",
"0.5765348",
"0.5724411",
"0.5677855",
"0.56747884",
"0.56508553",
"0.5644942",
"0.56441265",
"0.56426555",
"0.55833673",
"0.55633074",
"0.5554158",
"0.5546331",
"0.54930496",
"0.54883265",
"0.5... | 0.6632297 | 2 |
Initialize viewer and invoke initViewer() method of subclassed viewer. This method will be performed during the GUI Event thread, so the Viewer can initialize it's GUI components. IViewer can be embedded as follows: Standalone in a JScrollPane in a JFrame Standalone in a JFrame. Embedded in JScrollPane in the VBrowsers... | final void initViewer()
{
if (viewer.getViewContext().getStartInStandaloneWindow() == true)
{
JFrame frame=null;
// JFrame
{
frame = new JFrame();
frame.setSize(new Dimension(800, 600));
GuiSettings.pla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void createAndShowGUI()\r\n {\r\n JFrame f = new JFrame(\"Viewer\");\r\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f.getContentPane().setLayout(new BorderLayout());\r\n \r\n JLabel usageLabel = new JLabel(\"<html>\"\r\n + \"Right mouse drag... | [
"0.60735005",
"0.6049494",
"0.60440004",
"0.6035233",
"0.6030209",
"0.59809",
"0.59742886",
"0.5970593",
"0.5913538",
"0.58869344",
"0.5876876",
"0.5825853",
"0.58149457",
"0.58140093",
"0.580547",
"0.5801196",
"0.5792773",
"0.5769006",
"0.5738484",
"0.5718292",
"0.5706711",
... | 0.7724914 | 0 |
Interrupt this viewer by interrupting the Viewer Task | final protected void interrupt()
{
if (startTask != null)
startTask.interruptAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stopTask()\n {\n viewer.stopViewer(); \n }",
"public void interrupt() {\r\n ServerLogger.log(this.myID + \" interrupt()\");\r\n this.run = false;\r\n //super.interrupt(); //To change body of overridden methods use File | Settings | File Tem... | [
"0.74048734",
"0.7294099",
"0.7229833",
"0.7229833",
"0.72260684",
"0.71711457",
"0.7152227",
"0.70880014",
"0.7051093",
"0.70501864",
"0.7030541",
"0.6917546",
"0.6750207",
"0.6744667",
"0.6706485",
"0.6663091",
"0.66335166",
"0.6606077",
"0.65822506",
"0.6572399",
"0.654661... | 0.7065026 | 8 |
Calls stopViewer and dispoveViewer. Also tries to stop running thread and dispose the optional frame if the Viewer was started in a separate Frame. | public void finalizeViewer()
{
viewer.stopViewer();
// check whether star tasks still is running !
if (startTask.isAlive() == true)
startTask.interruptAll(); // send interrupt signal
// Wait 1s.
try
{
Thread.sleep(1000);
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\n viewerManagerFrame.removeViewer(viewer);\n }",
"public void dispose() {\r\n\t\tif (view != null)\r\n\t\t\tview.stopThread = true;\r\n\t\tview = null;\r\n\t\tcontroller = null;\r\n\t\tsuper.dispose();\r\n\t}",
"@Override\n public void windowClosing(WindowE... | [
"0.70131284",
"0.6641531",
"0.64737815",
"0.6410361",
"0.63922626",
"0.624994",
"0.6243167",
"0.62302667",
"0.6162503",
"0.61135554",
"0.6047183",
"0.6026484",
"0.6003701",
"0.5981684",
"0.59697336",
"0.5927036",
"0.5903722",
"0.58413935",
"0.58117706",
"0.5795928",
"0.578041... | 0.69635797 | 1 |
La clase format tiene un | public static void main(String[] args) {
String mens = String.format( "Se puede maquetar un string incluyendo %s internos", "elementos" );
System.out.println( mens );
mens = String.format( "Los elementos %s y %s se referencian en el mismo orden", "uno", "dos" );
System.out.println( mens );
mens = String.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {return classSimpleName+\"#\"+name;}",
"private Format()\n {\n super();\n }",
"protected abstract String format();",
"private Formats() {\n }",
"public String toString(){\n return \"Format: \" + format +\", \" + super.toString(); \n }",
"@... | [
"0.61946285",
"0.5978651",
"0.5876241",
"0.58238107",
"0.58233994",
"0.57688975",
"0.57610464",
"0.5741873",
"0.5703519",
"0.5667695",
"0.5662175",
"0.565668",
"0.5628059",
"0.5621152",
"0.55986446",
"0.5593533",
"0.55715746",
"0.555962",
"0.55454254",
"0.55161107",
"0.551322... | 0.0 | -1 |
Create a new AudioPlayer with the first peripheral of the system selected | public AudioPlayer() {
selectMixer(0);
createListenerOnCondition(onFinishRunnables, (event) ->
event.getType() == LineEvent.Type.STOP && getRemainingTime() <= 0.0 && !isRepeating
);
createListenerOnCondition(onEndRunnables, (event) ->
event.getType() == LineEvent.Type.STOP && getRemainingTime() <= 0.0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Device createDevice();",
"protected AudioDevice getAudioDevice() throws JavaLayerException\n\t{\n\t\treturn FactoryRegistry.systemRegistry().createAudioDevice();\n\t}",
"private void createPlayer() {\r\n try {\r\n mRadioPlayer = new RadioPlayer(getApplication(), mDeezerConnect,\r\n ... | [
"0.6050737",
"0.5931417",
"0.5928329",
"0.5906389",
"0.5877346",
"0.58754027",
"0.5873973",
"0.58335733",
"0.5653847",
"0.56121486",
"0.56074387",
"0.5558249",
"0.552467",
"0.54935735",
"0.5490132",
"0.54747355",
"0.5434956",
"0.5410319",
"0.5404692",
"0.5389908",
"0.5373511"... | 0.5570132 | 11 |
Load a music in memory, then the AudioPlayer is ready to play | public boolean load(final AudioFile file) {
if (file == null || file.path.equals(""))
throw new IllegalArgumentException("Music parameter is null or the path is invalid");
audioFile = file;
AudioInputStream inputStream;
// TODO Would it be better to throw exceptions ?
try {
inputStream = AudioUtils.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void loadMusic()\n\t{\n\t\t// TODO: update this with the correct file names.\n\t\tmusic = new ArrayList<Music>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tmusic.add(Gdx.audio.newMusic(new FileHandle(new File(MUSIC_PATH + \"Lessons-8bit.mp3\"))));\n\t\t\tmusic.add(Gdx.audio.newMusic(new FileHandle(new File(MUSIC... | [
"0.78288764",
"0.7418697",
"0.7375488",
"0.7363721",
"0.7314102",
"0.72617954",
"0.71893483",
"0.71342033",
"0.71206933",
"0.71168065",
"0.705105",
"0.6948497",
"0.6935988",
"0.68796325",
"0.6860005",
"0.68507534",
"0.6846666",
"0.6812657",
"0.6799988",
"0.6767837",
"0.676469... | 0.6119039 | 66 |
Start the current loaded music. If no music is loaded, does nothing | public void play() {
if(hasAudioLoaded()) {
currentClip.start();
isPlaying = true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void startMusic()\r\n\t{\r\n\t\tif ( musicPlayer == null )\r\n\t\t\tmusicPlayer = new MusicPlayer( \"Music2.mid\" );\r\n\t\telse\r\n\t\t\tmusicPlayer.play();\r\n\t}",
"public void playMusic() {\n\t\tthis.music.start();\n\t}",
"public static void startMusic()\n\t{\n\t\tmusic.loop();\n\t}",
"publ... | [
"0.8195241",
"0.8194493",
"0.79686093",
"0.7854175",
"0.7610368",
"0.75290835",
"0.74386746",
"0.73697174",
"0.72736114",
"0.72412443",
"0.722041",
"0.7133524",
"0.71300775",
"0.7119863",
"0.70884293",
"0.70789474",
"0.7078327",
"0.7072974",
"0.7069622",
"0.70550364",
"0.7022... | 0.7024133 | 20 |
Pause the current music. If no music is playing does nothing | public void pause() {
currentClip.stop();
isPlaying = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void pauseSong() {\n if (mp.isPlaying()) {\n mp.pause();\n }\n }",
"public static void pause() {\r\n for (int i = 0; i < players_.size(); i++) {\r\n MediaPlayer p = players_.valueAt(i);\r\n if (p != null) {\r\n if (p.isPlaying()) {\r\... | [
"0.81934685",
"0.8087301",
"0.80604625",
"0.7697156",
"0.76637805",
"0.76461494",
"0.7558268",
"0.7501356",
"0.749021",
"0.73482335",
"0.72583926",
"0.72395885",
"0.7238272",
"0.7233481",
"0.72330433",
"0.721934",
"0.7213044",
"0.72124714",
"0.7195233",
"0.7185111",
"0.711722... | 0.6899356 | 37 |
Close the current music stream. If no music is loaded does nothing | public void close() {
currentClip.stop();
currentClip.close();
isPlaying = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void dispose() {\n\t\tmusic.dispose();\n\t}",
"public synchronized void close() {\n try {\n audioInputStream.close();\n } catch (IOException ioe) {\n System.err.println(\"Problem while closing the audioInputSteam\");\n }\n\n }",
"publ... | [
"0.7251981",
"0.6932883",
"0.69126934",
"0.6909595",
"0.68653685",
"0.67704004",
"0.66245794",
"0.6564746",
"0.6507615",
"0.647271",
"0.6420411",
"0.6395359",
"0.63829094",
"0.6377016",
"0.63592964",
"0.6338711",
"0.63141376",
"0.62907016",
"0.6242069",
"0.62262475",
"0.62114... | 0.6655178 | 6 |
Put the cursor at the end of the audio file and stop it | public void goToEnd() {
currentClip.stop();
setPosition(currentClip.getMicrosecondLength());
isPlaying = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void stopAudio() {\r\n // stop playback if possible here!\r\n }",
"public void stop() {\n stop = true;\n //index--;\n line.flush();\n line.close();\n try {\n decodedInput.close();\n } catch (IOException ex) {\n Logger.getLogger(MP3... | [
"0.6864815",
"0.67012066",
"0.6678893",
"0.65803766",
"0.650744",
"0.65028757",
"0.64766353",
"0.6464417",
"0.64247054",
"0.63732815",
"0.63718146",
"0.6343046",
"0.63088036",
"0.62850726",
"0.62772864",
"0.6267097",
"0.61882436",
"0.61860096",
"0.61770666",
"0.61691725",
"0.... | 0.6780851 | 1 |
Put the cursor at the beginning of the audio file | public void goToStart() {
setPosition(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void seek(int offsetFromStart);",
"void seekToFirst();",
"public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }",
"protected void startNextSound() {\n\t\tsoundIndex = (soundIndex < audioFiles.length - 1) ? soundIndex + 1 : 0;\t\... | [
"0.62623507",
"0.6247788",
"0.6122128",
"0.60298693",
"0.601784",
"0.5993185",
"0.59367716",
"0.5895604",
"0.5841808",
"0.58389646",
"0.57772946",
"0.576342",
"0.57520425",
"0.57443213",
"0.5710181",
"0.5704056",
"0.565955",
"0.5657945",
"0.5657916",
"0.5650976",
"0.56487334"... | 0.55885184 | 30 |
Put the cursor at the beginning of the audio file and stop it | public void reload() {
pause();
setPosition(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void continueSound() {\n\t\tclip.start();\n\t}",
"private void stopAudio() {\r\n // stop playback if possible here!\r\n }",
"public void playAudio() {\n if (done==false)\n {\n file.play();\n }\n}",
"public void stop() {\n pause();\n if (isInPreviewMode) {\n isI... | [
"0.6756932",
"0.6741619",
"0.64811105",
"0.6445055",
"0.6440119",
"0.6365626",
"0.63365924",
"0.6247191",
"0.6228472",
"0.6195939",
"0.6189458",
"0.6186835",
"0.61750585",
"0.61739457",
"0.6168153",
"0.6149877",
"0.6102334",
"0.6079848",
"0.607872",
"0.607831",
"0.6077961",
... | 0.0 | -1 |
Set if the current player must repeat the audio when the end is reached | public void setRepeat(final boolean isRepeating) {
this.isRepeating = isRepeating;
if (isRepeating) {
loopListenerID = addOnEndEvent(() -> goToStart());
} else {
removeOnEndEvent(loopListenerID);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void playOnce() {\n mStopAtLoopEnd = true;\n mStartTimeMillis = 0;\n mCurrentLoopNumber = 0;\n cancelCallback();\n postCallback();\n }",
"@Test\n public void testSetLooping()\n {\n MusicPlayer.getInstance().selectSong(Songs.CREDITS);\n assertEquals(MusicPlayer.getInstan... | [
"0.69510525",
"0.6723848",
"0.66380435",
"0.6521301",
"0.65154725",
"0.6352859",
"0.62893873",
"0.627822",
"0.6221588",
"0.62165403",
"0.6166438",
"0.6157959",
"0.6124896",
"0.6108051",
"0.6087205",
"0.60854226",
"0.6081043",
"0.60754246",
"0.6074465",
"0.6046858",
"0.6045499... | 0.5864495 | 30 |
Select the output audio peripheral with the given index | public void selectMixer(final int index) {
if (currentClip != null) {
if (currentClip.isOpen()) {
throw new IllegalStateException("The player has a music loaded : cannot change the output");
}
close();
}
currentClip = MixersUtilities.getClipByMixerIndex(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void setIndexSelected(int index) {\n if (index != -1) {\n if (index >= deviceDetails.size()) {\n throw new IllegalArgumentException(String.format(\n \"Index of device exceeds device count. Currently requesting %d, but only have%d\",\n ... | [
"0.57744426",
"0.5768538",
"0.56284356",
"0.5617473",
"0.55535966",
"0.552703",
"0.5502933",
"0.54856616",
"0.54541373",
"0.54008293",
"0.53864455",
"0.5342969",
"0.53394485",
"0.5320865",
"0.5319331",
"0.5308164",
"0.51860434",
"0.5162431",
"0.5092765",
"0.5081189",
"0.50799... | 0.64237094 | 0 |
Call the given runnable when the player reach the end of the current music and the music is not repeating | public int addOnFinishEvent(final Runnable runnable) {
if (runnable == null)
throw new IllegalArgumentException("Given paramter is null");
onFinishRunnables.add(runnable);
return onFinishRunnables.indexOf(runnable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n MediaSingleton.INSTANCE.ensureSound();\n\n long next = AlarmUtil.millisTillNextInterval(AlarmUtil.Interval.SECOND);\n handler.postDelayed(soundCheck, next);\n }",
"public void run() {\n if (currentTimer <= TIMEOUT_VALUE) {\n ... | [
"0.65291643",
"0.64020395",
"0.6400261",
"0.6392112",
"0.6389321",
"0.63783395",
"0.63628495",
"0.6329184",
"0.62182623",
"0.62104803",
"0.6168929",
"0.6154941",
"0.6130307",
"0.6117167",
"0.60912853",
"0.60894114",
"0.6064194",
"0.6050746",
"0.6040111",
"0.6032395",
"0.59900... | 0.0 | -1 |
Call the given runnable when the player reach the end of the current music, even if it is set to be repeated | public int addOnEndEvent(final Runnable runnable) {
if (runnable == null)
throw new IllegalArgumentException("Given paramter is null");
onEndRunnables.add(runnable);
return onEndRunnables.indexOf(runnable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onSeekComplete() {\n if (info.playing) {\n player.start();\n player.setOnSeekCompletionListener(null);\n } else {\n Log.w(TAG, \"Audio stopping while waiting for loop to re-start\");\n }\n ... | [
"0.64655435",
"0.6463418",
"0.63633835",
"0.63537526",
"0.624702",
"0.6234699",
"0.6219784",
"0.620298",
"0.6200254",
"0.6178823",
"0.6175942",
"0.61536294",
"0.6144947",
"0.6106529",
"0.60418165",
"0.60255885",
"0.6003271",
"0.5984943",
"0.5968968",
"0.5948693",
"0.5905794",... | 0.0 | -1 |
Disable a listener returned by the function addOnEndEvent | public void removeOnEndEvent(final int eventID) {
onEndRunnables.remove(eventID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onDisable() {\r\n }",
"public void onDisable() {\n }",
"public void onDisable() {\n }",
"public void onDisable() {\n }",
"public void onStop() {\n this.eventDelegate.onStop();\n super.onStop();\n }",
"public void onDisable()\n {\n }",
"public abstract void o... | [
"0.6563464",
"0.6561428",
"0.6560312",
"0.6560312",
"0.65402204",
"0.64806",
"0.6431639",
"0.642919",
"0.641982",
"0.6315322",
"0.62679577",
"0.6240117",
"0.62369037",
"0.62335974",
"0.6185796",
"0.61228395",
"0.6089899",
"0.60408133",
"0.6030185",
"0.603",
"0.5929045",
"0.... | 0.59216607 | 21 |
Call the given runnable when the player loads a new music | public int addOnLoadEvent(final Runnable runnable) {
if (runnable == null)
throw new IllegalArgumentException("Given paramter is null");
onLoadRunnables.add(runnable);
return onLoadRunnables.indexOf(runnable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void onLoaded(String arg0) {\n\t\t\t\tplayer.play();\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tmFiles = DataSourceManager.getSongFileList(currentAlbumPath);\n\t\t\tif (mFiles == null || mFiles.length == 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (mPlayPos < 0 || mPlayPos > mFiles.le... | [
"0.6995005",
"0.68966764",
"0.6663873",
"0.6366316",
"0.6266756",
"0.62519735",
"0.6230768",
"0.621968",
"0.6179535",
"0.6177649",
"0.6175982",
"0.61758345",
"0.61461616",
"0.6133818",
"0.6131234",
"0.6127913",
"0.6118352",
"0.60638326",
"0.60422224",
"0.6014155",
"0.5967315"... | 0.0 | -1 |
Call the given runnable when the player starts to play the loaded music | public int addOnPlayEvent(final Runnable runnable) {
if (runnable == null)
throw new IllegalArgumentException("Given paramter is null");
onPlayRunnables.add(runnable);
return onPlayRunnables.indexOf(runnable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void onLoaded(String arg0) {\n\t\t\t\tplayer.play();\n\t\t}",
"public void playMusic() {\n\t\tthis.music.start();\n\t}",
"public void run(){\n\t\ttry {\n\t\t\tSystem.out.println(\"Started Playing music successfully\");\n\t\t\tplay();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO ... | [
"0.748675",
"0.72205985",
"0.721966",
"0.71399534",
"0.70136607",
"0.6931267",
"0.6890451",
"0.68823314",
"0.67230314",
"0.6703847",
"0.66943246",
"0.6672817",
"0.6652023",
"0.66476315",
"0.6642849",
"0.66149247",
"0.6596356",
"0.6571616",
"0.65626025",
"0.65506595",
"0.65457... | 0.0 | -1 |
Log.d(TAG, "onResponse: " + url); Log.d(TAG, "onResponse: " + response.body().string()); | @Override
public void onResponse(Call call, Response response) throws IOException {
String html = null;
try {
JSONObject jsonObject = new JSONObject(response.body().string()).getJSONObject("data");
// Log.d(TAG, "onResponse: " + jsonObje... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onResponse(String response) {\n Log.d(DEBUG_TAG, \"Response is: \"+ response);\n }",
"@Override\n\t\t\tpublic void onResponse(Response response) throws IOException {\n Log.i(\"info\",response.body().st... | [
"0.7976833",
"0.7790717",
"0.7672358",
"0.7664883",
"0.7664883",
"0.7664883",
"0.7629827",
"0.76112884",
"0.75854176",
"0.75643647",
"0.755163",
"0.7491633",
"0.738545",
"0.7345729",
"0.73289764",
"0.7296666",
"0.7277347",
"0.71810687",
"0.71439385",
"0.7078861",
"0.704265",
... | 0.7015133 | 23 |
inflate the menu; this adds items to the action bar if needed | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
if(BuildConfig.DEBUG) {
MenuItem generate = menu.findItem(R.id.mainmenu_generate_data);
generate.setVisible(true);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t su... | [
"0.71824455",
"0.71414745",
"0.71303153",
"0.7059605",
"0.7048178",
"0.6995324",
"0.69470286",
"0.68821394",
"0.68814945",
"0.68684393",
"0.68634164",
"0.68476945",
"0.6836561",
"0.6834652",
"0.6807211",
"0.6796463",
"0.6793435",
"0.6789579",
"0.67752784",
"0.6775225",
"0.677... | 0.0 | -1 |
To satisfy the interface implementation | @SuppressLint("DefaultLocale")
@Override
public void onTaskLongClick(@NonNull Task task) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\... | [
"0.66921526",
"0.66598403",
"0.6655755",
"0.6626332",
"0.6418042",
"0.6418042",
"0.6395758",
"0.6369353",
"0.6316473",
"0.6309349",
"0.629656",
"0.6246272",
"0.6229208",
"0.6160067",
"0.6154258",
"0.6149979",
"0.6149979",
"0.6146041",
"0.6138274",
"0.6137881",
"0.61135143",
... | 0.0 | -1 |
show dialogue to get confirmation to quit editing | private void showCancelEditDialog() {
AppDialog dialog = new AppDialog();
Bundle args = new Bundle();
args.putInt(AppDialog.DIALOG_ID, DIALOG_ID_CANCEL_EDIT);
args.putString(AppDialog.DIALOG_TITLE, "Quit?");
args.putString(AppDialog.DIALOG_MESSAGE, getString(R.string.cancelEditDi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void confirmExit() {\n if (hasChanges()) {\n new AlertDialog.Builder(this).\n setMessage(R.string.dialog_discard_msg).\n setNegativeButton(R.string.dialog_discard_neg, (dialog, which) -> {}).\n setPositiveButton(R.string.dialog_disc... | [
"0.72129285",
"0.7196639",
"0.7095424",
"0.70661795",
"0.70620173",
"0.7037723",
"0.6972356",
"0.69264334",
"0.69020027",
"0.6837665",
"0.68354994",
"0.6782481",
"0.6728746",
"0.6696553",
"0.6694143",
"0.66716886",
"0.6671089",
"0.6662431",
"0.6646721",
"0.6645216",
"0.663094... | 0.68218255 | 11 |
TODO Autogenerated method stub | @Override
public double getStep(double step){
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String asFormula(){
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String asFormula(double step){
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public Integer call(Integer a, Integer b) throws Exception {
return a+b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
todo [anistor] can startOffset really be a long or it really has to be int due to limitations in query module? | protected BaseQuery(QueryFactory queryFactory, String queryString,
Map<String, Object> namedParameters, String[] projection, long startOffset, int maxResults,
boolean local) {
this.paramsDefined = true;
this.queryFactory = queryFactory;
this.queryString = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int startOffset();",
"public abstract long getStartOffset();",
"public int getStartOffset() {\n return startOffset;\n }",
"Long getStartAt();",
"public final int startOffset() {\n return startOffset;\n }",
"public void setStartOffset(int offset) {\n this.startOffset = offset;\n }",
"... | [
"0.7155137",
"0.7005356",
"0.6751233",
"0.6638357",
"0.65790266",
"0.64568615",
"0.6367915",
"0.6354228",
"0.62671345",
"0.61216956",
"0.6029304",
"0.59272957",
"0.58931655",
"0.58696604",
"0.5790172",
"0.5733893",
"0.5596857",
"0.5596857",
"0.5529561",
"0.5523914",
"0.549867... | 0.0 | -1 |
Returns the Ickle query string. | @Override
public String getQueryString() {
return queryString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getQuery();",
"java.lang.String getQuery();",
"public java.lang.String getQueryString() {\n return bugQuery.getQueryString();\n }",
"String getQuery();",
"String getQueryString ();",
"public String getQueryString() {\n\t\tif (query.isEmpty())\n\t\t\treturn null;\n\n\t\tif (quer... | [
"0.7386805",
"0.7386805",
"0.73661",
"0.7354665",
"0.70274466",
"0.7000023",
"0.69348747",
"0.69348747",
"0.6914073",
"0.68755275",
"0.6866022",
"0.6857491",
"0.6852602",
"0.68406785",
"0.6812219",
"0.681027",
"0.6795576",
"0.6795576",
"0.6795576",
"0.67885447",
"0.6679901",
... | 0.66141814 | 26 |
Reset internal state after pagination or query parameters are modified. This is needed to ensure the next execution of the query uses the new values. | public abstract void resetQuery(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reset() {\r\n reset(params);\r\n }",
"protected void resetParams() {\n\t\treport.report(\"Resetting Test Parameters\");\n\t\t// numberOfRecoverys = 0;\n\t\tstreams = new ArrayList<StreamParams>();\n\t\tlistOfStreamList = new ArrayList<ArrayList<StreamParams>>();\n\t}",
"public void resetFilter(... | [
"0.69331163",
"0.6775451",
"0.66696626",
"0.6661157",
"0.6551462",
"0.6495355",
"0.64770854",
"0.6462467",
"0.6462188",
"0.6421853",
"0.6417053",
"0.6399001",
"0.6356446",
"0.63331294",
"0.6327089",
"0.6279292",
"0.6260878",
"0.6248194",
"0.6228384",
"0.62036544",
"0.61697197... | 0.70140445 | 0 |
Ensure all named parameters have nonnull values. | public void validateNamedParameters() {
if (namedParameters != null) {
for (Map.Entry<String, Object> e : namedParameters.entrySet()) {
if (e.getValue() == null) {
throw log.queryParameterNotSet(e.getKey());
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkParameters() {\n }",
"@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}",
"public static void notNullOrEmpty(Object[] parameter, String name) throws IllegalArgumentException\n {\n if(parameter == null || parameter.length == 0) {\n throw new IllegalArgumentException... | [
"0.6554759",
"0.64848727",
"0.63643116",
"0.63378084",
"0.62648267",
"0.6257161",
"0.6225915",
"0.61991674",
"0.6185394",
"0.61318034",
"0.6099707",
"0.6080056",
"0.59258926",
"0.592367",
"0.5918118",
"0.59140843",
"0.5913335",
"0.5887501",
"0.5872988",
"0.5853082",
"0.583960... | 0.78972715 | 0 |
DFS will use stack | public void depthFirstSearch(){
Stack<TreeNode<T>> nodeStack = new Stack<TreeNode<T>>();
if(root!=null){
nodeStack.push(root);
System.out.println(root.data);
TreeNode<T> topNode = root;
while(!nodeStack.isEmpty()){
if(topNode.left!=null){
nodeStack.push(topNode.left);
System.out.prin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void DFS() {\n\t\tfor(Node node: nodeList) {\r\n\t\t\tif(!node.isVisited())\r\n\t\t\t\tdfsVisit(node);\r\n\t\t}\r\n\t}",
"public void dfs() {\n int currentVertexIndex = 0;\r\n dfsStack.push(0);\r\n vertexList[0].wasVisited = true;\r\n System.out.println(vertexList[dfsStack.pee... | [
"0.7618202",
"0.7465105",
"0.7401052",
"0.73732597",
"0.72783834",
"0.72646093",
"0.72376347",
"0.70273024",
"0.6973818",
"0.6937109",
"0.6930359",
"0.6876668",
"0.6847069",
"0.6843536",
"0.6840902",
"0.68324584",
"0.67743397",
"0.6673448",
"0.66522706",
"0.664073",
"0.661332... | 0.6117889 | 66 |
TODO Autogenerated method stub | private void ini() {
mLinearLayoutpush = (LinearLayout)findViewById(R.id.mLinearLayoutpush);
mDialogText = (TextView)findViewById(R.id.mDialogText);
mDialogTitle = (TextView)findViewById(R.id.mDialogTitle);
mButtonpush = (Button)findViewById(R.id.mButtonpush);
mbtn_back = (ImageButton)findViewById(R.id.mbtn_b... | {
"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 |
/ Passes from date and to date search criteria. | public void passParameter(LodgementViewParamsBean params) {
LodgementViewParamsTO paramsTO = TypeConverters.BeanToTrasferObject(params,
LodgementViewParamsTO.class);
List<LodgementViewTO> lodgementViewTO =
WSManager.getInstance().getCaseManagementService().getLodgementVi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void accept(SearchCriteriaVisitor visitor) throws Exception {\r\n visitor.visitDateCriteria(this);\r\n }",
"public void searchAvailability(Connection connection, String hotel_name, int branchID, java.sql.Date from, java.sql.Date to) throws SQLException {\n\n ResultSet rs = null;\n String s... | [
"0.63662165",
"0.6263236",
"0.62508076",
"0.61084455",
"0.60430497",
"0.5995506",
"0.5929204",
"0.5897527",
"0.5871354",
"0.58370525",
"0.583189",
"0.57779163",
"0.5751926",
"0.5660618",
"0.5650295",
"0.5648881",
"0.5645549",
"0.56396973",
"0.56161356",
"0.56018907",
"0.56011... | 0.0 | -1 |
////////////////////////////////////////////////////////////////////////////////////////// private methods /////////////////////////////////////////////////////////////////////////////////////// | private void _openEditor() {
Window w = new Window(_caption.getValue());
w.setId("tinyEditor");
w.setCaptionAsHtml(true);
_tinyEditor = new TinyMCETextField();
_tinyEditor.setValue(_hiddenField.getValue());
w.setResizable(true);
w.center();
w.setWidth(800, Unit.PIXELS);
w.setHeight(600, Unit.PIXELS);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpu... | [
"0.60679215",
"0.60205585",
"0.5968894",
"0.5940879",
"0.5862326",
"0.583333",
"0.5824895",
"0.5744953",
"0.5730207",
"0.5713545",
"0.5689478",
"0.5676747",
"0.56685543",
"0.56685543",
"0.56685543",
"0.56685543",
"0.56685543",
"0.56685543",
"0.56637746",
"0.56637746",
"0.5645... | 0.0 | -1 |
TextView tv = (TextView)v; | @Override
public void choiced(String result) {
target.setText(result);
target.setTextColor(getResources().getColor(R.color.app_color));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract TextView getTextView();",
"public ViewHolder(View v) {\n super(v);\n Typeface oldLondon = Typeface.createFromAsset(context.getAssets(), \"fonts/Blackwood Castle.ttf\");\n\n iView = (ImageView) v.findViewById(to[0]);\n nameView = (TextView) v.findViewById(to[1]... | [
"0.65789175",
"0.6063401",
"0.60119015",
"0.5998569",
"0.59041584",
"0.58619255",
"0.5833455",
"0.5776519",
"0.57698923",
"0.5705183",
"0.56770957",
"0.5675255",
"0.56090885",
"0.5602747",
"0.5598929",
"0.5593778",
"0.55815107",
"0.5557634",
"0.5555724",
"0.5539827",
"0.55142... | 0.0 | -1 |
consist of the coordinate of the current square | QuadTree(String name, double ullon, double ullat, double lrlon, double lrlat, int depth) {
this.ullon = ullon;
this.ullat = ullat;
this.lrlon = lrlon;
this.lrlat = lrlat;
this.name = name;
this.depth = depth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Square getCurrentPosition();",
"public int getSquareLocation()\n\t\t{\n\t\t\treturn location; // return location of square\n\t\t}",
"public byte getStartSquare (){\r\n\t\treturn start_sq;\r\n\t}",
"public boolean isInside(Square cell) {\n\t\treturn (cell.getRow()>=0 && cell.getRow()<getRows() && cell.getColu... | [
"0.6998451",
"0.63961023",
"0.6323392",
"0.6272122",
"0.62617207",
"0.61580163",
"0.6104677",
"0.6101818",
"0.60767895",
"0.60767895",
"0.60767895",
"0.6061543",
"0.60130966",
"0.5936864",
"0.58877194",
"0.5882491",
"0.5880793",
"0.58688897",
"0.58640844",
"0.58365995",
"0.58... | 0.0 | -1 |
find the four child of the parent and return as a QuadTree array | private QuadTree[] findChild(QuadTree parent) {
double point1_lon = parent.ullon;
double point1_lat = parent.ullat;
double point2_lon = (parent.lrlon + parent.ullon) / 2;
double point2_lat = parent.ullat;
double point3_lon = parent.ullon;
double po... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object[] getChildArray();",
"private int[] getChildren(int index) {\r\n int[] children = new int[] {\r\n 2 * index + 1,\r\n 2 * index + 2\r\n };\r\n return children;\r\n }",
"Node[] getChildren(Node node);",
"public Node[] getChildren(){return children;}",
"pri... | [
"0.6511842",
"0.61401516",
"0.60418993",
"0.6006669",
"0.59544355",
"0.58504856",
"0.58103216",
"0.5781958",
"0.57748294",
"0.5711323",
"0.5687178",
"0.5668894",
"0.5650483",
"0.5641603",
"0.56319654",
"0.56132275",
"0.5606957",
"0.5593407",
"0.5593407",
"0.55876136",
"0.5566... | 0.81279004 | 0 |
return true if the lonDPP of the current box is smaller that the target londpp hence don't need to find more depth | private boolean checkResolution(double tar_LonDPP) {
double LonDPP = (this.lrlon - this.ullon) / 256;
return LonDPP <= tar_LonDPP;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean tooSmallforThisPaddock(PaddockCoordinates coor) {\n return ((coor.getX() + coor.getWidth() > this.width)\n || (coor.getY() + coor.getHeight() > this.height));\n }",
"boolean isOverflow() {\r\n\r\n if (children.size() > branchingFactor) {\r\n retu... | [
"0.59533805",
"0.5913915",
"0.58918923",
"0.5868604",
"0.5861346",
"0.584508",
"0.58292943",
"0.5768039",
"0.5739381",
"0.57189643",
"0.57077754",
"0.56730384",
"0.56716037",
"0.5633302",
"0.56293005",
"0.5626254",
"0.56212807",
"0.56196135",
"0.5607047",
"0.5583986",
"0.5569... | 0.6119688 | 0 |
Takes a user query and finds the grid of images that best matches the query. These images will be combined into one big image (rastered) by the front end. The grid of images must obey the following properties, where image in the grid is referred to as a "tile". The tiles collected must cover the most longitudinal dista... | public Map<String, Object> getMapRaster(Map<String, Double> params) {
// System.out.println(params);
//query box info
double tar_lrlon, tar_ullon, tar_ullat, tar_lrlat, tar_w, tar_h, tar_LonDPP;
tar_lrlon = params.get("lrlon");
tar_ullon = params.get("ullon");
tar_ullat = p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void fetchTile() {\n\t\t\tif (tile.getRequest().isCancelled() || tile.isFinal()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tMapSource source = tile.getRequest().getSource();\n\t\t\tProjObj proj = tile.getRequest().getProjection();\n\t\t\tfinal int ppd = tile.getRequest().getPPD();\n\t\t\t\n\t\t\tfor (int f... | [
"0.55727416",
"0.5321115",
"0.50891197",
"0.5022333",
"0.49962065",
"0.49860412",
"0.49672416",
"0.4966487",
"0.4934035",
"0.488288",
"0.48710188",
"0.4869459",
"0.4853739",
"0.48355192",
"0.48161215",
"0.48147383",
"0.48119465",
"0.48109108",
"0.48003578",
"0.4745684",
"0.47... | 0.5393317 | 1 |
put all the information into result | private void work(QuadTree current, QuadTree target, Map<String, Object> results, double tar_LonDPP) {
LinkedList<QuadTree> grid = new LinkedList<>();
LinkedList<QuadTree> Linked = new LinkedList<>();
grid.addLast(current);
while (grid.size() != 0) {
QuadTree cur = grid.remov... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"public static void showResultPerson( Result<Record> result){\n \t for (Record r : result) {\n// Integer id = r.getValue(PERSON.PERSO_ID);\n String firstName = r.getValue(PERSON.PERSO_FIRSTNAME);\n String lastName = r.get... | [
"0.6571514",
"0.62311035",
"0.615651",
"0.6142556",
"0.6106652",
"0.60557586",
"0.6039538",
"0.5939473",
"0.58243436",
"0.5822356",
"0.5802186",
"0.5774369",
"0.57269996",
"0.57228696",
"0.56795764",
"0.564898",
"0.5625149",
"0.5617741",
"0.5612119",
"0.5601929",
"0.5601295",... | 0.0 | -1 |
return empty String[][] of the right dimension | private String[][] twoDArray(LinkedList<QuadTree> Linked) {
if (Linked.size() < 1) {
return new String[0][0];
} else if (Linked.size() == 1) {
return new String[1][1];
} else {
int rowCount, columnCount;
Set<Double> count = new HashSet<>();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[][] get();",
"private String[][] initBoard() {\n String[][] tmp=new String[this.SIZE][this.SIZE];\n for (String[] ae:\n tmp) {\n Arrays.fill(ae, \" \");\n }\n return tmp;\n }",
"private String[][] createEmptyMatrix(int rows, int columns) {\... | [
"0.7051423",
"0.6943445",
"0.6861523",
"0.6650742",
"0.6627415",
"0.63698107",
"0.6316506",
"0.6312832",
"0.6252798",
"0.621575",
"0.6117029",
"0.6070945",
"0.6005029",
"0.5999908",
"0.59786993",
"0.59533453",
"0.5907379",
"0.5892663",
"0.5886107",
"0.5802534",
"0.5708447",
... | 0.6596464 | 5 |
return a String[][] with the childrenNames with the file format | private String[][] childrenNames(LinkedList<QuadTree> Linked) {
LinkedList<Double> latName = new LinkedList<>();
Map<Double, LinkedList<String>> res = new HashMap<>();
for (QuadTree q : Linked) {
if (!res.containsKey(q.ullat)) {
res.put(q.ullat, new LinkedList<>());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getTreeNames();",
"public String[] listChildren()\n/* */ {\n/* 519 */ int childCount = getChildCount();\n/* 520 */ String[] outgoing = new String[childCount];\n/* 521 */ for (int i = 0; i < childCount; i++) {\n/* 522 */ outgoing[i] = getChild(i).getName();\n/* */... | [
"0.6730068",
"0.65251696",
"0.63798636",
"0.6245726",
"0.6002854",
"0.59777445",
"0.5879443",
"0.5879443",
"0.584201",
"0.58002615",
"0.5784389",
"0.5763873",
"0.5716523",
"0.56715196",
"0.5638236",
"0.5636032",
"0.5624182",
"0.5581287",
"0.5551884",
"0.5531189",
"0.55285007"... | 0.6625959 | 1 |
Populates the form for creating an event with valid information. Useful so that users do not have to think when filling out the form for testing. | @PostMapping( value = "/new", params = "auto" )
public String createEventFormAutoPopulate( @ModelAttribute CreateEventForm createEventForm )
{
// provide default values to make user submission easier
createEventForm.setSummary( "A new event...." );
createEventForm.setDescription( "This was autopopulated... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void fillForm(Event e){\n // name\n eventName.setText(e.getEventname().toString());\n // room\n room.setText(e.getRoom() + \"\");\n // dates\n Calendar from = extractDate(e.getFromDate());\n writeDateToButton(from, R.id.newEvent_button_from);\n Calenda... | [
"0.6799244",
"0.59307337",
"0.590694",
"0.58977634",
"0.5826707",
"0.5822676",
"0.5796269",
"0.5710837",
"0.56638104",
"0.5656551",
"0.5656104",
"0.56560946",
"0.56374276",
"0.56190395",
"0.5615799",
"0.5607655",
"0.5571237",
"0.55419725",
"0.5537911",
"0.5526385",
"0.5526131... | 0.71164185 | 0 |
This function is called periodically during autonomous | public void autonomousPeriodic() {
try{
if(joy.getRawButton(2)){
frontLeft.set(1);
}else if(joy.getRawButton(3)){
frontRight.set(1);
}else if(joy.getRawButton(4)){
backRight.set(1);
}else if(joy.getRawButton(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public... | [
"0.8242393",
"0.8238804",
"0.8235853",
"0.8235853",
"0.8235853",
"0.820495",
"0.8199907",
"0.8194021",
"0.8194021",
"0.8177311",
"0.8151588",
"0.8147766",
"0.81250346",
"0.81250346",
"0.80807847",
"0.8016792",
"0.8016792",
"0.79744554",
"0.79655135",
"0.7948241",
"0.7948241",... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.