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 |
|---|---|---|---|---|---|---|
Gets the process id. | public String getProcessId()
{
return processId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final int getProcessId() {\n\t\treturn ID;\n\t}",
"public final int getProcessId() {\n\t\treturn this.processId;\n\t}",
"public java.lang.String getProcessId() {\n return processId;\n }",
"public java.lang.String getProcessId() {\n return processId;\n }",
"public java.lang.String getP... | [
"0.8110812",
"0.80564433",
"0.8055342",
"0.8055342",
"0.80275327",
"0.80275327",
"0.7942452",
"0.79197514",
"0.77550316",
"0.77327245",
"0.7621316",
"0.7603962",
"0.7523409",
"0.7512598",
"0.7471428",
"0.7397141",
"0.73329383",
"0.73153204",
"0.72955394",
"0.72443855",
"0.722... | 0.8085376 | 1 |
Sets the process id. | public void setProcessId(String processId)
{
this.processId = processId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setProcessID(long pid);",
"private void setProcessId(int value) {\n\t\tthis.processId = value;\n\t}",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setProcessId(java.lang.String value) {\n validate(fields()[18], value);\n this.processId = value;\n fiel... | [
"0.8174183",
"0.78946936",
"0.75033253",
"0.73848224",
"0.72139686",
"0.709769",
"0.709769",
"0.709769",
"0.709769",
"0.70657134",
"0.6872884",
"0.68419546",
"0.67925686",
"0.6745262",
"0.6745262",
"0.6631396",
"0.6587978",
"0.6565314",
"0.6533758",
"0.6484513",
"0.6434489",
... | 0.72541344 | 4 |
Gets the process completed in. | public String getProcessCompletedIn()
{
return processCompletedIn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProcessCompleted()\r\n\t{\r\n\t\treturn processCompleted;\r\n\t}",
"public long getCompleted() { return completed; }",
"public int completed() {\n return this.completed;\n }",
"public String getProcessCompleteQueueName()\n {\n return DONE; \n }",
"public ProcessInfo getResul... | [
"0.8060819",
"0.7016713",
"0.6818515",
"0.6720466",
"0.651596",
"0.6506343",
"0.649353",
"0.6415354",
"0.6307271",
"0.6196084",
"0.6190557",
"0.6174266",
"0.61689305",
"0.6166226",
"0.61659986",
"0.60960245",
"0.6092662",
"0.60851634",
"0.60840327",
"0.60755384",
"0.60656244"... | 0.80445385 | 1 |
Sets the process completed in. | public void setProcessCompletedIn(String processCompletedIn)
{
this.processCompletedIn = processCompletedIn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProcessCompleted(String processCompleted)\r\n\t{\r\n\t\tthis.processCompleted = processCompleted;\r\n\t}",
"public void setCompleted(){\r\n\t\tisCompleted = true;\r\n\t}",
"public void completeTask() {\n completed = true;\n }",
"public void setCompleted() {\n this.completed = true... | [
"0.72862196",
"0.72838384",
"0.72202593",
"0.7180305",
"0.7138444",
"0.7103249",
"0.7078802",
"0.70508957",
"0.7038898",
"0.7038898",
"0.7038898",
"0.7021541",
"0.7014289",
"0.7002456",
"0.6991184",
"0.6972238",
"0.69642425",
"0.69642425",
"0.69642425",
"0.69468504",
"0.69468... | 0.6939969 | 22 |
Gets the process completed. | public String getProcessCompleted()
{
return processCompleted;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProcessCompletedIn()\r\n\t{\r\n\t\treturn processCompletedIn;\r\n\t}",
"public int completed() {\n return this.completed;\n }",
"public long getCompleted() { return completed; }",
"public String getProcessCompleteQueueName()\n {\n return DONE; \n }",
"public boolean complete... | [
"0.7353133",
"0.7162469",
"0.71440876",
"0.6864019",
"0.68519783",
"0.66986454",
"0.6521682",
"0.6510661",
"0.6505985",
"0.64898074",
"0.6464349",
"0.64542466",
"0.6423746",
"0.6418532",
"0.64137304",
"0.63876164",
"0.6384612",
"0.637659",
"0.6342709",
"0.63335806",
"0.630958... | 0.8397951 | 0 |
Sets the process completed. | public void setProcessCompleted(String processCompleted)
{
this.processCompleted = processCompleted;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void setComplete() {\n status = Status.COMPLETE;\n }",
"public void completeTask() {\n completed = true;\n }",
"public void setCompleted() {\n this.completed = true;\n }",
"public void complete()\n {\n isComplete = true;\n }",
"public void setComplet... | [
"0.710087",
"0.7080607",
"0.70638925",
"0.70573616",
"0.70430464",
"0.69948906",
"0.68838465",
"0.68838465",
"0.68838465",
"0.6855195",
"0.6815845",
"0.6801338",
"0.6791726",
"0.67836946",
"0.67610204",
"0.6743104",
"0.6706419",
"0.6706419",
"0.6706419",
"0.6658386",
"0.66481... | 0.7371366 | 0 |
Notification that the web application initialization process is starting | @Override
public void contextInitialized(ServletContextEvent sce) {
EntityConnector.createEntityManagerFactory();
if (!logStarted){
logStarted=true;
try {
Log.startLogFile();
} catch (IOException ex) {
System.out.println("Could Not Start the Log Fi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialize() {\n\n getStartUp();\n }",
"@Override\n public void firstApplicationStartup()\n {\n System.out.println(\"firstApplicationStartup\");\n \n }",
"public static void setApplicationInitialized() {\n applicationInitialized = true;\n }",
"protected void a... | [
"0.72432375",
"0.712045",
"0.6979342",
"0.69704455",
"0.69550717",
"0.6954253",
"0.69345665",
"0.69170105",
"0.68040967",
"0.6789555",
"0.6772578",
"0.67518985",
"0.67444676",
"0.6720566",
"0.6675147",
"0.66502315",
"0.66300994",
"0.66281843",
"0.65879136",
"0.65701187",
"0.6... | 0.59167707 | 95 |
Notification that the servlet context is about to be shut down. | @Override
public void contextDestroyed(ServletContextEvent sce) {
Log.closeLogger();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public final void contextDestroyed(final ServletContextEvent sce) {\n if (asDaemon != null) {\n asDaemon.shutdown();\n }\n\n // Unregister MySQL driver\n APIServerDaemonDB.unregisterDriver();\n\n // Notify termination\n System.out.println(\"--- AP... | [
"0.76162034",
"0.7473447",
"0.7465464",
"0.7455834",
"0.743523",
"0.73690474",
"0.7331212",
"0.73162115",
"0.73066854",
"0.72999924",
"0.7299205",
"0.72952133",
"0.7283056",
"0.728131",
"0.72746867",
"0.7270311",
"0.7266045",
"0.7266045",
"0.7266045",
"0.7266045",
"0.7234551"... | 0.66094774 | 57 |
/ PRE: el largo coordX y coordY debe ser como maximo 11 caracteres y como minimo 8 caracteres | @Override
public Retorno registrarEsquina(Double coordX, Double coordY) {
Retorno r = new Retorno();
if (coordenadasValidas(coordX, coordY)) {
r = mapa.registrarEsquina(coordX, coordY);
}
return r;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makePoint(String x, String y) {\n List<String> decX = putDecimal(x);\n List<String> decY = putDecimal(y);\n\n //for every string value x check if its valid, if it is, find a valid y coordinate\n for (String dx : decX) {\n if (isValid(dx)) {\n for (S... | [
"0.62228847",
"0.60773087",
"0.6015845",
"0.5993575",
"0.5974772",
"0.58977705",
"0.58933645",
"0.5846944",
"0.58422494",
"0.5808462",
"0.57720697",
"0.5762542",
"0.5751066",
"0.5749546",
"0.5714873",
"0.57020557",
"0.5698542",
"0.5672022",
"0.5644497",
"0.5641771",
"0.564172... | 0.0 | -1 |
TODO reemplazar por su implementacion | @Override
public Retorno registrarTramo(Double coordXi, Double coordYi, Double coordXf, Double coordYf, int metros) {
return new Retorno();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void entrenar()... | [
"0.61262137",
"0.6101449",
"0.6078",
"0.6067657",
"0.6026832",
"0.5906028",
"0.590478",
"0.58808863",
"0.5852624",
"0.5848607",
"0.5816028",
"0.58063036",
"0.58063036",
"0.579703",
"0.578379",
"0.5743513",
"0.5740944",
"0.57390296",
"0.57261133",
"0.5652682",
"0.5646929",
"... | 0.0 | -1 |
TODO reemplazar por su implementacion | @Override
public Retorno eliminarEsquina(Double coordX, Double coordY) {
return new Retorno();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void entrenar()... | [
"0.61262137",
"0.6101449",
"0.6078",
"0.6067657",
"0.6026832",
"0.5906028",
"0.590478",
"0.58808863",
"0.5852624",
"0.5848607",
"0.5816028",
"0.58063036",
"0.58063036",
"0.579703",
"0.578379",
"0.5743513",
"0.5740944",
"0.57390296",
"0.57261133",
"0.5652682",
"0.5646929",
"... | 0.0 | -1 |
TODO reemplazar por su implementacion | @Override
public Retorno eliminarTramo(Double coordXi, Double coordYi, Double coordXf, Double coordYf) {
return new Retorno();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void entrenar()... | [
"0.61262137",
"0.6101449",
"0.6078",
"0.6067657",
"0.6026832",
"0.5906028",
"0.590478",
"0.58808863",
"0.5852624",
"0.5848607",
"0.5816028",
"0.58063036",
"0.58063036",
"0.579703",
"0.578379",
"0.5743513",
"0.5740944",
"0.57390296",
"0.57261133",
"0.5652682",
"0.5646929",
"... | 0.0 | -1 |
TODO reemplazar por su implementacion | @Override
public Retorno movilMasCercano(Double coordX, Double coordY) {
return new Retorno();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void entrenar()... | [
"0.61262137",
"0.6101449",
"0.6078",
"0.6067657",
"0.6026832",
"0.5906028",
"0.590478",
"0.58808863",
"0.5852624",
"0.5848607",
"0.5816028",
"0.58063036",
"0.58063036",
"0.579703",
"0.578379",
"0.5743513",
"0.5740944",
"0.57390296",
"0.57261133",
"0.5652682",
"0.5646929",
"... | 0.0 | -1 |
TODO reemplazar por su implementacion | @Override
public Retorno verMovilesEnRadio(Double coordX, Double coordY, int radio) {
return new Retorno();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void entrenar()... | [
"0.61262137",
"0.6101449",
"0.6078",
"0.6067657",
"0.6026832",
"0.5906028",
"0.590478",
"0.58808863",
"0.5852624",
"0.5848607",
"0.5816028",
"0.58063036",
"0.58063036",
"0.579703",
"0.578379",
"0.5743513",
"0.5740944",
"0.57390296",
"0.57261133",
"0.5652682",
"0.5646929",
"... | 0.0 | -1 |
TODO filtrar mobiles en mapa por moviles disponibles(verde), deshabilitados(rojo), asignados(amarillo) | @Override
public Retorno verMapa() {
Retorno r = new Retorno();
this.mapa.levantarMapaEnBrowser(abb);
r.resultado = Retorno.Resultado.OK;
return r;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tHashMap<Integer, Movil> moviles = new HashMap<Integer, Movil>();\r\n\t\t\r\n\t\t/*\r\n\t\t//Utilizando \"var\" como en C#\r\n\t\tvar movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tvar movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tvar movilPedro = new Movi... | [
"0.55845475",
"0.5527104",
"0.54827225",
"0.5326581",
"0.52134573",
"0.52122825",
"0.51887906",
"0.5183326",
"0.5120956",
"0.51206815",
"0.50760365",
"0.5075467",
"0.5070761",
"0.5046888",
"0.5008615",
"0.4968669",
"0.49618438",
"0.4953448",
"0.49453345",
"0.49443862",
"0.493... | 0.0 | -1 |
This method populates the emissionMapTemp and transMapTemp instance variables from the selected files, taking in two corresponding sentences at a time (one is the words, one is the word types). | public void updateFrequency(String lineWord, String lineType) {
String oldWordType = "start";
if (lineType != null && lineWord != null) {
String[] wordTypes = lineType.split(" ");
String[] words = lineWord.split(" ");
int i = 0;
for (String currentWordType: wordTypes) {
//if not at first wo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }",
"public void updateFinalMaps() {\r\n... | [
"0.64199215",
"0.62550163",
"0.5951908",
"0.5804142",
"0.5707665",
"0.5705344",
"0.5660863",
"0.5591756",
"0.5580981",
"0.55637634",
"0.5491684",
"0.5473026",
"0.54524785",
"0.54160166",
"0.5415147",
"0.53789",
"0.5330022",
"0.5322069",
"0.53152174",
"0.5311312",
"0.5255637",... | 0.0 | -1 |
This method is called after the entire file has been read, and converts each value in the emissionMapTemp and transMapTemp maps into log probabilities and then stores the result into the transMap and emissionMap instance variables. | public void updateFinalMaps() {
//prints out probMap for each tag ID and makes new map with ln(frequency/denominator) for each
//wordType in transMapTemp
TreeMap<String, TreeMap<String, Float>> tagIDsFinal = new TreeMap<String, TreeMap<String, Float>>();
for (String key: this.transMapTemp.keySet()) {
Pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static HashMap<String, HashMap<String, Double>> fileToTrans(String pathName) throws IOException{\n BufferedReader input = null;\n HashMap<String, HashMap<String, Double>> transitions = new HashMap<String, HashMap<String, Double>>();\n\n try{\n //Read in file of parts of speech\n input = n... | [
"0.5732389",
"0.55223423",
"0.53442407",
"0.52567023",
"0.52518994",
"0.5246811",
"0.51889586",
"0.5131737",
"0.5129658",
"0.51203585",
"0.51170504",
"0.50957566",
"0.5001598",
"0.4965789",
"0.4964033",
"0.49605882",
"0.49152616",
"0.48850963",
"0.48710614",
"0.48532397",
"0.... | 0.70911723 | 0 |
This method updates and normalizes the probabilities for each possible emission and transition. | public void updateProbabilities(TreeMap<String, ProbMap> tagIDs, String oldWordType, String currentWord) {
//if this is first time we are seeing the old word type, add it to the tagID Map
if (!tagIDs.containsKey(oldWordType)) {
tagIDs.put(oldWordType, new ProbMap());
}
//if tagIDs probMap for oldWord ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void normalize() {\r\n\t\tfor (int i = 0; i<no_goods; i++) {\t\t\t\r\n\t\t\tfor (IntegerArray r : prob[i].keySet()) {\t\t\t\t\r\n\t\t\t\tdouble[] p = prob[i].get(r);\r\n\t\t\t\tint s = sum[i].get(r);\r\n\t\t\t\t\r\n\t\t\t\tfor (int j = 0; j<p.length; j++)\r\n\t\t\t\t\tp[j] /= s;\r\n\t\t\t}\r\n\r\n\t\t\t// c... | [
"0.6576628",
"0.6380134",
"0.63606834",
"0.6315548",
"0.6163673",
"0.61413115",
"0.61239654",
"0.59332484",
"0.5853657",
"0.5820388",
"0.5792541",
"0.5658616",
"0.5644005",
"0.556832",
"0.55664456",
"0.55301774",
"0.54954517",
"0.5466157",
"0.54329103",
"0.53862655",
"0.53813... | 0.0 | -1 |
This method uses the Viterbi algorithm to predict the most likely parts of speech for the inputed sentence. It returns an ArrayList of Strings that each word's corresponding part of speech. | public ArrayList<String> predict(String sentence){
//Splits the String and creates the necessary maps
String words[] = sentence.split(" ");
System.out.println("SENTENCE " + sentence + " LENGTH " + words.length);
TreeMap<String, Float> prevscores = new TreeMap<String, Float>();
ArrayList<TreeMap<String, S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> predict(List<String> sentences) {\n List<String> predictions = new ArrayList<>();\r\n for (String sentence : sentences) {\r\n predictions.add(predict(sentence));\r\n }\r\n return predictions;\r\n }",
"public List<String> getRelatedWords(String word) t... | [
"0.6204912",
"0.605825",
"0.60402906",
"0.6002551",
"0.599409",
"0.58956003",
"0.5788479",
"0.5717584",
"0.5713634",
"0.5708833",
"0.56988144",
"0.56585336",
"0.5658236",
"0.56273794",
"0.5618076",
"0.56022614",
"0.5594436",
"0.5540778",
"0.55385524",
"0.553272",
"0.55275285"... | 0.7019024 | 0 |
This method is a file chooser that returns the path to the selected file | public static String setFilePath() {
JFileChooser fc = new JFileChooser("."); // start at current directory
int returnVal = fc.showOpenDialog(null);
if(returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
String pathName = file.getAbsolutePath();
return pathName;
}
el... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSelectedFilePath(){\n return fileChooser.getSelectedFile().getAbsolutePath();\n }",
"public String getFileChosen() \n {\n return fileName.getText();\n }",
"private String getSelectedFile() {\r\n\t\tString file = \"\";\r\n\t\tIFile selectedFile = fileResource.getSelectedIFile();\... | [
"0.831586",
"0.7814486",
"0.7763804",
"0.75956434",
"0.75760746",
"0.7531088",
"0.75000924",
"0.74346036",
"0.7433406",
"0.73256433",
"0.72982025",
"0.726373",
"0.71933794",
"0.7190177",
"0.71822286",
"0.71711797",
"0.71490026",
"0.713317",
"0.7122509",
"0.7090097",
"0.708813... | 0.73809344 | 9 |
This is a crossvalidation method which allows the user to select how many partitions into which they would like to divide the data. It then prints to the console the percent accuracy of the algorithmic predictions. | public float crossValidation(Integer n) {
System.out.println("Choose tags file...");
String typeFileName = setFilePath();
System.out.println("Choose words file...");
String sentenceFile = setFilePath();
BufferedReader inputType = null;
BufferedReader inputWord = null;
try {
inputType = new ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doValidation(int currentRound)\n {\n getData(currentRound);\n// System.out.println(\"training unterminated ones\");\n kMeans.setItems(trainingData.get(0));\n kMeans.k=k1;\n kMeans.init();\n List<Cluster> unterminatedClusters=kMeans.doCluster();\n for (i... | [
"0.6583196",
"0.6442161",
"0.6422108",
"0.63288414",
"0.6175834",
"0.6093979",
"0.60061926",
"0.6005769",
"0.5907021",
"0.5883354",
"0.5876558",
"0.5812143",
"0.57750815",
"0.5749301",
"0.5743816",
"0.5712676",
"0.5688861",
"0.56881",
"0.5679193",
"0.55533797",
"0.55060756",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void setDebug(boolean isDebug) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void requestHandle(IPlayer player, IMessage message) {
} | {
"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 |
Created by Gilson Maciel on 06/08/2015. | @PerActivity
@Component(dependencies = ApplicationComponent.class,
modules = {
HomePresenterModule.class
})
public interface HomePresenterComponent {
void inject(HomeFragment fragment);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Ov... | [
"0.5739653",
"0.57353693",
"0.5662932",
"0.5662632",
"0.5638406",
"0.5584623",
"0.5569366",
"0.5563628",
"0.55341953",
"0.5530631",
"0.55191904",
"0.55191904",
"0.55187684",
"0.54821855",
"0.5420265",
"0.5385848",
"0.53679365",
"0.53676975",
"0.53651404",
"0.53594786",
"0.535... | 0.0 | -1 |
Creates new form update_and_search_vendor | public update_and_search_vendor() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String updateVendor(Vendor v) {\n\t\treturn dao.updateVendorDetails(v);\r\n\t}",
"public void setVendor(String vendor) {\n this.vendor = vendor;\n }",
"public void setVendor(String vendor) {\n this.vendor = vendor;\n }",
"public void setVendor(String vendor) {\n ... | [
"0.61194754",
"0.5624712",
"0.5624712",
"0.5624712",
"0.5534199",
"0.55158377",
"0.53577965",
"0.52853435",
"0.51931244",
"0.51922",
"0.5088789",
"0.50874895",
"0.5065074",
"0.5055302",
"0.50124097",
"0.49997407",
"0.49843132",
"0.49736944",
"0.49736944",
"0.49273902",
"0.488... | 0.76910824 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
t2 = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
t1 = new javax.swing.JTextField();
jButton5 = new javax... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73197734",
"0.72914416",
"0.72914416",
"0.72914416",
"0.72862023",
"0.72487676",
"0.7213741",
"0.7207628",
"0.7196503",
"0.7190263",
"0.71850693",
"0.71594703",
"0.7147939",
"0.7093137",
"0.70808756",
"0.70566356",
"0.6987119",
"0.69778043",
"0.6955563",
"0.6953879",
"0.69... | 0.0 | -1 |
Creates a new WeblogicMojoUtilities object. | private WeblogicMojoUtilities()
{
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private PluginUtils() {\n\t\t//\t\tthrow new IllegalAccessError(\"Don't instantiate me. I'm a utility class!\");\n\t}",
"private WolUtil() {\n }",
"private WebStringUtils() {}",
"private void createFrameworkManipulator() {\n \t\tFrameworkAdmin admin = getFrameworkAdmin();\n \t\tif (admin == null)\n \t\t\tth... | [
"0.55014795",
"0.5484692",
"0.5481469",
"0.53934264",
"0.5293179",
"0.5250555",
"0.5241112",
"0.5224842",
"0.52095234",
"0.51948357",
"0.51376724",
"0.5117155",
"0.5115059",
"0.5115059",
"0.5115059",
"0.5115059",
"0.5114883",
"0.5110644",
"0.51000303",
"0.5054008",
"0.5036608... | 0.79330754 | 0 |
Unsets the weblogic protocol handlers to avoid wagon https issues | public static void unsetWeblogicProtocolHandler()
{
if ( "weblogic.utils".equals(System.getProperty("java.protocol.handler.pkgs") ) )
{
System.clearProperty( "java.protocol.handler.pkgs" );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unsetProtocol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(PROTOCOL$0);\n }\n }",
"void clearHandlers();",
"public void resetHandlers() {\r\n atRoot = true;\r\n path = \"/\";\r\n pathSta... | [
"0.6743113",
"0.5953354",
"0.5722757",
"0.5585405",
"0.5580542",
"0.55767524",
"0.55560374",
"0.5550134",
"0.55498993",
"0.5529214",
"0.54854923",
"0.5448224",
"0.5429338",
"0.54016024",
"0.5370646",
"0.5358173",
"0.53521264",
"0.53396356",
"0.5338682",
"0.5336416",
"0.532296... | 0.8370609 | 0 |
This method will contstruct the Admin URL to the given server. | public static String getAdminUrl( final String inProtocol, final String inServerName, final String inServerPort )
{
StringBuffer buffer = new StringBuffer();
buffer.append( inProtocol ).append( "://" );
buffer.append( inServerName );
buffer.append( ":" ).append( inServerPort );
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getServerUrl() {\r\n\t\treturn server;\r\n\t}",
"String getServerUrl();",
"public void setAdminURL(URI adminURL) {\n this.adminURL = adminURL;\n }",
"public String getServerUrl() {\n\t return Config.SERVER_URL;\n }",
"public String getZookeeperAdminUrl() {\n return \"http://\" + z... | [
"0.6887684",
"0.6754783",
"0.6646276",
"0.6552867",
"0.64385474",
"0.6430668",
"0.63626766",
"0.6255431",
"0.6241012",
"0.6180563",
"0.61354536",
"0.6126945",
"0.6120242",
"0.6099245",
"0.60980016",
"0.6090935",
"0.5921342",
"0.5804926",
"0.57984334",
"0.5794376",
"0.57571775... | 0.64536023 | 4 |
This method will make sure there is a type appended to the file name and if it is the appropriate type for the project packaging. If the project packaging is ear the artifact must end in .ear. If the project packaging is war then the artifact must end in .war. If the project packaging is ejb then the artifact must end ... | public static String updateArtifactName( final String inName, final String inProjectPackaging )
{
String newName = inName;
// If project type is ear then artifact name must end in .ear
if ( inProjectPackaging.equalsIgnoreCase( "ear" ) )
{
if ( !inName.endsWith( ".ear" ) )... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Check\n \tpublic void checkModuleNameMatchesFileName(ModType modtype) {\n \t\tString idealName = modtype.eResource().getURI().trimFileExtension().lastSegment();\n \t\tif (!modtype.getName().getS().equals(idealName) ) {\n \t\t\tString msg = String.format(\"Module name \\\"%s\\\" differs from file name \\\"%s\\\"\... | [
"0.5788147",
"0.5641943",
"0.54623306",
"0.5258896",
"0.5189698",
"0.5144172",
"0.51291806",
"0.5068165",
"0.50517553",
"0.5039754",
"0.50205714",
"0.49940008",
"0.494907",
"0.49348304",
"0.4905536",
"0.48908818",
"0.4883972",
"0.4874669",
"0.4872536",
"0.4866622",
"0.4866346... | 0.60690624 | 0 |
This method will get the dependencies from the pom and construct a classpath string to be used to run a mojo where a classpath is required. | public static String getDependencies( final Set inArtifacts )
{
if ( inArtifacts == null || inArtifacts.isEmpty() )
{
return "";
}
// Loop over all the artifacts and create a classpath string.
Iterator iter = inArtifacts.iterator();
StringBuffer buffer =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ClassLoader makeClassLoader() throws MojoExecutionException {\n final List<URL> urls = new ArrayList<URL>();\n try {\n for (String cp: project.getRuntimeClasspathElements()) {\n urls.add(new File(cp).toURI().toURL());\n }\n } catch (Dependency... | [
"0.5754464",
"0.5279999",
"0.5209676",
"0.51966554",
"0.51369286",
"0.51016533",
"0.50679505",
"0.50615567",
"0.50220495",
"0.49898273",
"0.49110362",
"0.4898395",
"0.48209417",
"0.4749212",
"0.47363847",
"0.472018",
"0.47091243",
"0.47046068",
"0.4696638",
"0.46718824",
"0.4... | 0.44690198 | 28 |
Returns the fully qualified path to an ear file int the artifact list. | public static File getEarFileName( final Set inArtifacts )
{
if ( inArtifacts == null || inArtifacts.isEmpty() )
{
throw new IllegalArgumentException( "EAR not found in artifact list." );
}
final Iterator iter = inArtifacts.iterator();
while ( iter.hasNext() )
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static File getEjbJarFileName( final Set inArtifacts )\n {\n if ( inArtifacts == null || inArtifacts.isEmpty() )\n {\n throw new IllegalArgumentException( \"EJB jar not found in artifact list.\" );\n }\n\n final Iterator iter = inArtifacts.iterator();\n while... | [
"0.62297684",
"0.58536094",
"0.57751745",
"0.5775066",
"0.5771678",
"0.5769019",
"0.5726163",
"0.5685202",
"0.5670272",
"0.5656283",
"0.5589651",
"0.55872357",
"0.5574761",
"0.5553041",
"0.5525258",
"0.55248106",
"0.550871",
"0.5472406",
"0.54612994",
"0.5460296",
"0.5455651"... | 0.7115634 | 0 |
Returns the fully qualified path to a war file in the artifact list. | public static File getWarFileName( final Set inArtifacts )
{
if ( inArtifacts == null || inArtifacts.isEmpty() )
{
throw new IllegalArgumentException( "WAR not found in artifact list." );
}
final Iterator iter = inArtifacts.iterator();
while ( iter.hasNext() )
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static File getWarFileName( final Set inArtifacts, String fileName )\n {\n if ( inArtifacts == null || inArtifacts.isEmpty() )\n {\n throw new IllegalArgumentException( \"WAR not found in artifact list.\" );\n }\n\n final Iterator iter = inArtifacts.iterator();\n ... | [
"0.68211424",
"0.5975506",
"0.5703938",
"0.5645193",
"0.5485707",
"0.5401324",
"0.5363959",
"0.5333915",
"0.53174865",
"0.5286648",
"0.52645546",
"0.52630293",
"0.51925117",
"0.519202",
"0.51705444",
"0.51271355",
"0.5126092",
"0.5124592",
"0.51053137",
"0.51032245",
"0.50720... | 0.70370054 | 0 |
Returns the fully qualified path to an war file in the artifact list. | public static File getWarFileName( final Set inArtifacts, String fileName )
{
if ( inArtifacts == null || inArtifacts.isEmpty() )
{
throw new IllegalArgumentException( "WAR not found in artifact list." );
}
final Iterator iter = inArtifacts.iterator();
while ( it... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static File getWarFileName( final Set inArtifacts )\n {\n if ( inArtifacts == null || inArtifacts.isEmpty() )\n {\n throw new IllegalArgumentException( \"WAR not found in artifact list.\" );\n }\n\n final Iterator iter = inArtifacts.iterator();\n while ( iter... | [
"0.70409346",
"0.5937388",
"0.57307494",
"0.56561893",
"0.5486543",
"0.5379494",
"0.5333598",
"0.53193015",
"0.5309203",
"0.5295814",
"0.52581334",
"0.52296954",
"0.5215888",
"0.5200933",
"0.51591337",
"0.51268995",
"0.5103378",
"0.50937575",
"0.5092371",
"0.508973",
"0.50870... | 0.6797405 | 1 |
Returns the ejb file type from the artifact list | public static File getEjbJarFileName( final Set inArtifacts )
{
if ( inArtifacts == null || inArtifacts.isEmpty() )
{
throw new IllegalArgumentException( "EJB jar not found in artifact list." );
}
final Iterator iter = inArtifacts.iterator();
while ( iter.hasNext... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArtifactType getArtifactType() {\r\n \t\treturn(ArtifactType.ServiceImplementation);\r\n \t}",
"public static final TypeDescriptor<?> artifactType() {\n return TypeRegistry.DEFAULT.getType(IArtifact.class);\n }",
"private String getTypeFromExtension()\n {\n String filename = getFileN... | [
"0.66673374",
"0.64568",
"0.5979788",
"0.57681465",
"0.56959116",
"0.5657586",
"0.56222063",
"0.5614604",
"0.5558344",
"0.5378567",
"0.5348913",
"0.5334348",
"0.53183913",
"0.5289429",
"0.52835",
"0.52708536",
"0.526072",
"0.52377987",
"0.5235465",
"0.523007",
"0.52252513",
... | 0.653793 | 1 |
This method will get the PLUGIN dependencies from the pom and construct a classpath string to be used to run a mojo where a classpath is required. The plugin dependencies are placed after the project dependencies in the classpath. | public static String getDependencies( final Set artifacts, final List pluginArtifacts )
{
if ( ( artifacts == null || artifacts.isEmpty() ) &&
( pluginArtifacts == null || pluginArtifacts.size() == 0 ) )
{
return "";
}
// Loop over all the artifacts and creat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ClassLoader makeClassLoader() throws MojoExecutionException {\n final List<URL> urls = new ArrayList<URL>();\n try {\n for (String cp: project.getRuntimeClasspathElements()) {\n urls.add(new File(cp).toURI().toURL());\n }\n } catch (Dependency... | [
"0.58442867",
"0.5098755",
"0.50987405",
"0.5010966",
"0.4917777",
"0.48815724",
"0.4772927",
"0.46852857",
"0.4595865",
"0.4595521",
"0.45950073",
"0.4590709",
"0.45863727",
"0.4582695",
"0.45702317",
"0.4567472",
"0.4566405",
"0.4553128",
"0.45509058",
"0.45464677",
"0.4546... | 0.51599294 | 1 |
/ access modifiers changed from: protected | public int zzB() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ renamed from: zzFG | public zzse clone() throws CloneNotSupportedException {
return (zzse) super.clone();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private final zzgy zzgb() {\n }",
"void mo28307a(zzgd zzgd);",
"private void kk12() {\n\n\t}",
"void mo57277b();",
"void mo57278c();",
"void mo21076g();",
"static void feladat9() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"void mo72113b();",
"static void feladat4... | [
"0.66968644",
"0.63986534",
"0.6391062",
"0.6363564",
"0.6296372",
"0.6255059",
"0.6209222",
"0.620531",
"0.6201615",
"0.6179147",
"0.61422694",
"0.61050045",
"0.60893",
"0.60754555",
"0.60619056",
"0.60423875",
"0.6042299",
"0.60398066",
"0.603103",
"0.60114145",
"0.60077757... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_events, container, false);
ButterKnife.inject(this, view);
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
Customer() sets the default variables for this class. | public Customer() {
this.name = "";
this.parcelID = "";
this.seqNo = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Customer() // default constructor to initialize data\r\n\t{\r\n\t\tthis.address = null;\r\n\t\tthis.name = null;\r\n\t\tthis.phoneNumber = null;\r\n\t\t// intializes the data\r\n\t}",
"public Customer () {\n\t\tsuper();\n\t}",
"public Customer() {\n\t\tsuper();\n\t}",
"public Customer() {\n nam... | [
"0.7638786",
"0.75593364",
"0.75542426",
"0.7545134",
"0.7435512",
"0.72643685",
"0.7222049",
"0.7213423",
"0.70940447",
"0.7070467",
"0.70281506",
"0.70281506",
"0.69196934",
"0.6900672",
"0.6821216",
"0.678923",
"0.6762347",
"0.67150223",
"0.6698915",
"0.6672763",
"0.667276... | 0.747475 | 4 |
Parcel(String s) receives a string containing one line read from the parcel.txt file and sets the variables according to the provided data | public Customer(String s) {
String [] sr = s.split(",");
try
{
if(sr.length == 3)
{
try
{
this.seqNo = Integer.parseInt(sr[0].trim());
this.name = sr[1].trim();
this.parcelID = sr[2].trim();
}
catch(NumberFormatException e)
{
System.out.println("Error in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void readFromParcel(Parcel in) \r\n\t{\n\t\tthis.id \t\t\t= in.readInt();\r\n\t\tthis.desc\t\t\t= in.readString();\r\n\t\tthis.titulo_imagem \t= in.readString();\r\n\t\tthis.titulo_som\t\t= in.readString();\r\n\t\tthis.ext\t\t\t= in.readString();\r\n\t\tthis.tipo\t\t\t= in.readString().charAt(0);\r\n\t\tth... | [
"0.6095012",
"0.5951369",
"0.58270025",
"0.57864475",
"0.55954635",
"0.5583847",
"0.55741864",
"0.55474895",
"0.55315703",
"0.5519998",
"0.55051726",
"0.5490291",
"0.5450582",
"0.5445324",
"0.5417524",
"0.52716315",
"0.5268688",
"0.5263584",
"0.5244778",
"0.52296126",
"0.5220... | 0.5427949 | 14 |
Obtiene el id de un Device | public Long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UUID getDeviceId();",
"Integer getDeviceId();",
"java.lang.String getDeviceId();",
"public String getDeviceid() {\n return deviceid;\n }",
"public String getDevice_id() {\r\n\t\treturn device_id;\r\n\t}",
"public final int getDeviceID() {\n return device.getDeviceID();\n }",
"@Sup... | [
"0.8100777",
"0.8088545",
"0.7970645",
"0.7890361",
"0.78471774",
"0.770232",
"0.7513738",
"0.7504905",
"0.7492405",
"0.74685836",
"0.74685836",
"0.7463273",
"0.745105",
"0.7303936",
"0.7303936",
"0.7284161",
"0.7283877",
"0.72239006",
"0.7221324",
"0.7209847",
"0.72087246",
... | 0.0 | -1 |
Modifica el id de un Device | public void setId(Long id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getDeviceId();",
"UUID getDeviceId();",
"@Override\n public int getDeviceId() {\n return 0;\n }",
"public String getDeviceid() {\n return deviceid;\n }",
"java.lang.String getDeviceId();",
"public String getDevice_id() {\r\n\t\treturn device_id;\r\n\t}",
"public final int getDevi... | [
"0.6788574",
"0.6611354",
"0.65949595",
"0.6535772",
"0.6509842",
"0.64874506",
"0.633505",
"0.6273562",
"0.62723374",
"0.62634367",
"0.62603664",
"0.6228148",
"0.6228148",
"0.6214409",
"0.6160219",
"0.6085349",
"0.60401905",
"0.60356766",
"0.60289365",
"0.60265225",
"0.60202... | 0.0 | -1 |
Obtiene el nombre de un Device | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName() {\n\t\treturn \"Device\";\r\n\t}",
"String getDeviceName();",
"public String getDeviceName() {\r\n return name_;\r\n }",
"public String getName() {\n\t return this.device.getName() + \".\" + this.getType() + \".\"\n\t + this.getId();\n\t}",
"public String dev... | [
"0.7957136",
"0.7672281",
"0.76672626",
"0.7515297",
"0.7492519",
"0.7491404",
"0.7444161",
"0.7382549",
"0.72941124",
"0.7292736",
"0.7281426",
"0.72370535",
"0.72297704",
"0.72297704",
"0.7221127",
"0.721013",
"0.716952",
"0.7058681",
"0.6967126",
"0.6898375",
"0.6852332",
... | 0.0 | -1 |
Modifica el nombre de un Device | public void setName(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDeviceName(String newDeviceName) {\n deviceName = newDeviceName;\n }",
"abstract protected void setDeviceName(String deviceName);",
"public String getName() {\n\t\treturn \"Device\";\r\n\t}",
"String getDeviceName();",
"public String getDeviceName() {\r\n return name_;\r\n ... | [
"0.7424523",
"0.70176566",
"0.6886219",
"0.6814997",
"0.676015",
"0.67133826",
"0.66457814",
"0.65846276",
"0.6568216",
"0.6498399",
"0.64754456",
"0.6385622",
"0.63840663",
"0.6358606",
"0.6356684",
"0.6333523",
"0.6292695",
"0.62875694",
"0.628555",
"0.6246384",
"0.6223105"... | 0.0 | -1 |
Obtiene el numero de un Device | public int getNumber() {
return number;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final int getDeviceNum() {\n return device.getDeviceNum();\n }",
"Integer getDeviceId();",
"public String getDeviceId() {\n //TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);\n String number = Build.SERIAL;\n return number;\n }",
"final int getD... | [
"0.7967008",
"0.74090457",
"0.710579",
"0.71055007",
"0.69341093",
"0.6929208",
"0.6719314",
"0.6719314",
"0.66695744",
"0.6595975",
"0.65809137",
"0.656469",
"0.6544739",
"0.6544169",
"0.6511406",
"0.64857686",
"0.64857686",
"0.6451909",
"0.64404786",
"0.6431945",
"0.6424686... | 0.58199304 | 85 |
Modifica el numero de un Device | public void setNumber(int number) {
this.number = number;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final int getDeviceNum() {\n return device.getDeviceNum();\n }",
"Integer getDeviceId();",
"public void setDevices(Integer devices) {\r\n this.devices = devices;\r\n }",
"@Override\n public void cUSerialNumber(long value) {\n //throw new UnsupportedOperationException(\"Not sup... | [
"0.66931456",
"0.6012363",
"0.5904875",
"0.58186764",
"0.580075",
"0.5791388",
"0.5662541",
"0.5659297",
"0.5648265",
"0.55869806",
"0.55869806",
"0.55611604",
"0.5559572",
"0.553993",
"0.5529924",
"0.55112433",
"0.5496407",
"0.5486053",
"0.5476872",
"0.5465152",
"0.5464224",... | 0.0 | -1 |
Obtiene el estado de un Device | public boolean getState() {
return state;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DeviceState createDeviceState();",
"public Status getDeviceStatus() {\n return mDeviceStatus;\n }",
"public String getDevice() {\r\n return device;\r\n }",
"String getSelectedDevice() {\n return selectedDevice;\n }",
"boolean hasDevice();",
"IDeviceState getDeviceState(UUID ... | [
"0.6633463",
"0.66167235",
"0.61320925",
"0.60121924",
"0.6003421",
"0.58689445",
"0.58646184",
"0.58546764",
"0.58397114",
"0.5823327",
"0.58074796",
"0.57899857",
"0.57880515",
"0.57589746",
"0.57429993",
"0.5716394",
"0.56983685",
"0.5674217",
"0.5659142",
"0.5648892",
"0.... | 0.0 | -1 |
Modifica el estado de un Device | public void setState(boolean state) {
this.state = state;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void deviceUpdated() {\n if (!mIsCreate) {\n mSyncthingService.getApi().editDevice(mDevice, getActivity(), this);\n }\n }",
"@Override\n public void updateDevice() throws RemoteHomeConnectionException, RemoteHomeManagerException {\n String[] statusResponse = m.sendCo... | [
"0.67705834",
"0.6496033",
"0.62853134",
"0.60316867",
"0.59608585",
"0.59526855",
"0.5811566",
"0.57586527",
"0.57496935",
"0.5729748",
"0.572717",
"0.5720896",
"0.57064694",
"0.5699245",
"0.56643695",
"0.5629171",
"0.56136775",
"0.5583969",
"0.5570624",
"0.55330896",
"0.552... | 0.0 | -1 |
This method will print the passed paramteres | public static void println(Exception e) {
System.out.println(e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void print()\r\n\t{\r\n\t\tSystem.out.println(\"Method name: \" + name);\r\n\t\tSystem.out.println(\"Return type: \" + returnType);\r\n\t\tSystem.out.println(\"Modifiers: \" + modifiers);\r\n\r\n\t\tif(exceptions != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Exceptions: \" + exceptions[0]);\r\n\t\t\tfor(int... | [
"0.74310416",
"0.739572",
"0.708591",
"0.69704294",
"0.69704294",
"0.69593316",
"0.69366795",
"0.69102097",
"0.6894244",
"0.68798137",
"0.6815383",
"0.6812913",
"0.6812913",
"0.6812913",
"0.6812913",
"0.6803375",
"0.67437905",
"0.6736651",
"0.67228615",
"0.67022693",
"0.67022... | 0.0 | -1 |
Setting the autowired Hibernate Template passed from Application Context | public void setTemplate(HibernateTemplate template) {
this.template = template;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSessionFactory(SessionFactory sessionFactory) {\n template = new HibernateTemplate(sessionFactory);\n}",
"public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {\n this.hibernateTemplate = hibernateTemplate;\n }",
"HibernateTransactionTemplate() {\n _transactionTe... | [
"0.738842",
"0.70753247",
"0.6959136",
"0.69110256",
"0.69110256",
"0.69110256",
"0.69110256",
"0.6415484",
"0.6412956",
"0.6412956",
"0.6412956",
"0.6412956",
"0.6401928",
"0.635612",
"0.6067651",
"0.5633348",
"0.56082296",
"0.5603509",
"0.55645806",
"0.5509807",
"0.54778266... | 0.644775 | 7 |
To get a Emp Contact detail based on Emp id | @Override
public EmpContactDetail getEmpContactDetailByID(int id) {
return template.get(EmpContactDetail.class, new Integer(id));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET(API_ROUTE + \"/contactos-empleado/{emp_id}\")\n Call<List<Persona>> getContactsByEmployeeId(@Path(\"emp_id\") long emp_id);",
"@Override\n\tpublic EmpContactDetail getEmpContactDetailByID(int id) {\n\t\treturn this.empContactDetailDAO.getEmpContactDetailByID(id);\n\t}",
"@Override\n\tpublic List<EmpCon... | [
"0.7370633",
"0.73617464",
"0.7112212",
"0.700385",
"0.6769692",
"0.63923943",
"0.6324308",
"0.63223326",
"0.6312906",
"0.6148795",
"0.6144448",
"0.6106883",
"0.61027145",
"0.6076603",
"0.60548913",
"0.6037474",
"0.6033345",
"0.6000681",
"0.59848887",
"0.597238",
"0.59487206"... | 0.74979645 | 0 |
To list all the Contact Emp details | @Override
public List<EmpContactDetail> listEmpContactDetails() {
return template.loadAll(EmpContactDetail.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<EmpContactDetail> listEmpContactDetails() {\n\t\treturn this.empContactDetailDAO.listEmpContactDetails();\n\t}",
"public void listEmployees()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tBranchId\\tId\\n\";\n\t\t\n\t\tList<Employee> employees = this.company.getEmployees();... | [
"0.8102768",
"0.69246006",
"0.68933564",
"0.68927646",
"0.6842107",
"0.6717435",
"0.6661641",
"0.665319",
"0.66207963",
"0.6467865",
"0.64301604",
"0.63664454",
"0.6365516",
"0.6357492",
"0.6295616",
"0.6290544",
"0.6269474",
"0.6256315",
"0.62430084",
"0.6224727",
"0.6223777... | 0.8392318 | 0 |
To add a new Emp Contact | @Override
public void addEmpContactDetail(EmpContactDetail empContactDetail) {
template.save(empContactDetail);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addContact() \n\t{\n\t\tSystem.out.printf(\"%n--[ Add Contact ]--%n\");\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.printf(\"%nFirst Name: \");\n\t\tString firstName = s.next();\n\t\tSystem.out.printf(\"%nLast Name: \");\n\t\tString lastName = s.next();\n\t\tSystem.out.printf(\"%nPhone Num... | [
"0.70472145",
"0.68108654",
"0.67827266",
"0.6748408",
"0.6707507",
"0.66647243",
"0.6641227",
"0.6633093",
"0.6572135",
"0.6490846",
"0.64818984",
"0.6477987",
"0.6459046",
"0.6457389",
"0.64090866",
"0.63634896",
"0.6344659",
"0.63423353",
"0.6341715",
"0.6339069",
"0.63390... | 0.71396726 | 0 |
To delete a Empcontact detail based on Emp id | @Override
public void removeEmpContactDetail(int id) {
EmpContactDetail ecd = (EmpContactDetail) template.get(EmpContactDetail.class, new Integer(id));
if (null != ecd) {
template.delete(ecd);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteEmp(int empno) {\n\t\t\n\t}",
"@Override\n\tpublic void removeEmpContactDetail(int id) {\n\t\tthis.empContactDetailDAO.removeEmpContactDetail(id);\n\n\t}",
"public String deleteEmployee(EmployeeDetails employeeDetails);",
"@Override\n\tpublic void deleteEPAData(int empId) {\n\t}",
"@Overr... | [
"0.7259046",
"0.7050925",
"0.7026114",
"0.69346917",
"0.6804077",
"0.6801211",
"0.68001074",
"0.67456293",
"0.6544132",
"0.652546",
"0.6521855",
"0.64972895",
"0.64874667",
"0.6418046",
"0.6389381",
"0.6388948",
"0.6388869",
"0.63872045",
"0.6375122",
"0.63501596",
"0.6339974... | 0.7068982 | 1 |
To update a Emp Contact detail for an existing Emp Contact | @Override
public void updateEmpContactDetail(EmpContactDetail empContactDetail) {
template.update(empContactDetail);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void updateEmpContactDetail(EmpContactDetail empContactDetail) {\n\t\tthis.empContactDetailDAO.updateEmpContactDetail(empContactDetail);\n\t}",
"public String changeContactDetails(final EmployeeAddressDTO employeeAddressDTO) throws ApplicationCustomException;",
"void update(EmployeeDetail d... | [
"0.7277547",
"0.6810508",
"0.6714091",
"0.6627368",
"0.66066766",
"0.6592914",
"0.65926945",
"0.6556336",
"0.6545849",
"0.6514226",
"0.6455828",
"0.6275599",
"0.6195478",
"0.6194638",
"0.6160628",
"0.61246276",
"0.6124377",
"0.6116494",
"0.60841376",
"0.6076241",
"0.60762227"... | 0.74442655 | 0 |
This is the main method. It contains code for error handling and interpret the user's arguments. | public static void main(String[] args) {
//Instantiate a new instance of the Queries class called query
Queries query = new Queries();
//Instantiate empty strings called search, queryTerm, and cache
String search = "";
String queryTerm = "";
String cache = "";
//... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n EquationManipulator manipulator = new EquationManipulator();\n \n if (args.length == 3) {\n // arguments were passed in from the command line\n System.out.println(\"It looks like you passed in some arguments. Let me fetch those f... | [
"0.78305084",
"0.77296567",
"0.7608425",
"0.7521655",
"0.7429026",
"0.72902095",
"0.7267057",
"0.7255815",
"0.7253629",
"0.72095436",
"0.720371",
"0.7196865",
"0.71681154",
"0.71532404",
"0.7069583",
"0.70600057",
"0.7045207",
"0.70375776",
"0.703699",
"0.70351976",
"0.700727... | 0.0 | -1 |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
/* TODO output your page here. You may use following s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_... | [
"0.7004024",
"0.66585696",
"0.66031146",
"0.6510023",
"0.6447109",
"0.64421695",
"0.64405906",
"0.64321136",
"0.6428049",
"0.6424289",
"0.6424289",
"0.6419742",
"0.6419742",
"0.6419742",
"0.6418235",
"0.64143145",
"0.64143145",
"0.6400266",
"0.63939095",
"0.63939095",
"0.6392... | 0.0 | -1 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter pw= response.getWriter();
// pw.println("<h1>" + mess+"</h1>");
String text = "some text";
text = request.getParameter("alldata");
//... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doGet( )\n {\n \n }",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro... | [
"0.7589609",
"0.71665615",
"0.71148175",
"0.705623",
"0.7030174",
"0.70291144",
"0.6995984",
"0.697576",
"0.68883485",
"0.6873811",
"0.6853569",
"0.6843572",
"0.6843572",
"0.6835363",
"0.6835363",
"0.6835363",
"0.68195957",
"0.6817864",
"0.6797789",
"0.67810035",
"0.6761234",... | 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter pw= response.getWriter();
String text = request.getParameter("alldata");
response.setContentType("application/json"); // Set content type... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n ... | [
"0.73289514",
"0.71383566",
"0.7116213",
"0.7105215",
"0.7100045",
"0.70236707",
"0.7016248",
"0.6964149",
"0.6889435",
"0.6784954",
"0.67733276",
"0.67482096",
"0.66677034",
"0.6558593",
"0.65582114",
"0.6525548",
"0.652552",
"0.652552",
"0.652552",
"0.65229493",
"0.6520197"... | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short d... | [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
... | 0.0 | -1 |
char at = 'k'; int mintill = 0; int minisat = 0; int minis=0; | private double[][] makeMSTDouble(GaneshaLakeId[] gla, GaneshaLakeDist[] gla1, GaneshaGaneshaDist[] gla2, int noofganesha, int nooflakes, Ganesha[] ganesha, Lake[] lake, PrintWriter pw) {
double[][] resultPlot = new double[noofganesha+nooflakes+1][5];
int re = 1;
boolean visited[] = new boolean[noofgane... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getAtk();",
"public static void main(String[] args) {\n\t\t Scanner scan = new Scanner (System.in);\n\t\t \n\t\t System.out.println(\"tam isminizi giriniz\");\n\t String tamisim = scan.nextLine();\n\t \n \n System.out.println(\"Yasinizi giriniz\");\n int yas = scan.nextInt();\n System... | [
"0.5892706",
"0.58736295",
"0.5824618",
"0.5741574",
"0.56490254",
"0.5633993",
"0.55908215",
"0.5566586",
"0.55550385",
"0.554951",
"0.55243605",
"0.54704106",
"0.54674864",
"0.54632425",
"0.54590064",
"0.54493386",
"0.54436344",
"0.5440999",
"0.5426918",
"0.54002225",
"0.53... | 0.0 | -1 |
char at = 'k'; int mintill = 0; int minisat = 0; int minis=0; | private double[][] makeWithoutAny(GaneshaLakeId[] gla, GaneshaLakeDist[] gla1, GaneshaGaneshaDist[] gla2, int noofganesha, int nooflakes, Ganesha[] ganesha, Lake[] lake, PrintWriter pw) {
double[][] resultPlot = new double[noofganesha+nooflakes+1][5];
int re = 1;
boolean visited[] = new boolean[noofgan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getAtk();",
"public static void main(String[] args) {\n\t\t Scanner scan = new Scanner (System.in);\n\t\t \n\t\t System.out.println(\"tam isminizi giriniz\");\n\t String tamisim = scan.nextLine();\n\t \n \n System.out.println(\"Yasinizi giriniz\");\n int yas = scan.nextInt();\n System... | [
"0.58929336",
"0.5873349",
"0.582574",
"0.5741803",
"0.564933",
"0.56333005",
"0.55913025",
"0.55666274",
"0.5555027",
"0.5548274",
"0.55252147",
"0.54697037",
"0.54674",
"0.5463876",
"0.54573715",
"0.54492646",
"0.5442437",
"0.5441701",
"0.542819",
"0.5400898",
"0.53942096",... | 0.0 | -1 |
/ The activity that creates an instance of this dialog fragment must implement this interface in order to receive event callbacks. Each method passes the DialogFragment in case the host needs to query it. | public interface TrackPlayerDialogListener {
void onPreviousClick(DialogFragment dialog);
void onPlayPauseClick(DialogFragment dialog);
void onNextClick(DialogFragment dialog);
void onDialogViewCreated(View view);
void onProgressChanged(SeekBar seekBar, int progress, boolean ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnFragmentInteractionListener {\n\n public void openDialog(MotionEvent event);\n\n public void closeDialog();\n\n}",
"public interface DialogFragmentClickListener {\n public void onClick(DialogFragment dialogFragment);\n}",
"@Override\n public void onAttach(Context context) {\n ... | [
"0.7598494",
"0.7218609",
"0.7076603",
"0.6957207",
"0.68691754",
"0.68023705",
"0.6757945",
"0.6672891",
"0.66720295",
"0.66576976",
"0.6634115",
"0.6612126",
"0.6593207",
"0.6547196",
"0.65466565",
"0.65285313",
"0.6525513",
"0.6488911",
"0.64776075",
"0.64560485",
"0.64557... | 0.0 | -1 |
Override the Fragment.onAttach() method to instantiate the listener | @Override
public void onAttach(Activity activity) {
super.onAttach(activity);
// Verify that the host activity implements the callback interface
try {
// Instantiate the listener so we can send events to the host
mListener = (TrackPlayerDialogListener) activity;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic void onAttach(Activity activity) {\n\t\t\tsuper.onAttach(activity);\r\n\t\t\tmCallback=(Fragment_Listener)activity;\r\n\t\t\t\r\n\t\t}",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBu... | [
"0.7678983",
"0.7538587",
"0.7526182",
"0.7513844",
"0.7461138",
"0.74444026",
"0.74415123",
"0.74396265",
"0.7395343",
"0.7381896",
"0.7379693",
"0.72474235",
"0.72467834",
"0.717937",
"0.7156928",
"0.7148006",
"0.7043064",
"0.7037008",
"0.70259285",
"0.69490075",
"0.6944131... | 0.64365757 | 47 |
The system calls this to get the DialogFragment's layout, regardless of whether it's being displayed as a dialog or an embedded fragment. | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
//get a reference to this dialog so that it can be passed to listener callback methods
mDialog = this;
//get fragment arguments to set up the view with
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract int getFragmentLayout();",
"protected abstract int getFragmentLayout();",
"protected abstract int getFragmentLayout();",
"public abstract int getFragmentLayout();",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle... | [
"0.62713253",
"0.62713253",
"0.62713253",
"0.61956906",
"0.6169787",
"0.6157008",
"0.61369586",
"0.60786545",
"0.6039579",
"0.5993138",
"0.5948618",
"0.5928539",
"0.59140384",
"0.5905838",
"0.5896048",
"0.5880192",
"0.5878724",
"0.5864349",
"0.5824652",
"0.5777124",
"0.577234... | 0.0 | -1 |
The system calls this only when creating the layout in a dialog. | @Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
// The only reason you might override this method when using onCreateView() is
// to modify any dialog characteristics. For example, the dialog includes a
// title by default, but your custom layout might not need it. So her... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"@Override\n public void layout() {\n // TODO: not implemented\n }",
"protected void createDialogSize ()\n {\n }",
"private void layout() {\n\n\n _abortButton= makeAbortButton();\n ... | [
"0.6870186",
"0.6779498",
"0.6743565",
"0.6649771",
"0.6595942",
"0.65761936",
"0.6561887",
"0.6551714",
"0.6535678",
"0.64691406",
"0.6387663",
"0.6387387",
"0.63664204",
"0.63547313",
"0.634894",
"0.63424534",
"0.6322212",
"0.6287714",
"0.6252628",
"0.6247687",
"0.6238804",... | 0.0 | -1 |
/ TN 5250 sessions | public static ITn5250Session findTn5250Session(final WebSocketSession session, final Tn5250ScreenRequest data) {
final Map<String, ITn5250Session> map = getTn5250Sessions(session);
return map.get(data.getDisplayID());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getActiveSessions();",
"public abstract int getNumSessions();",
"public long getSessionCounter();",
"public int getActiveSessions();",
"private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}",
"int getSessionCount();",
"RunningTasks getActiveHarvestingSessions() throws RepoxException;",
... | [
"0.6629472",
"0.65841633",
"0.6572673",
"0.65371805",
"0.64005",
"0.62207973",
"0.61894786",
"0.612571",
"0.6085266",
"0.6034893",
"0.59439003",
"0.5940794",
"0.59391",
"0.5889903",
"0.5885982",
"0.5843122",
"0.58190656",
"0.5786811",
"0.577543",
"0.57498825",
"0.57283795",
... | 0.0 | -1 |
/ TN 3812 sessions | public static ITn3812Context findTn3812Session(final WebSocketSession session, final String name) {
final Map<String, ITn3812Context> map = getTn3812Sessions(session);
return map.get(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getActiveSessions();",
"public long getSessionCounter();",
"public static short getSession(){\n\t\treturn (short)++sessao;\n\t}",
"com.weizhu.proto.WeizhuProtos.Session getSession();",
"private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}",
"public int getActiveSessions();",
"public abst... | [
"0.6643699",
"0.6558465",
"0.6536923",
"0.64826316",
"0.6482508",
"0.6453398",
"0.6444796",
"0.63701075",
"0.62509644",
"0.62276894",
"0.6175882",
"0.61255395",
"0.61255395",
"0.6123394",
"0.6120583",
"0.60865086",
"0.6074924",
"0.60730606",
"0.6068566",
"0.6063978",
"0.60465... | 0.0 | -1 |
Given: a order request that won't match with anything (because market is empty) | @Test
public void enterOrderWithUnmatchedActiveOrder() throws Exception {
LimitOrderRequest limitOrderRequest = getLimitOrderRequest(Direction.BUY);
LimitOrder referenceLimitOrder = getLimitOrder();
String orderRequestJsonString = jsonMapper.writeValueAsString(limitOrderRequest);
//When: the order is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TradeHistoryReq market(String market) {\n this.market = market;\n return this;\n }",
"@Test\n\tpublic void testOrderWithoutShoppingCart() {\n\t\ttry {\n\t\t\tassertEquals(orderService.order(order), null);\n\t\t} catch (OrderException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t... | [
"0.5771097",
"0.56576294",
"0.55283326",
"0.5526109",
"0.5518371",
"0.54348737",
"0.54147255",
"0.53615624",
"0.53325695",
"0.52475834",
"0.52190465",
"0.5215989",
"0.51656604",
"0.51626444",
"0.5133653",
"0.51195407",
"0.51112145",
"0.51052463",
"0.51027334",
"0.50821054",
"... | 0.5746496 | 1 |
Given: two order requests that will fully match each other | @Test
public void enterOrderWithMatchedActiveOrderToCreateTrade() throws Exception {
List<LimitOrderRequest> orderRequests = new ArrayList<>();
orderRequests.add(getLimitOrderRequest(Direction.BUY));
orderRequests.add(getLimitOrderRequest(Direction.SELL));
Trade tradeReference = Trade.builder()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void matchOrders() throws IOException, MissingEntityException, InvalidEntityException {\n List<Order> buyOrders = getOrdersBySideAndStatus(true, ACTIVE);\n List<Order> sellOrders = getOrdersBySideAndStatus(false, ACTIVE);\n for (Order buyOrder : buyOrders) {\n ... | [
"0.5897281",
"0.58182657",
"0.5803511",
"0.5759828",
"0.5734682",
"0.5730469",
"0.5608106",
"0.55540943",
"0.55224806",
"0.54430103",
"0.5420481",
"0.54058236",
"0.5355025",
"0.5335518",
"0.53214216",
"0.5260433",
"0.52579576",
"0.5251097",
"0.5222557",
"0.51894337",
"0.51826... | 0.5292745 | 15 |
Returns the parameter type | public ParameterType getType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getParameterType() { return parameterType; }",
"public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }",
"public String getParamType() {\n return paramType;\n }",
"public String getParamType() {\n return paramType;\n }",
"int getParamType(S... | [
"0.8441452",
"0.80371493",
"0.77001435",
"0.77001435",
"0.75304043",
"0.7369274",
"0.7148292",
"0.6931482",
"0.6793942",
"0.67825055",
"0.6633532",
"0.66332775",
"0.66298056",
"0.66196316",
"0.65610296",
"0.6560963",
"0.6521654",
"0.650673",
"0.65028024",
"0.6489094",
"0.6489... | 0.8964635 | 0 |
Returns this parameter's name. The name must be unique within one ParameterSet. | public String getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getParameterName()\n {\n checkPrecondition(hasParameterName(), \"no parameter name\");\n return this.paramName;\n }",
"public String getParameterName( )\n {\n return _strParameterName;\n }",
"public String getParameterName() {\n return this.parameterName;\n... | [
"0.752844",
"0.68205607",
"0.6804812",
"0.67795897",
"0.6777581",
"0.67028505",
"0.6653352",
"0.66512716",
"0.66154623",
"0.6580927",
"0.6579807",
"0.6533015",
"0.6509432",
"0.64916646",
"0.6482084",
"0.64803433",
"0.64576274",
"0.6438864",
"0.6382192",
"0.6355023",
"0.633716... | 0.0 | -1 |
Creates new instance of Cell. | public Cell() {
this.alive = false; // Initially dead
this.age = 0; // Initially age of 0
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cell(){}",
"public Cell()\n\t{\n\t}",
"public NotebookCell() {}",
"@Override\n\tpublic Cell createCell()\n\t{\n\t\treturn derivedColumn.createCell();\n\t}",
"MemberCell createMemberCell();",
"public Cell ()\n {\n cellStatus = false;\n xCoordinate = 0;\n yCoordinate = 0;\n ... | [
"0.8148088",
"0.7474055",
"0.7383424",
"0.7202012",
"0.6947779",
"0.6882466",
"0.68609166",
"0.6847595",
"0.6838269",
"0.6778066",
"0.6751761",
"0.67233557",
"0.6690646",
"0.65488017",
"0.6515062",
"0.649925",
"0.64839673",
"0.64470536",
"0.64309806",
"0.64097846",
"0.6370733... | 0.6652628 | 13 |
Sets this Cell's alive status to the opposite of its current | public void setAlive() {
if (this.alive == true) {
this.alive = false;
} else {
this.alive = true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void toggleAlive() {\n\t\tthis.isAlive = !isAlive;\n\t}",
"void dead() { this.alive = false; }",
"public void turnOff() {\n update(0,0,0);\n this.status = false;\n }",
"public void changeStatus(){\n Status = !Status;\n\n }",
"public synchronized void switchCell()\n {\n ... | [
"0.6656837",
"0.64100325",
"0.6381748",
"0.6320198",
"0.6266454",
"0.6248295",
"0.62020814",
"0.6109143",
"0.6002625",
"0.5952967",
"0.5952698",
"0.59408194",
"0.59360534",
"0.5857576",
"0.58248615",
"0.57728136",
"0.5770449",
"0.5757333",
"0.5757333",
"0.57324374",
"0.570946... | 0.6214884 | 6 |
Sets this Cell's alive status to the given boolean value. | public void setAlive(boolean alive) {
this.alive = alive;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setAlive(boolean value) {\n \n alive_ = value;\n }",
"public void setAlive(boolean aliveStatus) {\n\t\t\n\t\tthis.aliveStatus = aliveStatus;\n\t}",
"public void setAlive(boolean alive){\r\n\t\tthis.alive = alive;\r\n\t}",
"public void setAlive(boolean alive)\n {\n th... | [
"0.8177237",
"0.79098296",
"0.7834533",
"0.7824402",
"0.77644384",
"0.76830864",
"0.7554666",
"0.7500137",
"0.74950206",
"0.7416112",
"0.7408434",
"0.73429585",
"0.72738147",
"0.726435",
"0.7107263",
"0.6933466",
"0.6874692",
"0.66931784",
"0.6636336",
"0.6521487",
"0.6379306... | 0.76860124 | 6 |
Returns this Cell's age | public int getAge() {
return this.age;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getAge() {\n return Integer.parseInt(getCellContent(AGE));\n }",
"public double getAge()\n\t{\n\t\treturn theAge;\n\n\t}",
"public int getAge() {\r\n\t\treturn age;\r\n\t}",
"public int getAge() {\r\n\t\treturn age;\r\n\t}",
"public int getAge() {\r\n\t\treturn age;\r\n\t}",
"public ... | [
"0.8506726",
"0.7682022",
"0.7626646",
"0.7626646",
"0.7626646",
"0.7617086",
"0.7617086",
"0.7617086",
"0.7617086",
"0.761525",
"0.7571329",
"0.7571329",
"0.7571329",
"0.75670767",
"0.75620764",
"0.7561572",
"0.7548045",
"0.7540079",
"0.7540079",
"0.7540079",
"0.7459681",
... | 0.7607135 | 10 |
Sets this Cell's age to the given int value. Used when copying Cells into new array during generation. | public void setAge(int age) {
this.age = age;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setAge(int age) {\r\n\t\tthis.age = age;\r\n\t}",
"@Override\r\n\tpublic final void setAge(final int theAge) {\r\n\t\tthis.age = theAge;\r\n\t}",
"public void setAge(final int age) {\n mAge = age;\n }",
"public void setAge(int age) {\n\t\tif (age < 0) {\n\t\t\tthis.age = 0;\n\t\t} el... | [
"0.78352743",
"0.7800469",
"0.77893054",
"0.7738912",
"0.7645378",
"0.7521566",
"0.7521566",
"0.7521566",
"0.7521566",
"0.7521566",
"0.7521566",
"0.75135016",
"0.7498752",
"0.7474491",
"0.7465758",
"0.74618655",
"0.7458472",
"0.74257094",
"0.74232155",
"0.74232155",
"0.742321... | 0.7628579 | 8 |
Returns alive status of this cell | public boolean isAlive() {
return this.alive;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isAlive ()\n {\n return cellStatus;\n }",
"public boolean isAlive() {\n\t\treturn aliveStatus;\n\t}",
"public boolean getAlive() {\n return alive_;\n }",
"boolean isAlive() { return alive; }",
"public boolean isAlive() { return alive; }",
"public boolean isAlive()... | [
"0.8247651",
"0.75384337",
"0.73765355",
"0.73594844",
"0.73198867",
"0.72402793",
"0.72116995",
"0.71335393",
"0.71084446",
"0.71084446",
"0.7050428",
"0.7044124",
"0.69946",
"0.69946",
"0.69946",
"0.69832873",
"0.69832873",
"0.6930183",
"0.6927892",
"0.69236207",
"0.6904055... | 0.6952557 | 17 |
TODO Autogenerated method stub | @Override
public int getMaxLag() {
return pos;
} | {
"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 double getValue(int index) {
if (data==null) return 0;
double d = 0;
int begin=index+pos;
if (begin<0) begin=0;
if (begin>data.size()-1) begin = data.size()-1;
d = data.get(begin).getOpen();
return d;
} | {
"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 |
Executes a callable, ensuring that Wicket's threadlocal context is available during the execution. This method uses a default locale. This method uses the Wicket application currently attached to the thread, or (if there's none) a default Wicket application (which is implementationdependent). | @Override
<T> T runWithContext(Callable<T> callable) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"<T> T runWithContext(Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext(String applicationName, Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext(WebApplication application, Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext... | [
"0.7069263",
"0.7057525",
"0.69220364",
"0.5509805",
"0.54390496",
"0.5315774",
"0.51810694",
"0.4957164",
"0.49294934",
"0.49125513",
"0.4802648",
"0.46501815",
"0.46417087",
"0.45928577",
"0.45559368",
"0.45488757",
"0.45436263",
"0.4501049",
"0.4476309",
"0.4470759",
"0.44... | 0.5131437 | 7 |
Executes a callable, ensuring that Wicket's threadlocal context is available during the execution. This method sets the given locale on the Wicket Session. This method uses the Wicket application currently attached to the thread, or (if there's none) a default Wicket application (which is implementationdependent). | <T> T runWithContext(Callable<T> callable, Locale locale) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"<T> T runWithContext(WebApplication application, Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext(String applicationName, Callable<T> callable, Locale locale) throws Exception;",
"public Object applyLocaleSettings(IApplicationContext context, Map<String, Object> parameters) throws... | [
"0.6373329",
"0.6259955",
"0.525181",
"0.5076982",
"0.50756043",
"0.501955",
"0.49485257",
"0.49207973",
"0.4884701",
"0.48754072",
"0.4851151",
"0.48218402",
"0.4793122",
"0.47837865",
"0.47624242",
"0.47300342",
"0.46995988",
"0.4691492",
"0.46877378",
"0.46803108",
"0.4649... | 0.6679382 | 0 |
Executes a callable, ensuring that Wicket's threadlocal context is available during the execution. This method uses a default locale and the given Wicket application. | <T> T runWithContext(WebApplication application, Callable<T> callable) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"<T> T runWithContext(WebApplication application, Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext(String applicationName, Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext(Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext... | [
"0.77018166",
"0.7599884",
"0.738416",
"0.6043455",
"0.5769875",
"0.53472155",
"0.50903505",
"0.5061527",
"0.4858024",
"0.46913528",
"0.46536648",
"0.4580317",
"0.44808486",
"0.447387",
"0.4361966",
"0.43584558",
"0.4351334",
"0.43496403",
"0.43344828",
"0.43196353",
"0.43025... | 0.622458 | 3 |
Executes a callable, ensuring that Wicket's threadlocal context is available during the execution. This method sets the given locale on the Wicket Session and uses the given Wicket application. | <T> T runWithContext(WebApplication application, Callable<T> callable, Locale locale) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"<T> T runWithContext(Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext(String applicationName, Callable<T> callable, Locale locale) throws Exception;",
"public <T> T executeInApplicationScope(Callable<T> op) throws Exception {\n return manager.executeInApplicationContext(op)... | [
"0.6955571",
"0.68356603",
"0.5474249",
"0.52729166",
"0.52389467",
"0.4909414",
"0.49033004",
"0.4690469",
"0.46593845",
"0.4615608",
"0.45943096",
"0.4583929",
"0.45612687",
"0.45452687",
"0.4544098",
"0.4532532",
"0.44987252",
"0.4491671",
"0.4482373",
"0.44816843",
"0.444... | 0.7080771 | 0 |
Executes a callable, ensuring that Wicket's threadlocal context is available during the execution. This method uses a default locale and the Wicket application with the given name. | <T> T runWithContext(String applicationName, Callable<T> callable) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"<T> T runWithContext(String applicationName, Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext(Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext(WebApplication application, Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext... | [
"0.7303237",
"0.67714393",
"0.66616035",
"0.52411526",
"0.50503963",
"0.480956",
"0.48037565",
"0.48006684",
"0.47934303",
"0.47732446",
"0.46745998",
"0.46326265",
"0.46280134",
"0.44978708",
"0.4476431",
"0.4467011",
"0.43947855",
"0.43824723",
"0.43768698",
"0.4372225",
"0... | 0.5822177 | 3 |
Executes a callable, ensuring that Wicket's threadlocal context is available during the execution. This method sets the given locale on the Wicket Session and uses the Wicket application with the given name. | <T> T runWithContext(String applicationName, Callable<T> callable, Locale locale) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"<T> T runWithContext(Callable<T> callable, Locale locale) throws Exception;",
"<T> T runWithContext(WebApplication application, Callable<T> callable, Locale locale) throws Exception;",
"@Override\r\n\tpublic String execute(HttpServletRequest request) {\t\t\r\n\t\tString page = ConfigurationManager.getProperty(... | [
"0.65414536",
"0.6347714",
"0.51250017",
"0.510103",
"0.5011903",
"0.48966607",
"0.48508757",
"0.4821831",
"0.47762388",
"0.46166947",
"0.4599705",
"0.459467",
"0.45884973",
"0.4588082",
"0.4571506",
"0.4533347",
"0.45293435",
"0.45261025",
"0.4525633",
"0.45120502",
"0.45095... | 0.67292476 | 0 |
IndexedDataSource; IndexedDataSource is the interface around which much of Zorbage is organized. Many algorithms take IndexedDataSources as an input and calculate results from their data. An IndexedDataSource can be thought of as an array indexed by longs. In reality an IndexedDataSource might be an actual array, or a ... | void example1() {
IndexedDataSource<Float64Member> data =
nom.bdezonia.zorbage.storage.Storage.allocate(G.DBL.construct(), 100);
Float64Member value = G.DBL.construct();
GetV.fifth(data, value);
value.setV(10101);
SetV.eighteenth(data, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IndexedDataSet<T> getDataSet();",
"public interface DataSource<T> {\n\t/**\n\t * open data source.\n\t */\n\tpublic void open();\n\t/**\n\t * Get the next data object.\n\t * @return data object.\n\t */\n\tpublic T next();\n\t/**\n\t * move vernier to head.\n\t * @return\n\t */\n\tpublic void head();\n\t/*... | [
"0.6625566",
"0.64317733",
"0.60943717",
"0.6091882",
"0.60173",
"0.5911021",
"0.591073",
"0.56194824",
"0.55566376",
"0.5550128",
"0.55494374",
"0.55388075",
"0.546665",
"0.5466594",
"0.5450034",
"0.543006",
"0.5371842",
"0.5371842",
"0.5371842",
"0.5371842",
"0.5371842",
... | 0.0 | -1 |
ArrayDataSource The regular Storage allocator requires that the type of data that will be stored implements certain primitive coder interfaces. Sometimes this is too restrictive. If someone defines a type that can't easily be stored to disk (like for instance when its primitive data does not have a fixed size) you can ... | void example2() {
IndexedDataSource<HighPrecisionMember> list = ArrayDataSource.construct(G.HP, 1234);
// fill the list with values
Fill.compute(G.HP, G.HP.unity(), list);
// then calculate a result
HighPrecisionMember result = G.HP.construct();
Sum.compute(G.HP, list, result); // result sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ExternalArrayData{\n /**\n * Return the element at the specified index. The result must be a type that is valid in JavaScript:\n * Number, String, or Scriptable. This method will not be called unless \"index\" is in\n * range.\n */\n Object getArrayElement(int index);\n\n ... | [
"0.63290286",
"0.62810993",
"0.6149048",
"0.6056712",
"0.60083205",
"0.5681957",
"0.56649953",
"0.55530757",
"0.5519517",
"0.5509229",
"0.5447674",
"0.54131913",
"0.5351434",
"0.5340058",
"0.5314657",
"0.5311809",
"0.5287671",
"0.5281421",
"0.5252185",
"0.5242847",
"0.5225696... | 0.0 | -1 |
BigListDataSource In java arrays are limited to the number of elements that can be represented by a 32bit integer. That is the max size and also the most amount of ram a primitive data source can use. However in Zorbage the BigListDataSource allows very large lists to be contained in ram and to be indexed with 64bit in... | void example3() {
IndexedDataSource<SignedInt16Member> list =
new BigListDataSource<SignedInt16Algebra, SignedInt16Member>(G.INT16, 100000);
// elsewhere fill the list with values
// then calculate a result
SignedInt16Member result = G.INT16.construct();
Median.compute(G.INT16, list, result);... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public long[] getBlockListAsLongs();",
"public void setDataList(ArrayList<Integer> dataList, int maxSize){\n this.dataList = dataList;\n this.mMaxSize = maxSize;\n }",
"public boolean isListLengthFixed();",
"@Override\n public int getMaxCapacity() {\n return 156250000;\n ... | [
"0.65589976",
"0.58471036",
"0.56882936",
"0.5687692",
"0.56692666",
"0.55711097",
"0.5505372",
"0.5466134",
"0.544295",
"0.5413373",
"0.53960806",
"0.53960806",
"0.5335276",
"0.5324467",
"0.53242016",
"0.5295004",
"0.52790433",
"0.5278366",
"0.5262275",
"0.5258838",
"0.52339... | 0.0 | -1 |
ConcatenatedDataSource A ConcatenatedDataSource glues two other lists together so they can be treated as one. The concatenated lists can be passed to other algorithms. | void example4() {
IndexedDataSource<UnsignedInt1Member> list1 =
nom.bdezonia.zorbage.storage.Storage.allocate(G.UINT1.construct(), 100);
IndexedDataSource<UnsignedInt1Member> list2 =
nom.bdezonia.zorbage.storage.Storage.allocate(G.UINT1.construct(), 1000);
IndexedDataSource<UnsignedInt1Member> ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Concat createConcat();",
"private void addCombinedOccurence(List<AttributeSource> originalAttributeSources, List<Attribute> unionAttributeList,\n\t\t\tExampleSetBuilder builder, Example leftExample, Example rightExample) {\n\t\tdouble[] unionDataRow = new double[unionAttributeList.size()];\n\t\tint attributeInde... | [
"0.6393722",
"0.5695441",
"0.55697167",
"0.5495186",
"0.54383236",
"0.53979486",
"0.53979486",
"0.53948975",
"0.53801024",
"0.53788936",
"0.53703743",
"0.5352087",
"0.5330472",
"0.5304463",
"0.5301104",
"0.5288582",
"0.52829885",
"0.52784044",
"0.52782774",
"0.52590805",
"0.5... | 0.5830138 | 1 |
ConditionalDataSource A ConditionalDataSource creates a list that only contains values from an underlying list that satisfy a condition. One of the design constraints on Zorbage is that for the most part all IndexedDataSources have a fixed size. Because of this ConditionalDataSources must also follow this contract. To ... | @SuppressWarnings("unused")
void example5() {
// allocate a list
IndexedDataSource<UnsignedInt10Member> list =
nom.bdezonia.zorbage.storage.Storage.allocate(G.UINT10.construct(), 100000);
// fill it with something
Fill.compute(G.UINT10, G.UINT10.random(), list);
// then make the condition ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public QueryFilter(List<ConditionalExpression> list) {\r\n\t\tthis.list = list;\r\n\t}",
"@Override\n\tpublic List<DeviceData> getList(DeviceData condition) {\n\t\treturn null;\n\t}",
"boolean getConditionListNull();",
"public int[] getConditions() { return conditional; }",
"public ElementDefinitionDt setC... | [
"0.54438543",
"0.541265",
"0.48975074",
"0.47967526",
"0.47841385",
"0.46876",
"0.46809167",
"0.46001709",
"0.45958042",
"0.4594104",
"0.4548609",
"0.45293897",
"0.45207548",
"0.44876516",
"0.4471437",
"0.44707355",
"0.44616666",
"0.44571984",
"0.44428188",
"0.4436056",
"0.44... | 0.49656063 | 2 |
FixedSizeDataSource Sometimes you have a requirement that an algorithm is expecting a certain size list and the one you have does not match. You can cap the size of a list using a FixedSizeDataSource. The FFT algorithm commonly needs to do this. | void example6() {
// allocate some data
IndexedDataSource<ComplexFloat32Member> data =
nom.bdezonia.zorbage.storage.Storage.allocate(G.CFLT.construct(), 1234);
// elsewhere fill it with something
// then define an out of bounds padding that is all zero
Procedure2<Long,ComplexFloat32Member> p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isListLengthFixed();",
"public void setDataList(ArrayList<Integer> dataList, int maxSize){\n this.dataList = dataList;\n this.mMaxSize = maxSize;\n }",
"public void setListSize(int value) {\n this.listSize = value;\n }",
"@SuppressWarnings(\"unused\")\n\tvoid example... | [
"0.6209295",
"0.59062344",
"0.5568588",
"0.5511654",
"0.54712695",
"0.5412114",
"0.53616154",
"0.53486246",
"0.52610135",
"0.5229733",
"0.521493",
"0.51669616",
"0.51355237",
"0.50766724",
"0.5063147",
"0.5036715",
"0.5027032",
"0.5018286",
"0.5005568",
"0.4997808",
"0.498364... | 0.6109079 | 1 |
ListDataSource The regular Storage allocator requires that the type of data that will be stored implements certain primitive coder interfaces. Sometimes this is too restrictive. If someone defines a type that can't easily be stored to disk (like for instance when its primitive data does not have a fixed size) you can u... | void example7() {
// allocate the data
IndexedDataSource<HighPrecisionMember> data = ListDataSource.construct(G.HP, 1234);
// fill the list with values
HighPrecisionMember value = G.HP.construct();
for (long i = 0; i < data.size(); i++) {
value.setV(BigDecimal.valueOf(i));
data.set(i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void example10() {\n\t\t\n\t\t// allocate a regular list\n\t\t\n\t\tIndexedDataSource<UnsignedInt4Member> list =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.UINT4.construct(), 1000);\n\t\t\n\t\t// fill it with data\n\t\t\n\t\tFill.compute(G.UINT4, G.UINT4.random(), list);\n\t\t\n\t\t// protect it from... | [
"0.5966579",
"0.5564986",
"0.55541056",
"0.5543258",
"0.5518179",
"0.5504835",
"0.54486513",
"0.5447147",
"0.5418742",
"0.54023093",
"0.5390741",
"0.53894204",
"0.53614885",
"0.5357563",
"0.5347518",
"0.5341324",
"0.5331647",
"0.5313442",
"0.5276321",
"0.5276061",
"0.52727574... | 0.0 | -1 |
MaskedDataSource Sometimes you want to compute on values from a data source that have a logical classification. If you build a boolean mask that is true where you are interested in the value you can build a MaskedDataSource and do you computations upon only that data. An example mask might be booleans describing which ... | void example8() {
// setup some data
IndexedDataSource<Float64Member> list = ArrayStorage.allocate(G.DBL.construct(), 9);
// fill it with random values
Fill.compute(G.DBL, G.DBL.random(), list);
// build a mask
IndexedDataSource<BooleanMember> mask =
nom.bdezonia.zorbage.storage.Storage.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean isDataEnabled() {\n return (mask / 4) > 0;\n }",
"private boolean preconditionsMaskBasedBf(String name, List<BooleanVariable> domain,\n boolean masksAreMinterms, List<Mask> masks, List<Mask> dontCareMasks) {\n return name != null && domain != null && masks != null && dontCareMasks ... | [
"0.50413805",
"0.49749509",
"0.49614212",
"0.49151254",
"0.48945603",
"0.4833253",
"0.48264217",
"0.4748134",
"0.47379592",
"0.47297236",
"0.47169283",
"0.4712976",
"0.4683341",
"0.46657154",
"0.46538535",
"0.4649533",
"0.4606284",
"0.4605105",
"0.46007994",
"0.45953873",
"0.... | 0.6386276 | 0 |
ProcedureDataSource A ProcedureDataSource can be used to treat a mathematical or tabulated function as a source of data. One could define a Procedure that returns values from a table or from some computation and then wrap it and pass it to all the algorithms Zorbage provides. | void example9() {
// an uninteresting procedure we will calculate values from
Procedure2<Long,UnsignedInt12Member> proc = new Procedure2<Long, UnsignedInt12Member>()
{
@Override
public void call(Long a, UnsignedInt12Member b) {
b.setV((int) (long) a);
}
};
// the ProcedureDataSource we w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected Map<String, List<ProcedureParamSrc>> loadProcedures(String databaseName) throws SQLException {\n\t\t Map<String, List<ProcedureParamSrc>> ret=new HashMap<>();\n\t\t Map<String, StringBuffer> textMap=new HashMap<>();\n\t\tString sql=\"SELECT NAME,TEXT FROM ALL_SOURCE WHERE TYPE='PROCEDURE' \... | [
"0.60104984",
"0.55117726",
"0.52755374",
"0.5263973",
"0.51249397",
"0.50869656",
"0.5079555",
"0.504398",
"0.5041712",
"0.5035503",
"0.49379608",
"0.49361083",
"0.48983002",
"0.48983002",
"0.48983002",
"0.48839974",
"0.4872515",
"0.48528674",
"0.48453245",
"0.48392868",
"0.... | 0.51040626 | 5 |
ReadOnlyDataSource Sometimes you want to make sure that users of your list cannot modify its contents. Wrapping a data source in this read only wrapper can be just what you need. | void example10() {
// allocate a regular list
IndexedDataSource<UnsignedInt4Member> list =
nom.bdezonia.zorbage.storage.Storage.allocate(G.UINT4.construct(), 1000);
// fill it with data
Fill.compute(G.UINT4, G.UINT4.random(), list);
// protect it from writes
IndexedDataSource<UnsignedI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ObservableList<T> getReadOnlyList();",
"public interface ReadOnlyListManager<T> {\n /**\n * Returns an unmodifiable view of the list.\n * This list will not contain any duplicate elements.\n */\n\n ObservableList<T> getReadOnlyList();\n}",
"public void makeReadOnly();",
"public boolean isRe... | [
"0.64538336",
"0.63873947",
"0.6245544",
"0.6180773",
"0.6180773",
"0.6180773",
"0.6093454",
"0.6054911",
"0.6038782",
"0.6022515",
"0.6007717",
"0.59962195",
"0.591554",
"0.5915516",
"0.5906544",
"0.58966833",
"0.5881072",
"0.5836811",
"0.5836811",
"0.58357364",
"0.58357364"... | 0.0 | -1 |
ReadOnlyHighPrecisionDataSource Use this data source to pull data out of an underlying data source as high precision numbers so you can do highly accurate calculations. This approach only uses minimal amounts of additional ram. The calculations are a bit slower than raw data access. Each single number of the underlying... | void example11() {
// allocate a regular list
IndexedDataSource<UnsignedInt4Member> list =
nom.bdezonia.zorbage.storage.Storage.allocate(G.UINT4.construct(), 1000);
// fill it with data
Fill.compute(G.UINT4, G.UINT4.random(), list);
// wrap it
IndexedDataSource<HighPrecisionMember> highP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void example2() {\n\t\t\n\t\tIndexedDataSource<HighPrecisionMember> list = ArrayDataSource.construct(G.HP, 1234);\n\t\t\n\t\t// fill the list with values\n\t\t\n\t\tFill.compute(G.HP, G.HP.unity(), list);\n\t\t\n\t\t// then calculate a result\n\n\t\tHighPrecisionMember result = G.HP.construct();\n\t\t\n\t\tSum.com... | [
"0.54160184",
"0.48494434",
"0.4815403",
"0.45366895",
"0.45184293",
"0.4506705",
"0.44943598",
"0.44226918",
"0.43941543",
"0.43889076",
"0.43852603",
"0.43579665",
"0.43473658",
"0.4290796",
"0.42374077",
"0.41883942",
"0.41792166",
"0.41557842",
"0.41535515",
"0.41192457",
... | 0.46540937 | 3 |
ReversedDataSource Sometimes you want to be able to pull values out of a list in reverse order. If you want you can write a for loop from max to min. But Zorbage does provide a ReversedDataSource filter in case you want to pass data in reverse order to algorithms or if you want to write straightforward for loops and ju... | void example12() {
// an example of passing data to algorithms in reverse order
// make some data
IndexedDataSource<SignedInt32Member> nums =
nom.bdezonia.zorbage.storage.Storage.allocate(G.INT32.construct(),
new int[] {-1, 345, 1, -3044, 0, 0, 1066, -12});
// sort it
Sort.compute(G.IN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void reverseRange(int index, int count, int stride);",
"public void reverse(boolean ascending) {\n\t\tif (!ascending)\n\t\t\tCollections.reverse(FlightData.ITEMS);\n\t}",
"public static void reverseIterative(int[] data) {\n int low = 0, high = data.length - 1;\n while (low < high)... | [
"0.6117988",
"0.59237957",
"0.568189",
"0.56490505",
"0.5577209",
"0.55616575",
"0.5557538",
"0.5549322",
"0.5491814",
"0.5489024",
"0.54004043",
"0.5384293",
"0.5377213",
"0.5360394",
"0.53326344",
"0.53185195",
"0.531835",
"0.53130394",
"0.53108996",
"0.52884734",
"0.528666... | 0.62409014 | 0 |
SequencedDataSource Sometimes you want to access a datasource in a strided fashion. Zorbage provides multidimensional iteration code for many use cases. But sometimes you know you just want to fill a column or a plane or a volume etc. You can use a strided accessor (a SequencedDataSource) if you want to accomplish thin... | void example13() {
// create a list of zeroes
IndexedDataSource<Float64Member> list =
nom.bdezonia.zorbage.storage.Storage.allocate(G.DBL.construct(), 1000);
// now setup a view that will increment by 3 starting at the list[4] and steps
// up to 100 times.
IndexedDataSource<Float64Member> seqDat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface DataSourceIterator extends Iterator<Data> {\n\n}",
"public Iterator<IDatasetItem> iterateOverDatasetItems();",
"public interface DataSourceWrapper<D> {\r\n\r\n public void openDataSource() throws Exception;\r\n \r\n public void preValidate() throws Exception;\r\n \r\n public voi... | [
"0.5809885",
"0.5752191",
"0.57139146",
"0.5689727",
"0.5599463",
"0.5577594",
"0.54600894",
"0.53315306",
"0.53141767",
"0.5283649",
"0.5224459",
"0.5170235",
"0.51485234",
"0.5078082",
"0.5059715",
"0.50492877",
"0.504045",
"0.504036",
"0.4988249",
"0.49873894",
"0.49785784... | 0.5701361 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.