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 |
|---|---|---|---|---|---|---|
Sleep for a minute: | private void sleep() {
try {
Thread.sleep(3000L);
}
catch (Exception ignored) {
Log.trace("Sleep got interrupted.");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n ... | [
"0.7334597",
"0.72646457",
"0.7214619",
"0.7156599",
"0.70788187",
"0.7050516",
"0.7036755",
"0.69570374",
"0.69570374",
"0.69259703",
"0.6915154",
"0.68811035",
"0.6851325",
"0.6804364",
"0.6791385",
"0.6766726",
"0.6748035",
"0.6731662",
"0.6727388",
"0.67222923",
"0.669056... | 0.6919761 | 10 |
Copies the contents at src to dst. | public static void copy(URL src, File dst) throws IOException {
try (InputStream in = src.openStream()) {
try (OutputStream out = new FileOutputStream(dst)) {
dst.mkdirs();
copy(in, out);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void copy(File src, File dst) throws IOException \r\n {\r\n InputStream in = new FileInputStream(src);\r\n OutputStream out = new FileOutputStream(dst);\r\n \r\n // Transfer bytes from in to out\r\n byte[] buf = new byte[1024];\r\n int len;\r\n while ((len = ... | [
"0.7646975",
"0.6987663",
"0.69806707",
"0.6810174",
"0.68083817",
"0.67624414",
"0.663448",
"0.6560484",
"0.63631094",
"0.62480193",
"0.6131284",
"0.6061297",
"0.605619",
"0.60449415",
"0.59712696",
"0.590112",
"0.5852673",
"0.5814663",
"0.569198",
"0.5690768",
"0.5681068",
... | 0.65317124 | 8 |
Common code for copy routines. By convention, the streams are closed in the same method in which they were opened. Thus, this method does not close the streams when the copying is done. | private static void copy(InputStream in, OutputStream out) throws IOException {
byte[] buffer = new byte[4096];
while (true) {
int bytesRead = in.read(buffer);
if (bytesRead < 0) {
break;
}
out.write(buffer, 0, bytesRead);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void streamCopy(InputStream in, OutputStream out) throws IOException {\t \n\t\tsynchronized (in) {\n\t\t\tsynchronized (out) {\n\t\t\t\tbyte[] buffer = new byte[256];\n\t\t\t\twhile (true) {\n\t \t\tint bytesRead = in.read(buffer);\n\t \t\tif (bytesRead == -1) break;\n\t \t\tout.wri... | [
"0.63982165",
"0.63940793",
"0.6023568",
"0.59177566",
"0.58079916",
"0.5754455",
"0.5752065",
"0.5705758",
"0.5691107",
"0.56734604",
"0.56197435",
"0.55884",
"0.5581424",
"0.549522",
"0.54820836",
"0.54569834",
"0.5436826",
"0.54367536",
"0.53457046",
"0.53350174",
"0.53263... | 0.5322226 | 21 |
Returns the number of rows per page for the specified page for the current logged user. The rows per page value is stored as a user property. The same property is being used for different pages. The encoding format is the following "pageName1=value,pageName2=value". | public int getRowsPerPage(String pageName, int defaultValue) {
return getPageProperty(pageName, "console.rows_per_page", defaultValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getRowsPerPage();",
"public Integer getPageCount();",
"long getPageSize();",
"long getPageSize();",
"long getPageSize();",
"int getPageSize();",
"int getPageSize();",
"int getPageSize();",
"int getPageSize();",
"public Integer getPerPage();",
"Long pageCount(Long pageSize, Long...par... | [
"0.64159584",
"0.6378701",
"0.63486624",
"0.63486624",
"0.63486624",
"0.62447685",
"0.62447685",
"0.62447685",
"0.62447685",
"0.6144624",
"0.6120386",
"0.610092",
"0.5955414",
"0.59208655",
"0.58318156",
"0.5819222",
"0.58122575",
"0.5809944",
"0.5803106",
"0.5796866",
"0.578... | 0.55177677 | 39 |
Sets the new number of rows per page for the specified page for the current logged user. The rows per page value is stored as a user property. The same property is being used for different pages. The encoding format is the following "pageName1=value,pageName2=value". | public void setRowsPerPage(String pageName, int newValue) {
setPageProperty(pageName, "console.rows_per_page", newValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRowsPerPage(int rowsPerPage) {\n this.rowsPerPage=rowsPerPage;\n }",
"public void setNumOfPageRowPms(int numOfPageRowPms) { this.numOfPageRowPms = numOfPageRowPms; }",
"private void updateTotalPageNumbers() {\n totalPageNumbers = rows.size() / NUM_ROWS_PER_PAGE;\n }",
"publ... | [
"0.66087836",
"0.6603168",
"0.6393183",
"0.63744295",
"0.61903965",
"0.6167079",
"0.6096055",
"0.60768014",
"0.606431",
"0.60406595",
"0.6032092",
"0.60174495",
"0.60028833",
"0.59382933",
"0.59302276",
"0.59282863",
"0.59218544",
"0.5849381",
"0.58102775",
"0.5805716",
"0.57... | 0.6468873 | 2 |
Returns the number of seconds between each page refresh for the specified page for the current logged user. The value is stored as a user property. The same property is being used for different pages. The encoding format is the following "pageName1=value,pageName2=value". | public int getRefreshValue(String pageName, int defaultValue) {
return getPageProperty(pageName, "console.refresh", defaultValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getTimestampOfPage() {\n return timestampOfPage;\n }",
"private static int getPageLoadWaitTime()\n\t{\n\t\tString pageLoadWaitTime = System.getProperty(PAGE_LOAD_TIME_KEY);\n\t\t\n\t\tif (pageLoadWaitTime == null || pageLoadWaitTime.isEmpty())\n\t\t{ \n\t\t\treturn pageLoadWaitDefaultTime;\n\t\t}... | [
"0.53641385",
"0.51910734",
"0.4945214",
"0.49124986",
"0.48064375",
"0.47295782",
"0.46611232",
"0.46596205",
"0.4623359",
"0.45977178",
"0.4574456",
"0.45685297",
"0.45140794",
"0.44934744",
"0.44925195",
"0.44911292",
"0.4489351",
"0.44663712",
"0.44498083",
"0.444687",
"0... | 0.50417733 | 2 |
Sets the number of seconds between each page refresh for the specified page for the current logged user. The value is stored as a user property. The same property is being used for different pages. The encoding format is the following "pageName1=value,pageName2=value". | public void setRefreshValue(String pageName, int newValue) {
setPageProperty(pageName, "console.refresh", newValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPage(Page page) {this.page = page;}",
"public void setPage(Page page) {\n this.page=page;\n }",
"public void setPage(Page page) {\n this.page=page;\n }",
"public void setPage(int value) {\n this.page = value;\n }",
"public void setPage(SQLInteger page) {\n\t\tth... | [
"0.56249064",
"0.5510594",
"0.5510594",
"0.5486589",
"0.53572226",
"0.5356409",
"0.5332839",
"0.5309755",
"0.5251653",
"0.520838",
"0.520345",
"0.51599467",
"0.5107393",
"0.5104073",
"0.50009364",
"0.49886087",
"0.49836713",
"0.49457008",
"0.49277785",
"0.492337",
"0.48778307... | 0.5569967 | 1 |
TODO Autogenerated method stub | @Override
public void onInvokeTimeout(CAPDialog arg0, Long arg1) {
} | {
"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 onActivityTestResponse(ActivityTestResponse arg0) {
} | {
"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 onApplyChargingReportRequest(ApplyChargingReportRequest arg0) {
} | {
"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 onAssistRequestInstructionsRequest(AssistRequestInstructionsRequest arg0) {
} | {
"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 onCallInformationReportRequest(CallInformationReportRequest arg0) {
} | {
"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 onCallInformationRequestRequest(CallInformationRequestRequest arg0) {
} | {
"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 onDisconnectForwardConnectionRequest(DisconnectForwardConnectionRequest arg0) {
} | {
"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 onEventReportBCSMRequest(EventReportBCSMRequest arg0) {
} | {
"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 onInitialDPRequest(InitialDPRequest arg0) {
} | {
"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 onPlayAnnouncementRequest(PlayAnnouncementRequest arg0) {
} | {
"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 onPromptAndCollectUserInformationResponse(PromptAndCollectUserInformationResponse arg0) {
} | {
"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 onResetTimerRequest(ResetTimerRequest arg0) {
} | {
"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 onSendChargingInformationRequest(SendChargingInformationRequest arg0) {
} | {
"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 onSpecializedResourceReportRequest(SpecializedResourceReportRequest arg0) {
} | {
"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 onContinueWithArgumentRequest(ContinueWithArgumentRequest ind) {
} | {
"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 onDisconnectLegRequest(DisconnectLegRequest ind) {
} | {
"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 onDisconnectLegResponse(DisconnectLegResponse ind) {
} | {
"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 onDisconnectForwardConnectionWithArgumentRequest(DisconnectForwardConnectionWithArgumentRequest ind) {
} | {
"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 onInitiateCallAttemptRequest(InitiateCallAttemptRequest initiateCallAttemptRequest) {
} | {
"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 onInitiateCallAttemptResponse(InitiateCallAttemptResponse initiateCallAttemptResponse) {
} | {
"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 onMoveLegRequest(MoveLegRequest ind) {
} | {
"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 onMoveLegResponse(MoveLegResponse ind) {
} | {
"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 onCollectInformationRequest(CollectInformationRequest arg0) {
} | {
"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 onCallGapRequest(CallGapRequest ind) {
} | {
"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 |
The constructor is private, because "all" methods are static. | private NullSafe()
{
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Util()\n {\n // Empty default ctor, defined to override access scope.\n }",
"private Utils()\n {\n // Private constructor to prevent instantiation\n }",
"private CommonMethods() {\n }",
"private Util() { }",
"private Util() {\n }",
"private Utils() {\n\t}",
"privat... | [
"0.7867494",
"0.774904",
"0.7714249",
"0.7575467",
"0.7498605",
"0.74978995",
"0.74978995",
"0.74821466",
"0.74821466",
"0.74821466",
"0.74821466",
"0.7441496",
"0.7425909",
"0.7404942",
"0.7404942",
"0.7342325",
"0.7310944",
"0.7302802",
"0.7302802",
"0.7302802",
"0.7302802"... | 0.0 | -1 |
Compares the two object. | public static int compare(final Comparable object, final Comparable other)
{
if (object == null)
{
return other == null ? 0 : -1;
} else
{
return other == null ? 1 : object.compareTo(other);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}",
"public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}",
"@Override\n public int compare(final E obj1, final E obj2) {\n return comparator.compare(obj2, obj1);\n ... | [
"0.6781567",
"0.6638891",
"0.65162015",
"0.6421156",
"0.63903",
"0.6334024",
"0.6324103",
"0.6323245",
"0.6285553",
"0.62298256",
"0.62096375",
"0.61690533",
"0.6166401",
"0.6148197",
"0.6145171",
"0.61435246",
"0.6131953",
"0.61224777",
"0.61167264",
"0.6112979",
"0.6106937"... | 0.0 | -1 |
Compares the two object with historical comparison, it useful when more than one compare need in the compareTo method. An example: int result = NullSafeCompare.compare(this, other); result = NullSafeCompare.compare(result, this.field, other.field); ... return result; | public static int compare(final int previousResult, final Comparable object, final Comparable other)
{
return previousResult == 0 ? compare(object, other) : previousResult;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testObjCompare()\n {\n assertEquals( Comparator.EQUAL, Util.objCompare(null,null) );\n assertEquals( Comparator.LESS, Util.objCompare(new Integer(10), new Integer(20)) );\n assertEquals( Comparator.GREATER, Util.objCompare(new Integer(25), new Integer(20)) );\n ... | [
"0.6973356",
"0.66136014",
"0.61955166",
"0.6184718",
"0.61755645",
"0.61718714",
"0.6116924",
"0.6055692",
"0.5920256",
"0.5906645",
"0.58931917",
"0.5867564",
"0.577116",
"0.57533395",
"0.56638455",
"0.56504965",
"0.5642939",
"0.5641584",
"0.5630947",
"0.5629885",
"0.562710... | 0.5603629 | 22 |
Returns with the object's hash code or 0 if the object is null. | public static int hashCode(final Object object)
{
if (object instanceof Enum)
{
return object.toString().hashCode();
}
return object == null ? 0 : object.hashCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int safeHashcode(Object o)\n {\n if (o == null)\n {\n return 0;\n }\n else\n {\n return o.hashCode();\n }\n }",
"protected int safeHashCode(Object object) {\r\n\t\treturn object == null ? 0 : object.hashCode();\r\n\t}",
"public... | [
"0.7822603",
"0.7335088",
"0.7319445",
"0.7281476",
"0.7279353",
"0.7237033",
"0.7199981",
"0.7123069",
"0.69352686",
"0.6910142",
"0.68785447",
"0.67952627",
"0.67421484",
"0.67420137",
"0.67303485",
"0.6728018",
"0.67266834",
"0.6724244",
"0.6711318",
"0.6704449",
"0.669142... | 0.65015393 | 35 |
Tour Rating Repository Interface Created by Mary Ellen Bowman | @RepositoryRestResource(exported = false)
public interface TurRatingRepository extends JpaRepository<TurRating, Integer> {
/**
* Lookup all the TurRatings for a tour.
*
* @param turId is the tour Identifier
* @return a List of any found TurRatings
*/
List<TurRating> findByTurId(Integer turId);
/**
* Lookup a page of TurRatings for a tour.
*
* @param turId tourId is the tour Identifier
* @param pageable details for the desired page
* @return a Page of any found TurRatings
*/
Page<TurRating> findByTurId(Integer turId, Pageable pageable);
/**
* Lookup a TurRating by the TourId and Customer Id
* @param turId
* @param customerId
* @return TurRating if found, null otherwise.
*/
Optional<TurRating> findByTurIdAndCustomerId(Integer turId, Integer customerId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface RatingRepository extends CrudRepository<Rating, String>{\n\n}",
"public interface RatingStore {\n\n void updateRating(int winnerId, int loserId);\n void init(List<PlayerInfo> players);\n\n\n Player getPlayerById(int id);\n List<Player> loadSorted(Comparator<Player> sorting);\n Lis... | [
"0.67675036",
"0.664955",
"0.6580361",
"0.65483963",
"0.6429452",
"0.636094",
"0.6309104",
"0.6262265",
"0.6248785",
"0.6225276",
"0.6138715",
"0.60408187",
"0.601998",
"0.5998627",
"0.59481424",
"0.59205675",
"0.58945024",
"0.58853567",
"0.58718425",
"0.5870005",
"0.5846939"... | 0.66516596 | 1 |
Lookup all the TurRatings for a tour. | List<TurRating> findByTurId(Integer turId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<Rating> getAllRating() {\n\t\treturn rr.getAllRating();\n\t}",
"private Map<Profile, Integer> rating(){\n\t\treturn allRatings;\n\t}",
"public List<Tour> findAllTours(){\n\t\treturn tourRepository.findAll();\n\t}",
"public abstract Collection<Turtle> getAllTurtles();",
"public int[... | [
"0.60001796",
"0.59500676",
"0.57531625",
"0.5639584",
"0.55960757",
"0.5573571",
"0.546861",
"0.5428091",
"0.5422829",
"0.5416696",
"0.53754133",
"0.53635466",
"0.5309783",
"0.52960724",
"0.52821493",
"0.52495104",
"0.52460825",
"0.5195368",
"0.51685387",
"0.5137459",
"0.511... | 0.65985495 | 0 |
Lookup a page of TurRatings for a tour. | Page<TurRating> findByTurId(Integer turId, Pageable pageable); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<TurRating> findByTurId(Integer turId);",
"@RepositoryRestResource(exported = false)\npublic interface TurRatingRepository extends JpaRepository<TurRating, Integer> {\n\n /**\n * Lookup all the TurRatings for a tour.\n *\n * @param turId is the tour Identifier\n * @return a List of any fou... | [
"0.6042304",
"0.53520125",
"0.51510036",
"0.5135341",
"0.5070496",
"0.5003812",
"0.49980435",
"0.4981634",
"0.49620587",
"0.49309146",
"0.48995593",
"0.48697495",
"0.4850965",
"0.48268858",
"0.4825591",
"0.4815439",
"0.47727624",
"0.4741012",
"0.47129267",
"0.4705194",
"0.469... | 0.64931804 | 0 |
Lookup a TurRating by the TourId and Customer Id | Optional<TurRating> findByTurIdAndCustomerId(Integer turId, Integer customerId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<TurRating> findByTurId(Integer turId);",
"@RepositoryRestResource(exported = false)\npublic interface TurRatingRepository extends JpaRepository<TurRating, Integer> {\n\n /**\n * Lookup all the TurRatings for a tour.\n *\n * @param turId is the tour Identifier\n * @return a List of any fou... | [
"0.6223719",
"0.5477764",
"0.53512275",
"0.5272564",
"0.5241885",
"0.520595",
"0.52004623",
"0.5176364",
"0.5149933",
"0.51494247",
"0.5136185",
"0.5112345",
"0.507519",
"0.5026",
"0.5025114",
"0.50239635",
"0.49982512",
"0.49750754",
"0.49700284",
"0.4960756",
"0.4959607",
... | 0.7266181 | 0 |
Example attack to mutate instance fields in Period Works only with readObject method without defensive copying | public static void main(String[] args) {
MutablePeriod mp = new MutablePeriod();
Period p = mp.period;
Date pEnd = mp.end;
// Let's turn back the clock
pEnd.setYear(78);
System.out.println(p);
// Bring back the 60s
pEnd.setYear(69);
System.out.println(p);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingObjectsThatAreAlreadyPersistent() {\n }",
"@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }",
"public void setValue(Object obj) throws AspException\n ... | [
"0.54910856",
"0.54512864",
"0.5395968",
"0.5349697",
"0.532876",
"0.53098565",
"0.52590376",
"0.52228343",
"0.51140463",
"0.51140463",
"0.51140463",
"0.5061023",
"0.5041924",
"0.50281966",
"0.50161064",
"0.49799812",
"0.49662995",
"0.49640277",
"0.496271",
"0.49202418",
"0.4... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
List<String> al=new ArrayList<>();
System.out.println(al.get(0));
System.out.println(al.indexOf(1));
Collections.sort(al);
System.out.println("sort : "+al);
Collections.shuffle(al);
System.out.println("shuffeled : "+al);
Collections.reverse(al);
//ArrayList<Integer> ll=(ArrayList<Integer>)al.clone();
} | {
"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 |
Data types are not required in sqlite | @Override
public void onCreate(SQLiteDatabase db) {
String query = MessageFormat.format("CREATE TABLE {0} (" +
"_id INTEGER PRIMARY KEY AUTOINCREMENT, " +
"{1}, " +
"{2}, " +
"{3}, " +
"{4}, " +
"{5} " +
")",
CrimeDbSchema.CrimeTable.NAME,
CrimeDbSchema.CrimeTable.Cols.UUID,
CrimeDbSchema.CrimeTable.Cols.TITLE,
CrimeDbSchema.CrimeTable.Cols.DATE,
CrimeDbSchema.CrimeTable.Cols.SOLVED,
CrimeDbSchema.CrimeTable.Cols.REQ_POLICE
);
db.execSQL(query);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void test_column_type_detection_strings_02() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"simple\", \"en\", false), true, Types.NVARCHAR, String.class.getCanonicalName());\n }",
"@Test\n public void test_column_type_detection_strings_04() throw... | [
"0.6038304",
"0.60124356",
"0.60121703",
"0.6005732",
"0.597128",
"0.5957552",
"0.5912684",
"0.5907965",
"0.58948296",
"0.5888441",
"0.5877807",
"0.58381414",
"0.5815698",
"0.5771958",
"0.57620734",
"0.57389945",
"0.5734641",
"0.5715949",
"0.5714528",
"0.57116014",
"0.5705781... | 0.0 | -1 |
Created by huxia on 2015/9/6. | @Mapper
public interface DiscountMapper extends IBaseDao<DiscountDTO>{
/**
* 查询DISCOUNT表
* @param (supplierId)
*/
List<DiscountDTO> findAllBySupplierID(String supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.63007164",
"0.61157894",
"0.6092892",
"0.60648376",
"0.60177016",
"0.60177016",
"0.5982922",
"0.5976511",
"0.59460187",
"0.5930258",
"0.59234565",
"0.59192044",
"0.5893471",
"0.58821565",
"0.5857136",
"0.58377075",
"0.5837308",
"0.58008784",
"0.5788051",
"0.5749062",
"0.57... | 0.0 | -1 |
Genere de nouvelles coordonnees pour l'objectif. | public void newCoord() {
x = Data.generateRandomX();
y = Data.generateRandomY();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"public Coordinate getCoordenadasActuales() ;",
"long getCoordinates();",
"long getCoordinates();",
"@Override\n\tpublic String toString() {\n\t\treturn \"Coord[\" + this.x0 + \",\" + this.y0 + \"]\";\n\t}"... | [
"0.6440212",
"0.61842483",
"0.61639535",
"0.61639535",
"0.6121773",
"0.60640156",
"0.5961091",
"0.5949793",
"0.59234047",
"0.5801374",
"0.58011687",
"0.5798825",
"0.57738113",
"0.5753435",
"0.5716395",
"0.57110214",
"0.56902933",
"0.5680735",
"0.5654448",
"0.5645257",
"0.5642... | 0.0 | -1 |
this will change integer selection of room type to room names for file input. | public String convertRoomType(){
String str = null;
if (this.roomType == Room.ROOM_TYPE_BASIC_ROOM){
str = "Basic Room";
}
if (this.getRoomType() == Room.ROOM_TYPE_JUNIOR_SUITE) {
str = "Junior Suite";
}
if (this.getRoomType() == Room.ROOM_TYPE_FULL_SUITE) {
str = "Full Suite";
}
return str;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String pickRoom(char type) {\n String path = ROOT_ROOM_PATH;\n switch(type) {\n case(LayoutGenerator.START):\n path += START_ROOM_PATH + LayoutGenerator.START;\n break;\n case(LayoutGenerator.FINISH):\n path += FINISH_ROOM_PATH + L... | [
"0.657673",
"0.5889146",
"0.5831039",
"0.5813844",
"0.5801965",
"0.57150334",
"0.5623128",
"0.55720985",
"0.5549681",
"0.5538578",
"0.55282885",
"0.5509461",
"0.55082345",
"0.5500955",
"0.5458359",
"0.53965354",
"0.53872144",
"0.53836036",
"0.5379596",
"0.53675824",
"0.536398... | 0.6236051 | 1 |
ArrayList> comb = new ArrayList(); System.out.println("R: "+R); | public static ArrayList<ArrayList<String>> getAllComb(ArrayList<String> R, ArrayList<ArrayList<String>> comb) {
if(R.size()!=0){//Recursive
comb.add(R);
for (String str : R) {
ArrayList<String> list = new ArrayList<>();
list.addAll(R);
list.remove(str);
if(!comb.contains(list)){
getAllComb(list, comb);
}
}
}
//System.out.println("R: "+R);
//System.out.println("Comb: "+comb);
return comb;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args)\n\t{\n\t\tArrayList ar=new ArrayList();\n\t\tSystem.out.println(ar.size());\n\t\tar.add(23);\n\t\tar.add(30);\n\t\tar.add(40);\n\t\tSystem.out.println(ar.size());\n\t\t// We can add duplicates values also.\n\t\tar.add(23);\n\t\tar.get(1);\n\t\tSystem.out.println(\"whats the o... | [
"0.6110139",
"0.60706735",
"0.59091353",
"0.58285064",
"0.5760602",
"0.57466567",
"0.57375693",
"0.5682577",
"0.5540673",
"0.5502471",
"0.5485632",
"0.5482627",
"0.5475666",
"0.5472853",
"0.5469995",
"0.54550284",
"0.5421111",
"0.54149485",
"0.54101926",
"0.5402838",
"0.53979... | 0.59843475 | 2 |
ArrayList test = new ArrayList(); test.add("B"); ArrayList test2 = new ArrayList(); test2.add("D"); test2.add("F"); PFD pfd1 = new PFD(test,test2,2); ArrayList test3 = new ArrayList(); test3.add("B"); ArrayList test4 = new ArrayList(); test4.add("E"); PFD pfd2 = new PFD(test3,test4,1); ArrayList test5 = new ArrayList(); test5.add("C"); ArrayList test6 = new ArrayList(); test6.add("B"); test6.add("D"); PFD pfd3 = new PFD(test5,test6,2); ArrayList test7 = new ArrayList(); test7.add("C"); ArrayList test8 = new ArrayList(); test8.add("F"); PFD pfd4 = new PFD(test7,test8,1); ArrayList test9 = new ArrayList(); test9.add("E"); ArrayList test10 = new ArrayList(); test10.add("D"); PFD pfd5 = new PFD(test9,test10,2); ArrayList test11 = new ArrayList(); test11.add("E"); ArrayList test12 = new ArrayList(); test12.add("F"); PFD pfd6 = new PFD(test11,test12,2); ArrayList test13 = new ArrayList(); test13.add("C"); test13.add("F"); ArrayList test14 = new ArrayList(); test14.add("B"); PFD pfd7 = new PFD(test13,test14,1); ArrayList test15 = new ArrayList(); test15.add("C"); test15.add("F"); ArrayList test16 = new ArrayList(); test16.add("E"); PFD pfd8 = new PFD(test15,test16,1); ArrayList pfdArrayList = new ArrayList(); pfdArrayList.add(pfd1); pfdArrayList.add(pfd2); pfdArrayList.add(pfd3); pfdArrayList.add(pfd4); pfdArrayList.add(pfd5); pfdArrayList.add(pfd6); pfdArrayList.add(pfd7); pfdArrayList.add(pfd8); ArrayList target = new ArrayList(); //target.add("B"); target.add("E"); target.add("C"); System.out.println(pfdArrayList.toString()); //getClosureForAttr(target,pfdArrayList,1); //NRcover(pfdArrayList); getCanCover2(pfdArrayList); isKey(target,pfdArrayList,2); System.out.println(isSatisfiedBDFN(pfdArrayList,2)); test by tommy ArrayList test = new ArrayList(); test.add("M"); test.add("T"); ArrayList test2 = new ArrayList(); test2.add("R"); PFD pfd1 = new PFD(test,test2,1); ArrayList test3 = new ArrayList(); test3.add("R"); test3.add("T"); ArrayList test4 = new ArrayList(); test4.add("P"); PFD pfd2 = new PFD(test3,test4,2); ArrayList test5 = new ArrayList(); test5.add("P"); test5.add("T"); ArrayList test6 = new ArrayList(); test6.add("M"); PFD pfd3 = new PFD(test5,test6,3); ArrayList test7 = new ArrayList(); test7.add("P"); ArrayList test8 = new ArrayList(); test8.add("M"); PFD pfd4 = new PFD(test7,test8,4); ArrayList test2List = new ArrayList(Arrays.asList(pfd1, pfd2, pfd3, pfd4)); ArrayList r = new ArrayList(Arrays.asList("M", "R", "T", "P")); | public static void main(String[] args){
ArrayList<String> test = new ArrayList<>();
test.add("T");
test.add("L");
ArrayList<String> test2 = new ArrayList<>();
test2.add("P");
PFD pfd1 = new PFD(test,test2,1);
ArrayList<String> test3 = new ArrayList<>();
test3.add("T");
test3.add("L");
ArrayList<String> test4 = new ArrayList<>();
test4.add("M");
PFD pfd2 = new PFD(test3,test4,1);
ArrayList<String> test5 = new ArrayList<>();
test5.add("P");
ArrayList<String> test6 = new ArrayList<>();
test6.add("M");
ArrayList<String> test7 = new ArrayList<>();
test7.add("T");
ArrayList<String> test8 = new ArrayList<>();
test8.add("S");
PFD pfd3 = new PFD(test5,test6,3);
PFD pfd4 = new PFD(test7,test8,3);
ArrayList<PFD> test2List = new ArrayList<PFD>(Arrays.asList(pfd1, pfd2));
ArrayList<String> r = new ArrayList<String>(Arrays.asList("M", "S", "T", "P"));
// System.out.println(test2List);
// System.out.println("Closure: " + getClosureForAttr(new ArrayList<String>(Arrays.asList("T","M")),test2List,1));
// System.out.println("BDNF? "+ isSatisfiedBDFN(test2List,3));
// System.out.println(getCanCover1(test2List));
// S = DecomposeWithTheCertainty(r,test2List,4);
// System.out.println(turnDeOutputToString());
// System.out.println(getAllComb(r, new ArrayList<ArrayList<String>>()));
// System.out.println(getMinimalKeys(test2List,r,4));
// System.out.println("B-prime: "+getBetaPrimeList(test2List,r,2));
// System.out.println("Satisfied 3NF? "+isSatisfied3NF(test2List,r,3));
// System.out.println("Is not subset:"+isNotSubset(pfd4,test2List));
ArrayList<String> t = new ArrayList<>();
t.add("A");
t.add("B");
t.add("C");
ArrayList<String> t1 = new ArrayList<>();
t1.add("B");
t1.add("A");
// t1.add("D");
t.retainAll(t1);
// System.out.println(t.toString());
// System.out.println(String.join("",t1));
//
// System.out.println(getAllCombo(r).toString());
double x = 2 / 3.0;
System.out.println(x);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n\nList<List<Integer>> list=new ArrayList<List<Integer>>();\nList<Integer> l1=new ArrayList<Integer>();\nList<Integer> l2=new ArrayList<Integer>();\nList<Integer> l3=new ArrayList<Integer>();\nList<Integer> l4=new ArrayList<Integer>();\nl1.add(1);\nl1.add(2);\nl1.add(3);\... | [
"0.5837996",
"0.5619282",
"0.5554223",
"0.5479148",
"0.54189336",
"0.5378846",
"0.5353631",
"0.5340879",
"0.5317698",
"0.5265968",
"0.52597034",
"0.51072246",
"0.509115",
"0.50840086",
"0.50667834",
"0.5059291",
"0.50502807",
"0.5021308",
"0.5020156",
"0.50108665",
"0.4995920... | 0.7161513 | 0 |
getter and setter methods | public String getJob_title() {
return job_title;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
getter and setter methods | public void setJob_title(String job_title) {
this.job_title = job_title;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
getter and setter methods | public String getJob_description() {
return job_description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
getter and setter methods | public void setJob_description(String job_description) {
this.job_description = job_description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
getter and setter methods | public String getJob_location() {
return job_location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
getter and setter methods | public void setJob_location(String job_location) {
this.job_location = job_location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
getter and setter methods | public String getService_category() {
return service_category;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
getter and setter methods | public void setService_category(String service_category) {
this.service_category = service_category;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
getter and setter methods | public String getClose_bidding() {
return close_bidding;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
getter and setter methods | public void setClose_bidding(String close_bidding) {
this.close_bidding = close_bidding;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public String get();",
"String setValue();",
"public T get() {\n return value;\n }",
... | [
"0.67523384",
"0.673631",
"0.6732386",
"0.6671453",
"0.66680115",
"0.6661087",
"0.6638733",
"0.6625396",
"0.6625396",
"0.65888155",
"0.65641516",
"0.64388144",
"0.63294303",
"0.629211",
"0.629211",
"0.6244602",
"0.6221921",
"0.6206522",
"0.6205516",
"0.6166033",
"0.61620736",... | 0.0 | -1 |
This method takes as parameter how many emirps you want to print and prints that numbers. Emirps are prime numbers which reverses are primes too, but they are not palindromes. | public static void printEmirp(int howMany){
int number = 0;//number will be the test number if its emirp
while(howMany>0){//while the number of how many we want to print is bigger than 0
int reverse = ReverseNumbersOrder.reverse(number); //this is the reverse number
if(number != reverse //if the number is not a palindrome
&& Primes.isPrime(number)//and if it and its reverse are prime numbers
&& Primes.isPrime(reverse)){
System.out.print(number+" ");//print that number
howMany--;//when it prints an emirp decrease the counter
if(howMany%10==0){//if how many emirps we have printed is divisible by 10
System.out.println();//go to new line
}
}
number++;//increase the number
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\nint count=0;\n\n\nfor(int i=13;count<100;i++){\n\tboolean a=isPrime(i);\n\tboolean b=isReversePrime(i);\n\t\n\tif(a && b){\n\t\tcount++;\n\t\tSystem.out.print(count%10 != 0 ? i+\" \":i+\"\\n\" );\n\t}\n}\n\t}",
"public void showPrimeNumbers(){\n for(Integer i : ... | [
"0.6828113",
"0.6806551",
"0.6463808",
"0.63225687",
"0.6304223",
"0.62665683",
"0.62173194",
"0.6216988",
"0.6139427",
"0.60055953",
"0.5996039",
"0.59764814",
"0.5972925",
"0.59580094",
"0.595171",
"0.5950344",
"0.5939082",
"0.5925217",
"0.5897185",
"0.5849533",
"0.5846975"... | 0.73512036 | 0 |
Creates a new instance of YonetimliNesne | public YonetimliNesne() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NeuronalNetwork(){\n // wie viele Schichten?\n // wie viele Neuronen pro Schicht?\n // welche Gewichte Je neuron je Schicht...\n }",
"Nexo createNexo();",
"public Network () {\n buildNetwork();\n }",
"public NimAIPlayer() {\n\t\t\t\t\n\t}",
"public Network (int N, i... | [
"0.6574969",
"0.64541525",
"0.57688487",
"0.5713553",
"0.56840426",
"0.5645205",
"0.558489",
"0.5554893",
"0.553286",
"0.55225855",
"0.5522173",
"0.5514058",
"0.5467886",
"0.54670066",
"0.54470384",
"0.54231054",
"0.5411943",
"0.54084754",
"0.53944004",
"0.5384117",
"0.538173... | 0.8044366 | 0 |
Add an item to enable a target breakpoint | public EnableTargetBreakpointActionItem planEnableTarget(TargetBreakpointLocation loc) {
if (loc instanceof TargetTogglable) {
EnableTargetBreakpointActionItem action =
new EnableTargetBreakpointActionItem((TargetTogglable) loc);
add(action);
return action;
}
TargetBreakpointSpec spec = loc.getSpecification();
if (spec instanceof TargetTogglable) {
EnableTargetBreakpointActionItem action = new EnableTargetBreakpointActionItem(spec);
add(action);
return action;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void activateBreakpointView() {\n \t\tif (!this.breakpointView.getActive()) {\n \t\t\tthis.breakpointView.getAddButton().addSelectionListener(this);\n \t\t\tthis.breakpointView.setActive(true);\n \t\t}\n \t}",
"public EnableEmuBreakpointActionItem planEnableEmu(TraceBreakpoint bpt) {\n\t\tEnableEmuBreakpo... | [
"0.6154364",
"0.5777216",
"0.57302827",
"0.56140876",
"0.5558203",
"0.5552295",
"0.54932183",
"0.5437794",
"0.53659946",
"0.5334348",
"0.5264455",
"0.5165214",
"0.51490724",
"0.5123196",
"0.5069692",
"0.49878013",
"0.4986254",
"0.4978965",
"0.4968944",
"0.4897799",
"0.4860420... | 0.5500865 | 6 |
Add an item to enable an emulated breakpoint | public EnableEmuBreakpointActionItem planEnableEmu(TraceBreakpoint bpt) {
EnableEmuBreakpointActionItem action = new EnableEmuBreakpointActionItem(bpt);
add(action);
return action;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void activateBreakpointView() {\n \t\tif (!this.breakpointView.getActive()) {\n \t\t\tthis.breakpointView.getAddButton().addSelectionListener(this);\n \t\t\tthis.breakpointView.setActive(true);\n \t\t}\n \t}",
"@ScriptyCommand(name = \"dbg-addbreakpoint\", description =\n \"(dbg-addbreakpoint <... | [
"0.57233983",
"0.54455316",
"0.5405503",
"0.5293681",
"0.5239493",
"0.52331454",
"0.51466435",
"0.5082896",
"0.50782824",
"0.50612515",
"0.50542223",
"0.50539434",
"0.50503236",
"0.5050228",
"0.5048654",
"0.50288016",
"0.50210196",
"0.50121725",
"0.49989808",
"0.4969215",
"0.... | 0.6044889 | 0 |
Add an item to disable a target breakpoint | public DisableTargetBreakpointActionItem planDisableTarget(TargetBreakpointLocation loc) {
if (loc instanceof TargetTogglable) {
DisableTargetBreakpointActionItem action =
new DisableTargetBreakpointActionItem((TargetTogglable) loc);
add(action);
return action;
}
TargetBreakpointSpec spec = loc.getSpecification();
if (spec instanceof TargetTogglable) {
DisableTargetBreakpointActionItem action = new DisableTargetBreakpointActionItem(spec);
add(action);
return action;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DisableEmuBreakpointActionItem planDisableEmu(TraceBreakpoint bpt) {\n\t\tDisableEmuBreakpointActionItem action = new DisableEmuBreakpointActionItem(bpt);\n\t\tadd(action);\n\t\treturn action;\n\t}",
"@Override\n\tpublic boolean supportsBreakpoint(IBreakpoint breakpoint) {\n\t\treturn false;\n\t}",
"pub... | [
"0.63577515",
"0.5686244",
"0.56069154",
"0.5490125",
"0.5475728",
"0.5412724",
"0.52333623",
"0.521573",
"0.5163073",
"0.5136304",
"0.5042613",
"0.5016485",
"0.49804488",
"0.49765956",
"0.4955964",
"0.49466375",
"0.4933435",
"0.49330795",
"0.49164146",
"0.48514655",
"0.48189... | 0.57244086 | 1 |
Add an item to disable an emulated breakpoint | public DisableEmuBreakpointActionItem planDisableEmu(TraceBreakpoint bpt) {
DisableEmuBreakpointActionItem action = new DisableEmuBreakpointActionItem(bpt);
add(action);
return action;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EnableEmuBreakpointActionItem planEnableEmu(TraceBreakpoint bpt) {\n\t\tEnableEmuBreakpointActionItem action = new EnableEmuBreakpointActionItem(bpt);\n\t\tadd(action);\n\t\treturn action;\n\t}",
"@Override\n\tpublic void setEnabled(boolean enabled) throws CoreException {\n\t\tsuper.setEnabled(enabled);\n... | [
"0.57797885",
"0.54502356",
"0.5367889",
"0.5279384",
"0.5259699",
"0.5229365",
"0.5207762",
"0.5192067",
"0.51893836",
"0.51626694",
"0.5160213",
"0.50984573",
"0.50548035",
"0.5046188",
"0.5040008",
"0.50272924",
"0.50268507",
"0.50211596",
"0.50080264",
"0.49946785",
"0.49... | 0.6537574 | 0 |
Add an item to delete a target breakpoint | public DeleteTargetBreakpointActionItem planDeleteTarget(TargetBreakpointLocation loc) {
if (loc instanceof TargetDeletable) {
DeleteTargetBreakpointActionItem action =
new DeleteTargetBreakpointActionItem((TargetDeletable) loc);
add(action);
return action;
}
TargetBreakpointSpec spec = loc.getSpecification();
if (spec instanceof TargetTogglable) {
DeleteTargetBreakpointActionItem action =
new DeleteTargetBreakpointActionItem((TargetDeletable) spec);
add(action);
return action;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DeleteEmuBreakpointActionItem planDeleteEmu(TraceBreakpoint bpt) {\n\t\tDeleteEmuBreakpointActionItem action = new DeleteEmuBreakpointActionItem(bpt);\n\t\tadd(action);\n\t\treturn action;\n\t}",
"public void testDeleteBreakpoint() throws Exception {\n startTest();\n openFile(\"debug.html\",... | [
"0.6482881",
"0.6297509",
"0.6007338",
"0.57731783",
"0.57659507",
"0.57645494",
"0.5691438",
"0.5550917",
"0.54876584",
"0.5410168",
"0.5339531",
"0.530115",
"0.5281439",
"0.527535",
"0.5226887",
"0.5226243",
"0.5224568",
"0.52048993",
"0.5201071",
"0.5186663",
"0.5179546",
... | 0.5839232 | 3 |
Add an item to delete an emulated breakpoint | public DeleteEmuBreakpointActionItem planDeleteEmu(TraceBreakpoint bpt) {
DeleteEmuBreakpointActionItem action = new DeleteEmuBreakpointActionItem(bpt);
add(action);
return action;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testDeleteBreakpoint() throws Exception {\n startTest();\n openFile(\"debug.html\", LineDebuggerTest.current_project);\n EditorOperator eo = new EditorOperator(\"debug.html\");\n setLineBreakpoint(eo, \"window.console.log(a);\");\n\n openFile(\"linebp.js\", LineDebugg... | [
"0.60860145",
"0.60611784",
"0.59655064",
"0.59236175",
"0.5810834",
"0.57633585",
"0.57198066",
"0.56893986",
"0.56390524",
"0.5621699",
"0.5600116",
"0.5558238",
"0.554371",
"0.54794174",
"0.54668224",
"0.5453259",
"0.54374576",
"0.5396883",
"0.53588945",
"0.53565073",
"0.5... | 0.6400374 | 0 |
Carry out the actions in the order they were added | public CompletableFuture<Void> execute() {
AsyncFence fence = new AsyncFence();
for (BreakpointActionItem item : this) {
fence.include(item.execute());
}
return fence.ready();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n \tpublic void addActions() {\n \t\t\n \t}",
"private void placeActions() {\n IActionBars actionBars = getViewSite().getActionBars();\n\n // first in the menu\n IMenuManager menuManager = actionBars.getMenuManager();\n menuManager.add(mCreateFilterAction);\n menuMana... | [
"0.67792773",
"0.64378494",
"0.62101156",
"0.6157942",
"0.61374956",
"0.6089977",
"0.5946064",
"0.58545583",
"0.58439076",
"0.58284616",
"0.5825841",
"0.58112913",
"0.581074",
"0.5809625",
"0.58072007",
"0.5797965",
"0.5786999",
"0.5782629",
"0.57671565",
"0.57535344",
"0.574... | 0.0 | -1 |
/ We can go through the values of a hash map by using a foreach loop on the set returned by the keySet() method of the hash map. | public ArrayList<Book> getBookByPart(String titlePart) {
titlePart = this.sanitizeString(titlePart);
ArrayList<Book> bookList = new ArrayList<>();
for (String bookTitle: this.books.keySet()) {
if (bookTitle.contains(titlePart)) {
bookList.add(this.books.get(bookTitle));
}
}
return bookList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testHashMap() {\n\n\t\t/*\n\t\t * Creates an empty HashMap object with default initial capacity 16 and default\n\t\t * fill ratio \"0.75\".\n\t\t */\n\t\tHashMap hm = new HashMap();\n\t\thm.put(\"evyaan\", 700);\n\t\thm.put(\"varun\", 100);\n\t\thm.put(\"dolly\", 300);\n\t\thm.put(\"vaishu\", ... | [
"0.6646761",
"0.6483282",
"0.6464383",
"0.64407176",
"0.6437324",
"0.63385993",
"0.6240352",
"0.6184607",
"0.61691177",
"0.6161459",
"0.6144438",
"0.61163443",
"0.6049159",
"0.60350764",
"0.6020229",
"0.5930394",
"0.59270716",
"0.59264785",
"0.59148633",
"0.5913929",
"0.59106... | 0.0 | -1 |
/ The preceding functionality could also be implemented by going through the hash map's values. The set of values can be retrieved with the hash map's values() method. This set of values can also be iterated over with a foreach loop. | public static void printValues(HashMap<String, Book> hashmap) {
for (Book book: hashmap.values()) {
System.out.println(book);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Collection<V> values() {\n\t\tList<V> list = Util.newList();\n\t\tfor (K key : keys) {\n\t\t\tlist.add(map.get(key));\n\t\t}\n\t\t\n\t\treturn list;\n\t}",
"@Override\n public Collection<V> values() {\n Collection<V> values = new HashSet<V>(size());\n for (LinkedList<Entry<K,... | [
"0.64918154",
"0.64213747",
"0.6382259",
"0.6350905",
"0.6339613",
"0.6283011",
"0.62696105",
"0.6237878",
"0.62377375",
"0.62150115",
"0.61856854",
"0.6181388",
"0.61502326",
"0.6110791",
"0.6070347",
"0.604858",
"0.6039684",
"0.5969939",
"0.59549916",
"0.595253",
"0.5949322... | 0.54344416 | 89 |
Fuel consumption in miles per gallon Page 150. Adding a parameterized constructor in Vehicle2 class | public Vehicle2(int p, int f, int m) {
passengers = p;
fuelcap = f;
mpg = m;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Car( double fuelEfficiency)\n {\n // initialise instance variables\n fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }",
"public Car(double fuelEfficiency)\n {\n this.fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }",
"Vehicle(int p, int f, int m... | [
"0.71460706",
"0.7120886",
"0.7009765",
"0.6932764",
"0.68256754",
"0.6657811",
"0.6546797",
"0.65333897",
"0.64965594",
"0.6493167",
"0.64045966",
"0.63791025",
"0.6376073",
"0.6335171",
"0.62957865",
"0.6272294",
"0.6253938",
"0.6232193",
"0.61309296",
"0.61267716",
"0.6125... | 0.70879126 | 2 |
Method return the distance of the trip for the given vehicle | int range() {
return mpg * fuelcap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDistance(){\n if (distance == 0) {\n int tourDistance = 0;\n // Loop through our tour's cities\n for (int cityIndex=0; cityIndex < tourSize(); cityIndex++) {\n // Get city we're travelling from\n City fromCity = getCity(cityIndex);... | [
"0.6928142",
"0.67627996",
"0.6618093",
"0.6537545",
"0.64979917",
"0.6464313",
"0.64632165",
"0.6402155",
"0.6345782",
"0.62997746",
"0.6280204",
"0.6258466",
"0.6255346",
"0.62362075",
"0.6225897",
"0.6225596",
"0.61899036",
"0.6127627",
"0.60967946",
"0.60732794",
"0.60116... | 0.0 | -1 |
parametrized method, which calculates the amount of fuel needed by a vehicle to overcome a given distance | double fuelneeded(int miles) {
return (double) miles / mpg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float calFuelConsumption(float distance, float numLiters);",
"public void drive(double distance)\n {\n fuelInTank -= distance / fuelEfficiency; \n }",
"@Override\n\tpublic double calcSpendFuel() {\n\t\tdouble result = distance / (literFuel - fuelStart);\n\t\treturn result;\n\t}",
"public void ex... | [
"0.78849924",
"0.73241365",
"0.71124953",
"0.68234015",
"0.64845526",
"0.6464696",
"0.6449643",
"0.6357697",
"0.6184693",
"0.61778194",
"0.61770684",
"0.6157985",
"0.6117933",
"0.60851896",
"0.60836285",
"0.60568076",
"0.60274255",
"0.60250974",
"0.59948635",
"0.5988306",
"0.... | 0.66155434 | 4 |
Created by Sphinx on 2017/3/30. | @Singleton
@Component(modules = {ApplicationModule.class, CalendarPresenterModule.class, ApiHttpModule.class})
public interface CalendarComponent {
void inject(Dagger2Activity activity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n protected void parseDocuments()\r\n {\n\r\n }",
"public abstract ModuleDoc doc();",
"public conversorDOC(){\n }",
"public void configureWord() {\n }",
"public String qualifiedDocName() { return \"\"; }",
"@Override\n\tpublic void startDocument() {\n\t\t\n\t}",
"Documentati... | [
"0.5973888",
"0.56948024",
"0.55943245",
"0.54801863",
"0.5480149",
"0.5469244",
"0.54570293",
"0.54570293",
"0.5368877",
"0.52915525",
"0.52593046",
"0.52529824",
"0.5223911",
"0.5209914",
"0.5191976",
"0.518095",
"0.5179276",
"0.5156266",
"0.51528496",
"0.51509476",
"0.5143... | 0.0 | -1 |
String str = "C:\\Users\\JK02258\\Desktop\\Jyothi\\Open Banking\\MyCertTest Copy.p12"; System.out.println(str); | public static void main(String[] args) {
htmlReporter = new ExtentHtmlReporter("C:\\Users\\Suresh Mylam\\eclipse-workspace\\TestNG_Listners\\Reports\\TestReport.html");
extent = new ExtentReports();
extent.attachReporter(htmlReporter);
test= extent.createTest("TEst123");
test.pass("pass");
test.fail("fail");
test.info("info");
extent.flush();
System.out.println("Done");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }",
"private File getTempPkc12File() throws IOException {\n InputStream pkc12Stream = context.getAssets().open(\"projectGoogle.p12\");\n ... | [
"0.529075",
"0.52045065",
"0.5188054",
"0.5125808",
"0.5071915",
"0.49830413",
"0.49802214",
"0.49366575",
"0.4856833",
"0.4811296",
"0.47978112",
"0.47819683",
"0.47645432",
"0.47067687",
"0.46948013",
"0.46734375",
"0.46661615",
"0.46627608",
"0.46430722",
"0.4621645",
"0.4... | 0.0 | -1 |
SCS should contain characters in both string X and Y in sequence In worst case, we will append both the strings X and Y as we need SHORTEST string, LCS among both X and Y can be present only once in the result so that length can be minimised Therefore SCS = X + Y LCS | private static int scs(String X, String Y, int m, int n) {
return m + n - LCSBottomUp.lcs(X, Y, m, n);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int lcs(int x, int y, String s1, String s2)\n {\n // your code here\n \n int len1 = x;\n \n int len2 = y;\n \n int dp[][] = new int[len1+1][len2+1];\n \n for(int i=0;i<=len1;i++){\n dp[i][0] = 0;\n }\n \n for(i... | [
"0.72359926",
"0.71264803",
"0.6743469",
"0.6641349",
"0.6551236",
"0.63624215",
"0.6218635",
"0.61815155",
"0.61191165",
"0.6085879",
"0.60476565",
"0.6002294",
"0.5974777",
"0.5899522",
"0.58873075",
"0.5872055",
"0.58364594",
"0.581973",
"0.5815818",
"0.5770597",
"0.575808... | 0.56691325 | 25 |
/Load Configuration File HTTPS.txt | public Https()
{
try
{
PropertyConfigurator.configure("conf/log4j.properties");
propXML.load(new FileInputStream("conf/HTTPS.txt"));
key=propXML.getProperty("key");
}
catch(IOException e)
{
logger.error(this.getClass().getName()+" "+e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.... | [
"0.6275813",
"0.61118734",
"0.6073142",
"0.60462165",
"0.6013002",
"0.59936357",
"0.59223354",
"0.58135015",
"0.573947",
"0.56631196",
"0.56539494",
"0.5652501",
"0.5583217",
"0.55194724",
"0.54521465",
"0.54323894",
"0.54314035",
"0.54285",
"0.54208696",
"0.53989196",
"0.539... | 0.726953 | 0 |
/Extract Sing Cash Inquiry Response | public String[] inquiryResponse(String input)
{
input = tselDecrypt(key,input);
inquiryResponseTemp=input.split("@~|");
inquiryResponse[0]=inquiryResponseTemp[0];
inquiryResponse[1]=inquiryResponseTemp[1];
inquiryResponse[2]=inquiryResponseTemp[2];
inquiryResponse[3]=inquiryResponseTemp[3];
inquiryResponseTemp2=inquiryResponseTemp[4].split("|");
for(int i=0;i<inquiryResponseTemp2.length;i++)
{
inquiryResponse[i+4]=inquiryResponseTemp2[i];
}
inquiryResponse[4+inquiryResponseTemp2.length]=inquiryResponseTemp[5];
return inquiryResponse;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResponse();",
"public String extractingmessagegetbookings()\r\n\t{\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingsstring;\r\n\t\tgetbookingsstring = jsonResult.getJSONObject(\"hotelog... | [
"0.5792476",
"0.57464916",
"0.57116055",
"0.5577009",
"0.5500184",
"0.54402095",
"0.5388415",
"0.5321778",
"0.5309673",
"0.5279052",
"0.5229731",
"0.5203294",
"0.5187673",
"0.515852",
"0.5151543",
"0.51432353",
"0.5140912",
"0.5122063",
"0.5117799",
"0.51071525",
"0.51036096"... | 0.5763242 | 1 |
/Create Sing Cash Inquiry Request | public String inquiry(String terminal, String location, String customer, String refNo)
{
inquiry=propXML.getProperty("encashmentinquiry");
inquiry = StringUtils.replaceOnce(inquiry,"_terminal_", terminal);
inquiry = StringUtils.replaceOnce(inquiry,"_location_", location);
inquiry = StringUtils.replaceOnce(inquiry,"_customer_", customer);
inquiry = StringUtils.replaceOnce(inquiry,"_trx_date_", trxDate);
inquiry = StringUtils.replaceOnce(inquiry,"_sequence_id_", sequenceId);
inquiry = StringUtils.replaceOnce(inquiry,"_ref_no_", refNo);
return tselEncrypt(key,inquiry);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean createAcquest(Acquest acquest);",
"com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest addNewEvSORequest();",
"com.exacttarget.wsdl.partnerapi.QueryRequest addNewQueryRequest();",
"com.indosat.eai.catalist.standardInputOutput.RequestType addNewRequest();",
"public InquiryGrupomuscul... | [
"0.6236587",
"0.60716677",
"0.59451646",
"0.5905828",
"0.5863386",
"0.5828116",
"0.5765463",
"0.57500404",
"0.573171",
"0.57116616",
"0.55885446",
"0.5545477",
"0.5543139",
"0.5532086",
"0.553056",
"0.5509277",
"0.547698",
"0.547663",
"0.5475583",
"0.54732627",
"0.5467886",
... | 0.0 | -1 |
/Extract Sing Cash Submission Response | public String[] submissionResponse(String input)
{
input = tselDecrypt(key,input);
submissionResponse=input.split("@~|");
return submissionResponse;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResponse();",
"String getResponse();",
"public String extractingmessagegetbookings()\r\n\t{\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingsstring;\r\n\t\tgetbookingsstring = jsonRes... | [
"0.5792922",
"0.5770911",
"0.57475334",
"0.5484029",
"0.5305323",
"0.5305323",
"0.5298692",
"0.52977455",
"0.525038",
"0.5201107",
"0.5189171",
"0.5153205",
"0.51429504",
"0.50935876",
"0.5075501",
"0.5059083",
"0.5026422",
"0.499014",
"0.49358866",
"0.48944288",
"0.488076",
... | 0.60747695 | 0 |
/Create Sing Cash Submission Request | public String submission(String terminal, String location, String customer, String refNo, String amount)
{
submission=propXML.getProperty("enchasmentsubmission");
submission = StringUtils.replaceOnce(submission,"_terminal_", terminal);
submission = StringUtils.replaceOnce(submission,"_location_", location);
submission = StringUtils.replaceOnce(submission,"_customer_", customer);
submission = StringUtils.replaceOnce(submission,"_trx_date_", trxDate);
submission = StringUtils.replaceOnce(submission,"_sequence_id_", sequenceId);
submission = StringUtils.replaceOnce(submission,"_amount_", amount);
submission = StringUtils.replaceOnce(submission,"_ref_no_", refNo);
submission = StringUtils.replaceOnce(submission,"_transaction_id_", transactionId);
return tselEncrypt(key,submission);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract DankSubmissionRequest build();",
"private ReservationSubmissionRequest createReservationSubmissionRequest(\n ReservationSubmissionRequestInfo resContext) throws IOException {\n if (resContext == null) {\n throw new BadRequestException(\n \"Input ReservationSubmissionContext ... | [
"0.6352191",
"0.59544003",
"0.5884224",
"0.5866659",
"0.5827104",
"0.57972693",
"0.5650036",
"0.55753964",
"0.555737",
"0.55465454",
"0.55141985",
"0.54998684",
"0.54939824",
"0.5490542",
"0.54813284",
"0.54701674",
"0.5447064",
"0.5446638",
"0.54320645",
"0.5421548",
"0.5396... | 0.5153076 | 37 |
/Extract Sing Cash Check Status Response | public String[] checkstatusResponse(String input)
{
input = tselDecrypt(key,input);
checkstatusResponse=input.split("@~|");
return checkstatusResponse;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.polytech.spik.protocol.SpikMessages.Status getStatus();",
"com.polytech.spik.protocol.SpikMessages.Status getStatus();",
"@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}",
"java.lang.String getStatus();",
"java.lang.String getStatus();",
"java.lang.String getStatus... | [
"0.64851934",
"0.64851934",
"0.61480916",
"0.60817796",
"0.60817796",
"0.60817796",
"0.60817796",
"0.6077329",
"0.6019251",
"0.5968654",
"0.5954916",
"0.59183615",
"0.59183615",
"0.59183615",
"0.59183615",
"0.59183615",
"0.58030224",
"0.57795954",
"0.5769059",
"0.5716315",
"0... | 0.6071054 | 8 |
/Create Sing Cash Check Status Request | public String checkstatus(String terminal, String location, String customer, String refNo)
{
checkstatus=propXML.getProperty("checkstatus");
checkstatus = StringUtils.replaceOnce(checkstatus,"_terminal_", terminal);
checkstatus = StringUtils.replaceOnce(checkstatus,"_location_", location);
checkstatus = StringUtils.replaceOnce(checkstatus,"_customer_", customer);
checkstatus = StringUtils.replaceOnce(checkstatus,"_trx_date_", trxDate);
checkstatus = StringUtils.replaceOnce(checkstatus,"_sequence_id_", sequenceId);
checkstatus = StringUtils.replaceOnce(checkstatus,"_ref_no_", refNo);
return tselEncrypt(key,checkstatus);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ShipmentStatus createShipmentStatus();",
"@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}",
"private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t... | [
"0.63716614",
"0.59755504",
"0.593019",
"0.5877717",
"0.58445716",
"0.5756979",
"0.5625623",
"0.55974215",
"0.5583346",
"0.55499315",
"0.55499315",
"0.5500891",
"0.5499777",
"0.5491576",
"0.5473706",
"0.5449647",
"0.5437492",
"0.5390149",
"0.52750045",
"0.52750045",
"0.526397... | 0.0 | -1 |
/Encrypt Sing Cash Content | public String tselEncrypt(String key, String message)
{
if (key == null || key.equals(""))
{
return message;
}
if (message == null || message.equals(""))
{
return "";
}
CryptoUtils enc = new CryptoUtils(key, Cipher.ENCRYPT_MODE);
String messageEnc = enc.process(message);
return messageEnc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String encryption(Long key, String encryptionContent);",
"Encryption encryption();",
"public String encrypt(String geheimtext);",
"public synchronized void encryptText() {\n setSalt(ContentCrypto.generateSalt());\n try {\n mText = ContentCrypto.encrypt(mText, getSalt(), Passphrase.IN... | [
"0.7212146",
"0.7119129",
"0.6544916",
"0.6454481",
"0.63089794",
"0.6292081",
"0.6283639",
"0.6253515",
"0.6224478",
"0.6177515",
"0.614552",
"0.6143805",
"0.609211",
"0.60881305",
"0.60867167",
"0.6070707",
"0.60697365",
"0.60185266",
"0.5972866",
"0.5970642",
"0.5944991",
... | 0.0 | -1 |
/Decrypt Sing Cash Content | public String tselDecrypt(String key, String message)
{
if (key == null || key.equals(""))
{
return message;
}
if (message == null || message.equals(""))
{
return "";
}
CryptoUtils enc = new CryptoUtils(key, Cipher.DECRYPT_MODE);
String messageEnc = enc.process(message);
return messageEnc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String Decrypt(String s);",
"@GetMapping(\"/decrypt\")\n public String decrypt(String uid, String data) {\n return \"\";\n }",
"private static String decryptAES() {\n\t\tString inFilename = \"7hex.txt\";\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inFilename);\n\t\t\tBufferedReader br... | [
"0.6626214",
"0.62351763",
"0.60996807",
"0.60036135",
"0.59308743",
"0.59149265",
"0.59074897",
"0.58604676",
"0.5854443",
"0.5827372",
"0.57753026",
"0.57747155",
"0.57597834",
"0.5719509",
"0.5717588",
"0.5702866",
"0.56918776",
"0.5661308",
"0.5652741",
"0.56349796",
"0.5... | 0.0 | -1 |
Create clone of existing proxy. | @Override
public TableViewRowProxy clone()
{
final TableViewRowProxy proxy = (TableViewRowProxy) super.clone();
// Reference clone, to update properties.
clones.add(new WeakReference<>(proxy));
return proxy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Function clone();",
"Object clone();",
"Object clone();",
"@Override\n public ForwardStrategy clone() {\n return new ForwardStrategy(this);\n }",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public T create()\n {\n ... | [
"0.68144876",
"0.6756323",
"0.6756323",
"0.64733356",
"0.6473187",
"0.6473187",
"0.6473187",
"0.6473187",
"0.64674336",
"0.6370907",
"0.63458246",
"0.63123024",
"0.6235381",
"0.6224488",
"0.61407226",
"0.6118019",
"0.6104885",
"0.6078649",
"0.60602814",
"0.6051762",
"0.603839... | 0.5703345 | 48 |
Generate RowView for current proxy. | @Override
public TiUIView createView(Activity activity)
{
if (placeholder) {
// Placeholder for header or footer, do not create view.
return null;
}
return new RowView(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildRows(View view, String rowTemplate, UifFormBase model) {\r\n if (StringUtils.isBlank(rowTemplate)) {\r\n return;\r\n }\r\n\r\n rowTemplate = StringUtils.removeEnd(rowTemplate, \",\");\r\n rowTemplate = rowTemplate.replace(\"\\n\", \"\");\r\n rowTemplat... | [
"0.6065605",
"0.5948177",
"0.5920463",
"0.5777269",
"0.57595956",
"0.5684739",
"0.5658935",
"0.56241477",
"0.5582971",
"0.55211323",
"0.55102205",
"0.55085725",
"0.5494753",
"0.5456315",
"0.5405114",
"0.53821266",
"0.537832",
"0.5354699",
"0.5344987",
"0.5329064",
"0.53289676... | 0.57271075 | 5 |
Handle event data to generate payload with table data. | private Object handleEvent(String eventName, Object data)
{
// Inject row data into events.
final TableViewProxy tableViewProxy = getTableViewProxy();
if (tableViewProxy != null) {
final KrollDict payload = data instanceof HashMap
? new KrollDict((HashMap<String, Object>) data) : new KrollDict();
final TiTableView tableView = tableViewProxy.getTableView();
payload.put(TiC.PROPERTY_ROW_DATA, properties);
if (getParent() instanceof TableViewSectionProxy) {
payload.put(TiC.PROPERTY_SECTION, getParent());
}
payload.put(TiC.EVENT_PROPERTY_ROW, this);
payload.put(TiC.EVENT_PROPERTY_INDEX, index);
if (tableView != null) {
payload.put(TiC.EVENT_PROPERTY_SEARCH_MODE, tableView.isFiltered());
}
data = payload;
}
return data;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handle(Object e){\n\t\tif(e.getClass().equals(GetResultRequestEvent.class)){\n\t\t\tgetResults((GetResultRequestEvent)e);\n\t\t}else if(e.getClass().equals(RefreshAllDataEvent.class)){\n\t\t\ttf.getData(app);\n\t\t}else if(e.getClass().equals(ExportDataEvent.class)){\n\t\t\ttf.exportItemDB();\n\t\t}\n\... | [
"0.6295705",
"0.5791174",
"0.57332724",
"0.5559902",
"0.54153746",
"0.5392115",
"0.53802454",
"0.53392357",
"0.5319111",
"0.53093743",
"0.52775186",
"0.5266438",
"0.5261409",
"0.52606225",
"0.523672",
"0.52153844",
"0.51701444",
"0.5166351",
"0.5166351",
"0.5166351",
"0.51663... | 0.6770839 | 0 |
Override fireEvent to inject row data into payload. | @Override
public boolean fireEvent(String eventName, Object data, boolean bubbles)
{
data = handleEvent(eventName, data);
return super.fireEvent(eventName, data, bubbles);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Object handleEvent(String eventName, Object data)\n\t{\n\t\t// Inject row data into events.\n\t\tfinal TableViewProxy tableViewProxy = getTableViewProxy();\n\n\t\tif (tableViewProxy != null) {\n\t\t\tfinal KrollDict payload = data instanceof HashMap\n\t\t\t\t? new KrollDict((HashMap<String, Object>) data) ... | [
"0.63482785",
"0.60100985",
"0.60041225",
"0.5781826",
"0.5597369",
"0.5586523",
"0.55279243",
"0.547573",
"0.5454297",
"0.5426742",
"0.53902143",
"0.53826666",
"0.53526986",
"0.53495705",
"0.5316658",
"0.5304308",
"0.5303754",
"0.5264181",
"0.5255892",
"0.521574",
"0.5213152... | 0.4820404 | 82 |
Get filtered index of row in section. | public int getFilteredIndex()
{
return this.filteredIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getRowIndex(Feature f){\n return fc.indexOf(f);\n }",
"public int getIndexInSection()\n\t{\n\t\tfinal TiViewProxy parent = getParent();\n\n\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\treturn section.g... | [
"0.6540111",
"0.6503769",
"0.6202137",
"0.6200069",
"0.6077815",
"0.596664",
"0.596664",
"0.596664",
"0.5964494",
"0.5942758",
"0.58720917",
"0.5850241",
"0.5844212",
"0.5808097",
"0.5786385",
"0.5780272",
"0.5773683",
"0.5772473",
"0.5772473",
"0.57694554",
"0.5765117",
"0... | 0.61558956 | 4 |
Set filtered index of row in section. | public void setFilteredIndex(int index)
{
this.filteredIndex = index;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIndex(int rowOrCol) {\n index = rowOrCol;\n }",
"public void setRowFilter(RowFilter rowFilter) {\n\n this.rowFilter = rowFilter;\n }",
"@Override\r\n public void setRowIndex(int rowIndex) {\r\n if (rowIndex == -1 || getPageSize() == 0) {\r\n ... | [
"0.59538853",
"0.58182156",
"0.5796328",
"0.5713661",
"0.5684824",
"0.5610953",
"0.5569966",
"0.5440131",
"0.5440131",
"0.54293084",
"0.5424593",
"0.53862625",
"0.5376228",
"0.5376099",
"0.53682035",
"0.53650343",
"0.53650343",
"0.5360432",
"0.53491944",
"0.53474075",
"0.5341... | 0.6222873 | 0 |
Get current TableViewHolder for row. | public TableViewHolder getHolder()
{
return this.holder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TableRow getRow() {\n return row;\n }",
"public int getRow() {\n // YOUR CODE HERE\n return this.row;\n }",
"public int getRow() {\n return mRow;\n }",
"public int getRow() {\n return row;\n }",
"public int getRow() {\n return row;\n }",
"publi... | [
"0.6162638",
"0.59570265",
"0.59112525",
"0.5889134",
"0.5889134",
"0.5889134",
"0.5889134",
"0.5889134",
"0.5889134",
"0.58847827",
"0.5882316",
"0.5861588",
"0.5861588",
"0.58611184",
"0.5850882",
"0.58467364",
"0.5846033",
"0.58001024",
"0.5789846",
"0.5782981",
"0.5744082... | 0.71671206 | 0 |
Set new TableViewHolder for item. | public void setHolder(TableViewHolder holder)
{
this.holder = holder;
// Update to new holder.
final RowView row = (RowView) getOrCreateView();
if (row != null) {
// Reset native view to our holder.
row.setNativeView(this.holder.getNativeView());
// Register touch events.
row.registerForTouch();
// Grab latest `nativeView`.
final View nativeView = row.getNativeView();
// Reset opacity of view.
nativeView.setAlpha(1.0f);
// Apply proxy properties.
row.processProperties(this.properties);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initTableView() {\n // nastaveni sloupcu pro zobrazeni spravne hodnoty a korektniho datoveho typu\n this.colId.setCellValueFactory(cellData -> cellData.getValue().getPersonalIdProperty());\n this.colName.setCellValueFactory(cellData -> cellData.getValue().getDisplayNameProperty())... | [
"0.5918778",
"0.56141603",
"0.5597068",
"0.55677056",
"0.5529294",
"0.5505403",
"0.54959303",
"0.54892814",
"0.54889464",
"0.54747564",
"0.54736847",
"0.54561037",
"0.54467857",
"0.5437426",
"0.5429754",
"0.53112173",
"0.53070647",
"0.5306423",
"0.530287",
"0.530287",
"0.5298... | 0.6244661 | 0 |
Override getRect() to amend dimensions. | @Override
public KrollDict getRect()
{
View view = null;
if (this.holder != null) {
view = this.holder.getNativeView();
}
return getViewRect(view);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RMRect getBounds() { return new RMRect(getX(), getY(), getWidth(), getHeight()); }",
"org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto getRect();",
"@Override\r\n\tpublic Rectangle getRect() {\n\t\treturn null;\r\n\t}",
"@java.lang.Override\n public org.chromium.componen... | [
"0.73601514",
"0.7300025",
"0.72676516",
"0.7260901",
"0.7246512",
"0.7201828",
"0.71829253",
"0.71529084",
"0.7109634",
"0.6968105",
"0.69086605",
"0.690447",
"0.690447",
"0.690447",
"0.6900939",
"0.6898082",
"0.6894706",
"0.6880103",
"0.6826752",
"0.6821682",
"0.68048304",
... | 0.6748044 | 23 |
Get item index in section. | public int getIndexInSection()
{
final TiViewProxy parent = getParent();
if (parent instanceof TableViewSectionProxy) {
final TableViewSectionProxy section = (TableViewSectionProxy) parent;
return section.getRowIndex(this);
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getIndexOfSection(TableViewSectionProxy section)\n\t{\n\t\treturn this.sections.indexOf(section);\n\t}",
"protected int getItemIndex(String key){\n for (int i = 0; i < itemsInTable.size(); i++){\n if (itemsInTable.get(i).equals(key)) return i;\n }\n return -1;\n }",... | [
"0.72160405",
"0.67890537",
"0.6633762",
"0.6593507",
"0.6475988",
"0.64573365",
"0.64573365",
"0.64573365",
"0.64464885",
"0.64401734",
"0.64373654",
"0.64276636",
"0.641518",
"0.64103633",
"0.63911533",
"0.63900095",
"0.6362708",
"0.63604146",
"0.6353603",
"0.6352577",
"0.6... | 0.71661466 | 1 |
Get related TableView proxy for item. | public TableViewProxy getTableViewProxy()
{
TiViewProxy parent = getParent();
while (!(parent instanceof TableViewProxy) && parent != null) {
parent = parent.getParent();
}
return (TableViewProxy) parent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public T getItemVO() {\n return this.itemVO;\n }",
"TableView ShowTablePerson() {\n\n personTable = new TableView();\n showPerson();\n\n return this.personTable;\n }",
"public Item getItem() { return this; }",
"public abstract VT getItemViewModel(ViewDataBindi... | [
"0.5399397",
"0.52638346",
"0.5210216",
"0.5039545",
"0.50146973",
"0.4967789",
"0.4955064",
"0.49421045",
"0.4874278",
"0.48671758",
"0.48566577",
"0.4843042",
"0.48337215",
"0.4800652",
"0.47904253",
"0.47676778",
"0.47458124",
"0.47441652",
"0.4743049",
"0.4738726",
"0.464... | 0.6372801 | 0 |
Determine if row is currently selected. | public boolean isSelected()
{
return selected;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSelected() { \n \treturn selection != null; \n }",
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"public boolean isSelected() {\n \t\treturn selected;\n \t}",
"@Override\n public boolean isSelectedIndex(int row)\n ... | [
"0.7759765",
"0.75033414",
"0.72155416",
"0.7208136",
"0.72068983",
"0.716207",
"0.7146544",
"0.71318114",
"0.71318114",
"0.71262735",
"0.71152294",
"0.70887196",
"0.70887196",
"0.7085251",
"0.70635897",
"0.7008596",
"0.6977341",
"0.6977341",
"0.6977341",
"0.69742316",
"0.695... | 0.7175936 | 5 |
Set row selection status. | public void setSelected(boolean selected)
{
this.selected = selected;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRowSelectionEnabled(boolean b) {\r\n\t\t// AttrSession.logPrintln(this+\": setRowSelectionEnabled(\"+b+\")\");\r\n\t\tif (b) {\r\n\t\t\t// Selecting of rows, not columns:\r\n\t\t\tthis.tableView.setRowSelectionAllowed(true);\r\n\t\t\tthis.tableView.setColumnSelectionAllowed(false);\r\n\r\n\t\t\t// J... | [
"0.70792",
"0.68758714",
"0.66951495",
"0.63822657",
"0.62845117",
"0.6280002",
"0.62765366",
"0.6272021",
"0.6261079",
"0.6261079",
"0.6245485",
"0.62156117",
"0.6185873",
"0.6150831",
"0.60942817",
"0.6093775",
"0.60796815",
"0.60484785",
"0.6048428",
"0.6041268",
"0.602432... | 0.57433987 | 52 |
Handle initial creation properties. | @Override
public void handleCreationDict(KrollDict options)
{
if (options == null) {
options = new KrollDict();
}
// TableViewRow.header and TableViewRow.footer have been deprecated.
if (options.containsKey(TiC.PROPERTY_HEADER)) {
headerDeprecationLog();
}
if (options.containsKey(TiC.PROPERTY_FOOTER)) {
footerDeprecationLog();
}
if (options.containsKeyAndNotNull(TiC.PROPERTY_HEADER_VIEW)) {
final TiViewProxy headerProxy = (TiViewProxy) options.get(TiC.PROPERTY_HEADER_VIEW);
// Set header view parent, so it can be released correctly.
headerProxy.setParent(this);
}
if (options.containsKeyAndNotNull(TiC.PROPERTY_FOOTER_VIEW)) {
final TiViewProxy footerProxy = (TiViewProxy) options.get(TiC.PROPERTY_FOOTER_VIEW);
// Set header view parent, so it can be released correctly.
footerProxy.setParent(this);
}
super.handleCreationDict(options);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setupProperties() {\n // left empty for subclass to override\n }",
"public void onCreation(java.lang.Object init)\n {\n }",
"CreationData creationData();",
"public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}",
"public void init... | [
"0.65315086",
"0.63804007",
"0.63125604",
"0.6136958",
"0.6115648",
"0.6104347",
"0.6095729",
"0.6094573",
"0.6089444",
"0.60686934",
"0.6061966",
"0.6060122",
"0.60543746",
"0.60374635",
"0.5966941",
"0.59402716",
"0.5934885",
"0.5915935",
"0.5897299",
"0.5893072",
"0.589032... | 0.0 | -1 |
Deprecation log for 'TableViewRow.header' usage. | private void headerDeprecationLog()
{
Log.w(TAG, "Usage of 'TableViewRow.header' has been deprecated, use 'TableViewRow.headerTitle' instead.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Deprecated\n protected String showHeader() {\n String header = \"<table border>\\n\";\n header += \"<tr>\\n\";\n\n Iterator columnsIt = columns.iterator();\n\n while (columnsIt.hasNext()) {\n String column = (String) columnsIt.next();\n header += \"<td>\" + col... | [
"0.6701742",
"0.62864494",
"0.61147445",
"0.6100785",
"0.609801",
"0.6070209",
"0.60391104",
"0.60199815",
"0.59010565",
"0.5891248",
"0.5886919",
"0.58836436",
"0.5874511",
"0.58714586",
"0.58602434",
"0.58343345",
"0.58016247",
"0.57992005",
"0.5798495",
"0.5772732",
"0.575... | 0.87541044 | 0 |
Deprecation log for 'TableViewRow.footer' usage. | private void footerDeprecationLog()
{
Log.w(TAG, "Usage of 'TableViewRow.footer' has been deprecated, use 'TableViewRow.footerTitle' instead.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onFooterRefresing();",
"@Override\n\tpublic String formatFooter() {\n\t\treturn \"\\n\";\n\t}",
"public Class<?> footer() {\n return footer;\n }",
"public void removeAllFooterView() {\n if (getFooterLayoutCount() == 0) return;\n\n mFooterLayout.removeAllViews();\n i... | [
"0.62574863",
"0.61021847",
"0.5896976",
"0.5893261",
"0.58794683",
"0.58247197",
"0.5769841",
"0.57644033",
"0.5714714",
"0.56317604",
"0.56105244",
"0.5546876",
"0.55424136",
"0.5525957",
"0.5488536",
"0.545083",
"0.54388547",
"0.5431679",
"0.5403677",
"0.5398087",
"0.53779... | 0.8570723 | 0 |
Invalidate item to rebind holder. This will update the current holder to display new changes. | public void invalidate()
{
if (this.holder != null) {
this.holder.bind(this, this.holder.itemView.isActivated());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void invalidate() {\n\t\tthis.invalidated = true;\n\t}",
"private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }",
"private void refreshView() {\n if (!wasInvalidatedBefore) {\n wasInvalidatedBefore = true;\n invalidate();\n }\n }",
"@Override... | [
"0.64412516",
"0.6367017",
"0.63025385",
"0.62016845",
"0.6195544",
"0.6187424",
"0.6102781",
"0.6101919",
"0.61000097",
"0.60752594",
"0.6061683",
"0.6027072",
"0.59508735",
"0.5949182",
"0.5940807",
"0.58833605",
"0.58588004",
"0.5821413",
"0.5814085",
"0.57863057",
"0.5740... | 0.79188734 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.