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 |
|---|---|---|---|---|---|---|
required bool reqardTypeFifteen = 30; | boolean hasReqardTypeFifteen(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasReqardTypeThirty();",
"public void setRequired(boolean required);",
"void setRequired(boolean required);",
"boolean hasReqardTypeTen();",
"public void setRequired(boolean value) {\r\n this.required = value;\r\n }",
"boolean getRequired();",
"boolean getRequired();",
"boolean getR... | [
"0.67463726",
"0.66654587",
"0.6580221",
"0.65123653",
"0.647977",
"0.64372474",
"0.64372474",
"0.64372474",
"0.6434419",
"0.63958055",
"0.6122069",
"0.6018042",
"0.5962287",
"0.5941193",
"0.5933279",
"0.59099513",
"0.5904615",
"0.5904615",
"0.5904615",
"0.58719546",
"0.57992... | 0.72337425 | 0 |
required bool reqardTypeThirty = 40; | boolean hasReqardTypeThirty(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRequired(boolean required);",
"void setRequired(boolean required);",
"boolean hasReqardTypeFifteen();",
"public void setRequired(boolean value) {\r\n this.required = value;\r\n }",
"boolean getRequired();",
"boolean getRequired();",
"boolean getRequired();",
"public void setR... | [
"0.6671846",
"0.6572335",
"0.64893055",
"0.6454293",
"0.6401174",
"0.6401174",
"0.6401174",
"0.6381399",
"0.63503265",
"0.6265186",
"0.6041099",
"0.600653",
"0.600653",
"0.600653",
"0.59807986",
"0.597934",
"0.5943291",
"0.5937928",
"0.5898142",
"0.58760834",
"0.5832491",
"... | 0.70763886 | 0 |
Use RewardListPro.newBuilder() to construct. | private RewardListPro(Builder builder) {
super(builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RewardType type();",
"@Nonnull\n public static UBL23WriterBuilder <ProofOfReexportationRequestType> proofOfReexportationRequest ()\n {\n return UBL23WriterBuilder.create (ProofOfReexportationRequestType.class);\n }",
"static public void adjustRewardForSelect(ArrayList<RewardItem> rewardList) {\n ... | [
"0.5072172",
"0.50549996",
"0.50038224",
"0.5000628",
"0.48858806",
"0.47964698",
"0.4786309",
"0.47831184",
"0.47498477",
"0.4735665",
"0.4734424",
"0.47272915",
"0.4705793",
"0.46459797",
"0.46436366",
"0.46315148",
"0.46188924",
"0.46110046",
"0.4603049",
"0.45994186",
"0.... | 0.7250068 | 0 |
Allocate a new priority scheduler. | public PriorityScheduler() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PriorityScheduler() {\n }",
"public static void selfTest() {\n System.out.println(\"+++Beginning tests for priority scheduler+++\");\n int numTests = 5;\n int count = 0;\n\n boolean machine_start_status = Machine.interrupt().disabled();\n Machine.interrupt().disable()... | [
"0.7027892",
"0.5941558",
"0.5877334",
"0.5700387",
"0.56939256",
"0.5632171",
"0.56106794",
"0.5543788",
"0.5538103",
"0.54963416",
"0.54788846",
"0.54661506",
"0.54591304",
"0.5445264",
"0.5422381",
"0.5401793",
"0.5386534",
"0.5373036",
"0.53649384",
"0.5361353",
"0.535728... | 0.70153666 | 1 |
Allocate a new priority thread queue. | public ThreadQueue newThreadQueue(boolean transferPriority)
{
return new PriorityQueue(transferPriority);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ThreadQueue newThreadQueue(boolean transferPriority) {\n return new PriorityQueue(transferPriority);\n }",
"public MyQueue() {\n queue = new PriorityQueue<>();\n }",
"public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = n... | [
"0.7397665",
"0.7077114",
"0.6674095",
"0.6657067",
"0.6615739",
"0.6559837",
"0.65266246",
"0.65158147",
"0.6472334",
"0.64528275",
"0.6320064",
"0.62870485",
"0.62353975",
"0.622642",
"0.61844134",
"0.61610776",
"0.6108996",
"0.6086399",
"0.6052172",
"0.6026726",
"0.5968537... | 0.73766524 | 1 |
Return the scheduling state of the specified thread. | public boolean increasePriority()
{
boolean intStatus = Machine.interrupt().disable();
KThread thread = KThread.currentThread();
int priority = getPriority(thread);
if (priority == priorityMaximum)
return false;
setPriority(thread, priority+1);
Machine.interrupt().restore(intStatus);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected ThreadState getThreadState(KThread thread) {\n Lib.assertTrue(Machine.interrupt().disabled());\n if (thread.schedulingState == null)\n thread.schedulingState = new ThreadState(thread);\n\n return (ThreadState) thread.schedulingState;\n }",
"public int getScheduleState... | [
"0.72366065",
"0.642386",
"0.5854169",
"0.5826396",
"0.5808838",
"0.57505196",
"0.5748864",
"0.5716791",
"0.5488381",
"0.5468511",
"0.5442736",
"0.5411299",
"0.5360307",
"0.53533113",
"0.5350352",
"0.5345771",
"0.53362876",
"0.532858",
"0.53074604",
"0.53006256",
"0.524205",
... | 0.0 | -1 |
waitQueue that sorts first according to effectivePriority(descending) and then according to sleepTimes (ascending) | PriorityQueue(boolean transferPriority)
{
this.transferPriority = transferPriority;
waitQueue = new java.util.PriorityQueue<KThread>(1, new comparePriority()); //Initialize the waitQueue to a java.util.PriorityQueue with a custom comparator defined below
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void selfTest() {\n System.out.println(\"+++Beginning tests for priority scheduler+++\");\n int numTests = 5;\n int count = 0;\n\n boolean machine_start_status = Machine.interrupt().disabled();\n Machine.interrupt().disable();\n\n PriorityScheduler p = new Pr... | [
"0.67300606",
"0.66920817",
"0.6366148",
"0.6280092",
"0.62501055",
"0.6215609",
"0.62075454",
"0.61122876",
"0.6080506",
"0.6042022",
"0.60342747",
"0.59929514",
"0.59321463",
"0.59265953",
"0.5888453",
"0.5866887",
"0.58596057",
"0.58519673",
"0.5839804",
"0.58229655",
"0.5... | 0.6375704 | 2 |
The thread declares its intent to wait for access to the "resource" guarded by this priority queue. This method is only called if the thread cannot immediately obtain access. | public void waitForAccess(KThread thread)
{
Lib.assertTrue(Machine.interrupt().disabled());
ThreadState waiterState = getThreadState(thread);
waiterState.waitForAccess(this); //Call waitForAccess of ThreadState class
waitQueue.add(thread); //Add this thread to this waitQueue
if(owner != null)
{
getThreadState(owner).donatePriority(waiterState.getPriority()-getThreadState(owner).getPriority()); //See if the incoming thread has to donate priority to the owner
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void acquire(PriorityQueue waitQueue) \n {\n waitQueue = null;\n donation = 0;\n lastEffectivePriority = -1; //Need to recalculate the effectivePriority as the leaving thread might take off its donation effects or \n ... | [
"0.71369636",
"0.6915663",
"0.6771106",
"0.6650437",
"0.6570516",
"0.6557517",
"0.62598705",
"0.609095",
"0.59323734",
"0.59240246",
"0.5712844",
"0.5689471",
"0.56791604",
"0.5653293",
"0.5640542",
"0.5632786",
"0.5626774",
"0.55970305",
"0.55942935",
"0.5561778",
"0.5525379... | 0.73363423 | 0 |
The specified thread has received exclusive access, without using waitForAccess() or nextThread(). Assert that no threads are waiting for access. | public void acquire(KThread thread) {
Lib.assertTrue(Machine.interrupt().disabled());
Lib.assertTrue(waitQueue.size()==0); //Can acquire resourse only if the waitQueue is empty
owner = thread; //Set the owner of this priority queue to this thread
getThreadState(owner).acquire(this); //Call the acquire method of ThreadState of this thread
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForAccess(KThread thread) \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n ThreadState waiterState = getThreadState(thread);\n waiterState.waitForAccess(this); //Call waitForAccess of ThreadState class\n waitQueue.... | [
"0.664659",
"0.57580787",
"0.5715954",
"0.57021284",
"0.55417",
"0.55417",
"0.5499479",
"0.5429266",
"0.53899777",
"0.53892726",
"0.5362922",
"0.5346221",
"0.53375834",
"0.52843124",
"0.5272485",
"0.5231887",
"0.52306074",
"0.5210324",
"0.52039737",
"0.5200115",
"0.51761514",... | 0.0 | -1 |
Select the next thread in the ThreadQueue | public KThread nextThread()
{
Lib.assertTrue(Machine.interrupt().disabled());
if (waitQueue.isEmpty())
{
owner=null;
return null;
}
owner=waitQueue.peek(); //Set the head of the waitQueue as owner
ThreadState waiterState = getThreadState(owner);
getThreadState(owner).acquire(this); //Make the new owner acquire the queue
return waitQueue.poll(); //return next thread
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected ThreadState pickNextThread() //Returns the ThreadState of the head of the PriorityQueue or null if the queue is empty\n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n KThread thread = waitQueue.peek();\n if(thread == null)\n\t\t\t{\n ... | [
"0.7272336",
"0.71239877",
"0.68086547",
"0.6190039",
"0.5824083",
"0.5798883",
"0.57463175",
"0.5569586",
"0.5507542",
"0.54996324",
"0.54892004",
"0.54650927",
"0.5428338",
"0.54015017",
"0.5373643",
"0.5329104",
"0.53155005",
"0.52977616",
"0.52803665",
"0.52752155",
"0.52... | 0.73099554 | 0 |
Return the next thread that nextThread() would return, without modifying the state of this queue. | protected ThreadState pickNextThread() //Returns the ThreadState of the head of the PriorityQueue or null if the queue is empty
{
Lib.assertTrue(Machine.interrupt().disabled());
KThread thread = waitQueue.peek();
if(thread == null)
{
return null;
}
else
{
return getThreadState(thread);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public KThread nextThread() \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n\t\t\tif (waitQueue.isEmpty())\n\t\t\t{\n\t\t\t\towner=null;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\towner=waitQueue.peek(); //Set the head of the waitQueue as owner\n\t\t\tThreadState waiterState = getThreadState(owner);\n\t... | [
"0.80909896",
"0.7638271",
"0.7252097",
"0.6713417",
"0.6594077",
"0.6545599",
"0.6350945",
"0.6253823",
"0.6205595",
"0.6179175",
"0.6178651",
"0.61106205",
"0.6090484",
"0.5953008",
"0.59172076",
"0.58695185",
"0.5850806",
"0.57734925",
"0.5757538",
"0.57500154",
"0.5703590... | 0.7249268 | 3 |
The waitQueue corresponding to this thread Allocate a new ThreadState object and associate it with the specified thread. | public ThreadState(KThread thread)
{
this.thread = thread;
setPriority(priorityDefault);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ThreadState(KThread thread) {\n this.thread = thread;\n this.time = 0;\n this.placement = 0;\n this.priority = priorityDefault;\n setPriority(priorityDefault);\n effectivePriority = priorityMinimum;\n }",
"public void acquire(KThread... | [
"0.61027586",
"0.5890418",
"0.57605433",
"0.5642128",
"0.56309766",
"0.5593793",
"0.55840063",
"0.5565482",
"0.55046594",
"0.53607076",
"0.5328656",
"0.53061575",
"0.5280652",
"0.5268136",
"0.52650183",
"0.52143663",
"0.52099735",
"0.5203648",
"0.5180602",
"0.51719135",
"0.51... | 0.64323264 | 0 |
Return the priority of the associated thread. | public int getPriority()
{
return priority;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized int getThreadPriority()\n/* */ {\n/* 219 */ return this.threadPriority;\n/* */ }",
"public int getPriority() {\n\t\tInteger prop = (Integer) getObject(\"priority\");\n\t\tif (prop != null) {\n\t\t\treturn prop;\n\t\t} else {\n\t\t\tthrow new IllegalStateException(\"The Task do... | [
"0.78176504",
"0.72509384",
"0.7119171",
"0.7119171",
"0.7119171",
"0.7119171",
"0.7119171",
"0.7119171",
"0.7119171",
"0.7119171",
"0.7117932",
"0.7109025",
"0.7104816",
"0.70847046",
"0.7065651",
"0.70644206",
"0.70516986",
"0.7015151",
"0.7013427",
"0.70072687",
"0.7005043... | 0.6698423 | 55 |
Return the effective priority of the associated thread. | public int getEffectivePriority()
{
if(waitQueue == null)
{
return priority;
}
if(lastEffectivePriority < 0) //If there is a need to update the last effective priority
{
if(waitQueue != null)
{
if(waitQueue.transferPriority) //If the queue concerned is a join or a lock waitQueue and not the readyQueue
{
lastEffectivePriority=Math.max(waitQueue.getMaxPriority(),priority+donation); //Maximum of the priority of the head of the queue and priority+proposed donation
}
else
{
return priority;
}
}
else
{
lastEffectivePriority = priority; //Set effective priority for the first time
}
}
return lastEffectivePriority;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized int getThreadPriority()\n/* */ {\n/* 219 */ return this.threadPriority;\n/* */ }",
"public int getEffectivePriority() {\n Lib.assertTrue(Machine.interrupt().disabled());\n\n\n return getWinningPriority();\n }",
"public int getPriority()\n ... | [
"0.7764953",
"0.75557464",
"0.716165",
"0.71055686",
"0.71055686",
"0.71055686",
"0.71055686",
"0.71055686",
"0.71055686",
"0.71055686",
"0.71055686",
"0.7021234",
"0.7006811",
"0.6980217",
"0.69788545",
"0.69788545",
"0.69770867",
"0.69681084",
"0.69497865",
"0.69350046",
"0... | 0.7326142 | 2 |
Set the priority of the associated thread to the specified value. | public void setPriority(int priority)
{
if (this.priority == priority)
return;
this.priority = priority;
lastEffectivePriority = -1; //Possible need to update effective priority
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void setThreadPriority(int threadPriority)\n/* */ {\n/* 200 */ if (threadPriority < 1) {\n/* 201 */ this.threadPriority = 1;\n/* */ }\n/* 203 */ else if (threadPriority > 10) {\n/* 204 */ this.threadPriority = 10;\n/* */ } else\n/* 206 */ this.thr... | [
"0.7781096",
"0.7513392",
"0.7162363",
"0.71388364",
"0.6976557",
"0.6727692",
"0.6703235",
"0.6703235",
"0.65052575",
"0.6416632",
"0.63799286",
"0.6372636",
"0.6309757",
"0.62857705",
"0.6242763",
"0.6209721",
"0.61959636",
"0.61746633",
"0.6134969",
"0.6127091",
"0.6113502... | 0.61805904 | 17 |
Called when waitForAccess(thread) (where thread is the associated thread) is invoked on the specified priority queue. The associated thread is therefore waiting for access to the resource guarded by waitQueue. This method is only called if the associated thread cannot immediately obtain access. | public void waitForAccess(PriorityQueue waitQueue)
{
this.waitQueue = waitQueue; //Assign the waitQueue in the ThreadState object to the passed PriorityQueue
sleepTime=Machine.timer().getTime(); //Record the time at which the thread sleeps
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForAccess(PriorityQueue waitQueue) {\n Lib.assertTrue(Machine.interrupt().disabled());\n Lib.assertTrue(waitingQueue == null);\n\n time = Machine.timer().getTime();\n waitQueue.threadStates.add(this);\n waitingQueue = waitQueue;\n\n ... | [
"0.7840668",
"0.73799336",
"0.67330927",
"0.6614878",
"0.6135313",
"0.5560409",
"0.55190396",
"0.52226454",
"0.52085954",
"0.51957834",
"0.5187566",
"0.5128427",
"0.5101608",
"0.50985247",
"0.49893376",
"0.49537992",
"0.49428296",
"0.49349505",
"0.48945203",
"0.48704487",
"0.... | 0.78076226 | 1 |
Called when the associated thread has acquired access to whatever is guarded by waitQueue. This can occur either as a result of acquire(thread) being invoked on waitQueue (where thread is the associated thread), or as a result of nextThread() being invoked on waitQueue. | public void acquire(PriorityQueue waitQueue)
{
waitQueue = null;
donation = 0;
lastEffectivePriority = -1; //Need to recalculate the effectivePriority as the leaving thread might take off its donation effects or
//the thread is acquiring the resource and needs to calculate the effective priority for the first time.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForAccess(PriorityQueue waitQueue) {\n Lib.assertTrue(Machine.interrupt().disabled());\n Lib.assertTrue(waitingQueue == null);\n\n time = Machine.timer().getTime();\n waitQueue.threadStates.add(this);\n waitingQueue = waitQueue;\n\n ... | [
"0.74574316",
"0.6954131",
"0.6533668",
"0.63822955",
"0.6327381",
"0.5891117",
"0.56859964",
"0.5558186",
"0.5558186",
"0.5522242",
"0.5518449",
"0.5505333",
"0.547444",
"0.5417757",
"0.53947693",
"0.53929234",
"0.5366659",
"0.53111047",
"0.5292724",
"0.52912825",
"0.5257107... | 0.6577457 | 2 |
This is running in background thread, so unable to update label | @Override
public void run() {
try{
Thread.sleep(5000);
// To get rid of the Exception lets run the label updating after process is get completing. So that is label is
// getting updated on the UI Thread and we don't get any exception
Platform.runLater(new Runnable() { // Opening new Runnable to update the label
@Override
public void run() { // This is running in the UI Thread so updating the label
ourLabel.setText("We did something");
}
});
} catch (InterruptedException e) {
// We don't care about this
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() { // This is running in the UI Thread so updating the label\n ourLabel.setText(\"We did something\");\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateUI();\n\t\t\t\t\t\t}",
"@Override\n... | [
"0.78178287",
"0.72181773",
"0.6770624",
"0.65730983",
"0.6553821",
"0.65493286",
"0.6540414",
"0.6529876",
"0.6527767",
"0.6524103",
"0.646498",
"0.64636576",
"0.64636576",
"0.64546233",
"0.64535457",
"0.6429584",
"0.64093006",
"0.64024013",
"0.64024013",
"0.6402084",
"0.638... | 0.7688183 | 1 |
Opening new Runnable to update the label | @Override
public void run() { // This is running in the UI Thread so updating the label
ourLabel.setText("We did something");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n try{\n Thread.sleep(5000);\n // To get rid of the Exception lets run the label updating after process is get completing. So that is label is\n // getting updated on the UI Thread and we don't get an... | [
"0.65388274",
"0.646556",
"0.6453892",
"0.63341355",
"0.6282502",
"0.6173742",
"0.61166114",
"0.603387",
"0.5993203",
"0.59783065",
"0.59729916",
"0.5967382",
"0.5957003",
"0.5949988",
"0.5949988",
"0.589044",
"0.5875507",
"0.5860319",
"0.585598",
"0.5851412",
"0.5851186",
... | 0.7304258 | 0 |
This method is written to disable the buttons when the text field is empty | @FXML
public void handleKeyRelease() {
String text = nameField.getText();
boolean disableButtons = text.isEmpty() || text.trim().isEmpty(); //.trim() is used to set the button disable for space input
helloButton.setDisable(disableButtons);
byeButton.setDisable(disableButtons);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void disablePanelInput() {\n\t\tif (!clickThem) {\r\n\t\t\ttxt_mssv.setText(\"\");\r\n\t\t\ttxt_mssv.setEnabled(false);\r\n\t\t\ttxt_hoten.setEnabled(false);\r\n\t\t\ttxt_hoten.setText(\"\");\r\n\t\t\tcomboSex.setEnabled(false);\r\n\t\t\ttxt_ntns.setText(\"\");\r\n\t\t\ttxt_ntns.setEnabled(false);\r\n\t\t\t... | [
"0.71349734",
"0.70639706",
"0.6882666",
"0.6755841",
"0.6726027",
"0.67051524",
"0.66967696",
"0.665818",
"0.6644116",
"0.6620045",
"0.66180646",
"0.66065645",
"0.6593319",
"0.65240645",
"0.64971936",
"0.64966536",
"0.6482517",
"0.64581895",
"0.64195114",
"0.63756704",
"0.63... | 0.7129844 | 1 |
System.out.println("id : " + element.id() + "________start________"); | private AmazonProduct getAmazonProduct(Element element) throws Exception {
AmazonProduct product = new AmazonProduct(element.attr("data-asin"));
product.setTitle(element.getElementsByAttributeValue("class", "a-size-medium s-inline s-access-title a-text-normal").get(0).text());
product.setPrice(this.parsePrise(element.getElementsByAttributeValue("class", "a-color-base sx-zero-spacing").get(0).attr("aria-label")));
product.setThumbnail(element.getElementsByAttributeValue("alt", "Product Details").attr("src"));
// description
product.setBrand(element.getElementsByAttributeValue("class", "a-size-small a-color-secondary").get(1).text());
product.setDetailUrl(element.getElementsByClass("a-link-normal s-access-detail-page s-color-twister-title-link a-text-normal").get(0).attr("href"));
// System.out.println("id : " + element.id() + "_________end_________");
return product;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void findElementById() {\n\t\tStartEvent startEvent = modelInstance.getModelElementById(\"startEvent\");\n\t\tSystem.out.println(startEvent.getName());\n\t}",
"public String getElementId();",
"public void show() {\n\t\tSystem.out.println(getId());\n\t}",
"public int id() {return id;}",
"publi... | [
"0.70092",
"0.678462",
"0.6521295",
"0.64176923",
"0.628466",
"0.6240329",
"0.6232397",
"0.62093526",
"0.6189757",
"0.6182408",
"0.6182408",
"0.6182408",
"0.6182408",
"0.6182408",
"0.6182408",
"0.6182408",
"0.6182408",
"0.6182408",
"0.6182408",
"0.6182408",
"0.6182408",
"0.... | 0.0 | -1 |
3.8 out of 5 stars | private double parseScore(String s) {
String[] arg = s.split(" ");
double score = Double.parseDouble(arg[0]);
// double total = Double.parseDouble(arg[3]);
return score;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printStars(double rating) {\n String s = String.format(\"%.1f\", rating);\n if(rating <= 1)\n println(\"★☆☆☆☆(\" + s + \")\");\n else if(rating <= 2)\n println(\"★★☆☆☆(\" + s + \")\");\n else if(rating <= 3)\n println(\"★★★☆☆(\" + s + \")\");... | [
"0.6625613",
"0.66012126",
"0.65638834",
"0.6549745",
"0.64874727",
"0.64874727",
"0.6459807",
"0.6364761",
"0.6357623",
"0.62691385",
"0.6209695",
"0.62094295",
"0.6200112",
"0.60570186",
"0.6010293",
"0.600096",
"0.590527",
"0.586229",
"0.5851177",
"0.58324385",
"0.58119756... | 0.0 | -1 |
Get test user by id test user. | public test_user getTestUserById() {
return testUserDAO.selectByPrimaryKey(1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User getUserFromId(final long id) {\n LOG.info(\"Getting user with id {}\", id);\n return userRepo.get(id);\n }",
"public User getUser(String id) {\n return repository.getUser(id).get(0);\n }",
"public User getUserById(int id) {\n System.out.println(id + this.userDao.se... | [
"0.7638433",
"0.7616078",
"0.75908643",
"0.75784034",
"0.75696766",
"0.74911666",
"0.74902815",
"0.74457973",
"0.740692",
"0.7405349",
"0.7393718",
"0.7391183",
"0.7367346",
"0.7349845",
"0.7339207",
"0.7326922",
"0.73213184",
"0.7320561",
"0.7317684",
"0.7312077",
"0.7293014... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int i;
int score[] = {80, 90, 20, 60, 100, 50};
String result = "A학점입니다";
for(i=0; i<score.length; i++) {
result = (score[i] >= 90) ? "A학점입니다"
: (score[i] >= 80) ? "B학점입니다"
: (score[i] >= 70) ? "C학점입니다"
: (score[i] >= 60) ? "D학점입니다"
: "F학점입니다";
System.out.println(result);
}
} | {
"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 |
API only does not support discovery of a single SMIS provider | @FlashException("list")
public static void discover() {
StorageProviderUtils.discoverAll();
flash.success(MessagesUtils.get(DISCOVERY_STARTED));
list();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SMSProvider findSMSProvidersBySMSProviderName(String smsProviderName);",
"public interface SdnControllerProviderInterface {\n\n\t/**\n\t * Method used to read the current topology from the SDN controller\n\t * \n\t * @return the network topology\n\t * @throws NotExistingEntityException if the topology is not fou... | [
"0.5932644",
"0.5786227",
"0.5574382",
"0.5553113",
"0.54796463",
"0.54503083",
"0.5421833",
"0.5421833",
"0.5416338",
"0.5412484",
"0.54118407",
"0.5409304",
"0.5364077",
"0.53629404",
"0.53464276",
"0.53267354",
"0.5323544",
"0.53127706",
"0.5301655",
"0.52825236",
"0.52825... | 0.0 | -1 |
ShowMatchFrame matchInfoPanel = new ShowMatchFrame(matchesListPanel.list.getMatchAt(matchesListPanel.list.getSelectedMatch())); | public ScoutingApp(){
teamPanel.add(teamsListPanel);
matchPanel.add(matchesListPanel);
add(teamPanel, BorderLayout.WEST);
add(matchPanel, BorderLayout.EAST);
setTitle("Scouting Application");
setSize(1000, 600);
setLocationRelativeTo(null);
//setExtendedState(MAXIMIZED_BOTH);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setVisible(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showMatch() {\n System.out.println(\"Player 1\");\n game.getOne().getField().showField();\n System.out.println(\"Player 2\");\n game.getTwo().getField().showField();\n }",
"void matchFrame();",
"public void createMatchesFrame() {\n int numBigs = this.matching.bigsPreferences.si... | [
"0.63645095",
"0.63460046",
"0.62827444",
"0.6079669",
"0.60458094",
"0.602654",
"0.60208106",
"0.59324163",
"0.5895197",
"0.5764496",
"0.575669",
"0.5715629",
"0.5697028",
"0.5665329",
"0.56063366",
"0.5600312",
"0.55786455",
"0.5551503",
"0.55228406",
"0.5517128",
"0.549319... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
ScoutingApp frame = new ScoutingApp();
Team[] teamsArray = new Team[4];
teamsArray[Match.RED_1] = new Team(5029, "Powerstackers");
teamsArray[Match.RED_2] = new Team(4251, "Cougar Robotics");
teamsArray[Match.BLUE_1] = new Team(5501, "USS Enterprise");
teamsArray[Match.BLUE_2] = new Team(5035, "Some random team");
Match match1 = new Match(teamsArray, Match.MATCHTYPE_QUALIFICATION, 1);
match1.setRedScore(50);
Match match2 = new Match(teamsArray, Match.MATCHTYPE_QUALIFICATION, 2);
match2.setRedScore(60);
match2.setBlueScore(67);
frame.matchesListPanel.list.addMatch(match1);
frame.matchesListPanel.list.addMatch(match2);
for(int i = 0; i < teamsArray.length; i++){
frame.teamsListPanel.getList().addTeam(teamsArray[i]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: fr.afcepf.atod.onwine.ws.soap.tax | public ObjectFactory() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"XUMLRTFactory getXUMLRTFactory();",
"public com.vodafone.global.er.decoupling.binding.request.TaxType createTaxType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TaxTypeImpl();\n }",
"public AbstractTaxon() {\n // Setter a... | [
"0.6285798",
"0.626653",
"0.5839988",
"0.58234805",
"0.5810527",
"0.57948434",
"0.5749625",
"0.57236296",
"0.5686423",
"0.56238955",
"0.5592836",
"0.558906",
"0.5581697",
"0.55751663",
"0.55335295",
"0.5523778",
"0.55182",
"0.55127203",
"0.550762",
"0.5507248",
"0.54660213",
... | 0.0 | -1 |
Sets card face up | public void turnCardFaceUp(){
setImage(CardFaceUp);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFace(CardFace face) {\n if (face == CardFace.FACE_DOWN) {\n cardFace = CardFace.FACE_DOWN;\n sprite.texture = faceDownTexture;\n } else {\n cardFace = CardFace.FACE_UP;\n sprite.texture = faceUpTexture;\n }\n }",
"public void setF... | [
"0.7600782",
"0.7108194",
"0.70635474",
"0.69414085",
"0.69046",
"0.68823165",
"0.67001265",
"0.6525448",
"0.6472535",
"0.64716005",
"0.63985556",
"0.6375786",
"0.63543427",
"0.634138",
"0.6303699",
"0.6297519",
"0.6277461",
"0.6255154",
"0.6221156",
"0.62036425",
"0.61521864... | 0.7807416 | 0 |
Sets card face down | public void turnCardFaceDown(){
if (getImage() == CardFaceUp)
setImage(Images.faceDown);
else
setImage(CardFaceUp);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void flipCard() {\n this.faceUp = !faceUp;\n }",
"public void turnCardFaceUp(){\r\n setImage(CardFaceUp);\r\n }",
"public void setFaceDown(){faceUp = false;}",
"boolean turnFaceDown();",
"public void setFace(CardFace face) {\n if (face == CardFace.FACE_DOWN) {\n cardF... | [
"0.79864067",
"0.77605873",
"0.7622272",
"0.7547175",
"0.7428992",
"0.7371365",
"0.67521024",
"0.67187566",
"0.66897684",
"0.66177595",
"0.64610946",
"0.6433047",
"0.6431816",
"0.6410041",
"0.63547814",
"0.62789786",
"0.627052",
"0.6171102",
"0.61332464",
"0.6047611",
"0.6034... | 0.8644158 | 0 |
Returns if card is face up | public boolean isFaceUp(){
return(getImage() == CardFaceUp);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isFaceUp(){return faceUp;}",
"boolean isTurnedFaceUp();",
"boolean hasFaceUp();",
"public boolean getFaceUp() {\n\t\treturn faceUp;\n\t}",
"public boolean getFace() {\n return this.faceUp;\n }",
"boolean turnFaceUp();",
"public void flipCard() {\n this.faceUp = !faceUp;\n }",
"... | [
"0.80197495",
"0.7970552",
"0.7969332",
"0.7295046",
"0.7265638",
"0.7132616",
"0.70849526",
"0.6955745",
"0.68308055",
"0.67233676",
"0.66962427",
"0.6659613",
"0.66370744",
"0.65848565",
"0.657534",
"0.65242594",
"0.65169656",
"0.6473958",
"0.63816774",
"0.63694394",
"0.631... | 0.85399354 | 0 |
Sets the cards position on the board | public void setCardPos(double x, double y ){
setX(x);
setY(y);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SetPosition(float x, float y) {\n mX = x;\n mY = y;\n for (int i = 0; i < mCardCount; i++) {\n SetCardPosition(i);\n }\n }",
"public void setPosition(int position);",
"public void setPos(int pos);",
"public void setPos(int pos);",
"public void PositionSet(int position);",
"p... | [
"0.7235621",
"0.70130074",
"0.68968445",
"0.68968445",
"0.6797923",
"0.67615527",
"0.66820323",
"0.6674983",
"0.6674983",
"0.6663708",
"0.66626024",
"0.66271394",
"0.6620047",
"0.6603437",
"0.6576254",
"0.6554703",
"0.65367013",
"0.65156454",
"0.648951",
"0.64669794",
"0.6406... | 0.77017933 | 0 |
Returns Cards X Position | public double getCardPosX(){
return getX();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getPositionX(){\n\t\treturn positionx;\n\t}",
"public final int getPositionX() {\r\n return (int) position.x();\r\n }",
"public int getPositionX() {\n return positionX;\n }",
"public int getPositionX() {\r\n\t\treturn positionX;\r\n\t}",
"public int getX() { return position.x... | [
"0.7457917",
"0.7423196",
"0.7412982",
"0.74018675",
"0.7383818",
"0.7323904",
"0.73097646",
"0.7308904",
"0.7308904",
"0.7302393",
"0.7302393",
"0.7302393",
"0.72433746",
"0.72293454",
"0.72191215",
"0.72137654",
"0.7171732",
"0.7171732",
"0.71716225",
"0.7166128",
"0.710234... | 0.81309414 | 0 |
Returns Cards Y Position | public double getCardPosY(){
return getY();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getY() {\n return positionY;\n }",
"double getPositionY();",
"double getPositionY();",
"double getPositionY();",
"public int getY() {\n return pos_y;\n }",
"public int getY() {\n return posY;\n }",
"public int getPositionY(){\n\t\treturn positiony;\n\t}",
"public in... | [
"0.74696594",
"0.7369738",
"0.7369738",
"0.7369738",
"0.7347905",
"0.7341737",
"0.7331277",
"0.7314218",
"0.7314218",
"0.72973305",
"0.7273073",
"0.72484773",
"0.72475165",
"0.72465384",
"0.72465384",
"0.7242549",
"0.7241852",
"0.7240932",
"0.7237978",
"0.72335273",
"0.723216... | 0.8178913 | 0 |
Returns if belongs to suit | public boolean belongsToSuit(Card card){
return (suit == card.suit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean haveSuit(char suit){\n for (int i=0; i<6; i++)\n if (hand.get(i).suit != suit)\n return false;\n return true;\n }",
"boolean haveGame(char suit){\n int suitNum = 0; // number of cards that follow suit\n for (int i=0; i<6; i++)\n if (hand... | [
"0.7642975",
"0.7242299",
"0.70012355",
"0.6902245",
"0.6592631",
"0.6564934",
"0.65475607",
"0.652706",
"0.6503622",
"0.6500939",
"0.6469335",
"0.6469335",
"0.6467669",
"0.6451698",
"0.64358187",
"0.64354295",
"0.64318377",
"0.6408963",
"0.6398623",
"0.63910174",
"0.63908744... | 0.74654096 | 1 |
Returns 1: card other | public int compareTo(Card card) {
return Integer.compare(rank, card.rank);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean similarCard(Card c);",
"int compareValue(Card c);",
"@Override\r\n public Card getSecondCard() {\r\n return this.secondCard.equals(null) ? Card.NONE : this.secondCard;\r\n }",
"public static boolean sameCard(Card card1, Card card2){\r\n return (card1.rank == card2.rank && card1.su... | [
"0.734138",
"0.66506517",
"0.65383816",
"0.64467883",
"0.6415821",
"0.6334662",
"0.63270557",
"0.6323116",
"0.6318855",
"0.63062775",
"0.62453616",
"0.6228334",
"0.6216124",
"0.6213169",
"0.62016016",
"0.6195308",
"0.61783385",
"0.6165463",
"0.6162076",
"0.61539793",
"0.61423... | 0.0 | -1 |
Determines if the card is on the table or not | public boolean onTable(double x, double y){
return (getX() != 0 && getY() != 0 &&
x >= getX() && x <= getX() + WIDTH &&
y >= getY() && y <= getY() + HEIGHT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasAlreadShowCard();",
"protected abstract boolean isCardActivatable(Card card);",
"boolean hasCardType();",
"public List<Card> cardsOnTable()\r\n\t{\r\n\t\treturn this.onTable;\r\n\t}",
"boolean hasAlreadFoldCard();",
"boolean hasAlreadCheckCard();",
"public boolean isOnTheTable(int x, int y) ... | [
"0.6666716",
"0.6473168",
"0.6441959",
"0.63966537",
"0.6379344",
"0.6357657",
"0.6323444",
"0.62646955",
"0.61820793",
"0.61634636",
"0.61041814",
"0.59109545",
"0.58569574",
"0.5851533",
"0.5844565",
"0.5798871",
"0.5714384",
"0.5711591",
"0.5695895",
"0.5695895",
"0.569589... | 0.56634796 | 25 |
Prints all numbers between the 2 given numbers (inclusive), and whether they are odd or even | public static void printNumbers(int low, int high)
{
if (low > high)
{
int holder = low;
low = high;
high = holder;
}
for (int i = low; i <= high; i++)
{
isEven (i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void printOddNumbers (int from, int to) {//when we dont know the range\n for(int i=from; i<=to; i++){\n if(i%2!=0){\n System.out.print(i + \" \");\n }\n\n }\n System.out.println();\n }",
"public static void printEvenNumbers(int from,... | [
"0.7864305",
"0.73726326",
"0.7245807",
"0.7166815",
"0.71233326",
"0.7014961",
"0.69628316",
"0.6762711",
"0.6693661",
"0.668755",
"0.6674435",
"0.6592143",
"0.65233517",
"0.6506563",
"0.6497286",
"0.6464947",
"0.6447262",
"0.6436606",
"0.6416525",
"0.63915586",
"0.6372997",... | 0.67536587 | 8 |
Prints if an integer number is even or odd | public static void isEven(int n)
{
if (n % 2 == 0)
System.out.println(n + " is even");
else
System.out.println(n + " is odd");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void findOddEven() {\n\t\tif (number % 2 == 0) {\n\t\t\tif (number >= 2 && number <= 5)\n\t\t\t\tSystem.out.println(\"Number is even and between 2 to 5...!!\");\n\t\t\telse if (number >= 6 && number <= 20)\n\t\t\t\tSystem.out.println(\"Number is even and between 6 to 20...!!\");\n\t\t\telse\n\t\t\t\tSystem... | [
"0.80038023",
"0.78337765",
"0.7539233",
"0.7518193",
"0.7497913",
"0.7496369",
"0.7494202",
"0.73844856",
"0.73002255",
"0.7268485",
"0.720553",
"0.71587634",
"0.7098602",
"0.7076315",
"0.7046614",
"0.6972837",
"0.69149274",
"0.6913965",
"0.6911676",
"0.69031394",
"0.6880095... | 0.7382065 | 8 |
Constructor for objects of class BMI | public BMI(String name, double weight, double height)
{
this.name = name;
this.weight = weight;
this.height = height;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public C05_BMI() {\n\t\t\n\t}",
"public C05_BMI(String name, int age, double weight, double height) {\n\t\tsuper();\n\t\tthis.name = name;\n\t\tthis.age = age;\n\t\tthis.weight = weight;\n\t\tthis.height = height;\n\t}",
"private BMIDeviceHelper() {\t\t\n\t}",
"public Boat() {\n }",
"public WeightingMode... | [
"0.8011046",
"0.68549377",
"0.67876184",
"0.62482184",
"0.61940336",
"0.6174481",
"0.61732125",
"0.60618824",
"0.6039776",
"0.5999959",
"0.59793794",
"0.5976101",
"0.5967026",
"0.5956461",
"0.5942431",
"0.59254235",
"0.59092075",
"0.59029984",
"0.5885636",
"0.5813798",
"0.581... | 0.80182225 | 0 |
An example of a method replace this comment with your own | public double calculateBMI()
{
double bmi = (weight / (height * height)) * 703;
bmi = Math.round(bmi * 100)/100.0;
return bmi;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void comment() {\n\t\t\n\t}",
"public void method_4270() {}",
"public static void listing5_14() {\n }",
"private stendhal() {\n\t}",
"public void smell() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"public final void mo51373a() {\n }",
"public void mo21792Q() {... | [
"0.68759596",
"0.66260797",
"0.6421029",
"0.6364621",
"0.6342968",
"0.63355535",
"0.63336974",
"0.63282084",
"0.63035333",
"0.6301148",
"0.6290248",
"0.6279191",
"0.62747794",
"0.62733513",
"0.6267824",
"0.6241212",
"0.6227418",
"0.621996",
"0.6211847",
"0.6205021",
"0.619571... | 0.0 | -1 |
This method is used to insert data into table. | public void insert(BibliographicDetails bibDetails) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
session.save(bibDetails);
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert() throws SQLException;",
"public void insert(Vector _data) {\r\n //Error check\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insert: table invalid, nothing done\");\r\n return;\r\n }\r\n if(_data.size() == 0) {\r\n Syst... | [
"0.71524566",
"0.7128257",
"0.68614894",
"0.682229",
"0.6797265",
"0.6742529",
"0.6683044",
"0.6682993",
"0.6659922",
"0.6656221",
"0.6656219",
"0.66211027",
"0.6612402",
"0.6593176",
"0.6548066",
"0.65372753",
"0.6519575",
"0.6511939",
"0.6508064",
"0.64863586",
"0.6481226",... | 0.0 | -1 |
This method is used to insert data into table. | public void insert1(DocumentDetails docDetails) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
session.save(docDetails);
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert() throws SQLException;",
"public void insert(Vector _data) {\r\n //Error check\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insert: table invalid, nothing done\");\r\n return;\r\n }\r\n if(_data.size() == 0) {\r\n Syst... | [
"0.71524566",
"0.7128257",
"0.68614894",
"0.682229",
"0.6797265",
"0.6742529",
"0.6683044",
"0.6682993",
"0.6659922",
"0.6656221",
"0.6656219",
"0.66211027",
"0.6612402",
"0.6593176",
"0.6548066",
"0.65372753",
"0.6519575",
"0.6511939",
"0.6508064",
"0.64863586",
"0.6481226",... | 0.0 | -1 |
This method is used to insert data into table. | public void insert2(AccessionRegister docDetails) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
session.save(docDetails);
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert() throws SQLException;",
"public void insert(Vector _data) {\r\n //Error check\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insert: table invalid, nothing done\");\r\n return;\r\n }\r\n if(_data.size() == 0) {\r\n Syst... | [
"0.71524566",
"0.7128257",
"0.68614894",
"0.682229",
"0.6797265",
"0.6742529",
"0.6683044",
"0.6682993",
"0.6659922",
"0.6656221",
"0.6656219",
"0.66211027",
"0.6612402",
"0.6593176",
"0.6548066",
"0.65372753",
"0.6519575",
"0.6511939",
"0.6508064",
"0.64863586",
"0.6481226",... | 0.0 | -1 |
All updates This method updates bibliographic details. | public void update(BibliographicDetails bibDetails) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
session.update(bibDetails);
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateAcc(DocumentDetails bibDetails) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction();\n session.update(bibDetails);\n tx.commit();\n } catch (Runtime... | [
"0.62534785",
"0.605218",
"0.60438114",
"0.60395175",
"0.6006949",
"0.5938132",
"0.5896237",
"0.58942235",
"0.5838678",
"0.5736105",
"0.5725379",
"0.570963",
"0.56985986",
"0.56635416",
"0.56452787",
"0.5592331",
"0.5592331",
"0.5525086",
"0.5477889",
"0.5463044",
"0.5460713"... | 0.64129823 | 0 |
This method updates Document details. | public void updateAcc(DocumentDetails bibDetails) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
session.update(bibDetails);
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateDocument(Document arg0) throws ContestManagementException {\r\n }",
"@Override\r\n\t\tpublic void updateDocument(DocumentDTO document) {\n\t\t\tDocument document1=new Document();\r\n\t\t\tdocument1=convertDocumentBean(document);\r\n\t\t\tdocumentDAO.saveDocument(document1);\r\n\t\t\t\r\n\t\t... | [
"0.7508289",
"0.74369204",
"0.7328867",
"0.7255905",
"0.6978832",
"0.6774788",
"0.66720104",
"0.66285497",
"0.65109473",
"0.63693213",
"0.63445485",
"0.6329334",
"0.6329334",
"0.6325135",
"0.6283089",
"0.6276619",
"0.62585723",
"0.62558556",
"0.6247535",
"0.6216877",
"0.61762... | 0.6216663 | 20 |
This method updates bibliographic details. | public void updateCatalog(BibliographicDetails bibDetails,AccessionRegister acc,DocumentDetails doc) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
session.update(bibDetails);
session.update(acc);
session.update(doc);
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void update(BibliographicDetails bibDetails) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction();\n session.update(bibDetails);\n tx.commit();\n } catch (Runti... | [
"0.6951616",
"0.6874754",
"0.65421265",
"0.6274765",
"0.62323004",
"0.5999378",
"0.5978165",
"0.58826166",
"0.5858387",
"0.5840676",
"0.56619805",
"0.56117314",
"0.561122",
"0.55818135",
"0.5503088",
"0.54951984",
"0.5484178",
"0.5483771",
"0.54799044",
"0.5461789",
"0.545826... | 0.65212965 | 3 |
This method updates document details used in OPAC | public void update1(DocumentDetails docDetails) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
session.update(docDetails);
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateDocument(Document arg0) throws ContestManagementException {\r\n }",
"@POST\r\n @Consumes\r\n @Path(\"/updatedoc\")\r\n public String updatedoc(Doc doc) throws JSONException {\r\n JSONObject result = new JSONObject();\r\n\r\n try {\r\n Doc d = dDao.getById(doc.getId());\r\n\r\n ... | [
"0.74531835",
"0.6786795",
"0.6750917",
"0.6557737",
"0.6477687",
"0.644149",
"0.6406816",
"0.6313517",
"0.6300138",
"0.6297128",
"0.6251075",
"0.6246463",
"0.6184943",
"0.6161745",
"0.61439735",
"0.6139383",
"0.6139383",
"0.61069775",
"0.6090853",
"0.60813284",
"0.60813284",... | 0.6873435 | 1 |
All deletes This method is used to delete the record from document details table used for OPAC | public void delete1(int biblio_id, String library_id, String sub_library_id) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
try {
tx = session.beginTransaction();
Query query = session.createQuery("DELETE FROM DocumentDetails WHERE biblioId = :biblioId and id.libraryId = :libraryId and id.sublibraryId = :subLibraryId");
query.setInteger("biblioId", biblio_id);
query.setString("libraryId", library_id);
query.setString("subLibraryId", sub_library_id);
query.executeUpdate();
tx.commit();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteAll()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.deleteAll();\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void DeleteAllRecordsInTable() ... | [
"0.71445227",
"0.7108291",
"0.7072438",
"0.7060083",
"0.7002196",
"0.7002196",
"0.7002196",
"0.7002196",
"0.6955411",
"0.6892858",
"0.6886915",
"0.6875471",
"0.6873268",
"0.6873268",
"0.6873268",
"0.6866505",
"0.68534285",
"0.68383473",
"0.68259877",
"0.68259877",
"0.68259877... | 0.0 | -1 |
This method deletes accession register items. | public void deleteaccItem(String acc_no, String library_id, String sub_library_id) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
//Object acqdocentry = null;
try {
tx = session.beginTransaction();
Query query = session.createQuery("DELETE FROM AccessionRegister WHERE accessionNo = :accessionNo and id.libraryId = :libraryId and id.sublibraryId = :subLibraryId");
query.setString("accessionNo", acc_no);
query.setString("libraryId", library_id);
query.setString("subLibraryId", sub_library_id);
query.executeUpdate();
tx.commit();
}catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearAccess();",
"@Override\n\tpublic void onDelete() {\n\t\tif (testSessionChangedHandler != null) {\n\t\t\ttestSessionChangedHandler.removeHandler();\n\t\t\ttestSessionChangedHandler = null;\n\t\t}\n\t\t// Release the acmi\n\t\tif (acmiSaveButton !=null) {\n\t\t\tif (PasswordManagement.adminMenuIte... | [
"0.616504",
"0.6131805",
"0.6071296",
"0.59215325",
"0.5917536",
"0.59049374",
"0.5761137",
"0.57529473",
"0.57037705",
"0.5701703",
"0.5661379",
"0.56402606",
"0.5638182",
"0.5609542",
"0.56094885",
"0.5602898",
"0.5588562",
"0.55866665",
"0.5557493",
"0.55519897",
"0.549451... | 0.5895954 | 6 |
This method is used to delete record from bibliographic details table. | public void delete(int biblio_id, String library_id, String sub_library_id) {
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = null;
//Object acqdocentry = null;
try {
tx = session.beginTransaction();
//acqdocentry = session.load(BibliographicDetails.class, id);
Query query = session.createQuery("DELETE FROM BibliographicDetails WHERE id.biblioId = :biblioId and id.libraryId = :libraryId and id.sublibraryId = :subLibraryId");
query.setInteger("biblioId", biblio_id);
query.setString("libraryId", library_id);
query.setString("subLibraryId", sub_library_id);
query.executeUpdate();
tx.commit();
//return (BibliographicDetails) query.uniqueResult();
} catch (RuntimeException e) {
tx.rollback();
e.printStackTrace();
} finally {
session.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void deleteRecord(){\n if (mCurrentSymptomUri != null) {\n // pull out the string value we are trying to delete\n mEditSymptomText = findViewById(R.id.edit_symptoms);\n String deleteTry = mEditSymptomText.getText().toString();\n\n // set up the ContentProv... | [
"0.68985534",
"0.6894702",
"0.68687606",
"0.6833748",
"0.6825692",
"0.6824345",
"0.67475104",
"0.6726891",
"0.6623758",
"0.6618372",
"0.6492279",
"0.6483343",
"0.64484733",
"0.6428689",
"0.64281183",
"0.64240396",
"0.64166266",
"0.6413768",
"0.6399459",
"0.6379871",
"0.637207... | 0.72319067 | 0 |
Return Max This method is used to return the maximum biblio Id specific to a library | public Integer returnMaxBiblioId(String library_id, String sublibrary_id) {
Session session = HibernateUtil.getSessionFactory().openSession();
Integer maxbiblio=null;
try {
session.beginTransaction();
Criteria criteria = session.createCriteria(BibliographicDetails.class);
Criterion a = Restrictions.eq("id.libraryId", library_id);
Criterion b = Restrictions.eq("id.sublibraryId", sublibrary_id);
LogicalExpression le = Restrictions.and(a, b);
maxbiblio = (Integer) criteria.add(le).setProjection(Projections.max("id.biblioId")).uniqueResult();
if (maxbiblio == null) {
maxbiblio = 1;
} else {
maxbiblio++;
}
session.getTransaction().commit();
} catch(Exception e){
e.printStackTrace();
}
finally {
session.close();
}
return maxbiblio;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer returnMaxDocumentId(String library_id, String sublibrary_id) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Integer maxbiblio=null;\n try {\n session.beginTransaction();\n\n Criteria criteria = session.createCriteria(Docum... | [
"0.7179751",
"0.694927",
"0.6642079",
"0.655312",
"0.6507773",
"0.6400175",
"0.6296673",
"0.6224921",
"0.6211938",
"0.61562127",
"0.6137308",
"0.61293215",
"0.6123209",
"0.6093112",
"0.6087498",
"0.60755825",
"0.6074027",
"0.6063721",
"0.59924906",
"0.59870726",
"0.5983821",
... | 0.76341033 | 0 |
This method is used to return maximum record no of accession register | public Integer returnMaxRecord(String library_id, String sublibrary_id) {
Session session = HibernateUtil.getSessionFactory().openSession();
Integer maxbiblio =null;
try {
session.beginTransaction();
Criteria criteria = session.createCriteria(AccessionRegister.class);
Criterion a = Restrictions.eq("id.libraryId", library_id);
Criterion b = Restrictions.eq("id.sublibraryId", sublibrary_id);
LogicalExpression lexp = Restrictions.and(a, b);
maxbiblio = (Integer) criteria.add(lexp).setProjection(Projections.max("id.recordNo")).uniqueResult();
if (maxbiblio == null) {
maxbiblio = 1;
} else {
maxbiblio++;
}
session.getTransaction().commit();
} catch(Exception e){
e.printStackTrace();
}
finally {
session.close();
}
return maxbiblio;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getMaxRecords();",
"public int getMaxRecords() {\n return maxRecords;\n }",
"Integer getMaxRecourseUsage() {\n if(daoInterface.getMaxRecourseUsage()==null){\n return 0;\n }\n else {\n return daoInterface.getMaxRecourseUsage() ;\n }}",
"public Integer g... | [
"0.7332193",
"0.699584",
"0.68623704",
"0.67964023",
"0.67964023",
"0.6587017",
"0.65389615",
"0.64676994",
"0.6429384",
"0.6401091",
"0.6401091",
"0.6363317",
"0.6343638",
"0.6299657",
"0.62929183",
"0.62669486",
"0.62139744",
"0.61823183",
"0.6174751",
"0.6166702",
"0.61424... | 0.64961874 | 7 |
This method is used to return maximum document id specific to a library | public Integer returnMaxDocumentId(String library_id, String sublibrary_id) {
Session session = HibernateUtil.getSessionFactory().openSession();
Integer maxbiblio=null;
try {
session.beginTransaction();
Criteria criteria = session.createCriteria(DocumentDetails.class);
Criterion a = Restrictions.eq("id.libraryId", library_id);
Criterion b = Restrictions.eq("id.sublibraryId", sublibrary_id);
LogicalExpression le = Restrictions.and(a, b);
maxbiblio = (Integer) criteria.add(le).setProjection(Projections.max("id.documentId")).uniqueResult();
if (maxbiblio == null) {
maxbiblio = 1;
} else {
maxbiblio++;
}
session.getTransaction().commit();
} catch(Exception e){
e.printStackTrace();
}
finally {
session.close();
}
return maxbiblio;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static synchronized String getNextId(final List<Document> documents) {\n int max = 0;\n for (final Document doc : documents) {\n if (doc.getId() == null) {\n continue;\n }\n final int id = Integer.parseInt(doc.getId());\n max = ... | [
"0.6911647",
"0.68400544",
"0.68349963",
"0.680306",
"0.6797624",
"0.67511636",
"0.6744167",
"0.67148477",
"0.6686476",
"0.6670189",
"0.6542499",
"0.65391785",
"0.6531573",
"0.63125694",
"0.62494284",
"0.624533",
"0.62432855",
"0.6240692",
"0.6180231",
"0.6165712",
"0.6127993... | 0.7574365 | 0 |
All objects This method is used while updating accession register detail. It searches all the accessioned items and checks duplicate entry. | public AccessionRegister searchaccupdate(int record_no,String library_id, String sub_library_id, String acc_no) {
Session session = HibernateUtil.getSessionFactory().openSession();
AccessionRegister obj=null;
System.out.println(record_no+" "+library_id+" "+sub_library_id+" "+acc_no);
try {
session.beginTransaction();
Criteria criteria = session.createCriteria(AccessionRegister.class)
.add(Restrictions.conjunction()
.add(Restrictions.eq("id.libraryId", library_id))
.add(Restrictions.eq("id.sublibraryId", sub_library_id))
.add(Restrictions.eq("accessionNo", acc_no))
.add(Restrictions.ne("id.recordNo", record_no)));
obj= (AccessionRegister) criteria.uniqueResult();
System.out.println(record_no+" "+library_id+" "+sub_library_id+" "+acc_no+obj);
session.getTransaction().commit();
} catch(Exception e){
e.printStackTrace();
}
finally {
session.close();
}
return obj;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void searchAll() {\r\n\t\tconfiguracionUoDet = new ConfiguracionUoDet();\r\n\t\tidConfiguracionUoDet = null;\r\n\t\tidBarrio = null;\r\n\t\tidCiudad = null;\r\n\t\tidCpt = null;\r\n\t\tidDpto = null;\r\n\t\tmodalidadOcupacion = null;\r\n\t\tcodigoUnidOrgDep = null;\r\n\t\tdenominacion = null;\r\n\t\tllenarL... | [
"0.5488802",
"0.5385821",
"0.5305681",
"0.5268873",
"0.52615255",
"0.5257118",
"0.5213486",
"0.5195027",
"0.5182599",
"0.51691675",
"0.5153521",
"0.51326984",
"0.5131134",
"0.5120999",
"0.51206",
"0.5120262",
"0.51130784",
"0.5109109",
"0.5095475",
"0.50946987",
"0.5093877",
... | 0.0 | -1 |
All objects This method is used while updating accession register detail. It searches all the accessioned items and checks duplicate entry. | public AccessionRegister searchaccupdate1(int record_no,String library_id, String sub_library_id, String acc_no) {
Session session = HibernateUtil.getSessionFactory().openSession();
AccessionRegister obj=null;
System.out.println(record_no+" "+library_id+" "+sub_library_id+" "+acc_no);
try {
session.beginTransaction();
Criteria criteria = session.createCriteria(AccessionRegister.class)
.add(Restrictions.conjunction()
.add(Restrictions.eq("id.libraryId", library_id))
.add(Restrictions.eq("id.sublibraryId", sub_library_id))
.add(Restrictions.eq("accessionNo", acc_no))
.add(Restrictions.ne("id.recordNo", record_no)));
obj= (AccessionRegister) criteria.uniqueResult();
System.out.println(record_no+" "+library_id+" "+sub_library_id+" "+acc_no+obj);
session.getTransaction().commit();
} catch(Exception e){
e.printStackTrace();
}
finally {
session.close();
}
return obj;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void searchAll() {\r\n\t\tconfiguracionUoDet = new ConfiguracionUoDet();\r\n\t\tidConfiguracionUoDet = null;\r\n\t\tidBarrio = null;\r\n\t\tidCiudad = null;\r\n\t\tidCpt = null;\r\n\t\tidDpto = null;\r\n\t\tmodalidadOcupacion = null;\r\n\t\tcodigoUnidOrgDep = null;\r\n\t\tdenominacion = null;\r\n\t\tllenarL... | [
"0.5488874",
"0.5384957",
"0.5304696",
"0.52680695",
"0.52621824",
"0.52565396",
"0.52147454",
"0.51961786",
"0.5182119",
"0.517081",
"0.5153814",
"0.51330423",
"0.51311463",
"0.51220447",
"0.5121675",
"0.51211107",
"0.51119316",
"0.51105654",
"0.5096183",
"0.509412",
"0.5093... | 0.0 | -1 |
This method is used while updating bibliographic detail. It searches all the titles and checks duplicate entry of call no. | public BibliographicDetails searchCallNOByBiblio(String callno, int biblio_id, String library_id, String sub_library_id) {
Session session = HibernateUtil.getSessionFactory().openSession();
BibliographicDetails obj=null;
try{
session.beginTransaction();
Criteria criteria = session.createCriteria(BibliographicDetails.class)
.add(Restrictions.conjunction()
.add(Restrictions.eq("id.libraryId", library_id))
.add(Restrictions.eq("id.sublibraryId", sub_library_id))
.add(Restrictions.ne("id.biblioId", biblio_id))
.add(Restrictions.eq("callNo", callno)));
obj= (BibliographicDetails) criteria.uniqueResult();
session.getTransaction().commit();
}
catch(Exception e){
e.printStackTrace();
}
finally {
session.close();
}
return obj;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean matchOnTitle( int mainDoc, \n int mainTitle, \n int compTitle )\n {\n // Compare the titles for a match.\n int titleScore = scoreTitleMatch(mainTitle, compTitle);\n \n // If no match, stop the title iteration.\n i... | [
"0.5387404",
"0.5366776",
"0.527553",
"0.5248611",
"0.52188593",
"0.51947236",
"0.5194094",
"0.51826453",
"0.5146745",
"0.5137004",
"0.5131583",
"0.51203734",
"0.50803566",
"0.507865",
"0.50681967",
"0.5063614",
"0.5052811",
"0.499378",
"0.4951792",
"0.49507728",
"0.49434718"... | 0.0 | -1 |
This method is used while updating bibliographic detail. It searches all the titles and checks duplicate entry of isbn10. | public BibliographicDetails searchIsbn10ByBiblio(String callno,String isbn10, int biblio_id, String library_id, String sub_library_id) {
Session session = HibernateUtil.getSessionFactory().openSession();
BibliographicDetails obj=null;
try{
session.beginTransaction();
Criteria criteria = session.createCriteria(BibliographicDetails.class)
.add(Restrictions.conjunction()
.add(Restrictions.eq("id.libraryId", library_id))
.add(Restrictions.eq("id.sublibraryId", sub_library_id))
.add(Restrictions.ne("id.biblioId", biblio_id))
.add(Restrictions.eq("callNo", callno))
.add(Restrictions.eq("isbn10", isbn10)));
obj= (BibliographicDetails) criteria.uniqueResult();
session.getTransaction().commit();
}
catch(Exception e){
e.printStackTrace();
}
finally {
session.close();
}
return obj;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Book> search(String part){ \n this.searchBooks = new ArrayList<Book>();\n this.numberedListOfSearch = new HashMap<Integer, Book>();\n if (part.length()>=4){\n //Adding all the searching books into an ArrayList<Book>\n //No duplicating for books having the... | [
"0.55748594",
"0.5559904",
"0.5549129",
"0.5536027",
"0.5509096",
"0.5408498",
"0.53346854",
"0.5325349",
"0.5306172",
"0.52984524",
"0.5270304",
"0.5251024",
"0.52410436",
"0.52066964",
"0.5193377",
"0.5141678",
"0.51099885",
"0.50979275",
"0.50689864",
"0.50523984",
"0.5015... | 0.52638686 | 11 |
This method returns specific document used in OPAC. | public DocumentDetails searchDoc(int biblio_id, int record_no, String library_id, String sub_library_id) {
Session session = HibernateUtil.getSessionFactory().openSession();
DocumentDetails obj=null;
try {
session.beginTransaction();
Criteria criteria = session.createCriteria(DocumentDetails.class).add(Restrictions.conjunction().add(Restrictions.eq("id.libraryId", library_id)).add(Restrictions.eq("id.sublibraryId", sub_library_id)).add(Restrictions.eq("biblioId", biblio_id)).add(Restrictions.eq("recordNo", record_no)));
obj= (DocumentDetails) criteria.uniqueResult();
session.getTransaction().commit();
} catch(Exception e){
e.printStackTrace();
}
finally {
session.close();
}
return obj;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getDoc() {\n return doc;\n }",
"public String getDocument() {\n\t\treturn null;\r\n\t}",
"@DISPID(-2147417094)\n @PropGet\n com4j.Com4jObject document();",
"public OpenDefinitionsDocument getDocument() { return _document; }",
"public Document readDocument();",
"public String ge... | [
"0.72346914",
"0.71450514",
"0.70217806",
"0.69892734",
"0.69315076",
"0.68165797",
"0.6741966",
"0.6601282",
"0.6583976",
"0.65511245",
"0.65318453",
"0.65241855",
"0.6507227",
"0.6495397",
"0.64881873",
"0.64870626",
"0.647131",
"0.64527655",
"0.644548",
"0.6440339",
"0.643... | 0.0 | -1 |
Set the project name | public void setName(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProjectName(String name) {\r\n this.projectName = name;\r\n }",
"public void setName(String name) {\n setUserProperty(\"ant.project.name\", name);\n this.name = name;\n }",
"public void setProjectName(String project) {\n projectName = project;\n }",
"void pro... | [
"0.830477",
"0.82550687",
"0.7848822",
"0.75371325",
"0.7519553",
"0.7350261",
"0.7316074",
"0.72341585",
"0.7201769",
"0.7181278",
"0.7032309",
"0.700741",
"0.6960812",
"0.6905656",
"0.6888499",
"0.6824445",
"0.68136567",
"0.6775633",
"0.6768815",
"0.6763635",
"0.67622024",
... | 0.0 | -1 |
classe para tudo que acontece na pagina web | public TreinamentoPage() {
PageFactory.initElements(TestRule.getDriver(), this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String executa(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\treturn \"view/home.html\";\r\n\t}",
"@Override\n public String getWeb() {\n return web;\n }",
"protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagi... | [
"0.6526366",
"0.636199",
"0.6350753",
"0.6201",
"0.61724514",
"0.61593443",
"0.6142799",
"0.608066",
"0.60691744",
"0.6061712",
"0.6061015",
"0.6036133",
"0.60247916",
"0.60232764",
"0.60195184",
"0.5971929",
"0.5937993",
"0.5908275",
"0.5884079",
"0.58806074",
"0.5869133",
... | 0.5745972 | 34 |
deveria estar na classe ProdutoPage | public void clicarBotaoAddCart(){
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("window.scrollBy(0,400)","");
moveToElement(imagem);
//botaoAddCart.click();
//imagem.click();
botaoAddCart.click();
logPrint("Clicou no botao Add to Cart");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void mypage() {\n\t\t\r\n\t}",
"public void setPage(Page page) {this.page = page;}",
"public NewCZ_DPPHRProcessPage(){ super(); }",
"public RemovePage() {\n }",
"protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraH... | [
"0.6836005",
"0.674128",
"0.6692429",
"0.6623584",
"0.65140116",
"0.6351931",
"0.6326401",
"0.6309405",
"0.6309405",
"0.63021415",
"0.62903297",
"0.62659794",
"0.6255023",
"0.61846435",
"0.6118723",
"0.6103275",
"0.60990673",
"0.6098143",
"0.60970336",
"0.606472",
"0.60089386... | 0.0 | -1 |
deveria estar na classe ProdutoPage | public void verificarMensagem(String m){
boolean verificaM = mensagem.getText().equals(m);
Assert.assertTrue(verificaM);
logPrint("Mensagem apareceu");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void mypage() {\n\t\t\r\n\t}",
"public void setPage(Page page) {this.page = page;}",
"public NewCZ_DPPHRProcessPage(){ super(); }",
"public RemovePage() {\n }",
"protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraH... | [
"0.6836005",
"0.674128",
"0.6692429",
"0.6623584",
"0.65140116",
"0.6351931",
"0.6326401",
"0.6309405",
"0.6309405",
"0.63021415",
"0.62903297",
"0.62659794",
"0.6255023",
"0.61846435",
"0.6118723",
"0.6103275",
"0.60990673",
"0.6098143",
"0.60970336",
"0.606472",
"0.60089386... | 0.0 | -1 |
play special channel, if a null schedule is passed in, the live TV in this channel will be played. | void iotvPlay(Channel channel, Schedule schedule); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void playFavoriteStation(String channelName);",
"void setSchedule(java.lang.String schedule);",
"default public void clickPlay() {\n\t\tremoteControlAction(RemoteControlKeyword.PLAY);\n\t}",
"public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}",
"public static void playScre... | [
"0.60720336",
"0.5639723",
"0.55303586",
"0.54921937",
"0.5298061",
"0.5281397",
"0.5133015",
"0.5129205",
"0.51007503",
"0.50777316",
"0.5063829",
"0.5038093",
"0.50378007",
"0.50331515",
"0.50046676",
"0.5003741",
"0.4992856",
"0.49906227",
"0.49855635",
"0.49832773",
"0.49... | 0.7384534 | 0 |
get the all categories of JingXuan | List<Channel> getJXCategory(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Categorie> getAllCategories();",
"List<Category> getAllCategories();",
"public List<String> getCategories();",
"public static List<Category> getAllCategory() {\n\n List<Category> categoryList = new ArrayList<>();\n try {\n categoryList = Category.listAll(Category.class);\... | [
"0.78989625",
"0.7642386",
"0.74845755",
"0.734572",
"0.727919",
"0.71732414",
"0.7156665",
"0.7141563",
"0.7114801",
"0.707511",
"0.70611596",
"0.7060131",
"0.70507175",
"0.70438045",
"0.70377934",
"0.7037629",
"0.7031256",
"0.6972758",
"0.6952787",
"0.6920479",
"0.69112724"... | 0.72480816 | 5 |
/add by xubin 2015.11.24 begin | IDataModel getIDataModel(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void add() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private void strin() {\n\n\t}",
"public void baocun() ... | [
"0.61825186",
"0.6127294",
"0.6090784",
"0.60841465",
"0.5976341",
"0.5943695",
"0.59020644",
"0.5874492",
"0.5857475",
"0.58490825",
"0.58467263",
"0.5774624",
"0.57582486",
"0.5727147",
"0.5714868",
"0.57027024",
"0.5687366",
"0.5687366",
"0.5687366",
"0.5687366",
"0.568736... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String handlerRequest(HttpServletRequest req, HttpServletResponse res) throws Exception {
String m_location;
m_location = req.getParameter("slocation");
System.out.println(m_location);
String m_lang1;
m_lang1 = req.getParameter("slang");
System.out.println(m_lang1);
String m_place;
m_place = req.getParameter("splace");
System.out.println(m_place);
MeetingDTO d = new MeetingDTO();
d.setM_location(m_place);
d.setM_place(m_location);
d.setM_lang1(m_lang1);
List<MeetingDTO> list=MemberDAO.DetailSearchForPlace(d);
int count = MemberDAO.DetailSearchForPlaceCount(d);
req.setAttribute("count", count);
req.setAttribute("list", list);
req.setAttribute("jsp", "../meeting/meeting_type.jsp");
return "main/main.jsp";
} | {
"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 |
This specifies the contract between the view and the presenter. | public interface RepairStateContract {
interface View extends BaseView<Presenter> {
void showReportRepair();
void showRepairStates(List<ApiService.DormRepairStateResult.RepairState> states);
boolean isActive();
void showError(String error);
}
interface Presenter extends BasePresenter {
void loadReportStates();
void reportRepair();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PickDistributeContract {\n\n interface View extends BaseContract.View<PickDistributeContract.Presenter> {\n void success(RspAllDistribute list);\n\n void itemSuccess(List<RspDistribute> list);\n\n void submitSuccess();\n }\n\n interface Presenter extends BaseContract.... | [
"0.71147496",
"0.70864445",
"0.7051209",
"0.7050522",
"0.7040985",
"0.70372707",
"0.70178056",
"0.6963684",
"0.69604355",
"0.69220334",
"0.6918607",
"0.6903702",
"0.69019717",
"0.6901442",
"0.68978316",
"0.6894318",
"0.68754566",
"0.68723786",
"0.6861869",
"0.6842117",
"0.684... | 0.0 | -1 |
Parses the deploy.json file if it exists | public TiDeployData()
{
TiApplication app = TiApplication.getInstance();
File extStorage = Environment.getExternalStorageDirectory();
File deployJson = new File(new File(extStorage, app.getPackageName()), "deploy.json");
if (deployJson.exists()) {
readDeployData(deployJson);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deployApp(String marathonJson);",
"public void testImportJSONFromFileWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL +... | [
"0.5448802",
"0.51915973",
"0.5173359",
"0.51700556",
"0.51684105",
"0.49796823",
"0.49552155",
"0.49346852",
"0.49083528",
"0.48796916",
"0.48448697",
"0.48266077",
"0.48066854",
"0.46964476",
"0.46476686",
"0.46447653",
"0.46359387",
"0.46299824",
"0.4575943",
"0.45502698",
... | 0.65176725 | 0 |
Get test case from TestRail with associated test case Id. | public TestCase getTestCase(String caseId) {
URI uri;
try {
uri = TestRailApi.getCase(caseId);
val response = httpClient.execute(new HttpGet(uri));
val statusCode = response.getStatusLine().getStatusCode();
switch (statusCode) {
case 200:
return objectMapper.readValue(response.getEntity().getContent(), TestCase.class);
case 400:
throw new HttpResponseException(statusCode, "Invalid or unknown project, suite or section");
case 403:
throw new HttpResponseException(statusCode, "No access to the project");
default:
throw new HttpResponseException(statusCode, "Unexpected status code");
}
} catch (URISyntaxException | IOException e) {
e.printStackTrace();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Testcasemodel gettestcasebyid(String testid) {\n\t\treturn mongorepo.findByTestcaseid(testid);\n\t}",
"@Override\n\tpublic MedicalTest findTestById(String testId) {\n\n\t\tOptional<MedicalTest> optional = testDao.findById(testId);\n\t\tif (optional.isPresent()) {\n\t\t\tMedicalTest test = optional.get();\... | [
"0.6341345",
"0.5998913",
"0.5801706",
"0.5738415",
"0.55706376",
"0.54942715",
"0.5471827",
"0.5311965",
"0.5285471",
"0.5253679",
"0.52502805",
"0.5224667",
"0.522128",
"0.52154493",
"0.5213048",
"0.51369584",
"0.5116074",
"0.51137275",
"0.50958383",
"0.507399",
"0.50532764... | 0.69222945 | 0 |
Created by dllo on 17/10/24. | public interface ICalculation {
int add(int a,int b);
int sub(int a,int b);
int mul(int a,int b);
int div(int a,int b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"protect... | [
"0.5862167",
"0.5778259",
"0.57624465",
"0.5697109",
"0.5683075",
"0.5680738",
"0.5640075",
"0.56169",
"0.5604207",
"0.5594727",
"0.5594727",
"0.55814856",
"0.5580403",
"0.55549836",
"0.55549836",
"0.55549836",
"0.55549836",
"0.55549836",
"0.5525412",
"0.5521705",
"0.55090773... | 0.0 | -1 |
fetch binder service from IInvoker | public static IBinder fetchService(final Context context, final String provider,
final String serviceName) throws InvokeException {
return sBinderServiceCache.get(cacheKey(provider, serviceName), new BinderCache.Loader<IBinder>() {
@Override
public IBinder load() {
InvokerBridge invokerManager = ensureService(context, provider);
IBinder iBinder = null;
if (invokerManager != null) {
try {
iBinder = invokerManager.fetchService(serviceName, null);
return iBinder;
} catch (RemoteException e) {
throw new InvokeException(e);
}
}
throw new InvokeException(String.format("no binder service found for %s @ %s",
serviceName, provider));
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IBinder asBinder() {\n return this;\n }",
"public IBinder asBinder() {\n return this;\n }",
"@Override\n public IBinder onBind(Intent intent) {\n return getBinder;\n }",
"public interface FloatServiceBinder {\n /**\n * 启动并且绑定服务完成\n * @param componen... | [
"0.6683518",
"0.6683518",
"0.6544116",
"0.6527188",
"0.6521397",
"0.63564503",
"0.62920576",
"0.62822485",
"0.6230007",
"0.62258404",
"0.6224399",
"0.6181691",
"0.6149952",
"0.6122574",
"0.60957664",
"0.60957664",
"0.60957664",
"0.6082227",
"0.607248",
"0.60704756",
"0.604544... | 0.636047 | 5 |
register IInvoker in remote process dynamically. | public static <T> boolean registerInterface(Context context, String provider, String interfaceName,
T object, Class<T> localInterface) throws InvokeException {
if (object != null && localInterface != null) {
InvokerBridge invokerManager = ensureService(context, provider);
if (invokerManager != null) {
return AndInvokerProvider.registerInterface(context, invokerManager, interfaceName,
object, localInterface);
}
}
throw new InvokeException(String.format("interface register failed for %s @ %s",
interfaceName, provider));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void insertInvoker(Invoker<?> invoker) {\n\t\t\n\t}",
"public void addInvoker(Invoker invoker) {\n\t\tlogger.info(\"add an invoker into the business unit\");\n\t\tClass<?> invClass = invoker.getClass();\n\t\tString name = invClass.getSimpleName();\n\t\tinvokers.put(name, invoker);\n\t}",
"@... | [
"0.5963601",
"0.58434284",
"0.57269686",
"0.5700084",
"0.56000566",
"0.55296993",
"0.54786",
"0.543098",
"0.542971",
"0.54184425",
"0.5410045",
"0.5359539",
"0.5314035",
"0.527354",
"0.51772463",
"0.5176413",
"0.5168621",
"0.5154189",
"0.5111694",
"0.5079973",
"0.5075305",
... | 0.4993268 | 29 |
NO THROW VERSION APIS: fetch binder service from IInvoker, nothrow version | public static IBinder fetchServiceNoThrow(Context context, String provider, String serviceName) {
try {
return fetchService(context, provider, serviceName);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface FloatServiceBinder {\n /**\n * 启动并且绑定服务完成\n * @param componentName ServiceConnection的componentName\n * @param iBinder ServiceConnection的iBinder\n */\n void onBindSucceed(ComponentName componentName, IBinder iBinder);\n\n /**\n * 当服务意外死亡时触发\n * @param componentName... | [
"0.6064969",
"0.56719935",
"0.56644523",
"0.56237006",
"0.55766016",
"0.5569749",
"0.55212516",
"0.55212516",
"0.55212516",
"0.54834485",
"0.5480733",
"0.544924",
"0.5402647",
"0.5386151",
"0.5368884",
"0.53670186",
"0.53670186",
"0.53670186",
"0.5343564",
"0.53163314",
"0.53... | 0.0 | -1 |
unregister binder service, nothrow version | public static boolean unregisterServiceNoThrow(Context context, String provider, String serviceName)
throws InvokeException {
try {
return unregisterService(context, provider, serviceName);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void unbindService(BehaviourInferenceAlgorithmRegistry registry) {\n \tregistry = null;\n logger.info(\"BehaviourInferenceAlgorithmRegistry service disconnected.\");\n }",
"void unbind(EventService service);",
"private void unbindService() {\n synchronized (mLock) {\n ... | [
"0.73548365",
"0.7167758",
"0.6999038",
"0.6991588",
"0.69517",
"0.6930727",
"0.69206786",
"0.6873283",
"0.6789869",
"0.6777401",
"0.675646",
"0.66879904",
"0.6598745",
"0.6556115",
"0.65097094",
"0.65066123",
"0.65021056",
"0.65016824",
"0.64983165",
"0.64737904",
"0.6463185... | 0.0 | -1 |
invoke IInvoker, nothrow version | public static Bundle invokeNoThrow(Context context, String provider, String serviceName,
String methodName, Bundle params, ICall callback) {
try {
return invoke(context, provider, serviceName, methodName, params, callback);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Result invoke(Invoker<?> invoker, Invocation invocation);",
"public abstract void doInvoke(InvocationContext ic) throws Exception;",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"public abstract Object invo... | [
"0.75000226",
"0.6824101",
"0.67690027",
"0.6606187",
"0.6437082",
"0.63737077",
"0.63316655",
"0.6326896",
"0.6264151",
"0.625235",
"0.616689",
"0.6117769",
"0.609535",
"0.60794234",
"0.60413265",
"0.60258114",
"0.5994079",
"0.5971293",
"0.5947147",
"0.5868247",
"0.5856818",... | 0.0 | -1 |
register IInvoker in remote process dynamically, nothrow version | public static boolean registerInvokerNoThrow(Context context, String provider,
String serviceName, final Class<? extends IInvoker> iInvokerClass) {
try {
return registerInvoker(context, provider, serviceName, iInvokerClass);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void insertInvoker(Invoker<?> invoker) {\n\t\t\n\t}",
"public boolean onRemoteExecutionStart(Method method, Object invoker, Object[] args);",
"public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}",
"@Override\n\tpublic void ... | [
"0.6044773",
"0.5769946",
"0.57041055",
"0.5580877",
"0.5564791",
"0.55384177",
"0.55290025",
"0.5463012",
"0.5344189",
"0.53398037",
"0.53376114",
"0.5305208",
"0.5294688",
"0.52597064",
"0.5259024",
"0.5258043",
"0.52484846",
"0.52413714",
"0.5238899",
"0.52152634",
"0.5188... | 0.55138904 | 7 |
register IInvoker in remote process dynamically, nothrow version | public static boolean registerInvokerNoThrow(Context context, String provider,
String serviceName, IInvoker invoker) {
try {
return registerInvoker(context, provider, serviceName, invoker);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void insertInvoker(Invoker<?> invoker) {\n\t\t\n\t}",
"public boolean onRemoteExecutionStart(Method method, Object invoker, Object[] args);",
"public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}",
"@Override\n\tpublic void ... | [
"0.6044773",
"0.5769946",
"0.57041055",
"0.5580877",
"0.5564791",
"0.55384177",
"0.55138904",
"0.5463012",
"0.5344189",
"0.53398037",
"0.53376114",
"0.5305208",
"0.5294688",
"0.52597064",
"0.5259024",
"0.5258043",
"0.52484846",
"0.52413714",
"0.5238899",
"0.52152634",
"0.5188... | 0.55290025 | 6 |
register IInvoker in remote process dynamically, nothrow version | public static boolean registerInvokerNoThrow(Context context, String provider,
String serviceName, IServiceFetcher<IInvoker> invokerFetcher) {
try {
return registerInvoker(context, provider, serviceName, invokerFetcher);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void insertInvoker(Invoker<?> invoker) {\n\t\t\n\t}",
"public boolean onRemoteExecutionStart(Method method, Object invoker, Object[] args);",
"public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}",
"@Override\n\tpublic void ... | [
"0.6044773",
"0.5769946",
"0.57041055",
"0.5580877",
"0.5564791",
"0.55384177",
"0.55290025",
"0.55138904",
"0.5463012",
"0.5344189",
"0.53398037",
"0.53376114",
"0.5305208",
"0.5294688",
"0.52597064",
"0.5259024",
"0.5258043",
"0.52484846",
"0.52413714",
"0.5238899",
"0.5215... | 0.5075228 | 27 |
unregister IInvoker dynamically, nothrow version | public static boolean unregisterInvokerNoThrow(Context context, String provider,
String serviceName) {
try {
return unregisterInvoker(context, provider, serviceName);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void unregister();",
"void unregister(String methodName);",
"@Override\n\tpublic void deleteInvoker(Invoker<?> invoker) {\n\t\t\n\t}",
"@Override\n protected void onUnregistered() throws RemoteException {\n\n }",
"boolean unregister(String name);",
"@Override\n protected void onU... | [
"0.6230361",
"0.60361046",
"0.5993473",
"0.59894806",
"0.5859646",
"0.58459437",
"0.5738425",
"0.57203287",
"0.5567296",
"0.55007887",
"0.5477645",
"0.5435073",
"0.54194045",
"0.53982925",
"0.5380674",
"0.5374947",
"0.53732866",
"0.5372798",
"0.53555775",
"0.5319096",
"0.5263... | 0.5484072 | 10 |
register IInvoker in remote process dynamically. nothrow version | public static <T> boolean registerInterfaceNoThrow(Context context, String provider, String interfaceName,
T object, Class<T> localInterface) throws InvokeException {
try {
return registerInterface(context, provider, interfaceName, object, localInterface);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void insertInvoker(Invoker<?> invoker) {\n\t\t\n\t}",
"public boolean onRemoteExecutionStart(Method method, Object invoker, Object[] args);",
"public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}",
"@Override\n\tpublic void ... | [
"0.6140864",
"0.58012766",
"0.57155067",
"0.5636148",
"0.56107223",
"0.55922526",
"0.5570619",
"0.554598",
"0.54870147",
"0.5473291",
"0.5360076",
"0.5355746",
"0.53395516",
"0.53043205",
"0.5297454",
"0.52737534",
"0.5272147",
"0.5270596",
"0.5232083",
"0.5227404",
"0.521637... | 0.0 | -1 |
unregister interface, nothrow version | public static <T> boolean unregisterInterfaceNoThrow(Context context, String provider,
String interfaceName) throws InvokeException {
try {
return unregisterInterface(context, provider, interfaceName);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void unregister();",
"@Override\n public void unplug(final InterfaceDef iface) {\n }",
"@Override\n protected void onUnregister() {\n Core.unregister(this);\n }",
"@Override\n protected void onUnregistered() throws RemoteException {\n\n }",
"public void unregister(T... | [
"0.7937992",
"0.7350675",
"0.734479",
"0.71384513",
"0.7131701",
"0.7037332",
"0.68613887",
"0.67019963",
"0.6683049",
"0.6675811",
"0.65726167",
"0.65615344",
"0.6558829",
"0.6517985",
"0.63955456",
"0.6370453",
"0.6300163",
"0.6298982",
"0.62875414",
"0.6258878",
"0.6241062... | 0.5942016 | 54 |
fetch interface, nothrow version | public static <T> T fetchInterfaceNoThrow(Context context, String provider, final String interfaceName,
final Class<T> localInterface) throws InvokeException {
try {
return fetchInterface(context, provider, interfaceName, localInterface);
} catch (Throwable t) {
if (LogUtil.LOG_ENABLED) {
t.printStackTrace();
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract T fetch();",
"public abstract void fetch();",
"interface Retrieve {}",
"public interface Fetcher {\n\n\tFetchedPage fetch(URI pageUri) throws FetchingException;\n\n}",
"Object get(ID id) throws Exception;",
"public Result get(Get get) throws IOException;",
"public interface DataFetch... | [
"0.79225457",
"0.7675636",
"0.697975",
"0.6612187",
"0.6432614",
"0.6329254",
"0.63101476",
"0.6228147",
"0.61819935",
"0.6170938",
"0.6137378",
"0.61042434",
"0.6075987",
"0.6041598",
"0.6022996",
"0.59906703",
"0.5915403",
"0.59153795",
"0.5903279",
"0.5903279",
"0.5883803"... | 0.0 | -1 |
check whether the remote of the binder/proxy is alive | public static boolean isRemoteAlive(Object obj) {
if (obj instanceof IBinder) {
return ((IBinder) obj).isBinderAlive();
}
if (obj instanceof _IRemote) {
IBinder binder = ((_IRemote) obj)._asBinder();
if (binder != null) {
return binder.isBinderAlive();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isAlive() throws RemoteException;",
"public boolean isAlive() throws RemoteException;",
"boolean hasRemoteHost();",
"public boolean isAlive();",
"public boolean tunnelAvailable();",
"public boolean connectionAlive() throws RemoteException;",
"boolean isAlive();",
"boolean isAlive();",
"prot... | [
"0.7372884",
"0.7205564",
"0.71761566",
"0.70323384",
"0.6993977",
"0.6989032",
"0.68836224",
"0.68836224",
"0.6865059",
"0.6865059",
"0.6762144",
"0.6708635",
"0.6658463",
"0.6651591",
"0.6651591",
"0.66453695",
"0.6643904",
"0.6639975",
"0.66323036",
"0.66189706",
"0.660924... | 0.7382407 | 0 |
add a Codec to serialize/deserialize custom class. | public static <S, R> void appendCodec(Class<S> srcClass, Class<R> remoteClass, Codec<S, R> codec) {
InterfaceHandler.addCodec(srcClass, remoteClass, codec);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCodec(Codec codec);",
"public MyEncodeableUsingEncoderDecoderClass() {}",
"public void setCodec(Codec codec) {\n this.codec = codec;\n }",
"public Codec getCodec();",
"public JsonFactory setCodec(ObjectCodec oc)\n/* */ {\n/* 721 */ this._objectCodec = oc;\n/* 722 */ ... | [
"0.6360069",
"0.6169133",
"0.60665584",
"0.58992",
"0.5872555",
"0.58345515",
"0.5807783",
"0.5702758",
"0.56023276",
"0.5599001",
"0.5544258",
"0.5342474",
"0.53274304",
"0.51430124",
"0.51413494",
"0.5117927",
"0.5112706",
"0.50773203",
"0.50258034",
"0.50105053",
"0.499966... | 0.6064811 | 3 |
add an Encoder to serialize custom class. | public static <S, R> void appendEncoder(Class<S> srcClass, Class<R> remoteClass, Encoder<S, R> encoder) {
InterfaceHandler.addEncoder(srcClass, remoteClass, encoder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyEncodeableUsingEncoderDecoderClass() {}",
"public MyEncodableUsingEncoderDecoderName() {}",
"private Encoder() {}",
"public ObjectSerializationEncoder() {\n // Do nothing\n }",
"public DebugEncoder(Encoder ec) {\n this.ec = ec;\n }",
"public static BinaryMessageEncoder<DNSLog> getE... | [
"0.7101825",
"0.6382282",
"0.6100207",
"0.58640724",
"0.57888323",
"0.57706517",
"0.57411677",
"0.57282877",
"0.5707568",
"0.5636956",
"0.5626698",
"0.5618141",
"0.561098",
"0.5553302",
"0.5547193",
"0.55293804",
"0.5501698",
"0.5491167",
"0.54170597",
"0.53983366",
"0.539465... | 0.6356377 | 2 |
add an Decoder to deserialize encoded class. | public static <R, S> void appendDecoder(Class<R> remoteClass, Class<S> srcClass, Decoder<R, S> decoder) {
InterfaceHandler.addDecoder(remoteClass, srcClass, decoder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyEncodableUsingEncoderDecoderName() {}",
"public MyEncodeableUsingEncoderDecoderClass() {}",
"public static BinaryMessageDecoder<AvroRide> getDecoder() {\n return DECODER;\n }",
"public static JSONDecoder getDecoder() throws CharonException {\n return decoder;\n }",
"public static Bin... | [
"0.60426617",
"0.5760795",
"0.5753765",
"0.5670789",
"0.56311226",
"0.56272346",
"0.56271285",
"0.5615447",
"0.5551299",
"0.55314255",
"0.550218",
"0.5501729",
"0.54955053",
"0.54351634",
"0.54115915",
"0.53912044",
"0.5381235",
"0.5365488",
"0.5357953",
"0.53250575",
"0.5283... | 0.5989784 | 1 |
disable client binder/interface cache. | public static void noClientCache() {
sBinderServiceCache = BinderCache.noCache();
sInterfaceServiceCache = BinderCache.noCache();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AgentPolicyBuilder disableCache();",
"static void invalidateBinderCaches() {\n DevicePolicyManager.invalidateBinderCaches();\n }",
"public void setNoCache() {\n noCache= true;\n }",
"@Override\n public boolean isCaching() {\n return false;\n }",
"public DBMaker disableCacheAutoClear(... | [
"0.68757945",
"0.65618336",
"0.649137",
"0.63993436",
"0.63870233",
"0.63848555",
"0.6383813",
"0.60360926",
"0.59885126",
"0.5972997",
"0.59633267",
"0.59154874",
"0.59053105",
"0.5844813",
"0.5816812",
"0.58145994",
"0.5807114",
"0.5782313",
"0.57814753",
"0.5778986",
"0.57... | 0.85568243 | 0 |
To add new examination to examinations list | public void addExamination(Examination examination){
this.examinations.add(examination);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean insertExamination(Examination examination);",
"@Override\r\n\tpublic boolean addExam(IExam exam) {\n\t\treturn false;\r\n\t}",
"public void newApointment(Appointment ap){\n\n this.appointments.add(ap);\n }",
"@Override\n\tpublic boolean addExam(Exam exam) {\n\t\tString sql = \"insert in... | [
"0.694323",
"0.66134703",
"0.5964459",
"0.5926615",
"0.5891819",
"0.5837149",
"0.5764467",
"0.5688954",
"0.56755626",
"0.56692165",
"0.5659281",
"0.56552804",
"0.55722606",
"0.55662507",
"0.55592084",
"0.5512582",
"0.5498902",
"0.5467031",
"0.5441775",
"0.54145443",
"0.540244... | 0.8072927 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
RestAssured.baseURI="https://petstore.swagger.io";
System.out.println("_______________Add Pet API_______________________________________________________________________________________________");
String AddPetResponse= given().log().all().header("accept","application/json").header("Content-Type","application/json").
body(PetStorePayloads.AddPetApiPayload("1234567890", "bb","available")).
when().post("/v2/pet").
then().log().all().assertThat().statusCode(200).extract().response().asString();
//System.out.println(AddPetResponse);
System.out.println();
JsonPath path=new JsonPath(AddPetResponse);
PetID=path.getString("id");
System.out.println(PetID);
System.out.println("_______________update Pet API_______________________________________________________________________________________________");
String UpdatePetResponse= given().log().all().header("accept","application/json").header("Content-Type","application/json").
body(PetStorePayloads.UpdatePetApiPayload("22", "binitab","sold")).
when().put("/v2/pet").
then().log().all().assertThat().statusCode(200).extract().response().asString();
//System.out.println(UpdatePetResponse);
System.out.println();
JsonPath pathh=new JsonPath(UpdatePetResponse);
PetID=pathh.getString("id");
System.out.println(PetID);
System.out.println("__________________Get Pet By ID API __________________________________________________________________________________________________________________________________");
String FindPetByIDResponse=given().log().all().header("Content-Type","application/json").
pathParam("id", PetID).
when().get("/v2/pet/{id}").
then().log().all().assertThat().statusCode(200).extract().response().asString();
//System.out.println(FindPetByIDResponse);
JsonPath path2=new JsonPath(FindPetByIDResponse);
System.out.println(path2.get("id") +" Pet is get successfully ");
System.out.println("__________________Delete pet API __________________________________________________________________________________________________________________________________");
String DeletePetResponse=given().log().all().header("Content-Type","application/json").
pathParam("id", PetID).
when().delete("/v2/pet/{id}").
then().log().all().assertThat().statusCode(200).extract().response().asString();
JsonPath path3=new JsonPath(FindPetByIDResponse);
//System.out.println(DeletePetResponse);
System.out.println();
System.out.println(path3.get("id") +" Pet is delete successfully ");
} | {
"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 |
/ Map m = new HashMap(); m.put("name",auditorium.getName()); m.put("numberOfseats", auditorium.getNumberOfSeats()); m.put("vipSeats", auditorium.getVipSeats()); | public Auditorium save(Auditorium auditorium) {
auditoriumList.add(auditorium);
System.out.println("Auditorium was saved to (List) by AuditoriumDao class");
return auditorium;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Object> getStats();",
"@Override\n public Map<Integer, PenghuziPlayer> getSeatMap() {\n return seatMap;\n }",
"@Override\r\n\tpublic Map<String, double[]> getHallAttendance() {\n\t\tMap<String, double[]> result = new HashMap<String, double[]>();\r\n\t\tdouble[] hall1 = new double[7];\... | [
"0.5937506",
"0.59151495",
"0.57689095",
"0.5742346",
"0.56902766",
"0.5667033",
"0.5661627",
"0.5626677",
"0.55965304",
"0.5525218",
"0.5524662",
"0.5524662",
"0.5524662",
"0.55156636",
"0.55080163",
"0.5483333",
"0.54447424",
"0.5439977",
"0.5409964",
"0.54007417",
"0.53944... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getDesc() {
return pizza.getDesc()+" , RomaTomatoes(12.88)";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public double getPrice() {
return pizza.getPrice()+ 12.88;
} | {
"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 |
This method was generated by MyBatis Generator. This method corresponds to the database table order | int countByExample(OrderExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }",
"protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}",
"public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}",
"Or... | [
"0.7150102",
"0.70747644",
"0.5989495",
"0.59714025",
"0.5948854",
"0.5912307",
"0.59027433",
"0.5847214",
"0.58451104",
"0.58348256",
"0.57856953",
"0.5757909",
"0.57493114",
"0.57219756",
"0.5711273",
"0.5709492",
"0.5708551",
"0.5699694",
"0.56765527",
"0.5645061",
"0.5638... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table order | int deleteByExample(OrderExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }",
"protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}",
"public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}",
"Or... | [
"0.7150395",
"0.70756245",
"0.598947",
"0.59722084",
"0.59503245",
"0.5913322",
"0.5903205",
"0.5847804",
"0.5845008",
"0.58349603",
"0.57852846",
"0.5758361",
"0.57513916",
"0.5722208",
"0.57122165",
"0.5709362",
"0.5707884",
"0.5698927",
"0.5676392",
"0.56462383",
"0.563935... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table order | @Delete({
"delete from order",
"where id = #{id,jdbcType=BIGINT}"
})
int deleteByPrimaryKey(Long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }",
"protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}",
"public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}",
"Or... | [
"0.71494067",
"0.7074074",
"0.59868467",
"0.59690744",
"0.59484506",
"0.59095633",
"0.59027445",
"0.5846221",
"0.584277",
"0.58352035",
"0.578317",
"0.57546306",
"0.574843",
"0.5720651",
"0.5709069",
"0.57073045",
"0.57066065",
"0.5701518",
"0.5674727",
"0.56443137",
"0.56385... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table order | @Insert({
"insert into order (id, orderid, ",
"name, price, userid)",
"values (#{id,jdbcType=BIGINT}, #{orderid,jdbcType=VARCHAR}, ",
"#{name,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{userid,jdbcType=VARCHAR})"
})
int insert(Order record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }",
"protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}",
"public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}",
"Or... | [
"0.7150102",
"0.70747644",
"0.5989495",
"0.59714025",
"0.5948854",
"0.5912307",
"0.59027433",
"0.5847214",
"0.58451104",
"0.58348256",
"0.57856953",
"0.5757909",
"0.57493114",
"0.57219756",
"0.5711273",
"0.5709492",
"0.5708551",
"0.5699694",
"0.56765527",
"0.5645061",
"0.5638... | 0.51781225 | 90 |
This method was generated by MyBatis Generator. This method corresponds to the database table order | int insertSelective(Order record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }",
"protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}",
"public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}",
"Or... | [
"0.7150102",
"0.70747644",
"0.5989495",
"0.59714025",
"0.5948854",
"0.5912307",
"0.59027433",
"0.5847214",
"0.58451104",
"0.58348256",
"0.57856953",
"0.5757909",
"0.57493114",
"0.57219756",
"0.5711273",
"0.5709492",
"0.5708551",
"0.5699694",
"0.56765527",
"0.5645061",
"0.5638... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table order | List<Order> selectByExample(OrderExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }",
"protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}",
"public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}",
"Or... | [
"0.7150395",
"0.70756245",
"0.598947",
"0.59722084",
"0.59503245",
"0.5913322",
"0.5903205",
"0.5847804",
"0.5845008",
"0.58349603",
"0.57852846",
"0.5758361",
"0.57513916",
"0.5722208",
"0.57122165",
"0.5709362",
"0.5707884",
"0.5698927",
"0.5676392",
"0.56462383",
"0.563935... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table order | @Select({
"select",
"id, orderid, name, price, userid",
"from order",
"where id = #{id,jdbcType=BIGINT}"
})
@ResultMap("BaseResultMap")
Order selectByPrimaryKey(Long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }",
"protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}",
"public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}",
"Or... | [
"0.71494067",
"0.7074074",
"0.59868467",
"0.59690744",
"0.59484506",
"0.59095633",
"0.59027445",
"0.5846221",
"0.584277",
"0.578317",
"0.57546306",
"0.574843",
"0.5720651",
"0.5709069",
"0.57073045",
"0.57066065",
"0.5701518",
"0.5674727",
"0.56443137",
"0.56385934",
"0.56215... | 0.58352035 | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.